(Formerly known as GetInvName, which is now obsolete)
(Formerly known as SetInvItemName, which is now obsolete)
(Formerly known as InventoryItem.GetName, which is now obsolete)
(Formerly known as InventoryItem.SetName, which is now obsolete)
String InventoryItem.Name;
Gets/sets the name of the inventory item. This is the name which is
initially set under the Game tab, Inventory mode of the AGS Editor.
You can change this property if for example you want to change a 'bowl'
to a 'bowl with water in' but want to use the same inventory item for it.
Note that the maximum length for the name of an inventory item is 24 characters - if the
name you set is longer than this, it will be truncated.
Example:
Display("Active inventory: %s", player.ActiveInventory.Name);
will display the name of the player's current inventory item.
See Also: InventoryItem.GetAtScreenXY,
InventoryItem.Graphic,
Game.GetLocationName
|