;---------------------------------------------------------------------------
; ここからはヘルパーのステート
;---------------------------------------------------------------------------
;(HELPER)ＫＯ勝利演出・待機
[Statedef 9900]
type = A
ctrl = 0
anim = 9999
velset = 0,0
movetype = I
physics = N
sprpriority = 7

[state a]
type = AssertSpecial
trigger1 = 1
flag = noshadow
flag2 = invisible
;---------------------[移動関係]
[state a]
type = bindtoroot
trigger1 = 1
pos = 0,0

;---------------------[透過]
;---------------------[]
[state a]
type = changestate
trigger1 = winko
value = 9910

;---------------------------------------------------------------------------
;(HELPER)ＫＯ勝利演出・通常
[Statedef 9910]
type = A
ctrl = 0
anim = 9999
velset = 0,0
movetype = I
physics = N
sprpriority = 7

[state a]
type = AssertSpecial
trigger1 = 1
flag = noshadow
flag2 = invisible
;---------------------[移動関係]
[state a]
type = bindtoroot
trigger1 = 1
pos = 0,0

;---------------------[効果音]
[State 200, 1];
type = PlaySnd
trigger1 = time = 0
value = s7, 0

[State 200, 1];
type = PlaySnd
trigger1 = time = 0
value = s7, 1

;---------------------[エフェクト]
[State 3040, 7];画面フラッシュ
type = EnvColor
trigger1 = time % 9 = 0
trigger1 = time <= 33
;persistent = 0
;ignorehitpause = 1
time = 3
value = 0,0,0
under = 1

[State 3040, 7];画面フラッシュ
type = EnvColor
trigger1 = time % 9 = 3
trigger1 = time <= 33
;persistent = 0
;ignorehitpause = 1
time = 3
value = 255,0,0
under = 1

[State 3040, 7];画面フラッシュ
type = EnvColor
trigger1 = time % 9 = 6
trigger1 = time <= 33
;persistent = 0
;ignorehitpause = 1
time = 3
value = 255,255,255
under = 1

;---------------------------------------------------------------------------
;(HELPER)MAXゲージ
[Statedef 14000]
type = A
ctrl = 0
anim = 14000
velset = 0,0
movetype = I
physics = N
sprpriority = 10

;---------------------[]
[state a]
type = varset
trigger1 = time = 0
v = 1
value = 0

[state a]
type = changestate
triggerall = Root,movetype != H
trigger1 = Root,stateno = 900
trigger2 = Root,var(40) = 900
value = 14001

;---------------------------------------------------------------------------
;(HELPER)MAXゲージ
[Statedef 14001]
type = A
ctrl = 0
anim = 14000
velset = 0,0
movetype = I
physics = N
sprpriority = 10

;---------------------[]
[state -2,a];ゲージ枠a
type = Explod
triggerall = RoundState <= 2
trigger1 = Facing = 1
trigger1 = numexplod(14030) = 0
anim = 14001
id = 14030
postype = back
bindtime = -1
pos = 56,200;221
sprpriority = 10
removetime = -1
ownpal = 1
;ontop = 1

[state -2,a];ゲージ枠a
type = Explod
triggerall = RoundState <= 2
trigger1 = Facing = -1
trigger1 = numexplod(14030) = 0
anim = 14002
id = 14030
postype = back
bindtime = -1
pos = 56,200;221
sprpriority = 10
removetime = -1
ownpal = 1
facing = 1
;ontop = 1

[state a]
type = ModifyExplod
trigger1 = time <= 33
ID = 14030
scale = 1,var(2)*0.01

[state a]
type = removeexplod
trigger1 = RoundState > 2
id = 14030

;---------------------[]
[state a]
type = varset
trigger1 = time = 0
v = 2
value = 0

[state a]
type = varadd
trigger1 = time <= 4
v = 2
value = 20

[state a]
type = varset
trigger1 = time = 5
v = 2
value = 100

[state a]
type = varadd
trigger1 = time >= 27
v = 2
value = -20

[state a]
type = varset
trigger1 = time = 32
v = 2
value = 100

;---------------------[]
[state a]
type = AssertSpecial
trigger1 = 1
flag = noshadow
flag2 = invisible

