Iim trying to make an experience counter that just "counts" my experience. So, i made this trigger:
You receive * experience points.
and this calls this script:
Sub SCRExpCount (strName, strLine, aryWildcards)
dim newexp, exp
exp = world.GetVariable ("exp")
newexp = arywildcards(1)
exp = exp + newexp
world.setvariable "exp", exp
end sub
however, the number in the variable just 'melds' together, eg if i had 2500 as the variable and killed a mob that gives me 3500 it puts in 25003500
Im guessing this is as its treating it as a string, but i cant change this (because im not very good a coding :P). Can anyone help?
You receive * experience points.
and this calls this script:
Sub SCRExpCount (strName, strLine, aryWildcards)
dim newexp, exp
exp = world.GetVariable ("exp")
newexp = arywildcards(1)
exp = exp + newexp
world.setvariable "exp", exp
end sub
however, the number in the variable just 'melds' together, eg if i had 2500 as the variable and killed a mob that gives me 3500 it puts in 25003500
Im guessing this is as its treating it as a string, but i cant change this (because im not very good a coding :P). Can anyone help?