mob
verb
StrengthUp()
set category = null
if(!Creating)
return
else
if(Points == 0)
alert("You have no more stat points to spend.")
else
Points -= 1
StrengthMod += 0.1
winset(usr, "statpanel.statpoint", "text=[Points]")
winset(usr, "statpanel.str", "text=[StrengthMod]")
Problem description:
I am trying to bring pass a variable to a procedure, rather than using separate verbs for each button. So rather than the above code, something like this (oversimplified):
mob
proc
Up(A)
Points--
A++
Then, you set the button's command to: