メインコンテンツまでスキップ

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.