Skip to main content

Give Mmoitem Action

Give MMOItem

Fields

FieldTypeDefaultDescription
itemsList<MMOItemSelection>emptyList of MMOItems to give
MMOItemSelection (2)
FieldTypeDefaultDescription
itemVar<MMOItemIdentifier>—The MMOItem to select (type and id)
MMOItemIdentifier (1)
FieldTypeDefaultDescription
typeVar<MMOItemType>—MMOItems type (e.g., SWORD, ARMOR)
amountInt1Amount of items
itemVar<MMOItemIdentifier>—The MMOItem to give (used if items list is empty)
MMOItemIdentifier (1)
FieldTypeDefaultDescription
typeVar<MMOItemType>—MMOItems type (e.g., SWORD, ARMOR)
amountInt1Amount of items to give if using single item
factRef<ReadableFactEntry>—Select a fact that provides items (e.g., MMOItems Count Fact, MMOInventory Check Item Fact)
groupRef<GroupEntry>—Optional group to give items to all members. If empty, only the triggering player receives items.
Common TypeWriter fields (criteria, modifiers, triggers)
FieldTypeDefaultDescription
criteriaList<Criteria>empty—
modifiersList<Modifier>empty—
triggersList<Ref<TriggerableEntry>>empty—

How to use it​

Pick what to give in one of three ways:

  • One item — leave items empty and fill item (type and id), plus amount.
  • Several items — fill items. Each line has its own item and amount; item and amount at the top are then ignored.
  • From a fact — link fact to an MMOItems Count Fact. The action gives the items listed in that fact, using the action's amount. If item has a type filled, only the matching items of the fact are given.

Set group to give the items to every member of the triggering player's group. The items are given with the console command mmoitems give <type> <id> <player> <amount>, so an unknown type is skipped.