Skip to the page
DoctorParser

Timeline cookbook

How to do the things raiders actually want, one recipe at a time: start from what you want, find the recipe, change the names. Every recipe here is checked by DoctorParser's tests, so they all load. Guides and timelines is the full reference: every word, every rule.

Using a recipe

A recipe is one or more ## sections of a guide. To add one:

  1. On the Triggers tab, click a section of the guide it should go in (for a guide that's a list of triggers, open the guide and click Edit as text).
  2. Paste the recipe at the end of the text box. Each ## in it becomes a section of its own.
  3. Change the names and words, and click Save. The check under the box says if a line is wrong, and where.

Recipes that start with --- lines are whole guides, for a new file: save them as a .md file in your timelines folder (in any folder inside it) and click Read them again on the Triggers tab.

Before you start: five words

  • section: a ## heading and the timeline block under it. Its start line says when it runs; a section with only ### triggers needs none and listens wherever its guide applies.
  • start: what makes a section run: a boss being engaged, any fight, a line in the log, or always.
  • match: what to look for in the log: a hit, a death, a cure, an emote, or any line with a regex (/.../).
  • trigger: tell you something when a match fits: say it (tts), show it on the info bar (bar), or play a sound (sound). Each is a ### under its section.
  • show: put something on screen and keep it there: one value, or with per, a list with one row per player or mob.

Inside a timeline block, lines are one statement each, # starts a comment, and lines that belong to a show, cycle or map are indented under it. Extra spaces don't matter, so line things up however you like.

Simple triggers

1. Say something when a line appears

The ACT trigger everyone has: a line shows up, say something.

## My alerts

### Stunned
```timeline
trigger line /You have been stunned/  tts "Stunned"
```

### Spread out
```timeline
trigger emote /The ground begins to shake/  tts "Spread out"  bar "SPREAD"
```

### Tells
```timeline
trigger line /tells you, "(?<msg>.+)"/  bar "Tell: $msg"  sound ping
```
  • line /.../ looks at the log line as it is. emote /.../ looks at it with the game's link codes taken out, which is easier for boss emotes and shouts: write what you see on screen.
  • (?<msg>.+) catches part of the line and names it msg. Then $msg puts it in what's said or shown.
  • After the match, any of tts "...", bar "..." (with a time after the text, bar "SPREAD" 2s, to show it that long instead of the usual 5 seconds) and sound <name> (chime, siren, ping, alarm).
  • This is what the trigger form on the Triggers tab writes.

2. Say something when someone dies

## Deaths

### Raid deaths
```timeline
trigger death raid  tts "$target has died"
```

### My death
```timeline
trigger death me  sound alarm
```

### The tank
```timeline
trigger death "Tankers"  tts "The tank is down"
```
  • death takes who: raid, group, me, boss, anyone, or a "Name".
  • Every match catches a few things for you. For a death, $target is who died and $caster is who killed them. For a hit, $caster hit $target with $ability.
  • raid knows your raid from /whoraid, raid chat, and your group. Do a /whoraid once after forming up so it knows everyone.

3. Tell only the player it's about

The boss picks someone. Everyone's DoctorParser sees it, but only that player should hear "Run!".

## Doom

### Run away
```timeline
trigger emote /(?<YOU>\w+) is marked for doom!/  tts "Run away"
```

### Who's doomed
```timeline
trigger emote /(?<player>\w+) is marked for doom!/  bar "$player is doomed"
```
  • A group named YOU, in capitals, means "my name goes here": the line matches only when the name in that spot is yours, so everyone else's DoctorParser stays quiet. It's ACT's (?<YOU>…), and works the same.
  • The second catches the name as $player instead, so it shows for everybody.

4. Only in one zone, only on one boss

A whole guide for a zone, with one boss:

---
zone: Halls of Fate
---
# Halls of Fate

## Grimgut the Tasteless
```timeline
start engage "Grimgut the Tasteless"
stop  death boss
stop  idle 30
```

### Frontal
```timeline
trigger emote /Grimgut rears back/  tts "Frontal, move"
```
  • zone: at the top makes every section of the guide run only in that zone. It matches part of the zone's name, so "Halls of Fate" covers every version. For one version, put the game's tag on the heading: ## Grimgut the Tasteless [Heroic], [Raid], or [Untold 40] for Untold stage 40 and up. A tag on a ### is for that trigger only.
  • start engage "Name" starts when that mob hits or is hit, and makes it the section's boss, so you can write boss instead of its name.
  • stop death boss stops it when the boss dies, and stop idle 30 after 30 seconds with no lines from the boss (a wipe or a reset). Give a boss section both. (With no stop at all, it gets stop idle 30 by itself.)
  • While it's stopped, its triggers are quiet. That's what keeps one boss's triggers from firing on another.
  • DoctorParser adds a section like this one by itself for each named mob you fight (with only its start engage line), so usually you only add the triggers.

Timers

5. A timer from a line

The boss shouts, and 30 seconds later the adds come.

## Adds

### Adds called
```timeline
timer   "Adds" 30  warn 5 tts "Adds in five"
trigger emote /Grimgut calls for his children/  timer "Adds"
```
  • A timer line is a countdown, on the meter and the timer strip; a trigger that names it starts it. This is what the trigger form's Timer row writes.
  • warn 5 turns it red 5 seconds before the end, and says the tts after it.
  • Each time the line comes again, the timer starts over. Add keep to the timer to let it run on instead, with the trigger quiet until it runs out.

When there's more than one thing to time from the same line, give the section a clock:

## Adds wave
```timeline
start emote /Grimgut calls for his children/
stop  after 40

0:30  "Adds"
0:35  "Second wave"
alert before "Adds" 5   tts "Adds in five"
alert at     "Second wave"  tts "More adds"
```
  • The start can be any match. Each time the line comes again, the clock starts over.
  • 0:30 "Adds" is an entry: something expected 30 seconds after the start. It shows as a countdown timer before it.
  • alert before "Adds" 5 fires 5 seconds before it, alert at at it, and alert after "Adds" 2 would fire 2 seconds after.
  • stop after 40 ends it 40 seconds after it started, so it doesn't sit there after the adds.

6. A cooldown for each player who uses it

A 16-second timer every time someone in the raid uses Natural Cleanse, one per fury.

## Cleanses
```timeline
start always

show "Natural Cleanse" per $caster
  begin   use "Natural Cleanse" by raid
  timeout 16
  text    "$caster's Cleanse" countdown

alert begin   "Natural Cleanse"  tts "Cleanse up"
alert timeout "Natural Cleanse"  tts "Cleanse down"
```
  • start always runs from the moment DoctorParser starts reading the log. That's right for things that aren't about one fight.
  • show "Natural Cleanse" per $caster is a list on screen with one row per caster, so each druid gets their own row.
  • begin adds a row. One cleanse cures several people (several lines in the same second), but a row that's already there stays as it is, so the extra lines don't restart it.
  • timeout 16 removes the row after 16 seconds, and countdown shows it as a timer counting down to that.
  • alert begin fires when a row is added, alert timeout when one runs out. There's also alert end, for a row removed by an end line (recipe 10).
  • A timer with per $caster does much the same in one line: timer "Cleanse" 16 per $caster use by raid.

7. A boss's whole fight

A boss that does the same things over and over, with adds on a clock of their own. This is a whole boss as it might sit in a zone's guide:

## Yon-Solhoth the Corrupted [Raid]
Powerful Purge is the knockback: joust out before it.
The Channeler is the priority; a Loyalite is summoned after it dies.
Kill the other adds if they aren't being splashed down.

```timeline
start engage "Yon-Solhoth the Corrupted"
stop  death boss
stop  idle 30

# A Loyalite comes at the start of every pull too.
0:26  "First Loyalite"  seen emote /Loyalite of the Consumer is summoned to protect/  ~5s

# Everything on the boss runs on one 66.6-second cycle.
cycle every 66.6
  0:14  "Corruption En Masse"  sync hit  ~4s
  0:25  "Punishment Afar"      sync hit  ?
  0:36  "Curse"                sync chat /^[A-Za-z]+(?:_\w+)? CURSE$/
  1:10  "Powerful Purge"       sync hit

# The adds: a Channeler every 3 minutes from 2:41, then a Loyalite
# about 45 seconds later (give or take 10, so it's only seen).
cycle every 3:00
  2:41  "Channeler"  sync emote /Channeler is summoned to protect/  ~10s
  3:26  "Loyalite"   seen emote /Loyalite of the Consumer is summoned to protect/  ~5s,15s

alert before "Powerful Purge" 4   tts "Joust out"   bar "JOUST OUT"
alert after  "Powerful Purge" 2   tts "Back in"
alert before "Curse" 5            tts "Curse soon"
alert before "Channeler" 5        tts "Channeler incoming"
```

### Channeler Summoned
```timeline
trigger emote /Void-Corrupted Channeler is summoned to protect/  tts "Channeler summoned"
```

### Loyalite Summoned
```timeline
trigger emote /a Loyalite of the Consumer is summoned to protect/  tts "Loyalite summoned"
```
  • The text under the heading is for people: what the raid needs to know.
  • A cycle repeats: the times are the first cycle's, as you'd read them off a fight (Corruption En Masse at 0:14, the curse at 0:36, the Purge at 1:10), and the whole cycle comes again every 66.6 seconds. A boss can have several cycles: here the adds run on their own 3-minute one.
  • The ### triggers under the boss only listen during his fight. They go off on every add, including the first one at the pull.
  • Names in the log come wrapped in links (\aNPC 123 a Loyalite…\/a); DoctorParser takes them out before matching, so write the name as you read it.
  • sync is what keeps it accurate. When the boss's Corruption En Masse actually hits, the whole cycle moves so it's exactly then. Timers drift in a long fight; syncs pull them back.
  • sync hit with no name means the boss's ability of the entry's own name: players don't have it, so the name is enough. An AE hits everyone; only the first hit counts, and the rest are ignored.
  • chat is raid or group chat: here, someone calling their curse.
  • The next entry always shows as a timer, and the ones after it for the 30 seconds before they're due. The alerts fire off the entries as in recipe 5.
  • Don't want to work out the times by hand? In the Story view of a saved fight with the boss, Draft a timeline does it from all your pulls. See Drafting from your fights.

8. Abilities that don't come exactly on time

Most bosses aren't clockwork. Four marks handle that:

## Grubnak the Sloppy
```timeline
start engage "Grubnak the Sloppy"

0:45  "Add"        seen engage "a Grubling"  ~5s,15s
1:00  "Big Hit"    sync hit  ~4s
1:30  "Rare Spell" sync use  ?

alert seen "Add"   tts "Add up"
```
  • ~: how far off the line may be from where the clock expects it. 3 seconds either side unless you say. ~4s is 4 either side; ~5s,15s is up to 5 early or 15 late.
  • seen: recognise the line, but don't move the clock. Use it for things that wander (an add that comes 0 to 10 seconds late), so they don't drag everything else with them. alert seen fires when the line comes.
  • sync: recognise it and set the clock by it. Use it for the things the boss does like clockwork.
  • There's no cycle here, so each entry comes once, at its time after the pull. The marks work the same inside a cycle (recipe 7).
  • ?: it might not happen at all. Without it, a missing line costs nothing anyway (the clock keeps going); ? just says so, and its timer shows with a ?.

9. A phase change

At 50% the boss changes form and starts over.

## Morvath the Shifting
```timeline
start engage "Morvath the Shifting"

0:20  "Claw"     sync hit
0:50  "Roar"     sync hit
reset emote /Morvath the Shifting changes form/ to "Claw"
```
  • reset <match> to "Entry" moves the clock so that entry is now. Here, when the boss changes form, the clock jumps back to "Claw" and everything after it follows.

On screen

10. Who has the debuff

A list of who's hexed, each gone when they're cured, or after 30 seconds. Whoever gets the hex calls it in raid chat.

## Hexes
```timeline
start engage "Vexmora the Hexbinder"

show "Hexed" per $player
  begin   chat /^(?<player>\w+) HEXED$/
  end     cure "Withering Hex" on $player
  timeout 30
  text    "Hexed: $player"

alert begin "Hexed"   tts "You're hexed"   if $player is me
```
  • begin chat /.../ adds a row when someone calls their hex in raid or group chat.
  • end removes a row. on $player means "on that row's player": the cure has to be on the same person. ($player after on or by always means a value caught earlier; it never catches a new one.)
  • The row is made on everyone's screen; if $player is me keeps the speech for the hexed player. ((?<YOU>…) in the begin would make only your own row.)
  • An end can also be a regex that catches the key itself: end line /"(?<player>\w+) has been cured"/ removes that player's row.

11. A debuff with a countdown for each player

The same list, but each row counts down so you can see who's about to run out.

## Burning
```timeline
start engage "Ignarus the Burning"

show "Burning" per $target
  begin   hit "Searing Brand" by boss
  timeout 18
  text    "$target burns" countdown

alert timeout "Burning"  bar "$target stopped burning"
```
  • countdown turns the rows into timers, counting down to their timeout. It needs a timeout.
  • by boss needs a boss: a section that starts with engage "Name".

12. Count something

Kill five Spirits; show how many are down and how many got away.

## Spirits
```timeline
start engage "Sentry Dillius"

show "Spirits"  text "Killed $killed of 5 · escaped $escaped"

when death "Spirit of Truth"            add "Spirits" killed 1
when emote /A Spirit of Truth escapes/  add "Spirits" escaped 1
when death "Spirit of Truth"            tts "All five"   if ${Spirits:killed} >= 5
```
  • A show without per is one thing on screen. It can hold several named fields (killed, escaped), and text decides how they're written.
  • when changes what's on screen: add "Spirits" killed 1 adds one to the killed field. A field that's never been set counts as 0.
  • ${Spirits:killed} reads a field back, here in an if (recipe 17).
  • A when can say something too, like a trigger.

13. The latest of something

Keep the last Thunderclap target on screen, with how hard it hit.

## Last thunderclap
```timeline
start engage "Thunderlord Garrok"

show "Last Clap"  text "Thunderclap: $who for $amount"

when hit "Thunderclap" by boss   set "Last Clap" who $target   set "Last Clap" amount $amount:short
```
  • set "Show" field <value> replaces a field. Several sets can go on one when.
  • $amount:short writes a big number the way EQ2 does (11400000000 is 11.4B).
  • clear "Last Clap" would take it off the screen.

14. This mob, that answer (a map)

The Trio in Steppes of Oblivion: each of three mobs curses players, and where a cursed player has to go depends on which mob did it, and how. A map is a table of answers:

## Emnitiun, Quandion, Dovinita [Raid]

Beckons (Call): go to the one that beckoned. Gazes (Gaze) and scowls (Hatred): go where the map says.

```timeline
start engage "Emnitiun"
stop  idle 30

map "beckons"
  Emnitiun  "Emnitiun"
  Quandion  "Quandion"
  Dovinita  "Dovinita"
map "gazes"
  Emnitiun  "Quandion"
  Quandion  "Dovinita"
  Dovinita  "Quandion"
map "scowls"
  Emnitiun  "Dovinita"
  Quandion  "Emnitiun"
  Dovinita  "Emnitiun"

# Who goes where: a row per curse, until it's removed. One player can
# have two at once.
show "Trio" per "$player $mob"
  begin line /(?<mob>Emnitiun|Quandion|Dovinita)(?::\w+\\\/a)? (?<verb>beckons|gazes|scowls).*? (?<player>\w+)!/
  end   line /"(?<mob>Emnitiun|Quandion|Dovinita)'s (?:Call|Gaze|Hatred)" has been successfully removed from (?<player>\w+)!/
  text  "$player ➔ ${$verb:$mob}"
```

### Safe

```timeline
trigger line /"(?:Emnitiun|Quandion|Dovinita)'s (?:Call|Gaze|Hatred)" has been successfully removed from (?<YOU>\w+)!/ tts "Safe"
```

### Go to

```timeline
trigger line /(?<mob>Emnitiun|Quandion|Dovinita)(?::\w+\\\/a)? (?<verb>beckons|gazes|scowls).*? (?<YOU>\w+)!/ tts "Go to ${$verb:$mob}"
```
  • ${gazes:Emnitiun} looks up "Emnitiun" in the map called "gazes": Quandion.
  • Captures are filled in first, so ${$verb:$mob} uses the map named by the verb and the key named by the mob.
  • per "$player $mob" gives a row per player and mob, so a player with two curses has two rows: the show is where you see both. The spoken "Go to" is for each curse as it comes.
  • line matches the raw log line, where names come wrapped in links; (?::\w+\\\/a)? lets the pattern match with or without one. (emote takes the links out first.)
  • (?<YOU>\w+) means your own name, so these two fire only for the cursed player. The log sometimes writes YOU in your place; that counts as your name too.

15. Colors

Shows and list rows can be any color.

## Colored
```timeline
start always
color orange                          # everything in this section, unless it says otherwise

show "Phase"  color purple

map "cursecolor"
  Call     "blue"
  Gaze     "yellow"
  Hatred   "red"

show "Curses" per $player
  begin emote /(?<player>\w+) receives (?<curse>Call|Gaze|Hatred)/
  text  "$player: $curse"
  color ${cursecolor:$curse}

when line /Phase two begins/   set "Phase" "Two"
```
  • Any HTML color name works: red, orange, yellow, green, blue, purple, and the rest of the web's list (tomato, gold, hotpink, ...), or "#rrggbb" in quotes.
  • color at the top of a section is the color for all its shows and rows. One on a show is for that one.
  • A color can come from a map, as here: each row is colored by its curse.
  • A trigger's info bar takes a color too, and its text turns light or dark to suit: trigger line /tells you/ bar "Tell" color orchid.
  • Anything that counts down (entries, countdown rows) is the countdown color unless its section has a color, turning red as it runs out.

For your class

16. Something for your class, every fight

A Defiler's cure counter that runs in every fight, but only while you're on a Defiler (personas and alts included). A whole guide:

---
class: Defiler
---
# Defiler

## My cures
```timeline
start fight

show "Cures"
when cure by me   add "Cures" 1
```
  • class: at the top makes every section of the guide run only while you're that class. It takes classes, pairs ("Shaman") and archetypes ("Priest"). DoctorParser works out your class from /whogroup, or from the spells you cast.
  • For one class's calls inside a zone's guide, put the class in brackets on the heading instead: ### Cure the curse [Defiler].
  • start fight runs during every fight and stops 6 seconds after combat ends, so shows start fresh each fight.
  • A show with no text shows its name and value: "Cures: 12".

Then

17. Only when something's true (if)

Any trigger, alert or when can have ifs. All of them have to hold.

## Big hits

### Ouch
```timeline
trigger hit on me  tts "Ouch"  if $amount > 5000000000
```

### Chosen again
```timeline
trigger emote /(?<who>\w+) is chosen/  bar "$who again"  if $who is not "Funplayername"
```
  • hit on me with no ability name is any hit on you; $amount is its size.
  • Tests: is and is not compare text (ignoring case), and >, <, >=, <= compare numbers.
  • me in a test is your name: if $player is me.
  • if ${Hexed:Playername} is not "" is "does the Hexed list have a row for Playername?".

18. Coming from ACT or Triggernometry

In ACT / Triggernometry In a guide
A custom trigger: regex, then say something trigger line /regex/ tts "words" (recipe 1)
"Restrict to zone" / the category's zone a zone's guide (zone: at the top), or a section with zone "part of the zone name"
A spell timer started by a trigger timer "Name" 30 and trigger line /regex/ timer "Name" (recipe 5)
A spell timer started by its ability timer "Name" 30 use (use by me for only yours)
A timer's warning value warn 5 on the timer line, or alert before "Entry" 5
${player}, ${mob} from the regex (?<player>...) in the regex, then $player
A variable you set and read a show's field: set / add, read with ${Show:field} (recipes 12, 13)
A list variable (push, remove) a show ... per: begin adds, end removes (recipe 10)
A text aura showing variables a show is on screen already
Conditions on an action if (recipe 17)
(?<YOU>…), only if it's me the same, (?<YOU>…) (recipe 3); for a list's alert, if $player is me (recipe 10)
A lookup with one action per case a map (recipe 14)
A delayed action ("clear after 5 s") a list row with timeout 5

Import from ACT on the Triggers tab turns ACT triggers and timers into trigger and timer lines for you.

The biggest change in thinking: in ACT, a trigger does things, and you build the display out of variables and auras. In a guide, you say what's on screen (a show) and what changes it, and DoctorParser draws it.

19. When it doesn't work

  • It doesn't load. The Triggers tab lists a guide that doesn't load at the top, with its error and line number ("line 12: unknown statement "trak""). Fix that line and press Read them again. In the app's text box, the check under it says so as you type.
  • It loads but never does anything. Check where it runs: the list shows why a guide or section isn't active where you are (not this zone, [Raid] only, not your class, off). A boss section only runs once that mob is in combat. While testing, start always takes the boss out of the picture.
  • A regex never matches. Copy the real line from your log and try it in Pattern help. Use emote instead of line for boss emotes and shouts, since line sees the game's link codes (\aNPC 123 Name:Name\/a). Regexes ignore case ((?-i) at the start makes one exact); names in death, hit and the like ignore case and a leading "a" or "an".
  • raid or group misses people. Do a /whoraid or /whogroup after forming up.
  • Too many alerts from one AE. A trigger on a hit goes off for every target the AE hits. Make it an entry (recipe 7: an entry takes the first hit and ignores the rest), or a show ... per (recipe 6), which ignores a begin for a row that's already there.
  • It goes off twice. Another trigger listens for the same line; the guide's page says which. See The same trigger twice.