Prototype: GemRB.CanUseItemType (slottype, itemname[, actor, equipped])

Description: Checks the itemtype vs. slottype, and also checks the usability flags vs. actor’s stats (alignment, class, race, kit etc.)


  • slottype - the slot to check (See
  • itemname - the resource reference of the item
  • actor - the actor’s PartyID (if 0, skips actor checks)
  • equipped - whether the item is equipped (if so, don’t consider disabled items to be unusable)

Return value: boolean

See also: DropDraggedItem, UseItem

Back to function index, GUIScript introduction.