[Info]
localcoord = 320,240
name = "TenshinhanZ2 Ending"
author = "EthanTheHuman"
versiondate = 02-26-2019
mugenversion = 1.0

[SceneDef]
spr = 	Ending.sff       ;Filename of sprite file to use
;font0 =	Dialogue.def     ;Filename of a font file to use for the text
font0 =	../../../data/Endings/Dialogue.def     ;Filename of a font file to use for the text
snd = ../../../data/Endings/Endings.snd
;snd = Endings.snd
startscene = 0

[Scene 0] ;Dragon balls glowing
; Scene parameters
clearcolor = 0,0,0
fadein.time = 100
bg.name = GlowingBG
; Music
; Sounds
Sound0.value = 1,0
Sound0.starttime = 0
Sound1.value = 1,0
Sound1.starttime = 240
Sound2.value = 2,0
Sound2.starttime = 500
Sound3.value = 5,0
Sound3.starttime = 750
; Layers
layerall.pos = 160,0 ;Default position for all layers
Layer0.anim = 0
Layer1.anim = 1
Layer2.anim = 2
Layer3.anim = 3
Layer4.anim = 4
Layer4.starttime = 500
; Total time
end.time = 950

[GlowingBGDef]

[GlowingBG Blank]
type = normal
start = -9999,-9999
spriteno = 0,0
mask = 1

[Begin Action 0] ;Ground glowing
4,0, 0,0, 10
4,1, 0,0, 7
4,2, 0,0, 7
4,3, 0,0, 7
4,4, 0,0, 7
4,5, 0,0, 15
4,4, 0,0, 7
4,3, 0,0, 7
4,2, 0,0, 7
4,1, 0,0, 7

[Begin Action 1] ;Back row
1,0, 0,0, 10
1,1, 0,0, 7
1,2, 0,0, 7
1,3, 0,0, 7
1,4, 0,0, 7
1,5, 0,0, 15
1,4, 0,0, 7
1,3, 0,0, 7
1,2, 0,0, 7
1,1, 0,0, 7

[Begin Action 2] ;Mid row
2,0, 0,0, 10
2,1, 0,0, 7
2,2, 0,0, 7
2,3, 0,0, 7
2,4, 0,0, 7
2,5, 0,0, 15
2,4, 0,0, 7
2,3, 0,0, 7
2,2, 0,0, 7
2,1, 0,0, 7

[Begin Action 3] ;Back row
3,0, 0,0, 10
3,1, 0,0, 7
3,2, 0,0, 7
3,3, 0,0, 7
3,4, 0,0, 7
3,5, 0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,64, 0,0, 2
5,65, 0,0, 2
5,66, 0,0, 2
5,67, 0,0, 2
5,68, 0,0, 2
5,69, 0,0, 2
5,70, 0,0, -1

[Scene 1] ;Shenron talking
; Scene parameters
clearcolor = 0,0,0
fadein.time = 100
fadein.col = 255,255,255
fadeout.time = 100
bg.name = BoomBG
; Music
; Sounds
Sound0.value = 5,1
Sound0.starttime = 200
; Layers
layerall.pos = 160,0 ;Default position for all layers
; Total time
end.time = 600

[BoomBGDef]

[BoomBG Starry Night]
type = normal
start = 0,0
spriteno = 100,0
mask = 1

[BoomBG Shenron Back]
type = normal
start = 0,0
spriteno = 6,1
mask = 1
sin.y = 1,500,0.5

[BoomBG Shenron Mid]
type = normal
start = 0,0
spriteno = 6,0
mask = 1
sin.x = -1, 200, 0 
sin.y = 5,600,0.25

[BoomBG Shenron Front]
type = normal
start = 0,0
spriteno = 6,2
mask = 1
sin.x = -2, 256, 0 
sin.y = 7,700,0

[BoomBG Shenron Head]
type  = anim
actionno = 6
start = 0, 0
mask = 1
sin.x = -2.5, 256, 0 
sin.y = 10,700,0

[BoomBG Shenron Mouths]
type  = anim
actionno = 7
start = 0, 0
mask = 1
sin.x = -2.5, 256, 0 
sin.y = 10,700,0

