ID:160937
 
How do I add it so the monsters can attack more than just a player
Show us your proc/code that handles the monsters's attack.
In response to Andre-g1
Bump(mob/M)
if(istype(M,/mob/player))



Attacks(M)
proc/Attacks(mob/M)
var/damage = rand(1,str)
M.HP-= damage

flick("atk",src)

M.Death()
In response to Manio
Place your code on the

 and
 tags


Now tell me, what do you want to happen when monsters attack doors ?
In response to Andre-g1
I want it so,the doors loose health and die..

Bump(mob/M)
if(istype(M,/mob/player))



Attacks(M)
proc/Attacks(mob/M)
var/damage = rand(1,str)
M.HP-= damage

flick("atk",src)

M.Death()
In response to Manio
Bump(mob/M)
if(istype(M,/mob/player)||istype(M,/obj/door))
Attacks(M)
proc/Attacks(atom/movable/M)
var/damage = rand(1,src.str)
M.HP-= damage

flick("atk",src)

M.Death()


Mess with it to your needs, I'm pretty sure you don't want a door to die so you have to either:

a) Fix your Death()

b) Make a separate attack proc just for doors.
In response to Andre-g1
It's like REO2 where the zombies can break the doors,which removes them.

It takes a couple hits to kill the doors..