ID:266473
 
Sorry i posts so much,but i want to know how when the usr attacks a certain monster there Level gains more,Health,and Experince.If you know plz tell me!

Thanks!

-Kappa the Imp
In response to Strange Kidd
You don't get what im saying.I have a leveling system.But if they attack a super monster they gain more then regular monsters when they attack them.

-Kappa the Imp
In response to Kappa the Imp
ok, when you attack it, so simple
usr.level+=1
usr.Health+=20
usr.MaxHealth+=20

e z
In response to RaeKwon
So this is my code.
mob/verb/Attack(mob/M)
M.Health-=10
usr.Experince+=10
usr.Statup+=rand(10,15)
M.deathcheck()
usr.LevelUp()
usr.Statup()

mob/super_monster
icon = 'monster.dmi'
Health = 999999......
usr.MaxHealth+=10
usr.Health+=10

That doesn't sound like my code.What about the attack verb.I want the usr to gain more when it attacks the super_monster.FIx that code and give it to me.

-Kappa the Imp
In response to Kappa the Imp
mob/verb/Attack(mob/M)
if(istype==/mob/super_monster)
M.Health-=10
usr.Experince+=50//or whatever
usr.Statup+=rand(10,15)
M.deathcheck()
usr.LevelUp()
usr.Statup()
else
M.Health-=10
usr.Experince+=10
usr.Statup+=rand(10,15)
M.deathcheck()
usr.LevelUp()
usr.Statup()
In response to Kappa the Imp
In response to Strange Kidd
OH THANKS!!!!!!!!!!!!!!!!!!!!!!!!!!!
In response to Kappa the Imp
to me?
In response to Strange Kidd
Yes.
In response to Kappa the Imp
in yopur face KaeKwon :P! by the way i like that thing u poswted :P
In response to Strange Kidd
istype isn't a var it's a proc, maybe you should look it up sometime.
In response to Nadrew
sry im not perfect :P
In response to Strange Kidd
riiiiiiiiiiiiiiiiiiight that made no sensey you fecka!
- Rae
In response to RaeKwon
Neither did that. Sweet irony.