mob/proc
Healthboxstats()
src << output("[src.Strength]", "Str")
//This is the code for stats showing in the Str label
mob/verb
StrengthAddPoint()
var/removepoints = 1
set hidden = 1
if(statpoints >= 1)
usr.Strength += 1
usr.statpoints -= removepoints
if(statpoints < 1)
return
else
return
//This is trying to click the + button so clicking it increases the strength you added by 1 each click.
Problem description:
So when i try to click the + button the strength stat doesn't appear to be updating. https://gyazo.com/e5a67d877baa89de275a19fbd4c15635
If you're using an output rather than a label you'll also need to set "Str" to output null first to reset the field, otherwise it will contain a new line and value each time the process is called.