readonly InventoryItem* InvWindow.ItemAtIndex[];
Gets the inventory item that is currently displayed at the specified index in this
inventory window. The number of items in the window can be retrieved with the
ItemCount property. Indexes range from 0 to ItemCount - 1.
If an invalid index is supplied, null is returned.
Example:
String firstOne = invMain.ItemAtIndex[0].Name;
Display("First item is %s.", firstOne);
will display the name of the first item displayed in the invMain inventory window.
See Also: InvWindow.ItemCount
|