Triggers
A trigger watches your log and does something when a line appears or an ability is used: it speaks, plays a sound, shows a message on the info bar or starts a timer. This page covers all of it. It's long, so jump to what you need: writing a trigger, patterns, timers or sharing and importing.
DoctorParser speaks triggers itself, with no browser tab needed, or through your browser if you choose. See Getting Started.
The Triggers tab
The tab has sections along the top:
| Section | What it's for |
|---|---|
| Triggers | Your triggers: a list on the left, the one you pick on the right |
| Quick timers | Timers started from a hotbar macro |
| Inbox | Triggers other players shared with you, waiting for a decision |
| Sharing | Whom to accept shared triggers and guides from, and where Share in chat sends a guide |
| Pattern help | A pattern tester and cheat sheet |
Import from ACT and New trigger are at the top right, with Guide editor: a page of its own for writing whole guides (see Guides and timelines).
The list groups your triggers by guide (see Where your triggers live): General, a zone's, Imported triggers, Shared triggers. The ones that apply where you are come first, with a green dot; the rest are folded below. Click a trigger to edit it, or a guide to see all its triggers in a table. With the list selected, ↑ and ↓ step through it, → and ← unfold and fold, and Enter opens. The search box matches names, patterns and words.
Writing a trigger
Click New trigger, choose where it goes, and fill in the form. Or click a trigger to change it. Each row is one thing the trigger does; leave a row empty to skip it.
Where it goes is a guide, then a section in it. The guides are listed by kind: a zone's (its triggers listen only there), a class's (only while you play that class), and the ones that always run. New guide… starts one from here, New section… adds a section to the guide chosen. It starts on the guide for the zone you're in, or your class's; see Where your triggers live.
Under the form, the trigger is written out twice: as the line DoctorParser runs, and in plain words ("When a log line matches …, say … and start a 10s timer"), so you can check it reads the way you meant. Save keeps it.
When: what sets it off
Choose one:
- log line: you write a pattern that's looked for in each line.
- emote: the same, for a mob's emote.
- raid/group chat: the same, for what's said in raid or group chat.
- ability used or ability hits: type the ability's exact name, as shown in the encounter tables (it suggests names from your recent fights), and whether it's used by me or by anyone.
For your own abilities, quick timers are more reliable than an ability trigger: a damage-over-time spell's ticks count as uses.
In a fight's tables, the ⏱ beside an ability starts a new trigger for it, with a timer length guessed from how often you used it.
What it does
- Say: spoken text. Use captures from the pattern, like
$1 joustor${name} go for cure. ▶ plays it. - Show: text on the info bar, its color, and how many seconds it stays (empty: the bar's usual 5). See Overlays.
- Show on: the info bar, or a Live page card by name (such as "chat"): the text then shows only on a named card on the Live page, not on screen. Saving puts the card on the Live page if it isn't there. Handy for raid chat and tells.
- Sound: none, chime, siren, ping or alarm.
- Timer: see Timers.
- Notes: a line for people, shown with the trigger; it's never run.
Testing
- Test at the top plays it as if it went off, so you can hear and see it.
- 🔎 beside the pattern searches your recent saved fights for lines it matches.
- Pattern help has a tester where you paste any log line and a pattern. See Patterns.
On, off, copying and deleting
- The dot beside a trigger, in the list or a guide's table, turns it on or off straight away. Off in the form does the same.
- Copy for ACT copies it in ACT's format, to paste in chat or into ACT.
- Copy or move… puts it in another guide or section.
- Delete removes it (it asks first).
Every save keeps the file as it was in the timelines-history folder, so nothing is lost for good.
Edit as code
Some things don't fit the form: a timer per target, a line that stops a timer, conditions. Edit as code opens the trigger as the line DoctorParser runs, where all of that can be written; a trigger that already uses any of it opens that way and says why. Edit in the form goes back when the form can show it. The line under the form shows how each field is written, which is the easiest way to learn the language; the rest is in Guides and timelines.
Patterns
A trigger goes off when its pattern is found anywhere in a log line. A few words that only appear in that message are usually all you need. Capital letters don't matter: break camp matches "Break camp!".
Patterns are regular expressions: most characters match themselves, and a few have special meanings. Put a \ before a special character to match it as written.
| Write | Matches | Example |
|---|---|---|
\w+ |
one word, such as a player's name | burns (\w+) matches "burns Jest" |
\d+ |
a number | within (\d+) meters |
.+ |
any text, as much as possible | tells you, "(.+)" |
.+? |
any text, as little as possible | expire on (.+?), stops at the first comma |
(a|b) |
either one | blood of the (drake|wyvern) |
x? |
x or nothing | hits? matches "hit" or "hits" |
(?:the )? |
optional words, not captured | blood of (?:the )?drake |
[^,]+ |
anything up to a comma | on ([^,]+), |
\[Raid\] |
the character itself | matches "[Raid]" |
Captures
Brackets capture part of the line, so your alert can repeat it.
| Group | Use in the text | Notes |
|---|---|---|
(\w+) |
$1, $2… |
In order: the first bracket is $1 |
(?<name>\w+) |
${name} |
Clearer, and doesn't shift when you add a group. Any name works |
(?<YOU>\w+) |
${YOU} |
Only matches your character's name, so the trigger fires only for you, even when someone else shared it |
(?:…) |
Grouping without capturing |
Good to know
- Don't start a pattern with
^. Each log line begins with the time, so the message is never at the start of the line. - Short and distinctive beats long and exact.
is teleportingkeeps working when the mob changes; a whole copied line breaks on the first difference. - Colored raid emotes begin with a color code like
\#00BFFF. Leave it out of the pattern. - NPC lines carry a link before the name. Matching just the words they say is usually enough.
- Look-ahead and look-behind, and back-references like
\1, aren't supported. The tester says so if you use one.
To check a pattern, open Pattern help, paste a log line and your pattern. It shows whether it matches, what each capture caught, and what the trigger would say.
Timers
A trigger can start a timer: a countdown on the meter and timer strip. In the form, Timer takes its length in seconds and, optionally, when to warn (seconds left: the timer turns red then), how long it stays on screen after zero, and its color. Leave the length empty for no timer. Warning is what to say and which sound to play at the warning; with no warning time they come when the timer runs out.
When the line comes again while the timer runs, the timer starts over. Tick keep running to let it run on instead: the trigger then stays quiet until its timer runs out, for a line that repeats during one mechanic (ACT's "ignore timer restarts while time left"). For a timer per target or a line that stops it, use Edit as code (per $target, cancel).
Quick timers
A quick timer starts from a hotbar macro, with no trigger. The macro uses your ability, then tells your private channel DPA Putrefy 19.2, and DoctorParser starts a 19.2 second timer called Putrefy. A damage-over-time spell's ticks never restart it, because it starts when you press the button.
To set one up, open Quick timers:
- Make your private channel in game:
/join playerstats yourpassword, with a name and password of your own. If it's gone after you log in again, join it again the same way. - Under Make a macro, enter the ability, how long it lasts (from its tooltip), a color and your channel name.
- Copy the macro line it gives you and add it to a macro that uses the ability.
- Put the macro on your hotbar in place of the ability. Test the timer checks it from the dashboard.
Only your own messages count. Pressing the macro again restarts the timer. DPA Putrefy stop ends it. The macro starts the timer even if the ability was on cooldown or out of range.
The same section sets a default color, a warning time, what to say and show at the warning and when the timer runs out, and whether Ready Up ends all quick timers.
Sharing and importing
Import from ACT
Import from ACT reads ACT triggers and timers from a file, a link or text you paste.
- Click Import from ACT.
- Choose a file, enter a link, or paste the XML, and click Read it.
- Check the summary. It lists how many triggers are in it, how many are switched on, and any it can't import with the reason.
- Choose whether to add only what's switched on, or everything (switched-off ones stay off), and which zones to take.
- Click Import.
They go into Imported triggers and work straight away. Triggers you already have are skipped, so importing the same file again adds nothing. ACT links triggers and timers by name, so a trigger that names a timer the file doesn't contain is imported without a timer. A link is read once; it isn't kept up to date.
Each imported trigger keeps the ACT text it came with. When a newer DoctorParser imports something better (such as timers' warning sounds), the Import from ACT dialog lists the triggers you imported earlier that can pick it up, and Update them writes them again from that text. Triggers you've changed since are left alone, and the guides as they were go to their history.
The inbox
When someone pastes an ACT trigger in chat, or shares a guide, it appears in Inbox with who sent it and in what channel. A guide says what accepting it does (installed, updated section by section, or turning your guide for the same zone off); see Share a whole guide. Choose:
- Accept to add it to Shared triggers. If it's a new version of one they shared before, it says Update.
- Reject to discard it.
- Always accept from the sender, to accept this and their later shares automatically.
- Block the sender, to ignore everything they share.
Reject all clears the inbox. A trusted player's share that comes during a fight waits in the Inbox until the fight ends, since adding it restarts running boss timers.
Who you accept from
The Sharing section controls it: names to always accept from, names to never accept from, and whether to accept only from private channels (plus any custom channels you list). Trusted and blocked names apply on every channel.
For the whole round trip, see Sharing triggers with your raid.
The same trigger twice
Two triggers that listen for the same line where both can go off (a General one and a zone's, say) both speak. Capital letters don't matter in patterns, so Break camp and Break Camp are the same trigger. A guide with such a trigger says so at the top of its page, with a link to the other copy: if they do the same, delete one; if they say different things, keep the one you want or turn one off. The count beside a guide in the list includes them.
Where your triggers live
Your triggers are saved in guides: Markdown files in the timelines folder beside DoctorParser. Most people never need to open them; the Triggers tab reads and writes them for you.
- A guide per zone (its triggers only listen there:
zone:at its top), a guide per class (class:at its top, for a Defiler's own triggers wherever you are), guides that always run (General and others: nozone:orclass:), Imported triggers (imported.md) and Shared triggers (shared.md). What a guide is for is written in the file, never in its name or folder. - Zone guides fill in as you play: when a fight with a named mob ends, its zone's guide gets a section for it if it has none yet (bosses fought together share one; each version of a zone gets its tag, like
[Heroic]; Untold versions get a guide of their own). Empty sections show dimmed, with "No triggers yet", ready for a trigger. For fights from before, open the fight and use Add to zone guide. - A guide can also hold a boss's whole fight on a clock, with notes for the raid. The format and the language are in Guides and timelines; the Timeline cookbook has recipes.
- If you edit a guide in another program, Read them again on the Triggers tab's start page loads your changes. A guide that doesn't load is at the top of the list, with its error and line.
A guide's page
Click a guide in the list to open its page:
- Where it applies, or why it isn't active where you are (not this zone,
[Raid]only, not your class, off). - Suggestions: what the guide check found, each with its line. Many have a Fix button; Fix all makes every fix that keeps the guide running the same. A fix that would change what runs (
#ofto#off) is left for you. - The same trigger twice, when another trigger listens for the same line. See The same trigger twice.
- Its sections, each with its state (on, waiting for its boss's pull, running) and its triggers. Empty sections are dimmed, with "No triggers yet".
- New trigger adds one to the guide. Share in chat sends the whole guide to your raid: see Share a whole guide.
- Edit as text (on a list of triggers) opens the whole thing in the text box.
Clicking a boss's section opens its text box: the section as Markdown, with its notes, its block and its triggers. It's a real editor, with line numbers and colors; Ctrl+F searches, Ctrl+Z undoes.
- It's checked as you type: "Reads fine", or what's wrong and on which line. Problems are marked on their line too (hover to read them).
- A bar above it says which
###trigger the cursor is in, with a link that opens it in the trigger form. - Save changes only that section; the rest of the file stays as it was. More
##headings in the box become more sections. An empty box removes the section. - Saving loads the guides again, so a running boss timer waits for the next pull.
Drafting from your fights
You don't have to time a boss by hand. In the Story view of a saved fight with a named boss, Draft a timeline looks at every pull of that boss in your saved fights and writes a timeline: what the boss does again and again (its hits, its emotes, the afflictions players get cured of, its adds' abilities), how often, grouped into cycles that keep step.
- On the right, the pulls it used and how each entry kept step when the draft was replayed over them: the lines it took, the ones it ignored, and how far off they were.
- What doesn't repeat steadily is left out, and listed at the end.
- It's a draft: check it, name things, and add the alerts you want. Then Save to my timelines (or Copy).
Finding a boss's cycles
A boss's section (the one its zone's guide gets after your first fight with it) has Find the cycles from my pulls above its text box. It looks through every saved fight with that boss, your sessions and your imported logs alike, for what the boss does on a clock, and puts the abilities that keep step into one cycle each.
- Which pulls: every saved pull of the boss in that zone and version. A fight saved twice (live, then from an imported log) counts once, and pulls that didn't get through one full cycle (an early wipe) are left out. It says how many.
- What it finds: each ability's casts (its hits on the raid close together are one cast), how often they come, and which ones come at a fixed time after each other, every cycle and every pull. Those share a cycle; two that merely happen to have the same period don't. A cycle that comes twice in a slower one (Cthurath's inhale in his 111 s cycle) stays a cycle of its own, with a note saying how it keeps step ("Twice in each 110.8 s cycle, 13 s after Bursting Aftershock").
- Curses: a curse that does no damage is found from its cures ("relieves … from") or the "effect has been removed" line, the first one each cycle. A raid's chat call ("Bob CURSE") counts only when it keeps a cycle's step cleanly, and is marked unsure (it's only there when the caller's UI sends it, and it can't say which curse it means). Calls that don't fit, as when one call covers two curses, are left out. Raid chat isn't saved with fights, so from saved pulls the cures are what it has.
- How well it fits: the cycles are replayed over the same pulls, as they'd have run: "fits 407 of 407 casts over 4 pulls", and each line's own count. A cycle that stops fitting partway (a fight that changes phase) says until when.
- What it left out, and why: no steady period, too few to time, all the time, once a pull (a trigger, not a cycle).
- Add to the section puts the cycles at the end of the section's block, in the box, not saved: rename the lines, keep the ones that matter, add alerts, then Save. Cancel leaves the section as it was.
It works from your pulls alone, never from what the guide already says. The log shows what repeats, not what matters, so what to keep is yours to judge.
Coming from an older version
Older versions kept triggers in triggers.json. On the first start of this version they're moved into guides once: by zone and category, triggers from a subscription into Imported triggers, and shared ones into Shared triggers. triggers.json is kept as a backup, and triggers-converted.txt beside it lists what went where. Delete that file to run the move again: triggers already in a guide are skipped.
Subscriptions end with the move; the triggers they brought stay in Imported triggers.