Help/Trigger

From DikuMUD Wiki
Revision as of 07:36, 21 September 2020 by Papi (talk | contribs) (Created page with "= Trigger = If you want to do whatever the beastly Fido tells you to do: $trigger obey /^the Beastly Fido tells you '(.+?)'/ $1 Or maybe you'd like to $trigger smarmy /^(@...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Trigger

If you want to do whatever the beastly Fido tells you to do:

$trigger obey /^the Beastly Fido tells you '(.+?)'/ $1

Or maybe you'd like to

$trigger smarmy /^(@friends)\sleaves (.+?)\.$/ say I love $1. Especially when $1 leaves $2.

You may notice this is written with Regular Expressions. If you're not familiar or want to learn more: RegEx Reference