(Formerly known as GetInvProperty, which is now obsolete)
InventoryItem.GetProperty(string property)
Returns the custom property setting PROPERTY for the inventory item.
This command works with Number properties (it returns the number), and with Boolean
properties (returns 1 if the box was checked, 0 if not).
Use the equivalent GetTextProperty function to get a text property.
Example:
if (inventory[1].GetProperty("Value") > 200)
Display("Inventory item 1's value is over 200!");
will print the message if inventory item 1 has its "Value" property set to more than 200.
See Also: InventoryItem.GetTextProperty
|