ID:139768
 
Take a look at this code please and tell me whats wrong? I get error:
attack.dm:37:error: Super_Slash: undefined proc

Code:
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)
usr << "[M] easily dodges your attack!"
M << "You easily dodge [usr]'s attack."
else
M.hp -= damage
view() << "[usr] super slashes [M] for [damage] HP!"
M:deathcheck()


Problem description:

mob
attacks
verb
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)
usr << "[M] easily dodges your attack!"
M << "You easily dodge [usr]'s attack."
else
M.hp -= damage
view() << "[usr] super slashes [M] for [damage] HP!"
M:deathcheck()


Use verb not verbs.
In response to RJTaylor
lol.
In response to RJTaylor
Why do you correct that but you erroneously forgot to take out the : operator and replace it with a .?
In response to Moonlight Memento
Moonlight Memento wrote:
Why do you correct that but you erroneously forgot to take out the : operator and replace it with a .?

He created a thread based on the undefined proc error he was receiving. I looked over the error and immediately saw that he was using verbs to define a verb. I quickly fixed the snippet and, perhaps mistakenly, ignored the rest of his snippet.

But feel free to correct any mistakes within Tajiri's code yourself. Preaching to me about it obviously accomplishes nothing. Why don't you explain to Tajiri what else is wrong instead of creating a non-productive off topic reply to me?