Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Mr Jake on Fri 06/06/2003 20:31:46

Title: Is there a check if char is in room command?
Post by: Mr Jake on Fri 06/06/2003 20:31:46
I need this command to make a reapeated script work.. I can probally script around if it isnt there...
Title: Re:Is there a check if char is in room command?
Post by: Scummbuddy on Fri 06/06/2003 20:35:05
You could create a global int to remember what room a certain char is in.  I checked the manual, and I could not find anything, nor rememeber anything that could help besides the global ints.
Title: Re:Is there a check if char is in room command?
Post by: Mr Jake on Fri 06/06/2003 20:36:23
I was about to say I ended up scripting around using a global int :)
Title: Re:Is there a check if char is in room command?
Post by: Spyros on Fri 06/06/2003 22:40:32
if you want to check if char NAME is in room 10:
if (character[NAME].room==10) {
code here...
}