[Begin Action 6] ;ShenronHead
7,0, 0,0, 5
7,1, 0,0, 5
7,2, 0,0, 5
7,3, 0,0, 5

[Begin Action 7] ;ShenronMouths
8,0, 0,0, 200
;Begin Loop I'll
8,1, 0,0, 4
8,2, 0,0, 4
8,3, 0,0, 4
8,4, 0,0, 4
8,3, 0,0, 3
8,2, 0,0, 3
8,1, 0,0, 3
;End Loop
;Begin Loop Give
8,2, 0,0, 4
8,3, 0,0, 4
8,4, 0,0, 4
8,3, 0,0, 3
8,2, 0,0, 3
8,1, 0,0, 3
8,0, 0,0, 3
;End Loop
;Begin Loop You
8,1, 0,0, 3
8,2, 0,0, 3
8,3, 0,0, 3
8,4, 0,0, 3
8,5, 0,0, 6
8,6, 0,0, 3
8,5, 0,0, 3
8,4, 0,0, 3
8,3, 0,0, 2
8,2, 0,0, 2
8,1, 0,0, 2
;End Loop
;Begin Loop One
8,1, 0,0, 3
8,2, 0,0, 3
8,3, 0,0, 3
8,4, 0,0, 3
8,5, 0,0, 3
8,4, 0,0, 2
8,3, 0,0, 2
8,2, 0,0, 2
8,1, 0,0, 2
8,0, 0,0, 2
;End Loop
;Begin Loop Wish
8,1, 0,0, 3
8,2, 0,0, 3
8,3, 0,0, 3
8,4, 0,0, 3
8,5, 0,0, 5
8,4, 0,0, 2
8,3, 0,0, 2
8,2, 0,0, 2
8,1, 0,0, 2
8,0, 0,0, 2
;End Loop
;Begin Loop Pause
8,0, 0,0, 30
;End Loop
;Begin Loop Ask
8,1, 0,0, 3
8,2, 0,0, 3
8,3, 0,0, 3
8,4, 0,0, 2
8,3, 0,0, 2
8,2, 0,0, 2
8,1, 0,0, 2
8,0, 0,0, 2
;End Loop
;Begin Loop For
8,1, 0,0, 3
8,2, 0,0, 3
8,3, 0,0, 3
8,4, 0,0, 5
8,3, 0,0, 2
8,2, 0,0, 2
8,1, 0,0, 2
8,0, 0,0, 2
;End Loop
;Begin Loop Anything
8,1, 0,0, 3
8,2, 0,0, 3
8,3, 0,0, 3
8,4, 0,0, 3
8,5, 0,0, 3
8,6, 0,0, 3
8,5, 0,0, 2
8,4, 0,0, 2
8,3, 0,0, 2
8,2, 0,0, 2
8,3, 0,0, 3
8,4, 0,0, 3
8,5, 0,0, 5
8,4, 0,0, 2
8,3, 0,0, 2
8,2, 0,0, 2
8,1, 0,0, 2
8,2, 0,0, 3
8,3, 0,0, 3
8,4, 0,0, 3
8,5, 0,0, 4
8,4, 0,0, 2
8,3, 0,0, 2
8,2, 0,0, 2
8,1, 0,0, 2
8,1, 0,0, -1
;End Loop



