ID:271334
 
hi, Im wondering how to make a panel just for stats. Everytime i put category = Stats, nothing changes, i can't post the code i use on here, cause it's on my laptop, not on my PC, and i don't have internet on it.
I'd be grateful if you could post a snippet, thanks.
Heres, just an example of what you could do.

mob/var //Variables for mobs, very important!
health = 50 //Health, set to default 50.
maxhealth = 50 //Max Health, set to default 50, as well.

mon/Stat() //Call Stat()
statpanel("Status") //See this makes a statpanel
stat(src) //Show your icon and icon_state here. Plus any overlays and underlays, too!
stat("Health:","[src.health]/[src.maxhealth]") //Shows, your current health out of your max health.
stat("Name:","[src.name]") //Shows your name. name is a built in variable, so it would be,
//alright to call it without defining it.


This should help you, out a bit. :P
In response to Quest Industries
Thanks :D
In response to Qui-Gon-Jinneh
No, problem. Oh and remember that using src would be better then using usr in most cases.
In response to Quest Industries
Will do.
*salutes*
xD
In response to Quest Industries
icouldnt get it work it said it didnt recognize the proc or something so i tried changin it a tid bi and it worked but still didnt show up

mob/var
health = 50
maxhealth = 50
proc
callstat()
statpanel("status")
stat(src)

that is the code i used and i was woderin if someone could fix it