(Formerly known as GetInvPropertyText, which is now obsolete)
(Formerly known as InventoryItem.GetPropertyText, which is now obsolete)
String InventoryItem.GetTextProperty(string property)
Returns the custom property setting PROPERTY for the inventory item.
This command works with Text properties only. The property's text will be
returned from this function.
Use the equivalent GetProperty function to get a non-text property.
Example:
String description = inventory[2].GetTextProperty("Description");
Display("Inv item 2's description: %s", description);
will retrieve inv item 2's "description" property and display it.
See Also: InventoryItem.GetProperty
|