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
ID:266473
![]() Mar 17 2002, 3:48 pm
|
|
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 |
So this is my code.
mob/verb/Attack(mob/M) 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 |
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() |
http://www.byond.com/hub/hub.cgi?hub=RaeKwon/RaeKwonDemo
that has everything youll need |
http://www.byond.com/hub/ hub.cgi?qd=hubIndex;hub=527;channel=620
go there