Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function or Array of Variable Card values #15

Open
bangplaysgames opened this issue Sep 15, 2024 · 3 comments
Open

Function or Array of Variable Card values #15

bangplaysgames opened this issue Sep 15, 2024 · 3 comments

Comments

@bangplaysgames
Copy link

bangplaysgames commented Sep 15, 2024

Issue type:

  • ➕ Feature request

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
Copy link
Member

Thanks for the suggestion!

@rubensworks
Copy link
Member

Related to CyclopsMC/IntegratedDynamics#839

@rubensworks rubensworks moved this from Options to Accepted (To Do) in Features Sep 15, 2024
@anton85bk
Copy link

anton85bk commented Oct 3, 2024

+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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Accepted (To Do)
Development

No branches or pull requests

3 participants