Sorry if this was posted somewhere else and I didn't see it, I've been browsing the forums looking for similar but couldn't find any applicable. Long story short, I play on a mud that sometimes has brackets ([]) around the text and I'm trying to capture that text and send it to a variable to add it up ie [Double Points] You have gained x [*clan] clan points for doing y.
What I currently have is:
Do note that this match was given to me by someone using a different client (that uses LUA) but it's still LUA based
I've been testing that with the manual test trigger function in mushclient and it just stays at 0 matches, I'm at a loss on how to make it work. Is there anything simple I'm just not seeing?
What I currently have is:
<triggers>
<trigger
enabled="y"
group="CP_Count"
match="^([Double Clan Points] )?(\w+) (have|has) earned (\d+) [\*clan] clan point from (your|their) valiant effort in slaying (.+)!?"
regexp="y"
send_to="12"
sequence="100"
>
<send>CP = tonumber (GetVariable ("CP")) or 0
CP = CP + %3
SetVariable ("CP", CP)</send>
</trigger>
</triggers>
Do note that this match was given to me by someone using a different client (that uses LUA) but it's still LUA based
I've been testing that with the manual test trigger function in mushclient and it just stays at 0 matches, I'm at a loss on how to make it work. Is there anything simple I'm just not seeing?