[Scene 2] ;Post Wish
clearcolor = 0,0,0
fadein.time = 100
fadeout.time = 10
bgm = ../../../data/Endings/Music/Wish.mp3
bg.name = PostWishBG
layerall.pos = 0,0 ;Default position for all layers
;------------------------------------------------------------
layer1.text = "Shenron... Thank you for having us."
layer1.font = 0, 0, 1, 212, 211, 170	;Use font0
layer1.offset = 10,185
layer1.textdelay = 3
layer1.starttime = 100
layer1.endtime = 600
;------------------------------------------------------------
layer2.text = "If you would, my little friend here"
layer2.font = 0, 0, 1, 212, 211, 170	;Use font0
layer2.offset = 10,205
layer2.textdelay = 3
layer2.starttime = 250
layer2.endtime = 600
;------------------------------------------------------------
layer3.text = "has a request. Go ahead, Chiaotzu."
layer3.font = 0, 0, 1, 212, 211, 170	;Use font0
layer3.offset = 10,225
layer3.textdelay = 3
layer3.starttime = 360 ;400
layer3.endtime = 600
;------------------------------------------------------------
layer4.text = "Mr. Tenshinhan... I want a beautiful"
layer4.font = 0, 0, 1, 212, 211, 170	;Use font0
layer4.offset = 10,185
layer4.textdelay = 3
layer4.starttime = 660
layer4.endtime = 1130 ;1160
;------------------------------------------------------------
layer5.text = "head of hair... just like Yamcha!"
layer5.font = 0, 0, 1, 212, 211, 170	;Use font0
layer5.offset = 10,205
layer5.textdelay = 3
layer5.starttime = 773 ;810
layer5.endtime = 1130 ;1160
;------------------------------------------------------------
layer6.text = "I wish for Yamcha's hair!"
layer6.font = 0, 0, 1, 212, 211, 170	;Use font0
layer6.offset = 10,225
layer6.textdelay = 3
layer6.starttime = 960
layer6.endtime = 1130 ;1160
;------------------------------------------------------------
layer7.text = "Wait, don't phrase it like that..!"
layer7.font = 0, 0, 1, 212, 211, 170	;Use font0
layer7.offset = 10,185
layer7.textdelay = 2
layer7.starttime = 1130 ;1160
;------------------------------------------------------------
end.time = 1230 ;1260         ;600 ticks = 10 seconds

[PostWishBGDef]

[PostWishBG Sky]
type = normal
spriteno = 100,0
mask = 1

[PostWishBG Aura]
type = normal
spriteno = 100,1
mask = 1

[PostWishBG Tien]
type = anim
actionno = 1020
start = 0, 20
mask = 1

[Begin Action 1020]
102,0, 0,0, 600
;move right for 100 frames
102,0, 1,0, 6
102,0, 2,0, 6
102,0, 3,0, 6
102,0, 4,0, 6
102,0, 5,0, 6
102,0, 6,0, 6
102,0, 7,0, 6
102,0, 8,0, 6
102,0, 9,0, 6
102,0, 10,0, 476 ;506
;Change sprites at 1200
102,1, 10,0, -1

[PostWishBG Chiaotzu]
type = anim
actionno = 1022
start = 0, 20
mask = 1
sin.y = 2,400,0

[Begin Action 1022]
102,2, 0,0, 600
;move left for 100 frames
102,2, -1,0, 15
102,2, -2,0, 15
102,2, -3,0, 15
102,2, -4,0, 15
102,2, -5,0, -1

[PostWishBG Gradient]
type = normal
spriteno = 100,2
start = 0, 20
mask = 1

[PostWishBG TextBox]
type = normal
spriteno = 100,3
start = 0, 20
mask = 1

[PostWishBG TextBottom]
type = normal
spriteno = 100,4
mask = 1

[PostWishBG Name]
type = anim
actionno = 1012
start = 0, 20
mask = 1

[Begin Action 1012]
101,2, 0,0, 600
-1,0, 0,0, 60
101,0, 0,0, 470 ;500
101,2, 0,0, -1

[Scene 3] ;Shenron wish granted
clearcolor = 0,0,0
fadein.time = 30
bg.name = ShenronGrantedBG
Sound0.value = 10,0
Sound0.starttime = 0
Sound1.value = 11,1
Sound1.starttime = 0
layerall.pos = 0,0 ;Default position for all layers
end.time = 400         ;600 ticks = 10 seconds

[ShenronGrantedBGDef]

[ShenronGrantedBG title]
type = normal
spriteno = 0,0
start = -1000,-1000
mask = 1

[Scene 4] ;Glowy hair
clearcolor = 255,255,255
fadein.time = 30
bgm = ../../../data/Endings/Music/ChiaotzuZ2.mp3
bg.name = HairBG
layerall.pos = 0,0 ;Default position for all layers
end.time = 400         ;600 ticks = 10 seconds

[HairBGDef]

[HairBG bg]
type = normal
spriteno = 501,0
start = 0,-91
sin.y = 91, 1600, 0
mask = 1

[HairBG Chiaotzu]
type = normal
spriteno = 502,0
start = 0,-91
sin.y = 91, 1600, 0
mask = 1

