X(mob/M in oview(9))
set hidden = 1
if(!M) return
if(M.dead == 0 && usr.dead == 0 && usr.attacking2 == 0)
if(usr.setskill == "Powerstomp")
var/damage2 = round(max(15, (usr.strength + rand(0,usr.qi)) - (M.defense - rand(0,usr.qi))))
usr.attacking2 = 1
M.hp -= damage2
var/obj/e=new/obj/stompnorth(usr.x,usr.y+1,usr.z)
var/obj/f=new/obj/stompsouth(usr.x,usr.y-1,usr.z)
var/obj/g=new/obj/stompeast(usr.x+1,usr.y,usr.z)
var/obj/h=new/obj/stompwest(usr.x-1,usr.y,usr.z)
usr<<"<font size=1><font color = orange><b>You attack [M] for [damage2] damage.</b></font>"
M<<"<font size=1><font color = orange><b>[usr] attacks you for [damage2] damage.</b></font>"
spawn(10)
del(e)
del(f)
del(g)
del(h)
if(M.player == 1)
deathcheck(M)
if(M.player == 0)
deathcheckbot(M)
levelcheck()
spawn(100)
usr.attacking2 = 0
Problem description:
I tried to make it so the objects form around the usr but it won't form. The damage is still done though. And is it possible to attack all the mob in oview() ?
E.g;
Hope that helps.