Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: anime2019master on Tue 25/08/2009 00:19:56

Title: how do I remove a used inventory item?
Post by: anime2019master on Tue 25/08/2009 00:19:56
Is it possible to use an inventory item on something, then have it removed from the invetory?
For example, I have an egg in my invetory, but when I have it to hatch, it wouldn't do for the creature from the egg to be there but the egg still in my inventory. Or if I use a health potion, how can I remove it from the inventory so it can't be used over and over? I have looked all over the manual, and tried a bunch of searches on this site, but I can't seem to find anything thah helps
Title: Re: how do I remove a used inventory item?
Post by: GarageGothic on Tue 25/08/2009 00:26:03
Use the Character.LoseInventory(InventoryItem *item) function