ID:264654
 
Code:
obj/Skills/SuperKamehamehaStart
icon='SuperKamehameha.dmi'
icon_state="start"
name="Super Kamehameha"
density=1
var/mob/Owner
var/damage
New()
spawn(100) del src
Bump(atom/M)
if(istype(M,/mob/))
if(src.Owner)
//Here the Fucking Damage System
return

obj/Skills/SuperKamehamehaMid
icon='SuperKamehameha.dmi'
icon_state="mid"
name="Super Kamehameha"
density=1
var/mob/Owner
var/damage
New()
spawn(100) del src
Move()
var/obj/Skills/SuperKamehamehaMid/D=new(src.dir)
D.dir = src.dir
spawn(100) del D
..()
Bump(atom/M)
if(istype(M,/mob/))
if(src.Owner)
//Here i need add the Damage and blablabla
return

obj/Skills/SuperKamehamehaHead
icon='SuperKamehameha.dmi'
icon_state="head"
name="Super Kamehameha"
var/mob/Owner
var/damage
density=1
New()
spawn(100) del src
Bump(atom/M)
if(istype(M,/mob/))
if(src.Owner)
//Well here i need add the Damage and blablabla
return



mob/verb/Kamehameha()
sleep(1)
var/obj/Skills/SuperKamehamehaHead/A=new(src.loc)
A.Owner=usr
walk(A,src.dir)
sleep(1)
var/obj/Skills/SuperKamehamehaMid/B=new(src.loc)
B.Owner=usr
walk(B,src.dir)
sleep(1)
var/obj/Skills/SuperKamehamehaStart/C=new(src.loc)
C.Owner=usr
walk(C,src.dir)

var/mob/Owner


Problem description: Well, sometimes it works correct. but sometimes this happens:
Problem 1
Problem 2
Problem 3
Problem 4

-Gohan


Maybe timing problem? Try
mob/verb/Kamehameha()
sleep(1)
var/obj/Skills/SuperKamehamehaHead/A=new(loc)
A.Owner=src
step(A,dir)
sleep(1)
var/obj/Skills/SuperKamehamehaMid/B=new(loc)
B.Owner=src
step(B,dir)
sleep(1)
var/obj/Skills/SuperKamehamehaStart/C=new(loc)
C.Owner=src
step(C,dir)
sleep(1)
walk(A,dir)
walk(B,dir)
walk(C,dir)
In response to Ripiz
Nothing. it don't work
Don't put .bmp files on the internet.

What the hell is wrong with you?
In response to Garthor
Lol, they are jpeg
In response to Gohan Games
No, they are .bmp files that have been RENAMED to .jpeg, which is really even worse.

A 1280x1024 jpeg is NOT 3.8 goddamn megabytes. That first image, when I actually convert it to a jpeg, is 124kb at maximum quality.
In response to Gohan Games
They're BMP.

And why not let the head move, and on Move() let it create a tail-end, and mid-sections in between.
In response to Mysame
Well, i try all what u said but nothing and i remade the code...

obj/Skills/Head
icon='SuperKamehameha.dmi'
icon_state = "head"
density=1
layer=9999
var/mob/Owner
//HERE START NEW HEAD
New()
..()
walk(src,src.dir)
spawn(30) del src
//HERE STARTS HEAD MOVE
Move()
..()
var/turf/T1 = get_step(src,src.dir)
var/turf/T2 = get_step(src,turn(src.dir,180))
if(T2) new/obj/Skills/Tail(T2,Owner,dir)
sleep(30)
del T1
//HERE STATS BUMP HEAD
Bump(atom/A)
if(istype(A,/mob))
var/mob/M=A
var/damage=round(Owner.ki-M.kidef)
M.powerlevel-=damage
M.DamageShow(damage,200,0,0)
M.DeathCheck(src.Owner)
Owner.ki=0



obj/Skills/Tail
icon='SuperKamehameha.dmi'
icon_state = "mid"
density=1
layer=4
var/mob/Owner
//HERE STARTS NEW OF TAIL
New()
..()
walk(src,src.dir)
spawn(30) del src



obj/Skills/Start
icon='SuperKamehameha.dmi'
icon_state = "start"
density=1
layer=999999999999
var/mob/Owner
//HERE START NEW OF START
New()
..()
spawn(30) del src

//HERE START BUMP OF START
Bump(atom/A)
if(istype(A,/mob))
var/mob/M=A
var/damage=round(Owner.ki-M.kidef)
M.powerlevel-=damage
M.DamageShow(damage,200,0,0)
M.DeathCheck(src.Owner)


mob
verb/Kamehameha()
set category = "Skills"
if(usr.ki<=0)
usr<<"You don't have enough ki"
return
var/obj/Skills/Start/B=new(loc)
var/obj/Skills/Head/A=new(loc)
sleep(1)
A.Owner=src
B.Owner=src
sleep(30)
del A


That Problem is Fixed. but now the attack only goes to the South, if i go to North East and That. it goes to South...
In response to Gohan Games
You didn't make it go the Owner's dir.