Give Mmoitem Action
Give MMOItem
Поля
| Поле | Тип | По умолчанию | Описание | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
items | List<MMOItemSelection> | empty | List of MMOItems to give
|
| Поле | Тип | По умолчанию | Описание | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
item | Var<MMOItemIdentifier> | — | The MMOItem to select (type and id)
|
| Поле | Тип | По умолчанию | Описание |
|---|---|---|---|
type | Var<MMOItemType> | — | MMOItems type (e.g., SWORD, ARMOR) |
amountInt1itemVar<MMOItemIdentifier>MMOItemIdentifier (1)
| Поле | Тип | По умолчанию | Описание |
|---|---|---|---|
type | Var<MMOItemType> | — | MMOItems type (e.g., SWORD, ARMOR) |
amountInt1factRef<ReadableFactEntry>groupRef<GroupEntry>Общие поля TypeWriter (criteria, modifiers, triggers)
| Поле | Тип | По умолчанию | Описание |
|---|---|---|---|
criteria | List<Criteria> | empty | — |
modifiers | List<Modifier> | empty | — |
triggers | List<Ref<TriggerableEntry>> | empty | — |
How to use it
Pick what to give in one of three ways:
- One item — leave
itemsempty and fillitem(typeandid), plusamount. - Several items — fill
items. Each line has its ownitemandamount;itemandamountat the top are then ignored. - From a fact — link
factto an MMOItems Count Fact. The action gives the items listed in that fact, using the action'samount. Ifitemhas 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.