mob
proc
deathcheck()
if(src.hp <= 0)
view() << "[src] dies!"
src.hp = 10
src.Move(locate(1,1,1))
usr.def += 1
usr.str += 2
this is what i have so far...
and it is giving me an error saying:
error:bad argument definition
ID:148060
Jul 25 2003, 8:56 am
|
|
Jul 25 2003, 8:58 am
|
|
Well, try indenting everything after deathcheck() that would help.
|
In response to Dragon of Ice
|
|
k 1 more problem
mob/attacks verbs Super_Slash(mob/M as mob in oview(2)) // can attack someone TWO spaces away var/damage = usr.str - M.def + 5 if(damage <= 0) view() << "[M] easily dodges [usr]'s special attack!" M << "You easily dodge attack." else M.hp _= damage view () << "[usr] uses Super Slash to take out [damage] of [M]'s health." M:deathcheck() usr.verbs += /mobs/attacks/verbs/Super_Slash is what i got and i keep getting an error for indentation for else |