mob
verb
Punch(mob/M as mob in get_step(src,usr.dir))
set category = "Techniques"
if(src.attacking == 0)
var/colour = "yellow"
var/damage = rand(1,3)
M.health -= damage
src.attacking = 1
if(prob(10))
damage *= rand(10,25)
colour = "red"
Damage(M,damage,colour)
M.health -= damage
M:DeathCheck()
health_bar.Update()
sleep(5)
src.attacking = 0
Problem description:
How do i make it so that when i kill a mob it returns to their original spawn point and not the same as the players respawn point ( 1,1,1 )?
Just define a var, assign a number to it and locate them to it when they're killed.
Also, never use a colon : in a procedure. Use a period! Hope this helped.