[Scene 5] ;Glowy hair
clearcolor = 255,255,255
bg.name = Hair2BG
layerall.pos = 0,0 ;Default position for all layers
Sound0.value = 21, 2 ;500,0
Sound0.starttime = 30
end.time = 300         ;600 ticks = 10 seconds

[Hair2BGDef]

[Hair2BG bg]
type = normal
spriteno = 501,0
mask = 1

[Hair2BG Chiaotzu]
type = normal
spriteno = 502,0
mask = 1

[Hair2BG Hair]
type = anim
actionno = 502
mask = 1

;Chiaotzu Glowing Hair
[Begin Action 502]
502,1, 0,0, 6, , AS21D256
502,2, 0,0, 6, , AS42D256
502,3, 0,0, 6, , AS63D256
502,4, 0,0, 6, , AS84D256
502,5, 0,0, 6, , AS105D256
502,6, 0,0, 6, , AS127D256
502,7, 0,0, 6, , AS138D256
502,8, 0,0, 6, , AS159D256
502,9, 0,0, 6, , AS170D256
502,10, 0,0, 6, , AS191D256
502,11, 0,0, 6, , AS212D256
502,12, 0,0, 6, , AS233D256
LoopStart
502,1, 0,0, 6, , AS256D256
502,2, 0,0, 6, , AS256D256
502,3, 0,0, 6, , AS256D256
502,4, 0,0, 6, , AS256D256
502,5, 0,0, 6, , AS256D256
502,6, 0,0, 6, , AS256D256
502,7, 0,0, 6, , AS256D256
502,8, 0,0, 6, , AS256D256
502,9, 0,0, 6, , AS256D256
502,10, 0,0, 6, , AS256D256
502,11, 0,0, 6, , AS256D256
502,12, 0,0, 6, , AS256D256

[Scene 6] ;Yamcha hair!
clearcolor = 255,255,255
fadein.col = 255,255,255
fadein.time = 30
Sound0.value = 21, 0
Sound0.starttime = 0
bg.name = Hair3BG
layerall.pos = 0,0 ;Default position for all layers
;------------------------------------------------------------
layer1.text = "Yay! It worked!"
layer1.font = 0, 0, 1, 212, 211, 170	;Use font0
layer1.offset = 10,227
layer1.textdelay = 3
layer1.starttime = 300
layer1.endtime = 600
;------------------------------------------------------------
Sound0.value = 500,1
Sound0.starttime = 0
end.time = 540         ;600 ticks = 10 seconds

[Hair3BGDef]

[Hair3BG bg]
type = normal
spriteno = 501,1
mask = 1

[Hair3BG Hair]
type = anim
actionno = 503
mask = 1
;Chiaotzu Yamcha
[Begin Action 503]
502,13, 0,0, 6
502,14, 0,0, 6
502,15, 0,0, 6
502,16, 0,0, 6

[Hair3BG Gradient]
type = anim
actionno = 31002
mask = 1
;Chiaotzu Yamcha Gradient
[Begin Action 31002]
-1,0, 0,0, 300
100,2, 0,60, -1
[Hair3BG GradientUp]
type = anim
actionno = 310022
mask = 1
sin.y = -200, 1200, 0
;Chiaotzu Yamcha Gradient
[Begin Action 310022]
100,2, 0,260, 300
-1,0, 0,60, -1

[Hair3BG TextBox]
type = anim
actionno = 31003
mask = 1
;Chiaotzu Yamcha Textbox
[Begin Action 31003]
-1,0, 0,0, 300
100,3, 0,60, -1
[Hair3BG TextBoxUp]
type = anim
actionno = 310032
mask = 1
sin.y = -200, 1200, 0
;Chiaotzu Yamcha Textbox
[Begin Action 310032]
100,3, 0,260, 300
-1,0, 0,60, -1

[Hair3BG TextBottom]
type = anim
actionno = 31004
mask = 1
;Chiaotzu Yamcha TextBottom
[Begin Action 31004]
-1,0, 0,0, 240
100,4, 0,0, -1
[Hair3BG TextBottomUp]
type = anim
actionno = 310042
mask = 1
sin.y = -200, 960,0
;Chiaotzu Yamcha TextBottom
[Begin Action 310042]
100,4, 0,200, 240
-1,0, 0,0, -1

