Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Fri 05/09/2003 01:16:56

Title: 2 Object Variables in the same room
Post by: on Fri 05/09/2003 01:16:56
I set a variable for a wardrobe, (int counter etc.....).  Then I set a variable for a book, the counter seems to be linked together.

EXAMPLE:  If I look at the wardrobe first and the book second, I get the first wardrobe message and the second book message.

I need to know how,(or if), I can set 2 separate counters to independantly interact with 2 distinct objects in the same room.
Title: Re:2 Object Variables in the same room
Post by: Gilbert on Fri 05/09/2003 04:21:10
Yes, just use different names for the variables...

eg:

int wardcount, bookcount;
Title: Re:2 Object Variables in the same room
Post by: on Sat 06/09/2003 01:19:16
Thanks, that solved everything, ("I don't know how I missed it")

Sorry I didn't reply, my wife was sick.