Label + variable?

Hi! I’m just diving into this, so I may be doing something stupid. Thanks for an help you can give!

Can I not use the following script?

*set room 102
*gosub_scene roomlist ${room}

Where I’ve numbered the labels.

I’m getting this error:

direch01 line 4: Invalid expression, couldn’t extract another token: ${room}

Thanks!

I’m not certain, but does *goto_scene roomlist {room} work? :thinking:

2 Likes

Sorry! I mean gosub_scene roomlist ${room}

Oh my gosh! Yes, that worked. Thank you so much!!

I’m fairly certain you only use the $ in front of {} when it’s something the player will see, otherwise, for pointers and such, it should only be { }

1 Like

That’s very useful to know. Thanks for the tip!

1 Like