Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Revan on Tue 08/11/2005 14:28:51

Title: Help with Inventory Items Please
Post by: Revan on Tue 08/11/2005 14:28:51
I can create Inventory Items that can be used, however they do not seem to work correctly... for example say they have to use the knife on the cake, as long as they have the knife in their inventory it doesn't matter what they use on the cake it will still work. How can I make it so that they have to use the Knife on the cake for it to work?
Title: Re: Help with Inventory Items Please
Post by: Ashen on Tue 08/11/2005 14:45:42
What have you done? Sounds like you need to add a conditon to check if the knife was used:

//Use inventory on item (cake)
if (player.ActiveInventory == iKnife) {
  //Do stuff
}


Or Conditional - if inventory item was used (item) if you're using thr interaction editor.

If it's not that, please post what you've got so far.