mob/proc
LevelCheck()
if(src.Exp>=src.Nexp)
src.Exp=0
src.Nexp+=10
src.Level+=1 //Lvl Proc-adds lvl,HP,Stats
src.MaxHP+=rand(1,5)
src.Str+=1
src.Def+=1
src<<"You are now Level [src.Level]"
TakeDamage(var/Damage,var/mob/Attacker)
src.HP-=Damage
src.DeathCheck(Attacker)
DeathCheck(var/mob/Killer)
if(src.HP<=0)
if(src.client)
world<<"[Killer] Killed [src]!"
src.HP=src.MaxHP
src.loc=locate(5,5,1)
else
Killer<<"<b>You Killed [src] for [src.Exp] Exp"
Killer.Exp+=src.Exp
Killer.LevelCheck()
del src
ID:1637600
Jul 25 2014, 12:14 pm (Edited by moderator on Jul 25 2014, 12:21 pm)
(See the best response by LordAndrew.)
|
|
hey every one, Just getting into using DM and i have a problem. When my char. die's he respawn,but is not healed to MaxHp. would love help.. sick of being killed
|
Jul 25 2014, 12:23 pm
Best response
|
|
Strange, src.HP = src.MaxHP should work, unless you aren't actually defining MaxHP anywhere (in which src.HP = src.MaxHP would effectively mean src.HP = 0).
|
this is in my vars.dm
mob/var |
In response to RavenGlass
|
|
Perhaps your enemies are doing far more damage than you think they are? Could you show us how you're handling attacking and calculating damage?
|
this is my Verbs.dm
mob/verb |