how to read this line and set value in a variable
Line: <100,000/150,000Hp 35,000/38,000Mp>
line has "," not "." how will I do this trigger?
Line: <100,000/150,000Hp 35,000/38,000Mp>
line has "," not "." how will I do this trigger?
This forum is a read-only archive of the Gammon Software forum (2000–2026). No new posts can be made. Search the archive.
Posted by Valentim on Wed 22 Jul 2015 04:39 PM — 2 posts, 12,131 views.
<triggers>
<trigger
enabled="y"
match="<*/*Hp */*Mp>*"
send_to="12"
sequence="100"
>
<send>
SetVariable ("hp", string.gsub ("%1", ",", ""))
SetVariable ("hpmax", string.gsub ("%2", ",", ""))
SetVariable ("mp", string.gsub ("%3", ",", ""))
SetVariable ("mpmax", string.gsub ("%4", ",", ""))
</send>
</trigger>
</triggers>