ID:159116
 
Well i have this Blast technique for my DBZ Game but when it shoots, no damage is dealt to the monster
here it is

obj/blasts
icon = 'Beams.dmi'
Move()
if(src.Trail)
var/objpath="/obj/blasts/trails/[src.name]"
var/obj/blasts/NewObj=new objpath(src.loc)
NewObj.dir=src.dir
NewObj.Shooter=src.Shooter

..()
var
Damage
mob/Shooter
mob/ShooterKey
Trail
Tiles
Kamehameha
Trail=1
density = 1
icon_state="Kamehameha"
New(loc,mob/Owner)
src.dir=Owner.dir
src.Shooter=Owner
src.Damage=(rand(Owner,Owner.)+rand(1,usr.pl/900))*20

src.Move(loc)


walk(src,Owner.dir,2)

trails
icon = 'Trails.dmi'
Kamehameha/icon_state = "KamehamehaBeam"

obj/var/kamlearn = 0

obj/techniques
icon='Beams.dmi'


layer=1000001

Kamehameha
icon='Beams.dmi'
icon_state="Kamehameha"
Click()
// if(usr.jailed)
// alert("You cannot use this while in Jail. Behave!","Behave!")
// return
// if(usr.attacking||usr.blockin||usr.lifting||usr.meditating||usr.resting||usr.healing||usr.travelling)return




if(usr.dead){usr<<output("<font size=1><B><font color=red>Error: </b>Not while being dead.","Combat");return}
for(var/mob/M in oview(1))
if(istype(M,/mob/monsters))
if(usr.dir==NORTH&&M.y==usr.y+1&&M.x==usr.x)
usr<<output("<B><font size=1><font color=red>You must be at least 1 space away from [M] to use this.","Combat")
return
else if(usr.dir==SOUTH&&M.y==usr.y-1&&M.x==usr.x)
usr<<output("<B><font size=1><font color=red>You must be at least 1 space away from [M] to use this.","Combat")
return
else if(usr.dir==WEST&&M.x==usr.x-1&&M.y==usr.y)
usr<<output("<B><font size=1><font color=red>You must be at least 1 space away from [M] to use this.","Combat")
return
else if(usr.dir==EAST&&M.x==usr.x+1&&M.y==usr.y)
usr<<output("<B><font size=1><font color=red>You must be at least 1 space away from [M] to use this.","Combat")
return
// if(usr.flying)

// usr<<"<font color=white><b><Font size=1>You cannot use this while flying!"
if(usr.ki<=1)

usr<<output("<font color=white><b><Font size=1>You don't have enough KI to use this attack.\n\nKI Needed: 2\nYour KI: [usr.ki]","Combat")
else
usr.icon_state="Shoot 2"
sleep(3)
usr.icon_state="base"
usr.ki-=2
view()<<output("<font color=blue>[usr] <font color=red>shoots a <font color=yellow>Kamehameha<font color=red>!","Combat")

new/obj/blasts/Kamehameha(get_step(usr,usr.dir),usr)


Please help D:




















Honestly? That could be made better in a multitude of ways. Here's my little demo on Beam Skills: http://www.byond.com/developer/Spunky_Girl/BeamSkillDemo

Utilize the built-in proc, Bump() !
In response to Spunky_Girl
Lawl, Why thank you Spunky girl