mob
proc
Death(mob/M)
if(!src)
return
if(!M)
return
if(src.npc)
src.health = src.mhealth
if(src.race == "Viazard"&&src.deathspecial == 1)
src.health=9500
src.Vichigo
return
if(src.ispedal)
src.health = src.mhealth
if(src.safe)
src.health = src.mhealth
if(src.zab)
src.health = src.mhealth
if(src.enemy)
M.hollowprotection = 0
mob
proc
Vichigo()
gar
if(src.health <= 10000&&src.race == "Vaizard")
src.deathspecial += 1
src.recovery()
src.overlays += 'Full inner.dmi'
src.attack = src.mattack * 3
src.defence = src.mdefence *1.5
src.rei = src.mrei * 1.5
src.random = rand(1,10)
if(src.random == 2||src.random == 3)
for(var/mob/M in oview(20))
step_towards(src,M)
sleep(1)
step_towards(src,M)
sleep(1)
step_towards(src,M)
sleep(1)
step_towards(src,M)
sleep(1)
step_towards(src,M)
sleep(1)
step_towards(src,M)
if(src.random == 5||src.random == 6)
if(src.dir == NORTH)
var/obj/yaiba/A = new /obj/yaiba/
var/obj/yaiba2/B = new /obj/yaiba2/
var/obj/yaiba1/C = new /obj/yaiba1/
A.icon = 'getsugablack.dmi'
B.icon = 'getsugablack.dmi'
C.icon = 'getsugablack.dmi'
A.loc = locate(src.x, src.y, src.z)
C.loc = locate(src.x+1, src.y, src.z)
B.loc = locate(src.x-1, src.y, src.z)
A.dir = NORTH
B.dir = NORTH
C.dir = NORTH
A.Gowner = src
B.Gowner = src
C.Gowner = src
walk(A,NORTH)
walk(C,NORTH)
walk(B,NORTH)
if(src.dir == SOUTH)
var/obj/yaiba/A = new /obj/yaiba/
var/obj/yaiba1/B = new /obj/yaiba1/
var/obj/yaiba2/C = new /obj/yaiba2/
A.icon = 'getsugablack.dmi'
B.icon = 'getsugablack.dmi'
C.icon = 'getsugablack.dmi'
A.loc = locate(src.x, src.y, src.z)
C.loc = locate(src.x+1, src.y, src.z)
B.loc = locate(src.x-1, src.y, src.z)
A.dir = SOUTH
B.dir = SOUTH
C.dir = SOUTH
A.Gowner = src
B.Gowner = src
C.Gowner = src
walk(A,SOUTH)
walk(C,SOUTH)
walk(B,SOUTH)
if(src.dir == WEST)
var/obj/yaiba1/A = new /obj/yaiba1/
var/obj/yaiba2/B = new /obj/yaiba2/
var/obj/yaiba/C = new /obj/yaiba/
A.icon = 'getsugablack.dmi'
B.icon = 'getsugablack.dmi'
C.icon = 'getsugablack.dmi'
A.loc = locate(src.x, src.y+1, src.z)
C.loc = locate(src.x, src.y, src.z)
B.loc = locate(src.x, src.y-1, src.z)
A.dir = WEST
B.dir = WEST
C.dir = WEST
A.Gowner = src
B.Gowner = src
C.Gowner = src
walk(A,WEST)
walk(C,WEST)
walk(B,WEST)
if(src.dir == EAST)
var/obj/yaiba1/A = new /obj/yaiba1/
var/obj/yaiba2/B = new /obj/yaiba2/
var/obj/yaiba/C = new /obj/yaiba/
A.icon = 'getsugablack.dmi'
B.icon = 'getsugablack.dmi'
C.icon = 'getsugablack.dmi'
A.loc = locate(src.x, src.y-1, src.z)
C.loc = locate(src.x, src.y, src.z)
B.loc = locate(src.x, src.y+1, src.z)
A.dir = EAST
B.dir = EAST
C.dir = EAST
A.Gowner = src
B.Gowner = src
C.Gowner = src
walk(A,EAST)
walk(C,EAST)
walk(B,EAST)
if(src.random == 7)
if(src.dir == NORTH)
var/obj/yaiba/A = new /obj/yaiba/
var/obj/yaiba2/B = new /obj/yaiba2/
var/obj/yaiba1/C = new /obj/yaiba1/
A.icon = 'getsugablack.dmi'
B.icon = 'getsugablack.dmi'
C.icon = 'getsugablack.dmi'
A.loc = locate(src.x, src.y, src.z)
C.loc = locate(src.x+1, src.y, src.z)
B.loc = locate(src.x-1, src.y, src.z)
A.dir = NORTH
B.dir = NORTH
C.dir = NORTH
A.Gowner = src
B.Gowner = src
C.Gowner = src
walk(A,NORTH)
walk(C,NORTH)
walk(B,NORTH)
if(src.dir == SOUTH)
var/obj/yaiba/A = new /obj/yaiba/
var/obj/yaiba1/B = new /obj/yaiba1/
var/obj/yaiba2/C = new /obj/yaiba2/
A.icon = 'getsugablack.dmi'
B.icon = 'getsugablack.dmi'
C.icon = 'getsugablack.dmi'
A.loc = locate(src.x, src.y, src.z)
C.loc = locate(src.x+1, src.y, src.z)
B.loc = locate(src.x-1, src.y, src.z)
A.dir = SOUTH
B.dir = SOUTH
C.dir = SOUTH
A.Gowner = src
B.Gowner = src
C.Gowner = src
walk(A,SOUTH)
walk(C,SOUTH)
walk(B,SOUTH)
if(src.dir == WEST)
var/obj/yaiba1/A = new /obj/yaiba1/
var/obj/yaiba2/B = new /obj/yaiba2/
var/obj/yaiba/C = new /obj/yaiba/
A.icon = 'getsugablack.dmi'
B.icon = 'getsugablack.dmi'
C.icon = 'getsugablack.dmi'
A.loc = locate(src.x, src.y+1, src.z)
C.loc = locate(src.x, src.y, src.z)
B.loc = locate(src.x, src.y-1, src.z)
A.dir = WEST
B.dir = WEST
C.dir = WEST
A.Gowner = src
B.Gowner = src
C.Gowner = src
walk(A,WEST)
walk(C,WEST)
walk(B,WEST)
if(src.dir == EAST)
var/obj/yaiba1/A = new /obj/yaiba1/
var/obj/yaiba2/B = new /obj/yaiba2/
var/obj/yaiba/C = new /obj/yaiba/
A.icon = 'getsugablack.dmi'
B.icon = 'getsugablack.dmi'
C.icon = 'getsugablack.dmi'
A.loc = locate(src.x, src.y-1, src.z)
C.loc = locate(src.x, src.y, src.z)
B.loc = locate(src.x, src.y+1, src.z)
A.dir = EAST
B.dir = EAST
C.dir = EAST
A.Gowner = src
B.Gowner = src
C.Gowner = src
walk(A,EAST)
walk(C,EAST)
walk(B,EAST)
for(var/mob/M in oview(50))
src.loc = M.loc
step(src,rand(1.10))
sleep(1)
step(M,M.dir)
sleep(1)
step(M,M.dir)
sleep(1)
src.dir = src.dir
if(src.dir == NORTH)
var/obj/yaiba/A = new /obj/yaiba/
var/obj/yaiba2/B = new /obj/yaiba2/
var/obj/yaiba1/C = new /obj/yaiba1/
A.icon = 'getsugablack.dmi'
B.icon = 'getsugablack.dmi'
C.icon = 'getsugablack.dmi'
A.loc = locate(src.x, src.y, src.z)
C.loc = locate(src.x+1, src.y, src.z)
B.loc = locate(src.x-1, src.y, src.z)
A.dir = NORTH
B.dir = NORTH
C.dir = NORTH
A.Gowner = src
B.Gowner = src
C.Gowner = src
walk(A,NORTH)
walk(C,NORTH)
walk(B,NORTH)
if(src.dir == SOUTH)
var/obj/yaiba/A = new /obj/yaiba/
var/obj/yaiba1/B = new /obj/yaiba1/
var/obj/yaiba2/C = new /obj/yaiba2/
A.icon = 'getsugablack.dmi'
B.icon = 'getsugablack.dmi'
C.icon = 'getsugablack.dmi'
A.loc = locate(src.x, src.y, src.z)
C.loc = locate(src.x+1, src.y, src.z)
B.loc = locate(src.x-1, src.y, src.z)
A.dir = SOUTH
B.dir = SOUTH
C.dir = SOUTH
A.Gowner = src
B.Gowner = src
C.Gowner = src
walk(A,SOUTH)
walk(C,SOUTH)
walk(B,SOUTH)
if(src.dir == WEST)
var/obj/yaiba1/A = new /obj/yaiba1/
var/obj/yaiba2/B = new /obj/yaiba2/
var/obj/yaiba/C = new /obj/yaiba/
A.icon = 'getsugablack.dmi'
B.icon = 'getsugablack.dmi'
C.icon = 'getsugablack.dmi'
A.loc = locate(src.x, src.y+1, src.z)
C.loc = locate(src.x, src.y, src.z)
B.loc = locate(src.x, src.y-1, src.z)
A.dir = WEST
B.dir = WEST
C.dir = WEST
A.Gowner = src
B.Gowner = src
C.Gowner = src
walk(A,WEST)
walk(C,WEST)
walk(B,WEST)
if(src.dir == EAST)
var/obj/yaiba1/A = new /obj/yaiba1/
var/obj/yaiba2/B = new /obj/yaiba2/
var/obj/yaiba/C = new /obj/yaiba/
A.icon = 'getsugablack.dmi'
B.icon = 'getsugablack.dmi'
C.icon = 'getsugablack.dmi'
A.loc = locate(src.x, src.y-1, src.z)
C.loc = locate(src.x, src.y, src.z)
B.loc = locate(src.x, src.y+1, src.z)
A.dir = EAST
B.dir = EAST
C.dir = EAST
A.Gowner = src
B.Gowner = src
C.Gowner = src
walk(A,EAST)
walk(C,EAST)
walk(B,EAST)
if(src.random == 8)
step(src,rand(1,10))
sleep(1)
step(src,rand(1,10))
sleep(1)
step(src,rand(1,10))
sleep(1)
step(src,rand(1,10))
if(src.random == 9)
for(var/mob/M in oview(100))
src.loc = M.loc
if(src.random == 10)
src.icon_state = "attack"
view(src) << "<b>I[src]: HAHAHAHAHAHAHA"
sleep(10)
for(var/mob/M in oview(2))
var/damage = rand(1000,100000)
M.health -= damage
view(src,8) << "<b><font color = red>[src] attacked [M] for [damage] damage!"
M.Death(src)
sleep(10)
src.icon_state = ""
spawn(5)
goto gar
Problem description:
Those two proc's should work right..but when a Vaizard dies it just kills them...when the other proc should take effect