[SOLVED] Supress the default message when entering a room?

Hello everyone,
I'm new to Quest and enjoying it tremendously.
I am a coder so scripting is no issue.
I'm trying to find the most elegant and simplest way to suppress the initial message: You are in a room. The room is dark and I want the description to start with the text when the room is dark.


Hmm… you mean you want to suppress the "You are in a [whatever]" line when a room is dark?

If it's one specific room, you could use the room's "before enter" and "on enter" scripts to turn that line on or off.
So before entering the room, you could have:

if (CheckDarkness ()) {
   game.autodescription_youarein = 0
}

and after the room is entered, you could have:

game.autodescription_youarein = 1

to turn it back on for the next room.

If you want to do this for all rooms, I think the simplest way would be to change the player's changedparent script attribute. You could modify the default script, and at the beginning just add:

if (CheckDarkness ()) {
   game.autodescription_youarein = 0
}
else {
   game.autodescription_youarein = 1
}

You can set that in the game section, room description. There is 4 parts:

  1. you are in...
  2. visible exits...
    3)visible objects...
  3. room description...
    use the up/down buttons to change the order, or 0 to not show.
    For a "simple" adventure, you can leave it as the default.
    BUT, if you are telling a story, those parts would "mess-up" the flow of the text. (after all, who speaks that way???)

Thank you mrangel: that did it!
DarkLizerd: thank you for pointing out how this can be controlled globally for the whole game. Much appreciated.


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

Support

Forums