Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: lukearts on Fri 05/11/2010 16:55:01

Title: Why wont this script work?
Post by: lukearts on Fri 05/11/2010 16:55:01
In trying to make my first game harder, something of coarse stops working. Managed to work out its in this bit of code, but dont know where.

function DoorClosed_UseInv()
{
if (cFallow.ActiveInventory == iFallowKey1) {
fallowdoorlock = 1;
//export int fallowdoorlock;
cFallow.Say("unlocked");
}
}
Title: Re: Why wont this script work?
Post by: Dualnames on Fri 05/11/2010 17:19:29
The guess, i'm having is that fallowdoorlock doesn't exist as a variable?

What do you mean by saying it doesn't work?
Title: Re: Why wont this script work?
Post by: lukearts on Fri 05/11/2010 17:23:15
when u use the key, it doesnt do anything, not even make him say it
Title: Re: Why wont this script work?
Post by: Matti on Fri 05/11/2010 17:43:08
Did you just write down the DoorClosed_UseInv() event or did you link it from the events pane via the lightning bolt icon? Make sure you've done the latter.
Title: Re: Why wont this script work?
Post by: lukearts on Sun 07/11/2010 09:10:09
knew it would be something simple like that... anyway thanks!!!