I enter room 100, I then need a line in that room that says
<<set $number100Room = $room>>
I can’t hard code this in each room, I need this done using variables.
I’ve tried …
<<set $+“number”+$myLocation+“Room” = $room>>
<<set $number+$myLocation+Room = $room>>
and a bunch of ideas similar to that, but none work.
You will have to establish the array near the start of your game (maybe in StoryInit) so the size is already known. Like <<set $room to [0, 0, 0, 0, … , 0]>>, however many spaces you plan to use.
I may have got the exact format wrong, as I’m not at home.
Since the $ is really just a shortcut for State.variables, sirslice can do something more inline with their original idea using the actual variable object. Like this: