GetSlotType
Prototype: GemRB.GetSlotType (idx[, PartyID])
Description: Returns dictionary of an itemslot type (slottype.2da). Alternatively if idx is -1, returns the ‘Count’ of inventory items.
Parameters:
- idx - a row number of slottype.2da
- PartyID - optional actor ID for a richer dictionary
Return value: dictionary
- ‘Type’ - bitfield, The inventory slot’s type.
- ‘ID’ - the gui button’s controlID which belongs to this slot.
- ‘Tip’ - the tooltip resref for this slot.
- ‘ResRef’ - the background .bam of the slot.
- ‘Flags’ - the slot flags.
- ‘Effects’- the slot effects.
See also: Button_SetItemIcon
Back to function index, GUIScript introduction.