CyclopsMC / IntegratedScripting

Create scripts for handling complex operations in Integrated Dynamics
MIT License
9 stars 1 forks source link

Function or Array of Variable Card values #15

Open bangplaysgames opened 1 month ago

bangplaysgames commented 1 month ago

Issue type:


Short description:

Either a function:

function VariableCard(int ID){
     return Value
}

Or an array: VariableCard["ID"]

Either of these would return the value of the variable card with the ID passed to it. In the case of the array, the ID would be the index.

The same rules for Integrated Dynamics variable cards would still apply: Have the variables contained in the network in order to be valid.

This opens the door for declaring variables within scripts that represent the values of variable cards directly.

rubensworks commented 1 month ago

Thanks for the suggestion!

rubensworks commented 1 month ago

Related to https://github.com/CyclopsMC/IntegratedDynamics/issues/839

anton85bk commented 1 month ago

+1 my voice for this feature and it's still in the IntegratedDynamics logic

if we have our Scripting Drive with inserted Scripting Disk in the network where there are VariableStorages - why we can't queue them for a list of variables or for one with specific ID to return it's value?

Waiting for this feature to be implemented.