Display a string when traveling through an exit

puzzler7
Is there a way to display a different message when entering a room for a certain exit? I'm making a 'haunted house' type game, and I'm working with 1 way exits, so I'd like to say something like "The door vanishes behind you."

XanMag
Use the 'after entering room' script. Can't remember exactly where it is but its on one of the room tabs (exits maybe?)

puzzler7
How about for a certain exit? For example, only for the one way exits.

XanMag
You should still be able to use the 'after entering room' script. If it's a case of entering the destination room from more than one 'leaving' room, you could use flags when entering the 'leaving' room to indicate which room they are entering from. That's my take. :)

puzzler7
Ok, thank you!

The Pixie
You can put a script on the exit in question. Just tick the run script box, then put in your script. This script will run instead of Quest moving the player, so your script should do that. In your case, the message should be after that, as you want the message to appear after the room description.

puzzler7
Ok, I think I'll do that. Thanks @The Pixie!

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

Support

Forums