aloha - long time coder new to AC, attempting to help a friend with their game.
Is there an ActionList method akin to the 'switch' statement (eg. check value of one variable and offer multiple 'case' actions for different values - if then else else else)?
Current code has 55 different actions depending on value of an ID variable. The current actionList requires 55 check/branch item pairs.
Is there any regular expression magic to select an asset to invoke (eg Card_1, Card_2...)?
Is there a way to create a Container object that could hold other GameObjects (or ID) that can be saved & reloaded?
I suppose I could dive deep and create C# scripts but this was supposed to be a quick job.
Comments
This is possible with the Variable: Pop Up switch Action - though only if the Variable in question is of type PopUp. It allows, as you describe, to reroute to different Actions depending on the selected Variable's current value.
If you want to create your own Action, it's very simple for long-time coders. See this tutorial on creating new Actions, though Actions with multiple output sockets derive from ActionCheckMultiple, not Action as in the tutorial. If you want to make a change to the existing switch Action, it's probably easier to duplicate it, set up new class variables for it, and tweak as required.