'Player leaves room'

Started by Jon, Sun 10/12/2006 18:40:01

Previous topic - Next topic

Jon

In my game my character need to get certain items e.g. 4,5,6,7,8. and a couple of messages appear (linked to the game), and the player character appears in a room. I have tried this by:
selecting the interaction editor, selecting the 'when player leaves room', and running the command, 'conditional-if player has inventory item...' the desired amount of times. Then, after this command, applying the command 'Display a message', the required amount of times, and finally using the command to move character to room - at certain co-ordinates. But after using these commands my character appears in the next room, as if ignoring all of my actions.
Can anyone solve my problem?

Ashen

#1
The problem there, I think, is that the 'Player leaves room' interaction runs when the player is already leaving the room. So, it can't stop them from going - you need to put the conditions in which ever interaction has the actual change room command (e.g. the 'Use Door' object/hotspot interaction).
I know what you're thinking ... Don't think that.

Jon

OK, thanks Ashen.
thanks as well for the quick reply  ;D

SMF spam blocked by CleanTalk