Trigger nor executing.

Posted by Slurp on Wed 19 Apr 2006 12:51 PM — 2 posts, 10,576 views.

#0
<triggers>
<trigger
custom_colour="16"
enabled="y"
group="Highlighted Words"
ignore_case="y"
keep_evaluating="y"
match="\bdies\.\b"
regexp="y"
repeat="y"
sequence="90"
other_text_colour="silver"
>
<send>/SetVariable ("test", (GetVariable ("test") or 0) + 1)
Note ("Saved count is now " .. GetVariable ("test"))</send>
</trigger>
</triggers>
I'm trying to make count of all mobs killed, unfortunatly this trigger won't execute with the code given. It just dosen't do anything,

the output is like this.

"You got 363 xp.
Badger died horribly.
Badger drops a badger skin.
Badger dies."
or

You got 2160 xp.
Grizzly bear died horribly.
Grizzly bear dies.
etc
Amended on Wed 19 Apr 2006 01:03 PM by Slurp
Australia Forum Administrator #1
Your problem is the final \b. That is a "match on word boundary" assertion, however it is after a period, so there is no word boundary there.

This worked for me:


Match: \bdies\.


Your next problem is that you are sending the script "to world" so the script is sent to the MUD, which doesn't understand it. Change "send to" to "script" and get rid of the very first slash.