Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Jon on Sun 10/12/2006 18:40:01

Title: 'Player leaves room'
Post by: Jon on Sun 10/12/2006 18:40:01
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?
Title: Re: 'Player leaves room'
Post by: Ashen on Sun 10/12/2006 18:57:55
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).
Title: Re: 'Player leaves room'
Post by: Jon on Sun 10/12/2006 19:22:33
OK, thanks Ashen.
thanks as well for the quick reply  ;D