跳到主要内容

Mmoitem Variable

MMOItem Identifier

字段

字段类型默认值描述
itemsList<MMOItemIdentifier>emptyList of MMOItems (type/id) that this variable can return.
MMOItemIdentifier(1)
字段类型默认值描述
typeVar<MMOItemType>—MMOItems type (e.g., SWORD, ARMOR)

How to use it​

Use this variable in any field that expects an item, an MMOItems identifier or a list of items. List the possible items in items. The variable builds the real MMOItems item from its type and id, and prefers an item the player holds in the main hand or off hand that matches. If a type or id is empty, or unknown to MMOItems, a warning is written to the console and an empty item is returned.