Hi all.
Am I missing something really obvious?
When I give a certain item to another character I want the item to disappear from my inventory.
Code: ags
Why then, Do I still have the iNewPretzels in my inventory after this exchange (and still the ActiveInventory)?
Is there any known reason why this could be the case?
Am I missing something really obvious?
When I give a certain item to another character I want the item to disappear from my inventory.
function cBarman_UseInv()
{
if (cEgo.ActiveInventory == iNewPretzels)
{
cEgo.Say("Dialogue");
cBarman.Say("Dialogue");
cEgo.LoseInventory(iNewPretzels);
}
}
Why then, Do I still have the iNewPretzels in my inventory after this exchange (and still the ActiveInventory)?
Is there any known reason why this could be the case?