Trying to get a trigger to get a varialbe ane have it add to the vairable
Your power level increases by 4 points.
of of this, the levels can go into the millions using commas where they should be in the number order. And i am not really sure how i would even attempt to do this
SetVariable "Number", Cint(GetVariable("Number"))+%1
will add the variable "Number" to %1 and store it as number.
About commas, Do you mean you can get a number with commas? I believe someone has a script snippet to get rid of them with a bunch of bells and whistles. But, Im not quite sure what youre asking for.
If you want to do that, I believe this should work:
SetVariable "Number", Cint(GetVariable("Number"))+CInt(Replace(%1, ",", ""))
This will remove the commas from a number, before adding it to the variable.
yea i meant cause the numbers in the promt can be like 1,000 and 100,100 and stuff like that was just trying to figure out if i could make it add the numbers without the commas. And i tried what you suggest it didn't work