Function or Array of Variable Card values · Issue #15 · CyclopsMC/IntegratedScripting · GitHub
Skip to content

Function or Array of Variable Card values #15

Open

Description

@bangplaysgames

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.

Activity

  1. rubensworks commented on Sep 15, 2024

    @rubensworks
    Member

    Thanks for the suggestion!

  2. rubensworks commented on Sep 15, 2024

    @rubensworks
    Member
  3. moved this from Options to Accepted (To Do) in Featureson Sep 15, 2024
  4. anton85bk commented on Oct 3, 2024

    @anton85bk

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

  5. BobserLuck commented on Mar 19, 2025

    @BobserLuck

    +1 would love to see this feature as well.

    Unless I'm mistaken, only way to bring values from any kind of Reader (block, entity, etc) is to drop it as a Card. But then you can't easily get that value in a script without Applying it as an Oporator and then we're back to good ol' Card building.

  6. DaComputerNerd717 commented on Jan 29, 2026

    @DaComputerNerd717

    I also have run into a use case for this, reading an inventory for writing essentially a custom crafting script, since it seems neither AE2 nor Integrated Crafting can keep separate partial stacks of ingredients separate, both stack them into the same slot, making it really hard to put them into separate deployers. I can't write this script, because I can't read what items are available to craft with to determine which recipe to try and not put the ingredients in the wrong places because it tries another recipe it has half the items for. Scripts cannot do the operation I need, and it'd be a lot of work to do via variable cards

  7. moved this from Accepted (To Do) to Assign to AI in Featureson Sep 6, 2026
  8. moved this from Assign to AI to Accepted (To Do) in Featureson Sep 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    • Status
      Accepted (To Do)

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions