Re-load a room description ?
Thierry
08 Dec 2012, 20:42I'd like to create, in a room, an exit to go to... this same room. In fact, by clicking on it, I'd like room description to be re-displayed, as if the player enters in the room for the first time.
I thought I could easily do that with the "exit" sub-menu, but it seems choosing the same room just doesn't work (even if Quest lets you do that)...
I thought I could easily do that with the "exit" sub-menu, but it seems choosing the same room just doesn't work (even if Quest lets you do that)...
Jsimmons
08 Dec 2012, 21:09What if you simply created a second room with the same description? Wouldnt that work the same way?
Thierry
08 Dec 2012, 22:00Yes that's true, and that's what I did until now. I was just wondering if a kind of "refresh" function was possible with Quest, for not wasting too much space with some "ghost" rooms. Anyway, thank you very much for your help 

The Pixie
08 Dec 2012, 22:20I think Quest shows descriptions and runs scripts for rooms when it detects the player has moved. If you set an exit to go to the same room, the player does not move and the descriptions and scripts do not kick in.
I would set up a script on the exit to fake going into the room. You might want to look into the code view and see what the script names are for the scripts you are using, but say you have a script that fires the first time the player enters the room (which is called firstenter), it might look like this:
You may need to change the order and play around with it.
I would set up a script on the exit to fake going into the room. You might want to look into the code view and see what the script names are for the scripts you are using, but say you have a script that fires the first time the player enters the room (which is called firstenter), it might look like this:
Run object [name] [myroom] script attribute [name] |firstenter|
Using parameter dictionary | |
Print [expression] |myroom.description |
You may need to change the order and play around with it.
Thierry
08 Dec 2012, 22:38OK, thank you very much The Pixie ! I think I found a good solution a few minutes ago : as my room description is made of scripts, I just copy/paste them in my exit submenu as "script to run", with a "clear the screen" script added before.
So now when I click on the exit link, the room does look as if it was the first time I visit it
So now when I click on the exit link, the room does look as if it was the first time I visit it
