ID:141160
 
Code:
mob.dm:11:error:m.Deathcheck:undefined proc


Problem description:


Can someone tell me how to fix this?

You didn't define "m" as a mob, or you made a typo (caps?) in your Deathcheck() name.
In response to Mysame
how do i define "m" as mob?

I just started coding about last week, sorry. >.>
In response to Micdogmic
var/mob/M

Same for any other parent type.

var/obj/o
var/turf/t

(Naturally, all of these are just examples. "M","o","t" could be anything. And you could specify the directory even more;

ex: var/mob/player/classes/warrior/w )
In response to Mysame
var/mob/M

mob
icon = 'person.dmi'
var
hp = 10


mob/verb/Attack()
for(var/mob/m in get_step(usr,usr.dir))//this will do all the mob's infront of you when you attack
m.hp -= rand(1,10)//this will take away a random number between 1 and 10.. if you was to do rand(10) it would do 0 and 10...
m.Deathcheck()






Thats what i have. Why wont it work?
In response to Micdogmic
Okay then, you clearly just didn't define Deathcheck as a mob proc.. OR you didn't define Deathcheck at all..

mob/proc/Deathcheck()