Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: on Sun 11/05/2003 13:26:44

Title: Help needed for a very tirinn problem that i cant solve
Post by: on Sun 11/05/2003 13:26:44
Hey guyz.......
             Was wondering if anyone can help me do a little job for me.Ok heres what i want to do.I have four different rooms with four different pictures.The player can pick the pictures from all the room and then can place it in any of the room.But the main door  will only open if the player has put each picture in the correct room.So can anyone help me with this problem.
thankxxxxxxxx
Title: Re:Help needed for a very tirinn problem that i cant solve
Post by: Spyros on Sun 11/05/2003 14:00:21
Just use a global int.
When the player puts the right picture in the right room increase it by one. If the player removes the right picture from the right room dicrease it by one. When the global int is 4 you can open the door
Title: Re:Help needed for a very tirinn problem that i cant solve
Post by: Ishmael on Mon 12/05/2003 19:40:18
In some cases a more sense-making way would maybe be using four difrent GlobalInts... Dunno....

But using the Use Inv on hotspot interction command and if (player.inv_activated==x) to check if it was the right picture....