[SOLVED] Room description appearing twice

My game has a 'room' which is a jungle. One of the exits is to 'deeper jungle'.

However you can only go to 'deeper jungle' if you have an item (an axe).

I set up a script in 'deeper jungle': before entering the room, if the player doesn't have the item 'axe', move the object 'player' to the object 'jungle' (and give a message saying that you can't get any further).

This works, in that the player ends up back in 'jungle'.

However, the game displays the room description for 'jungle' twice.

What's happening?


Try putting the script on the exit from the Jungle instead.

The reason for this is that Quest runs a script when the player changes the room, and as that happens twice (once to Deeper Jungle,once to Jungle), you get two description. However, the descriptions are given for the current room, and by the time they both fire the player is at the Jungle, so you end up with two descriptions of the Jungle.


Thanks! That seems to work.


I find this very interesting, it explains why i've been having similar troubles, though not directly fixing (Had a sort of splitter check before people entered the room, but could have gotten there through multiple paths, including some that are fairly random, will have to look into them now that i know "Why" things might be behaving oddly


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

Support

Forums