mob/proc/scorecheck()
if(score>29)
usr.skill="n00b"
if(score<=30)
usr.skill="Novice"
usr<<"You become better"
if(score<=60)
usr.skill="Intermediate"
usr<<"You become wildly better"
if(score<=90)
usr.skill="Advanced"
usr<<"You become really better"
if(score<=120)
usr.skill="Master"
usr<<"You become a f**king MASTER!!!!!!!!"
if(score<=150)
usr.skill="God-Like"
usr<<"You become way fu**ing better"
world<<"[usr] has become a god"
This is the code to set the skill level, but on the stat panel it just shows blank
stat("Skill:","[skill]")
ID:149267
Jun 7 2002, 12:06 am
|
|
In response to Strange Kidd
|
|
no, i have a stat panel, it doesnt show the actual value for skill
mob Stat() // Statpanel. statpanel("Statistics") stat("Balance:","[balance] / [maxbalance]") stat("Score:","[score]") stat("Speed:","[speed]") stat("Air:","[air]") stat("Skill:","[skill]") but thanks |
In response to mazarot
|
|
Ahh, I see the problem, where are you calling the proc, if your calling it anywhere.
You could try something like this mob/proc/scorecheck() if(score>29) usr.skill="n00b" if(score<=30) usr.skill="Novice" usr<<"You become better" if(score<=60) usr.skill="Intermediate" usr<<"You become wildly better" if(score<=90) usr.skill="Advanced" usr<<"You become really better" if(score<=120) usr.skill="Master" usr<<"You become a f**king MASTER!!!!!!!!" if(score<=150) usr.skill="God-Like" usr<<"You become way fu**ing better" world<<"[usr] has become a god" spawn(1) scorecheck() mob/Login() scorecheck() |
Stat()
statpanel("Stats")
stat("Skill:","[usr.skill]")