ID:162494
 
I'm looking for a way so that users can Increase their skills by clicking them in the statpanel area. I just can't figure out how to make it so click will work in the statpanel.

An example of what kind of stat panel I mean:


mob/Stat()
statpanel("Status")
stat(,"~Attributes~")
stat("Strength:","[src.str]")
stat("Intelligence:","[src.int]")
stat("Points:","[src.skill_points]")
In response to GhostAnime
So I have to create an object in order to use Click() in the stat panel?
obj/strength
name = "Strength:"
Click()
usr.str++

var/obj/strength/STRENGTH = new()

mob/Stat()
statpanel("Status")
stat("~Attributes~")
STRENGTH.suffix = "[str]"
stat(STRENGTH)