Trigger to pull variables from a string

Posted by KaiserBear on Sun 27 Sep 2015 01:47 AM — 2 posts, 11,718 views.

#0
Hello.

I'm trying to pull the value from various skills and I seem to be entering it wrong, I'm not sure what I'm doing wrong. Below is the text I'm trying to make my trigger respond to:

Swords: 59 Unarmed: 12 Dodge: 23

And this is what I have for a trigger, which doesn't even catch the line unfortunately. Can you tell me where I'm going wrong?

<triggers>
<trigger
enabled="y"
match="*Swords: * * "
send_to="12"
sequence="100"
>
<send>swords = %2
SetVariable("Swords", swords)
</send>
</trigger>
</triggers>
Australia Forum Administrator #1

 match="*Swords: * * "
                    ^
--------------------|


I see a trailing space there that is probably not on the line you are trying to match.