ID:176712
 
How can i have a verb in a stat panal? Thanks for any one who answers :-)
obj
attackVerb
Click()
usr.Attack()

mob
var/obj/attackVerb
New()
attackVerb = new /obj/attackVerb
Stat()
stat( usr.attackVerb )
In response to Garthor
Garthor wrote:
obj
attackVerb
Click()
usr.Attack()

mob
var/obj/attackVerb
New()
attackVerb = new /obj/attackVerb
Stat()
stat( usr.attackVerb )

Just to clear up what that does. In short it creates a button (/obj/attackVerb), which calls usr.Attack() when clicked. Then it places that button inside the stat panel.
-DogMan