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>emptyTypeWriter 通用字段(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.