Why wont this script work?

Started by lukearts, Fri 05/11/2010 16:55:01

Previous topic - Next topic

lukearts

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.

Code: ags
function DoorClosed_UseInv()
{
	if (cFallow.ActiveInventory == iFallowKey1)	{
		fallowdoorlock = 1;
		//export int fallowdoorlock;
		cFallow.Say("unlocked");
	}	
}

Dualnames

The guess, i'm having is that fallowdoorlock doesn't exist as a variable?

What do you mean by saying it doesn't work?
Worked on Strangeland, Primordia, Hob's Barrow, The Cat Lady, Mage's Initiation, Until I Have You, Downfall, Hunie Pop, and every game in the Wadjet Eye Games catalogue (porting)

lukearts

when u use the key, it doesnt do anything, not even make him say it

Matti

#3
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.

lukearts

knew it would be something simple like that... anyway thanks!!!

SMF spam blocked by CleanTalk