How to run a message script before a room description

Hi Everyone! This is probably a stupid question, but I want to run a script with a message the first time a player enters a specific room. But I want it to display before the room description. I don't see a setting for that in the room script tab when I add the script. Any help much appreciated.


I'm guessing that would be the beforefirstenter script ("Before entering the room for the first time:" in the editor).

Or if you want it to appear before the description but after the room name (or other parts of the description), you would put it in the room description. If it's just a message, you could just put {once:This is a message that only appears once}. at the start of the description. If you want to do more complex script stuff, you could make a function to do the stuff (make its type "string"), and then call it from the start of the description using something like {once:{=NameOfFunction()}}.


This is exactly what I needed. It solves my issue and a few future ones as well. Thank you so much!


This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums