Hi folks,
Does anyone know if there's a way to use variable tokens "[var:ID]" in action lists? I've tested with the Print in Console function of the comment action and it just prints the token as if it were text, instead of reading the variable name.
In my particular case, I'd like to be able to show/hide menu elements based on variables (using Menu -> Change State). I'm developing a way to cycle through elements in a cut-scene (letting the user press any key to continue), and I need to be able to show/hide specific elements according to a variable.
Cheers!
Comments
Have you looked into parameters? They're a good way of recycling ActionLists in cases like this.
Once your familiar with how they work, create a String parameter, and insert it into your Element textbox in the Menu: Change state Action. Then, run this ActionList using the "ActionList: Run" Action, and you can set the String parameter within it. Simply insert the variable's token into the box, and it'll be used in your Menu Action!
stringValue = _value;
to read:
stringValue = AdvGame.ConvertTokens (_value);