跳到主要内容

Mmoitems Count Fact

Count MMOItems in player's inventory or hand

字段

字段类型默认值描述
groupRef<GroupEntry>——
itemsList<MMOItemIdentifier>emptyList of MMOItems to count
MMOItemIdentifier(1)
字段类型默认值描述
typeVar<MMOItemType>—MMOItems type (e.g., SWORD, ARMOR)
itemMMOItemIdentifier—The MMOItem to count (used if items list is empty)
MMOItemIdentifier(1)
字段类型默认值描述
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
TypeWriter 通用字段(comment)
字段类型默认值描述
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.