Quote from: magintz on Fri 29/02/2008 12:11:54
Check the manual under 'if'.
Basically you need a condition, where if you currently have the inventory item, or if you have already interacted with the item it will not display the message or give you a duplicate item.
This is one way you could do it:Code: ags // to be declared at the top of the page int count = 0; // to be put inside your interact with area if (count==0) { Display("You take the item"); player.AddInventory(iItem); count = 1; } else { Display("You find nothing else in the drawer"); }
Thanks man, I understand it now.