Mmoitems Count Objective
Identify and count specific MMOItems from a fact
Поля
| Поле | Тип | По умолчанию | Описание | ||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
quest | Ref<QuestEntry> | — | — | ||||||||||||||||||||||||||||||||||||||||||||
fact | Ref<MMOItemsCountFact> | — | The MMOItems Count Fact to pick items from.
|
| Поле | Тип | По умолчанию | Описание | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
comment | String | — | — | ||||||||
group | Ref<GroupEntry> | — | — | ||||||||
items | List<MMOItemIdentifier> | empty | List of MMOItems to count
|
| Поле | Тип | По умолчанию | Описание |
|---|---|---|---|
type | Var<MMOItemType> | — | MMOItems type (e.g., SWORD, ARMOR) |
itemMMOItemIdentifierMMOItemIdentifier (1)
| Поле | Тип | По умолчанию | Описание |
|---|---|---|---|
type | Var<MMOItemType> | — | MMOItems type (e.g., SWORD, ARMOR) |
checkInventoryVar<Boolean>truecheckHandVar<Boolean>falseselectionModeMMOItemSelectionModeALLALLINDEXESIDSselectedIndexesList<Int>emptyselectedItemIdsList<String>emptyamountVar<Int>1displayVar<String>onCompleteRef<TriggerableEntry>onCompleteModifiersList<Modifier>emptyОбщие поля TypeWriter (criteria, children, priorityOverride)
| Поле | Тип | По умолчанию | Описание |
|---|---|---|---|
criteria | List<Criteria> | empty | — |
children | List<Ref<AudienceEntry>> | empty | — |
priorityOverride | Optional<Int> | — | — |
How to use it
This objective completes when the player holds at least amount items of the ones selected from the linked MMOItems Count Fact. It has no progress fact: the count is read live from the inventory, using the fact's checkInventory and checkHand settings.
selectionMode decides which items of the fact count:
ALL— every item listed in the fact.INDEXES— the items at the positions inselectedIndexes(starting at0).IDS— the items whose MMOItems id is inselectedItemIds.
On completion the onCompleteModifiers are applied, then onComplete is triggered. It is checked again whenever the player picks up, drops, moves or swaps items, and on join.
The line shown in the quest tracker is built from your display text and two snippets, mmoitems.countObjective.display (in progress) and mmoitems.countObjective.completed (done), in plugins/Typewriter/snippets.yml. They accept <display>, <current> and <required>. See Objective display format.