ID:261436
 
Hello all its me Green Lime and I would like to know how you add objs to your statpanel. I have been trying this but cant quite figure it out. I am trying to have the obj added to the stats have a Click() proc so when you click on that obj in the statpanel what ever is in that proc happenes.

Any body know how to do this? Please help
maybe if you create an object and then do a quick loc change, then add something under the Click() proc.... or maybe I'm just stuppid, probably the second choice... yeah, stupid souds right.... cheese.
Here's one way of doing it:

obj/someobj
Click()
usr << "Wow. You clicked me!"
mob
var
someobj
New()//when the mob is created
..()
someobj = new/obj/someobj

Stat()
..()
statpanel("Stats")
stat("Some object",someobj)
In response to Nadrew
Nadrew wrote:
> obj/someobj
> Click()
> usr << "Wow. You clicked me!"
> mob
> var
> someobj


Oop! That would have to be mob/var/obj/someobj. Otherwise, you'd run into some errors.

...I think. ;)

=V
In response to Vortezz
Nope.
In response to Vortezz
Only if you tried to read someobj.name, or something... I beleive...

-LoW, speaking from his posterior
I think there was an article on BYONDScape about this by Zilal. Even if you do ont have BYONDScape, I am pretty sure it is non-subscription.
In response to Nadrew
opppsy I all ready figured this error and moved on ummm. Sorry for not posting it.

Thanks for the answers thow :)