[MudWalker] triggers
Kevin Reid
kpreid at mac.com
Sat Oct 18 05:24:07 PDT 2008
On Oct 15, 2008, at 17:37, Aaron Wallace wrote:
> Thanks for the info!
>
> So the to do what I want the trigger would look like.
>
> Match Patterns
> ^you just got slightly better in .*\.$
> Script
> Message(you just got slightly better in arg[1])
>
> I have forgotten the command to retrieve the stored word.
You need to put parentheses around what you want to store (capture).
^You just got slightly better in (.*)\.$
and the default script language works like
@@message("you just got slightly better in " .. arg[1])
Or you could just repeat the whole line (no captures needed):
@@message(arg[0])
--
Kevin Reid <http://homepage.mac.com/kpreid/>
More information about the MudWalker
mailing list