mob
proc
hunger()
for()
Hunger -= 1
if(Max_Hunger < Hunger)
Hunger = Max_Hunger
if( Hunger < 25 )
src << "You are feeling hungry!"
if(Hunger < 10)
src << "You're starting to starve"
if(Hunger < 0 )
src <<"You're starving!"
if(Hunger < -25)
src <<"You die of strvation!"
sleep(10)
Problem description:
Well, the problems is that after the first if message "You are feeling hungry!" starts repeating itseelf along with the other two messages until the mob die.
verb
Claws()
src << "you slash your own hand!"
hp -=2
if(src.worn)
src.worn = 0
usr.overlays -= 'boneC.dmi'
src << "You stop using your claws!"
else
src.worn = 1
usr.overlays += 'boneC.dmi'
energy -=2
src << "You use your claws!"
if(energy<0)
src << "you're too tired!"
return
Problem description:
And with this one i can't seem to make the mob stop the action after it reaches 0 energy ut just keep going down and reapeating the message.
Some help or at least a hint of what is missing or wrong would be apreciated. thanks