"Show Room description" script command?

Big J Money
27 Jan 2004, 17:16
I've been looking everywhere, I can't seem to find a "show room description" script command. Is there anyway to do this without having to force the player to type the look command? I'd like to do it without any turns passing.

The main reason I want this is becasue I want the screen to clear every time a room description is shown, and I figured the best way to do that is by creating my own override look command. I don't want the screen to clear every turn however, like if the player picks something up. Actually, it would be even better if there were a way to run scripts whenever a room's description is displayed, or if there was a way to edit the game-inherent commands like the look and movement commands. This way I could also have the screen clear when a player enters a new room.

Alex
27 Jan 2004, 18:39
You can display the room's description by printing its "look" property. For example:


msg <#(quest.currentroom):look#>


(In QDK, put #(quest.currentroom):look# in the parameter for the print command).

You can run scripts when a room description is displayed anyway. Just specify your own description script. You can do this at game level, by putting a "description" tag in the "define game" block (or by putting the script in the Game Properties window in QDK), or you can do it at room level.

You can clear the screen when a player enters a room by putting the clear command in a "script" tag for the room. Again this is easily done in QDK.