Guide, Client Interface
Triggers
Triggers
Before using triggers be wary of our rules. Botting, auto-attacking while afk, and kill stealing will get you a ban. Much like AI, you are responsible for the output and their action is yours.
Triggers watch the text coming from the game and react to it automatically. When a line matches a pattern you set, the trigger can send commands, highlight the line, hide it, track things in variables, and more.
Triggers run in your client. They are saved on your computer and to your account, so they come back on another computer or after you clear the game's local files. Variables are saved on your computer only.
Open the Routines tab at the top of the screen, then the Triggers sub-tab, to create and manage them.
Quick Start
- Open the Triggers tab and press New Trigger.
- Give it a name, e.g.
Gold pickup. - Set the pattern. Type:
Substring, pattern:gold coins. - Press Add Action, choose Highlight, tick Text color and pick a color from the swatch beside it.
- Paste a sample line such as
You get 25 gold coins.into the Test box and press Run Test to see it work.
That's it — from now on, any line containing "gold coins" is highlighted as it arrives.
Patterns
A pattern describes what text the trigger is looking for. Every trigger has at least one.
| Type | Matches when... | Example |
|---|---|---|
| Substring | The text appears anywhere in the line | is DEAD |
| Begins with | The line starts with the text | You feel hungry |
| Exact line | The whole line equals the text | It is pitch black. |
| Wildcards | zMUD-style wildcard pattern matches | %1 gains %d gold |
| Regex | A regular expression matches | (\w+) hits you for (\d+) |
| Prompt value | A condition on your prompt values is true | {hp_percent} < 40 |
The Aa checkbox makes a pattern case-sensitive. By default, goblin also matches Goblin.
Prompt value patterns
A Prompt value pattern watches your character's numbers instead of a line of text. Write a comparison using <, <=, >, >=, == or !=, and join several with and / or (and is worked out first):
{hp_percent} < 40{mana} >= 20 and {combat} == "Not in Combat"
Text is compared without regard to case, and needs quotes when it contains spaces. The editor lists the names you can use with their current values, and flags a name it doesn't know.
The trigger fires when the condition becomes true, then waits for it to turn false before it can fire again. Give it a Cooldown to make it fire again after each cooldown while the condition still holds.
A trigger fired by a Prompt value pattern can also use the values in its actions: {hp} in its Echo or command text is replaced by your current health.
Wildcards (zMUD-style)
If you're used to zMUD/CMUD, use the Wildcards type and write patterns the same way. Everything that isn't a wildcard is matched literally, so you don't have to escape punctuation.
| Wildcard | Matches | Captured? |
|---|---|---|
%1 … %99 | anything (greedy) | yes |
%w | a word (letters, digits, _) | yes |
%d | a whole number (digits) | yes |
%n | a number with sign, commas, decimals (e.g. -1,234.5) | yes |
%a | a run of letters and digits | yes |
%p | a run of punctuation | yes |
%s | whitespace | no |
* or %* | anything | no |
{a|b|c} | any one of a, b, c | yes |
%% | a literal % sign | — |
^ … $ | anchor to the start / end of the line | — |
Example: %1 gains %d gold matches "Amadeux gains 250 gold"; %1 = Amadeux, %2 = 250.
Captures — using what a pattern grabbed
Both Wildcards and Regex patterns capture pieces of the line that you reuse in actions:
%0— the whole matched text%1,%2, ... — the captured pieces, numbered left-to-right in the order they appear in the pattern%{name}— a named group (Regex only, from(?<name>...))
So with a Wildcards pattern, don't worry about the number you write — %d then %w gives you %1 (the number) and %2 (the word), by position. Substring / Begins with / Exact line don't capture (only %0, the whole match, is available).
Example: Wildcards pattern %w attacks you with action Send commands = consider %1 sizes up whatever just attacked you. (The equivalent Regex is (\w+) attacks you.)
Multiple patterns
Press Add Pattern to give a trigger more than one pattern, then choose how they work together with How patterns combine:
- Fire on any pattern (OR) — the trigger fires when any one of its patterns matches. Good for grouping variations: "You are hungry" OR "You are thirsty".
- All patterns within N lines (AND) — the trigger fires only when all patterns have matched within the last N lines. Good for output that spans several lines, like a death message followed by a loot line.
- Patterns in sequence (multi-state) — patterns must match in order, one after another. The trigger waits on pattern 1, then starts watching for pattern 2, and so on, firing when the last one matches. The optional reset timer starts the trigger over if the next pattern doesn't show up in time. Good for "the enemy begins casting... the enemy finishes the spell" chains.
Actions
Actions are what the trigger does when it fires. A trigger can have any number of actions, and they run in order from top to bottom.
Send commands
Sends commands to the game as if you typed them. Separate several with ;:
flee;recall
Captures and variables work here: kill %1, cast heal @tank.
Your target — %target: %target is the NPC you picked in the room NPC popup, by clicking its card or pressing Tab (next) or F7 (previous). cast fireball %target hits exactly that NPC, even when others in the room share its name, and it works with any command: look %target, consider %target, kill %target.
- With nothing picked,
%targetis left out:cast fireball %targetsendscast fireball, which hits the enemy you're fighting - If the NPC has died or left by the time the command arrives, the command stops with "Your target isn't here any more." It never falls through to another NPC with the same name
- It's filled in when the command is sent, so after a Delay it's your target at that moment
- In Echo, Popup notice, Substitute and Set variable,
%targetis the NPC's name %targetis only read where you wrote it. If a captured%1happens to contain the text "%target", it stays plain text
Sending to your other character: prefix a command with @charactername to run it on another of your logged-in characters (your second character tab) — the same routing aliases use. For example, a trigger on Amadeux with:
@Siles assist Amadeux
makes Siles assist the moment the trigger fires. You can mix targets in one action: flee;@Siles cast heal Amadeux. The named character must be logged in on your other tab, or that command is dropped (the Trigger Log will say so).
%target in a routed command is this tab's target: @Siles cast fireball %target makes Siles hit the NPC you picked on Amadeux. Siles must be in the same room as it. The same goes for an alias you route: @Siles nuke, where nuke = cast fireball %target, uses Amadeux's target.
Safety: trigger-sent commands are limited to 20 per second and 300 per minute, so a runaway trigger can't flood the server. Communication commands can never be sent by a trigger — say, tell, whisper, reply, shout, yell, gossip, newbie, ooc, page, the admin channel, group and guild chat, emote/pose and their shortcuts are all blocked (including via @character). If a trigger tries one, it's skipped and the Trigger Log shows a BLOCKED note.
You have to be there: after 5 minutes with no key press, click or scroll from you, triggers stop sending commands. Highlights, echoes, popups and the other actions keep working. You get a warning a minute before, and a "Triggers paused" notice when it happens; the next key press or click resumes them. Commands dropped while paused are not sent later. Moving the mouse or holding a key down doesn't count.
Echo text
Prints a line of text in your own window. Only you see it. The color box takes a color name (red, yellow) or a hex code (#ff8800); it is yellow if left empty. Useful for reminders and alerts:
*** LOW HEALTH — DRINK A POTION ***
Highlight
Colors the matched text (or the whole line) so it stands out. Tick Text color and/or Background, pick each color from its swatch, and choose Matched text or Whole line.
Tip: if a highlight on "Matched text" looks odd on a heavily colored line, switch it to Whole line.
Substitute text
Rewrites what you see. Replaces the matched text (or the whole line) with your own text. The game still sent the original — this only changes your display.
Example: pattern You gain (\d+) experience, substitute whole line with >>> +%1 XP <<<.
Gag (hide) line
Gagging a line means hiding it — the line arrives from the game but is never shown. This is the classic MUD way to filter out spam you don't care about (weather messages, other people's combat, shop barks).
The hide from setting controls where it's hidden:
- Main window — hidden from the main game text only
- Chat tabs — hidden from the Chats panel tabs only
- Everywhere — hidden from both
The Test box shows gagged lines struck through so you can confirm the right lines are being caught before turning a gag loose.
Set variable / Increment variable
Variables are named values your triggers can remember and share. Set one with Set variable (e.g. set foe to %1), then use it in any trigger action with @foe. Only triggers fill in @variables; an alias or a typed command sends @foe as it is.
Increment variable adds a number to a variable — handy for counters:
- Pattern:
is DEAD - Action: Increment
killsby 1 - A second trigger could echo
Kill #@kills!
Current variable values are shown in the Trigger Log section of the Triggers tab.
Enable/disable
Turns another trigger — or a whole group — on or off, by name. This lets triggers switch modes for you:
- A trigger matching
You draw your weaponenables groupCombat - A trigger matching
You put away your weapondisables groupCombat
Delay
Pauses before running the actions listed after it. A trigger with Echo "brace yourself", Delay 2000 ms, Send flee echoes at once and flees two seconds later.
Note: actions that change how the line displays (highlight, substitute, gag) can't run after a delay — the line is already on screen by then.
Popup notice
Shows a short popup message over the game window that fades after a few seconds. Use it for things you must not miss even when you're not reading the text.
Options
| Option | Effect |
|---|---|
| Fire once per session | After firing, stays quiet until you restart the client |
| Delete after firing | A one-shot trigger — removes itself after it fires |
| Stop processing | When this trigger fires, no triggers below it are checked for that line |
| Echo sent commands | Show commands this trigger sends in your window (on by default) |
| Cooldown ms | Minimum time between firings — e.g. 5000 stops an alert repeating more than once per 5 seconds |
| Active for | All characters, or only the characters you list |
Active for specific characters
Choose Specific characters and tick the checkboxes for the characters it should apply to — the list shows every character on your account. The trigger only fires while you're playing one of the ticked characters. (With nothing ticked, it fires for every character.) All characters (the default) means the trigger works no matter who you're logged in as.
The character list loads from the server when you visit the character-selection screen, so connect at least once before setting this up. If a ticked character is later deleted, its checkbox stays visible on that trigger until you untick it.
Groups and Order
- Groups organize triggers into folders you can enable/disable with one checkbox — for example, keep all your combat triggers in a
Combatgroup and switch it off in town. Type a group name into a trigger's Group field and press Enter to file it there. Use/for nesting (Combat/Defense); disabling a parent disables everything under it. You can also press New Group, and drag a trigger onto a group to file it there. Open All / Close All unfold or fold every group. - Duplicate copies the selected trigger; Delete removes it.
- Group-level "Active for". Click a group in the list to open its settings. A group can set its own character scope (All characters / Specific characters). When a group is set to specific characters, that overrides the "Active for" on every trigger inside it — those triggers show their own "Active for" greyed out with a note that it's controlled at the group level. Set a group to "All characters" and each trigger uses its own setting again. This lets you say "everything in my Raid group only runs on Amadeux" in one place.
- Order matters. Triggers run top-to-bottom in the list. Use the ▲ ▼ buttons to reorder. Combined with Stop processing, order decides which trigger wins when several match the same line.
- The (fired N) counter next to a trigger's name shows how many times it has fired since the client started. It resets when you restart.
Testing and the Trigger Log
- Test box: paste any sample text and press Run Test. It shows exactly which triggers would fire and what the line would look like — highlights applied, substitutions made, gagged lines struck out. Every trigger is tested, even disabled ones, so you can build and test a trigger before switching it on — disabled triggers are marked in the results. Nothing is sent to the server from a test.
- Trigger Log: a live feed of every real firing — when, which trigger, on what line, and what it did. If a trigger isn't behaving, look here first.
Sharing Triggers
- Export copies the selected trigger (or a whole group) to your clipboard as text; Export All copies everything.
- Import reads triggers from your clipboard.
Paste the exported text to a friend and they can Import it — imported triggers are added alongside their existing ones.
Good to Know
- Triggers only ever run on text from the game — never on what you type, and never on text a trigger itself produced, so triggers can't set each other off in a loop.
- Trigger-sent commands are rate-limited to 20 per second and 300 per minute.
- Triggers can never issue communication commands (chat, tells, channels, emotes).
- Triggers stop sending commands after 5 minutes without a key press or click from you, and resume on the next one.
- Runaway protection: if a single trigger fires more than 60 times in 3 seconds — almost always a feedback loop — it is automatically switched off and a warning appears, so a bad pattern can't lock up your client. Fix the pattern and re-enable it.
- Triggers match against the plain text of a line — colors and formatting are ignored when matching.
- Everything is saved automatically as you edit. Changes reach your account within about 10 seconds; changes made while you are offline go up the next time you log in.
- If you change triggers on two computers before either one syncs, the one that saves last wins.
Example Cookbook
Auto-loot on kill
- Pattern (Substring):
is DEAD - Action — Send commands:
get all corpse
Track your kills
- Pattern (Regex):
(\w+) is DEAD - Actions — Increment
killsby 1; Echo:%1 slain — kill #@kills
Hide weather spam
- Pattern (Begins with):
Rain falls - Action — Gag: Everywhere
Never miss a tell
- Pattern (Substring):
tells you - Actions — Popup notice:
New tell!; Highlight (Whole line):#66ccff
Auto-target an aggressor
- Pattern (Regex):
(\w+) attacks you - Actions — Set variable
foe=%1; Echo:Target locked: @foe - (A second trigger can then send
kill @foe. For NPCs, picking one in the room NPC popup and using%targetis simpler, and it hits the exact one.)
Cross-character rescue (two tabs logged in)
- On Amadeux — Pattern (Substring):
You are stunned - Action — Send commands:
@Siles rescue Amadeux
Spellcast warning (multi-state)
- Mode: Patterns in sequence, reset after 6000 ms
- Pattern 1 (Substring):
begins to cast - Pattern 2 (Substring):
finishes the spell - Action — Popup notice:
SPELL INCOMING