[Hair3BG Name]
type = anim
actionno = 31012
mask = 1
;Chiaotzu Yamcha TextName
[Begin Action 31012]
-1,0, 0,0, 300
101,0, 0,60, -1
[Hair3BG NameUp]
type = anim
actionno = 310122
mask = 1
sin.y = -200,1200,0
;Chiaotzu Yamcha TextName
[Begin Action 310122]
101,0, 0,260, 300
-1,0, 0,60, -1

[Scene 7] ;Puar mirror
clearcolor = 255,255,255
bg.name = Hair4BG
layerall.pos = 0,0 ;Default position for all layers
;------------------------------------------------------------
layer1.text = "I-I'm so sorry, Yamcha!"
layer1.font = 0, 0, 1, 212, 211, 170	;Use font0
layer1.offset = 10,227
layer1.textdelay = 3
;------------------------------------------------------------
end.time = 300         ;600 ticks = 10 seconds

[Hair4BGDef]

[Hair4BG bg]
type = normal
spriteno = 501,2
mask = 1

[Hair4BG Puar]
type = normal
spriteno = 503,10
start = -40,0
sin.y = 10, 300, 0
mask = 1

[Hair4BG Yamcha]
type = normal
spriteno = 503,1
start = -165,0
mask = 1

[Hair4BG Gradient]
type = normal
spriteno = 100,2
start = 0, 60
mask = 1

[Hair4BG TextBox]
type = normal
spriteno = 100,3
start = 0, 60
mask = 1

[Hair4BG TextBottom]
type = normal
spriteno = 100,4
mask = 1

[Hair4BG Name]
type = normal
spriteno = 101,4
start = 0, 60
mask = 1

[Scene 8] ;Yamcha pan
clearcolor = 255,255,255
bg.name = Hair5BG
layerall.pos = 0,0 ;Default position for all layers
;------------------------------------------------------------
layer1.text = "I don't understand what happened!"
layer1.font = 0, 0, 1, 212, 211, 170	;Use font0
layer1.offset = 10,227
layer1.textdelay = 3
;------------------------------------------------------------
Sound0.value = 500,2
Sound0.starttime = 0
end.time = 300         ;600 ticks = 10 seconds

[Hair5BGDef]

[Hair5BG bg]
type = normal
spriteno = 501,2
mask = 1

[Hair5BG Puar]
type = normal
spriteno = 503,10
start = -40,0
sin.x = 40, 1200,0
sin.y = 10, 300, 0
mask = 1

[Hair5BG Yamcha]
type = normal
spriteno = 503,1
start = -165,0
sin.x = 165, 1200,0
mask = 1

[Hair5BG Gradient]
type = normal
spriteno = 100,2
start = 0, 60
mask = 1

[Hair5BG TextBox]
type = normal
spriteno = 100,3
start = 0, 60
mask = 1

[Hair5BG TextBottom]
type = normal
spriteno = 100,4
mask = 1

[Hair5BG Name]
type = normal
spriteno = 101,4
start = 0, 60
mask = 1

[Scene 9] ;Yamcha hair!
clearcolor = 255,255,255
fadeout.time = 60
bg.name = Hair6BG
layerall.pos = 0,0 ;Default position for all layers
;------------------------------------------------------------
layer1.text = "What the hell?!"
layer1.font = 0, 0, 1, 212, 211, 170	;Use font0
layer1.offset = 10,227
layer1.textdelay = 3
;------------------------------------------------------------
end.time = 300         ;600 ticks = 10 seconds

[Hair6BGDef]

[Hair6BG bg]
type = normal
spriteno = 501,2
mask = 1

[Hair6BG Puar]
type = normal
spriteno = 503,10
sin.y = 10, 300, 0
mask = 1

[Hair6BG Yamcha]
type = normal
spriteno = 503,1
mask = 1

[Hair6BG Gradient]
type = normal
spriteno = 100,2
start = 0, 60
mask = 1

[Hair6BG TextBox]
type = normal
spriteno = 100,3
start = 0, 60
mask = 1

[Hair6BG TextBottom]
type = normal
spriteno = 100,4
mask = 1

[Hair6BG Name]
type = normal
spriteno = 101,3
start = 0, 60
mask = 1