obj
Jutsu
Sand_Wave
icon = 'SHOP.dmi'
icon_state = "sandwave"
jutsu = 1
Jlevel = 3
Click()
Sand_Wave()
verb
Sand_Wave()
var/objsteps = 9
var/damage = usr.chakrapower
if(Jlevel == 3)
chakracost = 10
if(usr.chakra >= chakracost)
usr.stunned = 1
flick("Handseals",usr)
usr.stunned = 0
var/obj/O =new/obj/sandwave/sandwavehead(usr.loc)
var/obj/f =new/obj/sandwave/sandwavehead(usr.loc)
var/obj/l =new/obj/sandwave/sandwavehead(usr.loc)
f:loc = get_step(O,NORTH)
l:loc = get_step(O,SOUTH)
usr.chakra -= src.chakracost
O:owner = usr
O:owners = usr
O:jdamage = damage
O:village = usr.village
O:objsteps = objsteps
O:dir = usr.dir
O:gosandwave(O)
f:owner = usr
f:owners = usr
f:jdamage = damage
f:village = usr.village
f:objsteps = objsteps
f:dir = usr.dir
f:gosandwave(f)
else
usr<< "you dont have enough chakra"
return
obj
sandwave
var/objsteps
var/village
var/owners
var/jdamage
sandwavehead
density = 1
icon = 'sandwave.dmi'
icon_state = "sandwavehead"
Bump(atom/a)
if(ismob(a))
src.density = 0
spawn(5)
src.density = 1
if(village == a:village)
return
if(owners == a)
return
a:stunned = 5
//a:stunned() edit
a:SandA = 1
a:myattacker = src.owner
src.jdamage -= a:defence
if(src.jdamage <=0)
src.jdamage = 0
a:health -= src.jdamage
a:DeathCheck()
if(isobj(a))
src.density = 0
spawn(5)
src.density = 1
obj
proc
gosandwave(var/obj/O)
set background = 1
src = O
step(src,src:dir)
step_size = 16
var/old_loc = src.loc
while(src)
if(src.loc != old_loc)
var/WB = new/obj/sand_wave/sandwaveback(src.loc)
old_loc = src.loc
WB:dir = src.dir
sleep(1)
if(src:objsteps <=0)
spawn(50)
del(src)
else
src:objsteps -=1
step(src,src.dir)
Sorry to be a bother but i cant figure this one out, i am trying to make a 32x96 sand wave projectile by piecing together 3 32x32 objects. I can spawn the objects where i want them HOWEVER, only one sand wave will move at a time, once it deletes itself the next one will start. the sand wave is a object that leaves a trail behind i didnt include its refrence. PLEASE HELP ME... i think it may be something with the gosandwave() proc but no changes i make fix it.
Thank you in advance
Deidarac4