Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Lazarus on Wed 20/07/2005 19:14:26

Title: Confusion with re-entering room? (SOLVED)
Post by: Lazarus on Wed 20/07/2005 19:14:26
I have a problem as follows:

I have a room which has 2 exits to other rooms.Ã, 

In this main room I have setup for exit number 1 (a hotspot) to become enabled when an inventory item is used and a dialog is run.Ã,  This is fine and I can leave the main room through exit 1 and come back in using this hotspot.Ã,  The exit remains enabled.

The problem I have is if I use the inventory item and the dialog is run to enable the hotspot (above) and don't go through the hotspot but instead go to exit no. 2 (which is also a hotspot into another room) and then come back to my main room then exit no. 1 (hotspot) is then disabled!

Sorry this is so confusing but I have no clue as to how to do this!

I thought it might be a conditional thing but I don't see how to do it ....
Title: Re: Confusion with re-entering room?
Post by: strazer on Thu 21/07/2005 01:18:39
Quote from: Lazarus on Wed 20/07/2005 19:14:26In this main room I have setup for exit number 1 (a hotspot) to become enabled when an inventory item is used and a dialog is run.

Since hotspots are enabled by default, you had to disable it first, right?
If you do this in the "Player enters screen" interaction, of course it will be disabled again when you re-enter the room.
Try putting this code/interaction editor command into the "Player enters screen for the first time" interaction of the room.
Title: Re: Confusion with re-entering room?
Post by: Lazarus on Thu 21/07/2005 07:12:33
Thanks strazer!

Worked a treat, still learning the basics I think ..

thanks again  :)
Title: Re: Confusion with re-entering room? (SOLVED)
Post by: strazer on Thu 21/07/2005 07:59:17
Cool. Glad I could help. :)