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.