mob
Stat()
if(loggedin==1)
Workhp()
statpanel("Stats")
stat("Health: [Hp2]")
statpanel("Skills")
stat(src.Skills)
mob
verb
hpdown()
src.Hp -= 2
mob/proc/Workhp()
if(src.Hp==90<>100)
src.Hp2="You are in perfect condition."
if(src.Hp==70<>80)
src.Hp2="You are bleeding slightly."
if(src.Hp==50<>70)
src.Hp2="You begin to bleed quite heavily."
if(src.Hp==30<>50)
src.Hp2="Your wounds are seeping with blood."
if(src.Hp==10<>30)
src.Hp2="You begin to feel weak at the knees."
if(src.Hp==2<>10)
src.Hp2="You feel your conciousnous slowly slipping."
if(src.Hp==-4<>2)
src.Hp2="You have been knocked unconcious."
if(src.Hp>=-4)
src.Hp2="You are Dead."
i KNOW that the part i have got wrong is the <> expression but its the closest thing i could find in the dm helpfile that looked like it could mean between values the problem is that whenever it works out the proc it only seems to choose the bottom value no matter what the Hp value im sure this is an easy code to fix though i also know i could go about this code in another way but i wanted to make it shorter and overall less annoying to read if there is no function for between values though it seems i will have to go about it that way although i am much against doing that.
Edit: i forgot to include this question is there a way to make it so that the stats panel appears under the pager info hub etc tabs while still in view 6??
ID:268856
Dec 7 2004, 12:36 am (Edited on Dec 7 2004, 1:21 am)
|
|
In response to Igmolicious
|
|
Oh my god is the statement i am looking for :P i cant believe i didnt see that thanks alot Igmolicious :D
|
Hopefully that helps :)