Hello.
I'm trying to make a trigger to save my bank balance because for some reason you can only see your bank balance inside the bank which disturbs me.
Here's the sample output:
Total Gold in Bank: 18,231
Below is my trigger:
<triggers>
<trigger
enabled="y"
group="Banker"
match="Total Gold in Bank: *"
send_to="12"
sequence="100"
>
<send>wealth = %1</send>
</trigger>
</triggers>
---------
The trigger only catches the '18' though and so I'm stuck as to what to do. I want to catch the whole 18,231, remove the comma, then store the 18231 number (Which will fluctuate of course) into that wealth variable. I have another simple alias that just notes that variable's contents.
How do I catch that? I'm assuming I need to use a regular expression but I'm not familiar with those.
I'm trying to make a trigger to save my bank balance because for some reason you can only see your bank balance inside the bank which disturbs me.
Here's the sample output:
Total Gold in Bank: 18,231
Below is my trigger:
<triggers>
<trigger
enabled="y"
group="Banker"
match="Total Gold in Bank: *"
send_to="12"
sequence="100"
>
<send>wealth = %1</send>
</trigger>
</triggers>
---------
The trigger only catches the '18' though and so I'm stuck as to what to do. I want to catch the whole 18,231, remove the comma, then store the 18231 number (Which will fluctuate of course) into that wealth variable. I have another simple alias that just notes that variable's contents.
How do I catch that? I'm assuming I need to use a regular expression but I'm not familiar with those.