Aller au contenu principal

Mmoitems Count Fact

Count MMOItems in player's inventory or hand

Champs

ChampTypePar défautDescription
groupRef<GroupEntry>——
itemsList<MMOItemIdentifier>emptyList of MMOItems to count
MMOItemIdentifier (1)
ChampTypePar défautDescription
typeVar<MMOItemType>—MMOItems type (e.g., SWORD, ARMOR)
itemMMOItemIdentifier—The MMOItem to count (used if items list is empty)
MMOItemIdentifier (1)
ChampTypePar défautDescription
typeVar<MMOItemType>—MMOItems type (e.g., SWORD, ARMOR)
checkInventoryVar<Boolean>trueCheck items in player's inventory
checkHandVar<Boolean>falseCheck item in player's main hand
Champs TypeWriter communs (comment)
ChampTypePar défautDescription
commentString——

How to use it​

The fact returns the total number of matching items (the sum of stack sizes). Fill either items (several items) or item (one item). An empty type and id counts every MMOItems item.

checkInventory counts the inventory, armor, off hand and cursor. checkHand adds the main hand: because the main hand is also part of the inventory, enabling both counts the held stack twice. If both are off, the fact always returns 0.

The fact can also feed the Give and Remove actions, and the Item Count Objective.