mob
verb
Exploding_Tag(mob/M as mob in oview(2))
set category = "Spells"
var/obj/ExplodingTag/Tag1=new/obj/ExplodingTag/Tag1(locate(usr.x,usr.y,usr.z))
sleep(10)
del(Tag1)
var/obj/ExplodingTag/ExpTag/A=new/obj/ExplodingTag/ExpTag(locate(usr.x-1,usr.y,usr.z))
var/obj/ExplodingTag/ExpTag/B=new/obj/ExplodingTag/ExpTag(locate(usr.x-2,usr.y,usr.z))
var/obj/ExplodingTag/ExpTag/C=new/obj/ExplodingTag/ExpTag(locate(usr.x,usr.y-1,usr.z))
var/obj/ExplodingTag/ExpTag/D=new/obj/ExplodingTag/ExpTag(locate(usr.x,usr.y-2,usr.z))
var/obj/ExplodingTag/ExpTag/E=new/obj/ExplodingTag/ExpTag(locate(usr.x-1,usr.y-1,usr.z))
var/obj/ExplodingTag/ExpTag/F=new/obj/ExplodingTag/ExpTag(locate(usr.x-2,usr.y-1,usr.z))
var/obj/ExplodingTag/ExpTag/G=new/obj/ExplodingTag/ExpTag(locate(usr.x-1,usr.y-2,usr.z))
var/obj/ExplodingTag/ExpTag/H=new/obj/ExplodingTag/ExpTag(locate(usr.x-2,usr.y-2,usr.z))
var/obj/ExplodingTag/ExpTag/I=new/obj/ExplodingTag/ExpTag(locate(usr.x+1,usr.y,usr.z))
var/obj/ExplodingTag/ExpTag/J=new/obj/ExplodingTag/ExpTag(locate(usr.x+2,usr.y,usr.z))
var/obj/ExplodingTag/ExpTag/K=new/obj/ExplodingTag/ExpTag(locate(usr.x,usr.y+1,usr.z))
var/obj/ExplodingTag/ExpTag/L=new/obj/ExplodingTag/ExpTag(locate(usr.x,usr.y+2,usr.z))
var/obj/ExplodingTag/ExpTag/Z=new/obj/ExplodingTag/ExpTag(locate(usr.x+1,usr.y+1,usr.z))
var/obj/ExplodingTag/ExpTag/N=new/obj/ExplodingTag/ExpTag(locate(usr.x+2,usr.y+1,usr.z))
var/obj/ExplodingTag/ExpTag/O=new/obj/ExplodingTag/ExpTag(locate(usr.x+1,usr.y+2,usr.z))
var/obj/ExplodingTag/ExpTag/P=new/obj/ExplodingTag/ExpTag(locate(usr.x+2,usr.y+2,usr.z))
var/obj/ExplodingTag/ExpTag/Q=new/obj/ExplodingTag/ExpTag(locate(usr.x-1,usr.y+1,usr.z))
var/obj/ExplodingTag/ExpTag/R=new/obj/ExplodingTag/ExpTag(locate(usr.x-1,usr.y+2,usr.z))
var/obj/ExplodingTag/ExpTag/S=new/obj/ExplodingTag/ExpTag(locate(usr.x-2,usr.y+1,usr.z))
var/obj/ExplodingTag/ExpTag/T=new/obj/ExplodingTag/ExpTag(locate(usr.x-2,usr.y+2,usr.z))
var/obj/ExplodingTag/ExpTag/U=new/obj/ExplodingTag/ExpTag(locate(usr.x+1,usr.y-1,usr.z))
var/obj/ExplodingTag/ExpTag/V=new/obj/ExplodingTag/ExpTag(locate(usr.x+2,usr.y-1,usr.z))
var/obj/ExplodingTag/ExpTag/W=new/obj/ExplodingTag/ExpTag(locate(usr.x+1,usr.y-2,usr.z))
var/obj/ExplodingTag/ExpTag/X=new/obj/ExplodingTag/ExpTag(locate(usr.x+2,usr.y-2,usr.z))
var/damage = mpower * rand(1,3)
if(M.x == usr.x-1 || M.y == usr.y || M.z == usr.z)
M.health -= damage
view() << "[M] was just hit for [damage] by [usr]"
M.deathcheck()
if(M.x == usr.x-2 || M.y == usr.y || M.z == usr.z)
M.health -= damage
view() << "[M] was just hit for [damage] by [usr]"
M.deathcheck()
if(M.x == usr.x || M.y == usr.y-1 || M.z == usr.z)
M.health -= damage
view() << "[M] was just hit for [damage] by [usr]"
M.deathcheck()
if(M.x == usr.x || M.y == usr.y-2 || M.z == usr.z)
M.health -= damage
view() << "[M] was just hit for [damage] by [usr]"
M.deathcheck()
if(M.x == usr.x-1 || M.y == usr.y-1 || M.z == usr.z)
M.health -= damage
view() << "[M] was just hit for [damage] by [usr]"
M.deathcheck()
if(M.x == usr.x-1 || M.y == usr.y-2 || M.z == usr.z)
M.health -= damage
view() << "[M] was just hit for [damage] by [usr]"
M.deathcheck()
if(M.x == usr.x-2 || M.y == usr.y-1 || M.z == usr.z)
M.health -= damage
view() << "[M] was just hit for [damage] by [usr]"
M.deathcheck()
if(M.x == usr.x-2 || M.y == usr.y-2 || M.z == usr.z)
M.health -= damage
view() << "[M] was just hit for [damage] by [usr]"
M.deathcheck()
if(M.x == usr.x+1 || M.y == usr.y || M.z == usr.z)
M.health -= damage
view() << "[M] was just hit for [damage] by [usr]"
M.deathcheck()
if(M.x == usr.x+2 || M.y == usr.y || M.z == usr.z)
M.health -= damage
view() << "[M] was just hit for [damage] by [usr]"
M.deathcheck()
if(M.x == usr.x-1 || M.y == usr.y || M.z == usr.z)
M.health -= damage
view() << "[M] was just hit for [damage] by [usr]"
M.deathcheck()
if(M.x == usr.x || M.y == usr.y+1 || M.z == usr.z)
M.health -= damage
view() << "[M] was just hit for [damage] by [usr]"
M.deathcheck()
if(M.x == usr.x || M.y == usr.y+2 || M.z == usr.z)
M.health -= damage
view() << "[M] was just hit for [damage] by [usr]"
M.deathcheck()
if(M.x == usr.x+1 || M.y == usr.y || M.z == usr.z)
M.health -= damage
view() << "[M] was just hit for [damage] by [usr]"
M.deathcheck()
if(M.x == usr.x+2 || M.y == usr.y || M.z == usr.z)
M.health -= damage
view() << "[M] was just hit for [damage] by [usr]"
M.deathcheck()
if(M.x == usr.x+1 || M.y == usr.y+1 || M.z == usr.z)
M.health -= damage
view() << "[M] was just hit for [damage] by [usr]"
M.deathcheck()
if(M.x == usr.x+1 || M.y == usr.y+2 || M.z == usr.z)
M.health -= damage
view() << "[M] was just hit for [damage] by [usr]"
M.deathcheck()
if(M.x == usr.x+2 || M.y == usr.y+1 || M.z == usr.z)
M.health -= damage
view() << "[M] was just hit for [damage] by [usr]"
M.deathcheck()
if(M.x == usr.x+2 || M.y == usr.y+2 || M.z == usr.z)
M.health -= damage
view() << "[M] was just hit for [damage] by [usr]"
M.deathcheck()
if(M.x == usr.x-1 || M.y == usr.y+1 || M.z == usr.z)
M.health -= damage
view() << "[M] was just hit for [damage] by [usr]"
M.deathcheck()
if(M.x == usr.x-1 || M.y == usr.y+2 || M.z == usr.z)
M.health -= damage
view() << "[M] was just hit for [damage] by [usr]"
M.deathcheck()
if(M.x == usr.x-2 || M.y == usr.y+1 || M.z == usr.z)
M.health -= damage
view() << "[M] was just hit for [damage] by [usr]"
M.deathcheck()
if(M.x == usr.x-2 || M.y == usr.y+2 || M.z == usr.z)
M.health -= damage
view() << "[M] was just hit for [damage] by [usr]"
M.deathcheck()
if(M.x == usr.x+1 || M.y == usr.y-1 || M.z == usr.z)
M.health -= damage
view() << "[M] was just hit for [damage] by [usr]"
M.deathcheck()
if(M.x == usr.x+2 || M.y == usr.y-1 || M.z == usr.z)
M.health -= damage
view() << "[M] was just hit for [damage] by [usr]"
M.deathcheck()
if(M.x == usr.x+1 || M.y == usr.y-2 || M.z == usr.z)
M.health -= damage
view() << "[M] was just hit for [damage] by [usr]"
M.deathcheck()
if(M.x == usr.x+2 || M.y == usr.y-2 || M.z == usr.z)
M.health -= damage
view() << "[M] was just hit for [damage] by [usr]"
M.deathcheck()
sleep(10)
del(A)
del(B)
del(C)
del(D)
del(E)
del(F)
del(G)
del(H)
del(I)
del(J)
del(K)
del(L)
del(Z)
del(N)
del(O)
del(P)
del(Q)
del(R)
del(S)
del(T)
del(U)
del(V)
del(W)
del(X)
Problem description:
When i use the tag it attacks but attacks the same target about 10 times, i know i'm using the || operator wrong but i dont remember what to put instead since i just started coding for the first time in 3 years.