Hi, I just registered and hope if you guys can help me. I'm having problems subtracting using Vbscripting, here's an example.
Trigger Line: You have gained (.*?) experience points.
Send: setvariable "experience",getvariable ("experience")-%1
normally this would work but with 4 digits or more, say, '5,000' then it'll cause the script to error, I suspect that the comma is the problem but the game doesn't have the option to remove it so I'm stuck here, anyone can help me?
Trigger Line: You have gained (.*?) experience points.
Send: setvariable "experience",getvariable ("experience")-%1
normally this would work but with 4 digits or more, say, '5,000' then it'll cause the script to error, I suspect that the comma is the problem but the game doesn't have the option to remove it so I'm stuck here, anyone can help me?