Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: xenogia on Wed 10/02/2010 09:04:16

Title: [SOLVED] Active Inventory Issues
Post by: xenogia on Wed 10/02/2010 09:04:16
I am wanting to use an inventory on another but it doesn't seem to be working.  This is what I have.


function iVodka_UseInv()
{
 if (cEgo.ActiveInventory == iGlass) {
   cEgo.Walk (218, 287, eBlock, eWalkableAreas);
   cEgo.FaceLocation (200, 287, eBlock);
   Wait (40);
   cEgo.LoseInventory (iVodka);
   cEgo.LoseInventory (iGlass);
   SetNextScreenTransition (eTransitionInstant);
   cEgo.ChangeRoom (41, 458, 281);
 }
}


Is there any reason why this would not be working.. it just doesn't register the click at all.

EDIT: Don't worry guys, I figured out the problem.