obj
spike
icon = 'rockspike.dmi'
icon_state = ""
density = 1
New()
spawn(100)
del src
Bump(A)
if(ismob(A))
var/mob/M = A
if(M == src.Gowner)
del src
return
if(M.ispedal)
del src
return
var/mob/O = src.Gowner
var/damage = O.attack * 2
if(damage < 1)
damage = 1
M.health -= damage
if(M.enemy)
O.hollowprotection = 1
M.frozen = 1
view(O,8) << "<b><font color = red>[O] hit [M] with his Spikes for [damage] damage!"
M.Death(O)
sleep(90)
M.frozen = 0
del(src)
if(istype(A,/turf/))
var/turf/T = A
if(T.density)
del(src)
if(istype(A,/obj/))
del(src)
mob
Fighting
verb
Throw_Spikes()
set name = "Throw Spikes"
set category = "Fighting"
if(usr.safe)
usr << "<b>You are in safe zone!"
return
if(usr.rei <= 2000)
usr << "<b>Your reiatsu is too low!"
return
if(!usr.firing)
usr.rei -= 2000
usr.firing = 1
if(usr.dir == NORTH)
var/obj/stone/A = new /obj/spike/
var/obj/stone2/B = new /obj/spike2/
var/obj/stone1/C = new /obj/spike1/
A.loc = locate(usr.x, usr.y, usr.z)
C.loc = locate(usr.x+1, usr.y, usr.z)
B.loc = locate(usr.x-1, usr.y, usr.z)
A.dir = NORTH
B.dir = NORTH
C.dir = NORTH
A.Gowner = usr
B.Gowner = usr
C.Gowner = usr
walk(A,NORTH)
walk(C,NORTH)
walk(B,NORTH)
if(usr.dir == SOUTH)
var/obj/stone/A = new /obj/spike/
var/obj/stone1/B = new /obj/spike1/
var/obj/stone2/C = new /obj/spike2/
A.loc = locate(usr.x, usr.y, usr.z)
C.loc = locate(usr.x+1, usr.y, usr.z)
B.loc = locate(usr.x-1, usr.y, usr.z)
A.dir = SOUTH
B.dir = SOUTH
C.dir = SOUTH
A.Gowner = usr
B.Gowner = usr
C.Gowner = usr
walk(A,SOUTH)
walk(C,SOUTH)
walk(B,SOUTH)
if(usr.dir == WEST)
var/obj/stone1/A = new /obj/spike1/
var/obj/stone2/B = new /obj/spike2/
var/obj/stone/C = new /obj/spike/
A.loc = locate(usr.x, usr.y+1, usr.z)
C.loc = locate(usr.x, usr.y, usr.z)
B.loc = locate(usr.x, usr.y-1, usr.z)
A.dir = WEST
B.dir = WEST
C.dir = WEST
A.Gowner = usr
B.Gowner = usr
C.Gowner = usr
walk(A,WEST)
walk(C,WEST)
walk(B,WEST)
if(usr.dir == EAST)
var/obj/stone1/A = new /obj/spike1/
var/obj/stone2/B = new /obj/spike2/
var/obj/stone/C = new /obj/spike/
A.loc = locate(usr.x, usr.y-1, usr.z)
C.loc = locate(usr.x, usr.y, usr.z)
B.loc = locate(usr.x, usr.y+1, usr.z)
A.dir = EAST
B.dir = EAST
C.dir = EAST
A.Gowner = usr
B.Gowner = usr
C.Gowner = usr
walk(A,EAST)
walk(C,EAST)
walk(B,EAST)
sleep(60)
usr.firing = 0
Problem description:
Ok when it says stone 1 and stone 2 those codes are the exact same as the normal stone just different icons technically but anywho i have 2 codes like this, this one and just a tiny different one but it gives me 114 errors ranging from undefined type to variable defined but not used any clues to where i may of messed up? I tried looking for messed up indentention but i couldnt find anything...