delay
Pauses the rest of the current skill, then carries on. This is the backbone of telegraphed attacks.delay and wait are the same mechanic. A bare number is ticks: delay 20. A delay inside a called skill pauses that skill only, not whatever called it.
To delay just one line without pausing the ones after it, give that line the delay option instead: damage{a=5;delay=10}.
wait{until=…} waits for a condition instead of a time:
skill
Runs another skill. Its lines inherit this line’s targets unless they set their own@.
if
Runs one body when a condition holds, optionally another when it doesn’t.- skill{s=enrage} +onHurt ?health{h=<50%}. See Line Options.
loop
Runs a body a fixed number of times.while
Checks a condition on an interval and runs the body while it holds. It checks first, then runs.Bodies: named effects or inline blocks
A body (then, else, effect) is either a skill id, resolved on the mob first exactly like skill, or an inline block {stmt;stmt;…}:
- Statements are full lines, a mechanic plus an optional
@targeter, separated by;. - Blocks nest: a statement can be another
if,looporwhilewith its own block. - A block may span several lines, and continuation lines may start with
-. They are joined before YAML reads the file.
- No triggers inside a block. The trigger belongs to the outer line.
- No comments inside a multi-line block.
- A malformed or empty block fails the whole line at load time, and
/le debugsays where. - Prefer a named skill when the body should be reusable. Blocks are for short one-off branches.
skill takes MythicMobs’ inline list instead: skill{s=[ - damage{a=4} - ignite ]}.
switch
Picks a skill by value:randomskill and randommessage
Behaviour notes
- A branch or loop body runs with the caller’s context: the same targets (unless its lines set their own) and the same
skill.variables, so loop counters made withvar{…}work across iterations. - A
delayinside a looped body pauses that iteration only, not the loop’s schedule. - Spaced
loopandwhilestop early if the mob dies or despawns.while’smaxis a hard cap against infinite loops. cancelskillstops the rest of the current skill.
