mob
Skelleton
name = "Weak Skelleton"
icon = 'Enemys.dmi'
icon_state = "skelleton"
Health = 9999
Strength = 300
var/mob/m
New()
. = ..()
spawn()
CreateName()
Wander()
proc/Wander()
while(src)
var/Found = FALSE
for(var/mob/m in oview(8))
step_towards(src,m)
Found = TRUE
break
if(Found != TRUE)
sleep(10)
sleep(5)
Bump(mob/m)
if(istype(m,/mob/))
if(m.player == 1)
Fight(m)
else
return
proc/Fight(mob/m)
var/damage = src.Strength
m.Health -= damage
m << "[src] attacks you for [damage] damage!!"
src<<"You attack [m] for [damage] damage!!"
m.death_check(src,m)
Problem description:
How do i stop these things going to attack each other ???
When you create a variable, be sure to do (Mob Variable-->) mob/var/variablenamehere=0 if you don't want every mob to have the variable flicked "on".
I'll make up something without the variable you could also use, "client".