Do not display Room Name

So, how would I (in one particular room) not have the program display the room name? I have some coding where I want something to happen before they enter the room, which includes text and functions displaying text. So it displays all the text and when they enter the room, the room name appears after all that text. So I was hoping to disable the printing of the room name and just print it manually in the Before you enter Room area.

If there's only one way (or a small number of ways) to get to that room, it would probably be easier to run the code before the player is in the room. Before they are moved there if it's a script action, or by putting your messages in the exit's script if it's somewhere the player moves to themself.


the room name appears after all that text.

The room name already appears after any text from the "before enter" scripts.

If your script includes menus or player interaction, it's a bit harder (which is why I suggested doing your other stuff before actually moving the player).
You'd want one of:

  • game.showdescriptiononenter (set to false to prevent the room description showing; set to true again after your script is done, and call ShowRoomDescription() if necessary).
  • If you just want to hide the room name, you can set game.autodescription_youarein to 0. To enable it again, set it to a number from 1 to 4.
  • If you want to postpone changing the room name in the location bar, it'll require some javascripty oddness. If so, let me know and I'll give it a try.

Hope that helps!

game.showdescriptiononenter is exactly what I needed. Thanks!

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