;---------------------[ゲージ量]
[state -2,a];ゲージ量
type = Explod
triggerall = RoundState <= 2
trigger1 = Facing = 1
trigger1 = time >= 32
anim = 14003
id = 14032
postype = left
bindtime = -1
pos = 56,200;221
sprpriority = 11
;removetime = -1
ownpal = 1
ontop = 1

[state -2,a];ゲージ量
type = Explod
triggerall = RoundState <= 2
trigger1 = Facing = -1
trigger1 = time >= 32
anim = 14003
id = 14032
postype = right
bindtime = -1
pos = -56,200;221
sprpriority = 11
;removetime = -1
ownpal = 1
facing = -1
ontop = 1

[state a]
type = ModifyExplod
trigger1 = 1
ID = 14032
scale = Root,var(40) * 0.001112,1

[state a]
type = removeexplod
trigger1 = RoundState > 2
id = 14032

;---------------------[]
[state a]
type = removeexplod
trigger1 = Root,var(40) = 0
id = 14030

[state a]
type = removeexplod
trigger1 = Root,var(40) = 0
id = 14032

[state a]
type = changestate
trigger1 = Root,var(40) = 0
value = 14000

;---------------------------------------------------------------------------------
; MAX2演出用ヘルパー

[Statedef 16000]
type     = A
movetype = I
physics  = N
ctrl     = 0
anim     = 9999
sprpriority = -50

[State 181, 特殊効果]
type = AssertSpecial
trigger1 = 1
flag = noBG
flag2 = noFG
flag3 = noshadow

[State 2000]
type = Explod
trigger1 = time = 0
anim = 16000
ID = 16000
pos = 0,0
postype = back
ownpal = 1
bindtime = -1
removetime = -1
supermove = 1
sprpriority = -100

[State 2000]
type = Explod
trigger1 = time = 0
anim = 16000
ID = 16000
pos = -320,0
postype = back
ownpal = 1
bindtime = -1
removetime = -1
supermove = 1
sprpriority = -100

[State 1000,]
type = RemoveExplod
trigger1 = root,stateno != [4500,4515]
trigger2 = root,stateno = 4515
trigger2 = root,AnimElem = 12
ID = 16000

[State 800, ステート変更]
type = DestroySelf
trigger1 = root,stateno != [4500,4515]
trigger2 = root,stateno = 4515
trigger2 = root,AnimElem = 12

;---------------------------------------------------------------------------------
; MAX2演出用ヘルパー
; パリーン

[Statedef 16005]
type     = A
movetype = I
physics  = N
juggle   = 0
ctrl     = 0
anim     = 9999
sprpriority = -50

[State 200,]
type = Posset
trigger1 = time = 0
x = 0
y = 0

[State 181, 特殊効果]
type = AssertSpecial
trigger1 = time = [0,6]
flag = noBG

[State 181, 特殊効果]
type = AssertSpecial
trigger1 = 1
flag = noFG
flag2 = noshadow

[State 2000]
type = Explod
trigger1 = time = 0
anim = 16005
ID = 16005
pos = 0,0
postype = back
ownpal = 1
bindtime = -1
supermove = 1
sprpriority = -100

[State 1000, 音を鳴らす]
type = PlaySnd
trigger1 = time = 7
value = s9,5

[State 1000,]
type = RemoveExplod
trigger1 = time = 0
ID = 16000

[State 4110, DestroySelf]
type = DestroySelf
trigger1 = time = 8

;---------------------------------------------------------------------------------
; MAX2演出用ヘルパー
; パリーン(真っ黒ォ！)

[Statedef 16006]
type     = A
movetype = I
physics  = N
juggle   = 0
ctrl     = 0
anim     = 9999
sprpriority = -50

[State 200,]
type = Posset
trigger1 = time = 0
x = 0
y = 0

[State 181, 特殊効果]
type = AssertSpecial
trigger1 = time = [0,6]
flag = noBG

[State 181, 特殊効果]
type = AssertSpecial
trigger1 = 1
flag = noFG
flag2 = noshadow

[State 2000]
type = Explod
trigger1 = time = 0
anim = 16006
ID = 16006
pos = 0,0
postype = back
ownpal = 1
bindtime = -1
supermove = 1
sprpriority = -100

[State 1000, 音を鳴らす]
type = PlaySnd
trigger1 = time = 7
value = s9,5

[State 4110, DestroySelf]
type = DestroySelf
trigger1 = time = 8
