Skip to main content

Skill collect, accept and triggers

Use collect to select a node's population and accept to filter it. A seed is the character handed to the node; a trigger subject is the character carried by an event. See the skill file glossary for the cast and node terms used here.

This node fragment searches around its seed for up to eight enemies and collects each victim at most once per cast:

collect:
source: inherit
origin: seed
search: { radius: 2000, take: 8 }
accept:
of: ENEMY
ledger: { max_per_victim: 1 }

Collect a population​

A scalar is shorthand for the source alone, for example collect: caster. A search is optional; without one, the node processes its seed subject to acceptance. The search origin controls geometry, not eligibility. A formula, or poly, in scalePoly can use hit_dist, the distance from the origin.

KeyValuesBehavior
collect.sourceinherit (default), caster, position, trigger_subjectSelects the source. caster substitutes the caster and does not search; trigger_subject selects the event's other character.
collect.originseed (default), caster, computation_seedSearch center: the node seed, caster, or seed of the current computation.
collect.fromsectree (default), mapSearch the local spatial tree, or all characters on the map. map ignores radius.
collect.scalePolyFormula using hit_distScales non-seed amounts for DAMAGE, HEAL, AFFECT, and PULL. The seed has scale 1.0.
collect.search.radiusIntegerSearch radius in world units.
collect.search.takeIntegerMaximum victims; 0 is unbounded. A processed seed counts toward the limit.
collect.search.include_casterBooleanInclude the caster in the search; otherwise the search excludes the caster.
collect.search.order.withindistance (default), randomOrder within each tier.
collect.search.order.tiersList of SELF, PC, BOSS, METEOR, STONE, MONSTER, DOORSearch preference in list order. Unlisted kinds sort after listed tiers.

Filter and limit victims​

KeyValuesBehavior
accept.ofANY (default), ENEMY, ALLY, PARTY, TEAM, SELFRelation to the caster. ENEMY and ALLY use the owner's decision; SELF admits only the caster. TEAM behaves like ANY.
accept.kindANY (default), PLAYER, NON_PLAYERFilter player characters or all non-player characters.
accept.seedBoolean, default trueSet false to skip the seed and process only search results.
accept.seed_may_be_casterBoolean, default trueSet false to skip the seed when it is the caster.
accept.ledger.max_per_victimInteger, default 0Maximum collections of one victim by this node in a cast; 0 imposes no limit.
accept.ledger.cooldown_per_victimSeconds, default 0Minimum time before this node can collect the same victim again.

PARTY admits the main target and characters sharing a party with both the caster and main target, subject to map restrictions. A strict NPC is collectable only if the skill has NPC_BUFF and the NPC's AI accepts buffs.

targets: accepts the same collect and accept clauses for the second population of AUTO_SHOOT and CONCATENATED_ATTACK. The mechanic supplies its origin.

The collection ledger belongs to a node, identified by id or its position. It is separate from the cast's entry-point ledger: resolve.bound limits client claims, while accept.ledger limits collections by that node. The entry-point ledger is recorded but its bound is not enforced for server-resolved casts. Formula references use.victims and node.<id>.victims read the respective ledgers.

Register triggers​

A trigger runs a skill when an event occurs on its holder. This fragment turns on a passive skill when its mounted holder has at most half HP, and turns it off on dismount:

type: PASSIVE
triggersOn:
- event: RIDE
conditions:
- { type: HP_BELOW, arg: 50 }
triggersOff:
- event: UNRIDE

Each entry has an event and an optional conditions list. An entry without an event is logged and skipped.

EventWhen it firesCarried subject
RIDE, UNRIDEHolder mounts or dismountsNone
HP_CHANGEDHolder's HP changesNew HP, not a character
DEAL_BUFF, DEAL_DEBUFF, DEAL_HEALHolder gives a buff, debuff, or healReceiver
RECEIVE_BUFF, RECEIVE_DEBUFF, RECEIVE_HEALHolder receives oneGiver

Use collect: { source: trigger_subject } to select the carried character. The skill flag TARGET_TRIGGER_SUBJECT instead seeds the cast on that character; the cast is skipped if the subject is absent, dead, observing, or on another map.

Set trigger conditions​

All conditions in a list must pass. For a condition with multiple arguments, match selects ANY (default) or ALL within that condition.

typeargPasses when the holder has
HP_BELOWPercentHP above 0 and at most the given percentage of maximum HP.
HP_ABOVEPercentHP above the given percentage of maximum HP.
SP_BELOWPercentSP at most the given percentage of maximum SP.
SP_ABOVEPercentSP above the given percentage of maximum SP.
HAS_AFFECTAffect type or list of typesThe specified affect, or the types selected by match. An affect is a state applied to a character.
IS_MOUNTEDNoneA mount.
LEVEL_ABOVELevelA level at least equal to arg.
LEVEL_BELOWLevelA level below arg.

triggersOn is retained only for type: PASSIVE. The holder must have a level in the skill and the skill must be off cooldown; a charge arrival can pass the cooldown check. triggersOff is registered for every skill type and requires the skill to have been used.

A triggered cast pays no cost, runs per_use and per_compute once, and does not run post_preflight. Triggers can chain up to depth 8. Without a cooldown, each matching event can trigger another cast.

Event names and condition types are not validated at load. An event that is never fired cannot trigger the skill. An unknown condition logs Unknown trigger condition type: <type> when evaluated and fails.