;---------------------------------------------------------------------------
; Stand
[Statedef 0]
type = S
physics = S
sprpriority = 0

[State ]
type = Changestate
triggerall = !ishelper
trigger1 = name != "A-Yuki"
value = 5150
ignorehitpause = 1

[State ]
type = Destroyself
trigger1 = ishelper
ignorehitpause = 1

;---------------------[腕のエフェクト]
[State removeexplod];前のステートの光消去
type = removeexplod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = 1
ID = 3000
ignorehitpause = 1

[State 0, 1]
type = ChangeAnim
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = Anim != 0 && Anim != 5
trigger2 = Anim = 5 && AnimTime = 0 ;Turn anim over
value = 0
ignorehitpause = 1

[State 0, 2]
type = VelSet
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
y = 0
ignorehitpause = 1

[State 0, 3] ;Stop moving if low velocity or 4 ticks pass
type = VelSet
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = abs(vel x) < 2
trigger2 = animelem = 1, = 4
x = 0
ignorehitpause = 1

[State 0, 4] ;Are you dead?
type = ChangeState
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = !alive
value = 5050
ignorehitpause = 1

;---------------------------------------------------------------------------
; Stand to Crouch
[Statedef 10]
type    = C
physics = C

[State ]
type = Changestate
triggerall = !ishelper
trigger1 = name != "A-Yuki"
value = 5150
ignorehitpause = 1

[State ]
type = Destroyself
trigger1 = ishelper
ignorehitpause = 1

[State アニメ変更]
type = Changeanim
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = anim != 10
value = 10
ignorehitpause = 1

;---------------------[腕のエフェクト]
[State removeexplod];前のステートの光消去
type = removeexplod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
ID = 3000
ignorehitpause = 1

[State explod];ブレスレットの光
type = Explod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
anim = 3010
id = 3000
sprpriority = 2
postype = p1
pos = 0,0
bindtime = -1
removetime = -1
under = 0
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1
;---------------------[]

[State 10, 1]
type = VelMul
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
x = .75
ignorehitpause = 1

[State 10, 2]
type = ChangeState
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = AnimTime = 0
value = 11
ignorehitpause = 1

;---------------------------------------------------------------------------
; Crouching
[Statedef 11]
type    = C
physics = C
sprpriority = 0

[State ]
type = Changestate
triggerall = !ishelper
trigger1 = name != "A-Yuki"
value = 5150
ignorehitpause = 1

[State ]
type = Destroyself
trigger1 = ishelper
ignorehitpause = 1

[State アニメ変更]
type = Changeanim
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = anim != 11
value = 11
ignorehitpause = 1

;---------------------[腕のエフェクト]
[State removeexplod];前のステートの光消去
type = removeexplod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
ID = 3000
ignorehitpause = 1

[State 11, 1] ;Change from turning animation
type = ChangeAnim
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = Anim = 6 && AnimTime = 0
value = 11
ignorehitpause = 1

;---------------------[腕のエフェクト]
[State removeexplod];前のステートの光消去
type = removeexplod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
ID = 3000
ignorehitpause = 1

[State explod];ブレスレットの光
type = Explod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = numexplod(3000) = 0
trigger1 = numexplod(3005) = 0
anim = 3011
id = 3000
sprpriority = 2
postype = p1
pos = 0,0
bindtime = -1
removetime = -1
under = 0
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State removeexplod];前のステートの光消去
type = removeexplod
triggerall = name = "A-Yuki"
trigger1 = anim = 6
ID = 3000
ignorehitpause = 1

[State explod];ブレスレットの光
type = Explod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = anim = 6
trigger1 = numexplod(3005) = 0
anim = 3006
id = 3005
sprpriority = 2
postype = p1
pos = 0,0
bindtime = -1
under = 0
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1
;---------------------[]

;---------------------------------------------------------------------------
; Crouch to Stand
[Statedef 12]
type    = S
physics = S

[State ]
type = Changestate
triggerall = !ishelper
trigger1 = name != "A-Yuki"
value = 5150
ignorehitpause = 1

[State ]
type = Destroyself
trigger1 = ishelper
ignorehitpause = 1

[State ]
type = Changestate
triggerall = !ishelper
trigger1 = name != "A-Yuki"
value = 5150
ignorehitpause = 1

[State アニメ変更]
type = Changeanim
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = anim != 12
value = 12
ignorehitpause = 1

;---------------------[腕のエフェクト]
[State removeexplod];前のステートの光消去
type = removeexplod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
ID = 3000
ignorehitpause = 1

[State explod];ブレスレットの光
type = Explod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
anim = 3012
id = 3000
sprpriority = 2
postype = p1
pos = 0,0
bindtime = -1
removetime = -1
under = 0
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1
;---------------------[]

[State 12, 1]
type = ChangeState
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = AnimTime = 0
value = 0
ignorehitpause = 1

;---------------------------------------------------------------------------
; Walk
[Statedef 20]
type    = S
physics = S
sprpriority = 0

[State ]
type = Changestate
triggerall = !ishelper
trigger1 = name != "A-Yuki"
value = 5150
ignorehitpause = 1

[State ]
type = Destroyself
trigger1 = ishelper
ignorehitpause = 1

[State ]
type = Changestate
triggerall = !ishelper
trigger1 = name != "A-Yuki"
value = 5150
ignorehitpause = 1

[State アニメ変更]
type = Changeanim
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
value = 20
ignorehitpause = 1

[State 20, 1]
type = VelSet
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = command = "holdfwd"
x = const(velocity.walk.fwd.x)
ignorehitpause = 1

[State 20, 2]
type = VelSet
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = command = "holdback"
x = const(velocity.walk.back.x)
ignorehitpause = 1

;---------------------[腕のエフェクト]
[State removeexplod];前のステートの光消去
type = removeexplod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
ID = 3000
ignorehitpause = 1

[State explod];ブレスレットの光
type = Explod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = numexplod(3000) = 0
trigger1 = anim = 20
anim = 3020
id = 3000
sprpriority = 2
postype = p1
pos = 0,0
bindtime = -1
removetime = -1
under = 0
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State explod];ブレスレットの光
type = Explod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = numexplod(3000) = 0
trigger1 = anim = 21
anim = 3021
id = 3000
sprpriority = 2
postype = p1
pos = 0,0
bindtime = -1
removetime = -1
under = 0
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1
;---------------------[]

[State removeexplod];前のステートの光消去
type = removeexplod
triggerall = name = "A-Yuki"
triggerall = vel x > 0
trigger1 = Anim != 20 && Anim != 5
trigger2 = Anim = 5 && AnimTime = 0
ID = 3000
ignorehitpause = 1

[State removeexplod];前のステートの光消去
type = removeexplod
triggerall = name = "A-Yuki"
triggerall = vel x < 0
trigger1 = Anim != 21 && Anim != 5
trigger2 = Anim = 5 && AnimTime = 0
ID = 3000
ignorehitpause = 1

[State 20, 3]
type = ChangeAnim
triggerall = name = "A-Yuki"
triggerall = !ishelper
triggerall = vel x > 0
trigger1 = Anim != 20 && Anim != 5
trigger2 = Anim = 5 && AnimTime = 0
value = 20
ignorehitpause = 1

[State 20, 4]
type = ChangeAnim
triggerall = name = "A-Yuki"
triggerall = !ishelper
triggerall = vel x < 0
trigger1 = Anim != 21 && Anim != 5
trigger2 = Anim = 5 && AnimTime = 0
value = 21
ignorehitpause = 1

;---------------------------------------------------------------------------
; Jump Start
[Statedef 40]
type    = S
physics = S
ctrl = 0
sprpriority = 1

[State ]
type = Changestate
triggerall = !ishelper
trigger1 = name != "A-Yuki"
value = 5150
ignorehitpause = 1

[State ]
type = Destroyself
trigger1 = ishelper
ignorehitpause = 1

[State ]
type = Changestate
triggerall = !ishelper
trigger1 = name != "A-Yuki"
value = 5150
ignorehitpause = 1

[State アニメ変更]
type = Changeanim
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = anim != 40
value = 40
ignorehitpause = 1

;---------------------[腕のエフェクト]
[State removeexplod];前のステートの光消去
type = removeexplod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
ID = 3000
ignorehitpause = 1

[State explod];ブレスレットの光
type = Explod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
anim = 3040
id = 3000
sprpriority = 2
postype = p1
pos = 0,0
bindtime = -1
removetime = -1
under = 0
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

;---------------------[]

[State -3, 2];ジャンプ音
type = PlaySnd
triggerall = name = "A-Yuki"
triggerall = !ishelper
triggerall = var(15) <= 0
trigger1 = animelem = 1
value = 40, 1
volume = 100
ignorehitpause = 1

[State -3, 2];ジャンプ音
type = PlaySnd
triggerall = name = "A-Yuki"
triggerall = !ishelper
triggerall = var(15) > 1
trigger1 = animelem = 1 
value = 40, 2
volume = 100
ignorehitpause = 1

[State 40, 1]
type = VarSet
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
sysvar(1) = 0
ignorehitpause = 1

[State 40, 2]
type = VarSet
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = command = "holdfwd"
sysvar(1) = 1
ignorehitpause = 1

[State 40, 3]
type = VarSet
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = command = "holdback"
sysvar(1) = -1
ignorehitpause = 1

[State 40, 4]
type = VelSet
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = AnimTime = 0
x = ifelse(sysvar(1)=0, const(velocity.jump.neu.x), ifelse(sysvar(1)=1, const(velocity.jump.fwd.x), const(velocity.jump.back.x)))
y = const(velocity.jump.y)
ignorehitpause = 1

[State 40, 5]
type = VelSet
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = AnimTime = 0
trigger1 = prevstateno = 100 ;RUN_FWD
trigger1 = sysvar(1) = 1
x = const(velocity.runjump.fwd.x)
ignorehitpause = 1

[State 40, 6]
type = ChangeState
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = AnimTime = 0
value = 50
ctrl = 1
ignorehitpause = 1

;---------------------------------------------------------------------------
; AirJump Start
[Statedef 45]
type    = A
physics = N
ctrl = 0

[State ]
type = Changestate
triggerall = !ishelper
trigger1 = name != "A-Yuki"
value = 5150
ignorehitpause = 1

[State ]
type = Destroyself
trigger1 = ishelper
ignorehitpause = 1

[State ]
type = Changestate
triggerall = !ishelper
trigger1 = name != "A-Yuki"
value = 5150
ignorehitpause = 1

[state 位置調整]
type = velset
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
x = 0
y = 0
ignorehitpause = 1

;---------------------[腕のエフェクト]
[State removeexplod];前のステートの光消去
type = removeexplod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
ID = 3000
ignorehitpause = 1

[State 45, 1]
type = ChangeAnim
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = SelfAnimExist(44)
value = 44
ignorehitpause = 1

[State 45, 2]
type = ChangeAnim
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = !SelfAnimExist(44)
value = 41
ignorehitpause = 1

[State 45, 3]
type = VarSet
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
sysvar(1) = 0
ignorehitpause = 1

[State 45, 4]
type = VarSet
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = command = "holdfwd"
sysvar(1) = 1
ignorehitpause = 1

[State 45, 5]
type = VarSet
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = command = "holdback"
sysvar(1) = -1
ignorehitpause = 1

[State 45, 6]
type = VelSet
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1, = 2
x = ifelse(sysvar(1)=0, const(velocity.airjump.neu.x), ifelse(sysvar(1)=1, const(velocity.airjump.fwd.x), const(velocity.airjump.back.x)))
y = const(velocity.airjump.y)
ignorehitpause = 1

[State 45, 7]
type = ChangeState
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1, = 2
value = 50
ctrl = 1
ignorehitpause = 1

;---------------------------------------------------------------------------
; Jump Up
[Statedef 50]
type    = A
physics = A

[State ]
type = Changestate
triggerall = !ishelper
trigger1 = name != "A-Yuki"
value = 5150
ignorehitpause = 1

[State ]
type = Destroyself
trigger1 = ishelper
ignorehitpause = 1

[State ]
type = Changestate
triggerall = !ishelper
trigger1 = name != "A-Yuki"
value = 5150
ignorehitpause = 1

[State アニメ変更]
type = Changeanim
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = anim != [41,43]
value = 50
ignorehitpause = 1

[State 50, 1]
type = VarSet
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
sysvar(1) = 0
ignorehitpause = 1

[State 50, 2]
type = ChangeAnim
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
value = ifelse((vel x)=0, 41, ifelse((vel x)>0, 42, 43))
ignorehitpause = 1

[State 50, 3]
type = ChangeAnim
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = Vel y > -2
trigger1 = SelfAnimExist(anim + 3)
persistent = 0
value = Anim + 3
ignorehitpause = 1

;---------------------[腕のエフェクト]
[State removeexplod];前のステートの光消去
type = removeexplod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
ID = 3000
ignorehitpause = 1

[State explod];ブレスレットの光
type = Explod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
trigger1 = anim = 41
anim = 3041
id = 3000
sprpriority = 2
postype = p1
pos = 0,0
bindtime = -1
removetime = -1
under = 0
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State explod];ブレスレットの光
type = Explod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
trigger1 = anim = 42
anim = 3042
id = 3000
sprpriority = 2
postype = p1
pos = 0,0
bindtime = -1
removetime = -1
under = 0
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State explod];ブレスレットの光
type = Explod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
trigger1 = anim = 43
anim = 3043
id = 3000
sprpriority = 2
postype = p1
pos = 0,0
bindtime = -1
removetime = -1
under = 0
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1
;---------------------[]

;---------------------------------------------------------------------------
; Jump Down (empty state for compatibility)
[Statedef 51]
type    = A
physics = A

[State ]
type = Changestate
triggerall = !ishelper
trigger1 = name != "A-Yuki"
value = 5150
ignorehitpause = 1

[State ]
type = Destroyself
trigger1 = ishelper
ignorehitpause = 1

;---------------------[腕のエフェクト]
[State removeexplod];前のステートの光消去
type = removeexplod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
ID = 3000
ignorehitpause = 1

[State 51, 1]
type = Null
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = 1

;---------------------------------------------------------------------------
; Jump Land
[Statedef 52]
type    = S
physics = S
ctrl = 0

[State ]
type = Changestate
triggerall = !ishelper
trigger1 = name != "A-Yuki"
value = 5150
ignorehitpause = 1

[State ]
type = Destroyself
trigger1 = ishelper
ignorehitpause = 1

[State アニメ変更]
type = Changeanim
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = anim != 47
value = 47
ignorehitpause = 1

;---------------------[腕のエフェクト]
[State removeexplod];前のステートの光消去
type = removeexplod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
ID = 3000
ignorehitpause = 1

[State explod];ブレスレットの光
type = Explod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
anim = 3047
id = 3000
sprpriority = 2
postype = p1
pos = 0,0
bindtime = -1
removetime = -1
under = 0
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1
;---------------------[]

[State Landing Sound]
type = PlaySnd
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
value = 40, 0
volume = 100
ignorehitpause = 1

[State 52, 1]
type = VelSet
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
y = 0
ignorehitpause = 1

[State 52, 2]
type = PosSet
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
y = 0
ignorehitpause = 1

[State 52, 3]
type = CtrlSet
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1, = 3
value = 1
ignorehitpause = 1

[State 52, 4]
type = ChangeState
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = AnimTime = 0
value = 0
ctrl = 1
ignorehitpause = 1

;---------------------------------------------------------------------------
; RUN_FWD
[Statedef 100]
type    = S
physics = N
sprpriority = 1

[State ]
type = Changestate
triggerall = !ishelper
trigger1 = name != "A-Yuki"
value = 5150
ignorehitpause = 1

[State ]
type = Destroyself
trigger1 = ishelper
ignorehitpause = 1

[State アニメ変更]
type = Changeanim
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = anim != 100
value = 100
ignorehitpause = 1

;---------------------[腕のエフェクト]
[State removeexplod];前のステートの光消去
type = removeexplod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
ID = 3000
ignorehitpause = 1

[State explod];ブレスレットの光
type = Explod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
anim = 3100
id = 3000
sprpriority = 2
postype = p1
pos = 0,0
bindtime = -1
under = 0
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1
;---------------------[]

[State Landing Sound]
type = PlaySnd
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
value = 105, 0
volume = 100
ignorehitpause = 1

[State 01];点滅
type = palfx
triggerall = name = "A-Yuki"
triggerall = !ishelper
triggerall = animelem = 1
trigger1 = prevstateno = 150
trigger2 = prevstateno = 151
time = 3
add = 255,255,255
mul = 255,255,255
color = 1
ignorehitpause = 1

[State 00]
type = ctrlset
triggerall = name = "A-Yuki"
triggerall = !ishelper
triggerall = animelem = 1
trigger1 = prevstateno = 150
trigger2 = prevstateno = 151
value = 1
ignorehitpause = 1

[State 02]
type = PlaySnd
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
value = 100, 1
ignorehitpause = 1

[State 03]
type = VelSet
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 2
x = 7;const(velocity.run.fwd.x)
ignorehitpause = 1

[State 04]
type = VelSet
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 12
x = 0
ignorehitpause = 1

[State 05] ;Prevent run from canceling into walk
type = AssertSpecial
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = 1
flag = NoWalk
ignorehitpause = 1

[State 06] ;Prevent from turning
type = AssertSpecial
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = 1
flag = NoAutoTurn
ignorehitpause = 1

[State 07]
type = ChangeState
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = command = "holdfwd"
trigger1 = animelem >= 3,>=0
value = 101
ignorehitpause = 1

[State 08]
type = ChangeState
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animtime = 0
value = 0
ctrl = 1
ignorehitpause = 1

;---------------------------------------------------------------------------
; commonより ダッシュ
[Statedef 101]
type    = S
physics = S
sprpriority = 1
ctrl = 1

[State ]
type = Changestate
triggerall = !ishelper
trigger1 = name != "A-Yuki"
value = 5150
ignorehitpause = 1

[State ]
type = Destroyself
trigger1 = ishelper
ignorehitpause = 1

[State アニメ変更]
type = Changeanim
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = anim != 101
value = 101
ignorehitpause = 1

;---------------------[腕のエフェクト]
[State removeexplod];前のステートの光消去
type = removeexplod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
ID = 3000
ignorehitpause = 1

[State explod];ブレスレットの光
type = Explod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
anim = 3101
id = 3000
sprpriority = -2
postype = p1
pos = 0,0
bindtime = -1
removetime = -1
supermove = 0
under = 0
ignorehitpause = 1
;---------------------[]

[State 00]
type = PlaySnd
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
value = 100, 0
volume = 100
channel = 1
ignorehitpause = 1

[State 01]
type = VelSet
trigger1 = 1
x = const(velocity.run.fwd.x)
ignorehitpause = 1

[State 02] ;Prevent run from canceling into walk
type = AssertSpecial
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = 1
flag = NoWalk
ignorehitpause = 1

[State 03] ;Prevent from turning
type = AssertSpecial
trigger1 = 1
flag = NoAutoTurn
ignorehitpause = 1

[State 04]
type = ChangeState
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = command != "holdfwd"
value = 0
ignorehitpause = 1

;---------------------------------------------------------------------------
; RUN_BACK
[Statedef 105]
type    = S
physics = S
ctrl = 0

[State ]
type = Changestate
triggerall = !ishelper
trigger1 = name != "A-Yuki"
value = 5150
ignorehitpause = 1

[State ]
type = Destroyself
trigger1 = ishelper
ignorehitpause = 1

[State アニメ変更]
type = Changeanim
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = anim != 105
value = 105
ignorehitpause = 1

[state 位置調整]
type = velset
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
x = 0
y = 0
ignorehitpause = 1

;---------------------[腕のエフェクト]
[State removeexplod];前のステートの光消去
type = removeexplod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
ID = 3000
ignorehitpause = 1

[State explod];ブレスレットの光
type = Explod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
anim = 3104
id = 3000
sprpriority = 2
postype = p1
pos = 0,0
bindtime = -1
under = 0
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1
;---------------------[]

[State Landing Sound]
type = PlaySnd
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
value = 105, 0
volume = 100
ignorehitpause = 1

[State 00]
type = ChangeState
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animtime = 0
value = 106
ignorehitpause = 1

;---------------------------------------------------------------------------
; RUN_BACK2 (land)
[Statedef 106]
type    = A
physics = A
ctrl = 1

[State ]
type = Changestate
triggerall = !ishelper
trigger1 = name != "A-Yuki"
value = 5150
ignorehitpause = 1

[State ]
type = Destroyself
trigger1 = ishelper
ignorehitpause = 1

[State アニメ変更]
type = Changeanim
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = anim != 106
value = 106
ignorehitpause = 1

;---------------------[腕のエフェクト]
[State removeexplod];前のステートの光消去
type = removeexplod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
ID = 3000
ignorehitpause = 1

[State explod];ブレスレットの光
type = Explod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
anim = 3105
id = 3000
sprpriority = 2
postype = p1
pos = 0,0
bindtime = -1
under = 0
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1
;---------------------[]

[State 00]
type = VelSet
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
x = -5.5
y = -3.8
ignorehitpause = 1

[State 01]
type = ChangeState
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = Vel Y > 0
trigger1 = Pos Y >= 0
value = 107
ignorehitpause = 1

;---------------------------------------------------------------------------
; 着地
[Statedef 107]
type    = S
physics = N
ctrl = 0

[State ]
type = Changestate
triggerall = !ishelper
trigger1 = name != "A-Yuki"
value = 5150
ignorehitpause = 1

[State ]
type = Destroyself
trigger1 = ishelper
ignorehitpause = 1

[State アニメ変更]
type = Changeanim
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = anim != 107
value = 107
ignorehitpause = 1

;---------------------[腕のエフェクト]
[State removeexplod];前のステートの光消去
type = removeexplod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
ID = 3000
ignorehitpause = 1

[State explod];ブレスレットの光
type = Explod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
anim = 3106
id = 3000
sprpriority = 2
postype = p1
pos = 0,0
bindtime = -1
under = 0
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1
;---------------------[]

[State Landing Sound]
type = PlaySnd
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
value = 40, 0
volume = 100
ignorehitpause = 1

[State 00]
type = VelSet
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
x = 0
y = 0
ignorehitpause = 1

[State 01]
type = PosSet
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
y = 0
ignorehitpause = 1

[State 02]
type = MakeDust
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1, = 2
pos = -5,-2
spacing = 1
ignorehitpause = 1

[State 03]
type = ChangeState
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animtime = 0
value = 0
ctrl = 1
ignorehitpause = 1

;---------------------------------------------------------------------------
; RUN_UP
[Statedef 110]
type    = S
physics = N

[State ]
type = Changestate
triggerall = !ishelper
trigger1 = name != "A-Yuki"
value = 5150
ignorehitpause = 1

[State ]
type = Destroyself
trigger1 = ishelper
ignorehitpause = 1

;---------------------[腕のエフェクト]
[State removeexplod];前のステートの光消去
type = removeexplod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
ID = 3000
ignorehitpause = 1

[State 110, 0]
type = CtrlSet
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
value = 0
ignorehitpause = 1

[State 110, 1]
type = ChangeAnim
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
value = 110
ignorehitpause = 1

[State 110, 3]
type = VelSet
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
x = 0
z = -7
ignorehitpause = 1

[State 110, 4]
type = VelMul
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = 1
z = 0.8
ignorehitpause = 1

[State 110, 5]
type = VelSet
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = AnimTime = -8
z = 0
ignorehitpause = 1

[State 110, 7]
type = CtrlSet
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = AnimTime = 0
value = 1
ignorehitpause = 1

[State 110, 8]
type = ChangeState
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = AnimTime = 0
value = 0
ignorehitpause = 1

;---------------------------------------------------------------------------
; RUN_DOWN
[Statedef 115]
type    = S
physics = N

[State ]
type = Changestate
triggerall = !ishelper
trigger1 = name != "A-Yuki"
value = 5150
ignorehitpause = 1

[State ]
type = Destroyself
trigger1 = ishelper
ignorehitpause = 1

;---------------------[腕のエフェクト]
[State removeexplod];前のステートの光消去
type = removeexplod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
ID = 3000
ignorehitpause = 1

[State 115, 0]
type = CtrlSet
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
value = 0
ignorehitpause = 1

[State 115, 1]
type = ChangeAnim
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
value = 110
ignorehitpause = 1

[State 115, 3]
type = VelSet
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
x = 0
z = 7
ignorehitpause = 1

[State 115, 4]
type = VelMul
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = 1
z = 0.8
ignorehitpause = 1

[State 115, 5]
type = VelSet
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = AnimTime = -8
z = 0
ignorehitpause = 1

[State 115, 7]
type = CtrlSet
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = AnimTime = 0
value = 1
ignorehitpause = 1

[State 115, 8]
type = ChangeState
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = AnimTime = 0
value = 0
ignorehitpause = 1

;---------------------------------------------------------------------------
; GUARD (start)
[Statedef 120]
type = U    ;Leave state type unchanged
physics = U ;Leave physics unchanged

[State ]
type = Changestate
triggerall = !ishelper
trigger1 = name != "A-Yuki"
value = 5150
ignorehitpause = 1

[State ]
type = Destroyself
trigger1 = ishelper
ignorehitpause = 1

[State 120, 1]
type = ChangeAnim
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
value = 120 + (statetype = C) + (statetype = A)*2
ignorehitpause = 1

[State 120, 2]
type = StateTypeSet
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1 && statetype = S
physics = S
ignorehitpause = 1

[State 120, 3]
type = StateTypeSet
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1 && statetype = C
physics = C
ignorehitpause = 1

[State 120, 4]
type = StateTypeSet
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1 && statetype = A
physics = A
ignorehitpause = 1

[State 120, Hi to Lo]
type = StateTypeSet
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = statetype = S && command = "holddown"
statetype = C
physics = C
ignorehitpause = 1

[State 120, Lo to Hi]
type = StateTypeSet
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = statetype = C && command != "holddown"
statetype = S
physics = S
ignorehitpause = 1

;---------------------[腕のエフェクト]
[State removeexplod];前のステートの光消去
type = removeexplod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
ID = 3000
ignorehitpause = 1

[State explod];ブレスレットの光
type = Explod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
trigger1 = anim = 120
anim = 3120
id = 3000
sprpriority = 2
postype = p1
pos = 0,0
bindtime = -1
removetime = -1
under = 0
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State explod];ブレスレットの光
type = Explod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
trigger1 = anim = 121
anim = 3121
id = 3000
sprpriority = 2
postype = p1
pos = 0,0
bindtime = -1
removetime = -1
under = 0
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State explod];ブレスレットの光
type = Explod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
trigger1 = anim = 122
anim = 3122
id = 3000
sprpriority = 2
postype = p1
pos = 0,0
bindtime = -1
removetime = -1
under = 0
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1
;---------------------[]

[State 120, 5]
type = ChangeState
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = AnimTime = 0
value = 130 + (statetype = C) + (statetype = A)*2
ignorehitpause = 1

[State 120, Stop Guarding]
type = ChangeState
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = command != "holdback"
trigger2 = !inguarddist
value = 140
ignorehitpause = 1

;---------------------------------------------------------------------------
; STAND GUARD (guarding)
[Statedef 130]
type    = S
physics = S

[State ]
type = Changestate
triggerall = !ishelper
trigger1 = name != "A-Yuki"
value = 5150
ignorehitpause = 1

[State ]
type = Destroyself
trigger1 = ishelper
ignorehitpause = 1

[state 位置調整]
type = velset
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
x = -1
y = 0
ignorehitpause = 1

;---------------------[腕のエフェクト]
[State removeexplod];前のステートの光消去
type = removeexplod
triggerall = name = "A-Yuki"
trigger1 = animelem = 1
ID = 3000
ignorehitpause = 1

[State explod];ブレスレットの光
type = Explod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
anim = 3120
id = 3000
sprpriority = 2
postype = p1
pos = 0,0
bindtime = -1
removetime = -1
under = 0
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State 130, ガードサウンド]
type = Playsnd
triggerall = name = "A-Yuki"
triggerall = !ishelper
triggerall = palno = [7,12]
trigger1 = helper(150),gethitvar(damage)
value = s120, 0
ignorehitpause = 1

[State 130, 1]
type = ChangeAnim
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = Anim != 130
value = 130
ignorehitpause = 1

[State 130, Hi to Lo]
type = ChangeState
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = command = "holddown"
value = 131
ignorehitpause = 1

[State 130, Stop Guarding]
type = ChangeState
triggerall = name = "A-Yuki"
triggerall = !ishelper
triggerall = palno = [1,6]
trigger1 = command != "holdback"
trigger2 = !inguarddist
value = 140
ignorehitpause = 1

[State 130, Stop Guarding]
type = ChangeState
triggerall = name = "A-Yuki"
triggerall = !ishelper
triggerall = palno = [7,12]
triggerall = animelem = 1, > 10
trigger1 = command != "holdback"
trigger2 = !inguarddist
value = 700
ignorehitpause = 1

;---------------------------------------------------------------------------
; CROUCH GUARD (guarding)
[Statedef 131]
type    = C
physics = C

[State ]
type = Changestate
triggerall = !ishelper
trigger1 = name != "A-Yuki"
value = 5150
ignorehitpause = 1

[State ]
type = Destroyself
trigger1 = ishelper
ignorehitpause = 1

[state 位置調整]
type = velset
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
x = -1
y = 0
ignorehitpause = 1

;---------------------[腕のエフェクト]
[State removeexplod];前のステートの光消去
type = removeexplod
triggerall = name = "A-Yuki"
trigger1 = animelem = 1
ID = 3000
ignorehitpause = 1

[State explod];ブレスレットの光
type = Explod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
anim = 3121
id = 3000
sprpriority = 2
postype = p1
pos = 0,0
bindtime = -1
removetime = -1
under = 0
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State 131,ガードサウンド]
type = Playsnd
triggerall = name = "A-Yuki"
triggerall = !ishelper
triggerall = palno = [7,12]
trigger1 = helper(150),gethitvar(damage)
value = s120, 0
ignorehitpause = 1

[State 131, 1]
type = ChangeAnim
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = Anim != 131
value = 131
ignorehitpause = 1

[State 131, Lo to Hi]
type = ChangeState
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = command != "holddown"
value = 130
ignorehitpause = 1

[State 131, Stop Guarding]
type = ChangeState
triggerall = name = "A-Yuki"
triggerall = !ishelper
triggerall = palno = [1,6]
trigger1 = command != "holdback"
trigger2 = !inguarddist
value = 140
ignorehitpause = 1

[State 131, Stop Guarding]
type = ChangeState
triggerall = name = "A-Yuki"
triggerall = !ishelper
triggerall = palno = [7,12]
triggerall = animelem = 1, > 10
trigger1 = command != "holdback"
trigger2 = !inguarddist
value = 700
ignorehitpause = 1

;---------------------------------------------------------------------------
; AIR GUARD (guarding)
[Statedef 132]
type    = A
physics = N

[State ]
type = Changestate
triggerall = !ishelper
trigger1 = name != "A-Yuki"
value = 5150
ignorehitpause = 1

[State ]
type = Destroyself
trigger1 = ishelper
ignorehitpause = 1

[state 位置調整]
type = velset
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
x = -1
y = 0
ignorehitpause = 1

;---------------------[腕のエフェクト]
[State removeexplod];前のステートの光消去
type = removeexplod
triggerall = name = "A-Yuki"
trigger1 = animelem = 1
ID = 3000
ignorehitpause = 1

[State explod];ブレスレットの光
type = Explod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
anim = 3122
id = 3000
sprpriority = 2
postype = p1
pos = 0,0
bindtime = -1
removetime = -1
under = 0
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State 132, ガードサウンド]
type = Playsnd
triggerall = name = "A-Yuki"
triggerall = !ishelper
triggerall = palno = [7,12]
trigger1 = helper(150),gethitvar(damage)
value = s120, 0
ignorehitpause = 1

[State 132, 1]
type = ChangeAnim
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = Anim != 132
value = 132
ignorehitpause = 1

[State 132, 2]
type = VelAdd
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = 1
y = Const(movement.yaccel)
ignorehitpause = 1

[State 132, 3]
type = VarSet
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = 1
sysvar(0) = (pos y >= 0) && (vel y > 0)
ignorehitpause = 1

[State 132, 4]
type = VelSet
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = sysvar(0)
y = 0
ignorehitpause = 1

[State 132, 5]
type = PosSet
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = sysvar(0)
y = 0
ignorehitpause = 1

[State 132, 6]
type = ChangeState
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = sysvar(0)
trigger1 = command = "holdback"
trigger1 = inguarddist
value = 130
ignorehitpause = 1

[State 132, 7]
type = ChangeState
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = sysvar(0)
value = 52
ignorehitpause = 1

[State 132, Stop Guarding]
type = ChangeState
triggerall = name = "A-Yuki"
triggerall = !ishelper
triggerall = palno = [1,6]
trigger1 = command != "holdback"
trigger2 = !inguarddist
value = 140
ignorehitpause = 1

[State 132, Stop Guarding]
type = ChangeState
triggerall = name = "A-Yuki"
triggerall = !ishelper
triggerall = palno = [7,12]
triggerall = animelem = 1, > 10
trigger1 = command != "holdback"
trigger2 = !inguarddist
value = 1400
ignorehitpause = 1

;---------------------------------------------------------------------------
; GUARD (end)
[Statedef 140]

[State ]
type = Changestate
triggerall = !ishelper
trigger1 = name != "A-Yuki"
value = 5150
ignorehitpause = 1

[State 140, ヘルパーステートタイプ変更]
type = Statetypeset
triggerall = name = "A-Yuki"
trigger1 = ishelper(140)
statetype = C
movetype = I
physics = N
ignorehitpause = 1

[State 140, ヘルパーアニメ変更]
type = Changeanim
triggerall = name = "A-Yuki"
trigger1 = ishelper(140)
value = 21000
ignorehitpause = 1

[State 140, ヘルパーコントロール不可]
type = Ctrlset
triggerall = name = "A-Yuki"
trigger1 = ishelper(140)
value = 0
ignorehitpause = 1

[State 140, ヘルパーライフ]
type = Lifeset
triggerall = name = "A-Yuki"
trigger1 = ishelper(140)
value = 9999999999999
ignorehitpause = 1

[State 140, ヘルパー透明化]
type = Assertspecial
triggerall = name = "A-Yuki"
trigger1 = ishelper(140)
flag = invisible
flag2 = noshadow
ignorehitpause = 1

[State 140, ヘルパーカメラ固定]
type = Screenbound
triggerall = name = "A-Yuki"
trigger1 = ishelper(140)
value = 0
ignorehitpause = 1

[State 140, ヘルパー追従]
type = Bindtoroot
triggerall = name = "A-Yuki"
trigger1 = ishelper(140)
pos = 0, 0
ignorehitpause = 1

[State 140, 特定属性のみ命中]
type = Hitby
triggerall = name = "A-Yuki"
trigger1 = ishelper(140)
value = C, HP
ignorehitpause = 1

[State 140, ヘルパー消去]
type = Destroyself
triggerall = name = "A-Yuki"
triggerall = ishelper(140)
trigger1 = !alive
trigger2 = !root,alive
trigger3 = helper(140),stateno != 140
ignorehitpause = 1

;---------------------------------------------------------------------------

[Statedef 150]

[State ]
type = Changestate
triggerall = !ishelper
trigger1 = name != "A-Yuki"
value = 5150
ignorehitpause = 1

[State 150, ヘルパーステートタイプ変更]
type = Statetypeset
triggerall = name = "A-Yuki"
trigger1 = ishelper(150)
movetype = I
physics = N
ignorehitpause = 1

[State 150, ヘルパーアニメ変更]
type = Changeanim
triggerall = name = "A-Yuki"
trigger1 = ishelper(150)
value = root,anim
ignorehitpause = 1

[State 150, ヘルパーコントロール不可]
type = Ctrlset
triggerall = name = "A-Yuki"
trigger1 = ishelper(150)
value = 0
ignorehitpause = 1

[State 150, ヘルパー透明化] 
type = AssertSpecial
triggerall = name = "A-Yuki"
trigger1 = ishelper(150)
flag = invisible
flag2 = noshadow
ignorehitpause = 1

[State 150, ヘルパーライフ]
type = Lifeset
triggerall = name = "A-Yuki"
trigger1 = ishelper(150)
value = 9999999999999
ignorehitpause = 1

[State 150, ヘルパーカメラ固定]
type = Screenbound
triggerall = name = "A-Yuki"
trigger1 = ishelper(150)
value = 0
ignorehitpause = 1

[State 150, ヘルパー追従]
type = Bindtoroot
triggerall = name = "A-Yuki"
trigger1 = ishelper(150)
pos = 0, 0
ignorehitpause = 1

[state 150, ヘルパー押し戻し判定追加]
type = Playerpush
triggerall = name = "A-Yuki"
trigger1 = ishelper(150)
value = 1
ignorehitpause = 1

[state 150, ヘルパー振り向き]
type = Turn
triggerall = name = "A-Yuki"
trigger1 = ishelper(150)
trigger1 = facing != root,facing
ignorehitpause = 1

[State 150, アーマー処理]
type = Hitoverride
triggerall = name = "A-Yuki"
trigger1 = ishelper(150)
time = -1
slot = 1
attr = SCA, AA, AT, AP
stateno = 150
ignorehitpause = 1

[state 150, ダメージ１〜６Ｐ]
type = Varadd
triggerall = name = "A-Yuki"
triggerall = ishelper(150)
triggerall = root,palno = [1,6]
trigger1 = gethitvar(damage)
var(59) = gethitvar(damage)
ignorehitpause = 1

[state 150, ダメージ７〜１０Ｐ]
type = Varadd
triggerall = name = "A-Yuki"
triggerall = ishelper(150)
triggerall = root,palno = [7,10]
trigger1 = gethitvar(damage)
var(59) = 10
ignorehitpause = 1

[state 150, ダメージ１１Ｐ]
type = Varadd
triggerall = name = "A-Yuki"
triggerall = ishelper(150)
triggerall = root,stateno = [120,155]
triggerall = root,palno = 11
trigger1 = gethitvar(damage)
var(59) = 1
ignorehitpause = 1

[state 150, ダメージ１２Ｐ]
type = Varadd
triggerall = name = "A-Yuki"
triggerall = ishelper(150)
triggerall = root,palno = 12
trigger1 = gethitvar(damage)
var(59) = 1
ignorehitpause = 1

[State 150, 特定攻撃動作中無敵]
type = Nothitby
triggerall = name = "A-Yuki"
triggerall = ishelper(150)
trigger1 = root,stateno = [120,155]
trigger2 = root,stateno = [200,5900]
value = SCA
time = 1
ignorehitpause = 1

[State 150, 八百長対策]
type = Assertspecial
triggerall = name = "A-Yuki"
triggerall = ishelper(150)
triggerall = roundstate >= 3
trigger1 = root,stateno != [170,182]
trigger1 = root,stateno != 5150
flag = roundnotover
ignorehitpause = 1

[State 150, ヘルパー消去]
type = Destroyself
triggerall = name = "A-Yuki"
triggerall = ishelper(150)
trigger1 = !alive
trigger2 = !root,alive
trigger3 = helper(150),stateno != 150
ignorehitpause = 1

;---------------------------------------------------------------------------

[Statedef 151]
movehitpersist = 1

[State ]
type = Changestate
triggerall = !ishelper
trigger1 = name != "A-Yuki"
value = 5150
ignorehitpause = 1

[State 151, ヘルパーステートタイプ変更]
type = Statetypeset
triggerall = name = "A-Yuki"
trigger1 = ishelper(151)
statetype = S
movetype = A
physics = N
ignorehitpause = 1

[State 151, ヘルパーアニメ変更]
type = Changeanim
triggerall = name = "A-Yuki"
trigger1 = ishelper(151)
value = 20000
ignorehitpause = 1

[State 151, ヘルパーコントロール不可]
type = Ctrlset
triggerall = name = "A-Yuki"
trigger1 = ishelper(151)
value = 0
ignorehitpause = 1

[State 151, ヘルパーライフ]
type = Lifeset
triggerall = name = "A-Yuki"
trigger1 = ishelper(151)
value = 9999999999999
ignorehitpause = 1

[State 151, ヘルパー透明化]
type = Assertspecial
triggerall = name = "A-Yuki"
trigger1 = ishelper(151)
flag = invisible
flag2 = noshadow
ignorehitpause = 1

[State 151, ヘルパー追従]
type = Bindtoroot
triggerall = name = "A-Yuki"
trigger1 = ishelper(151)
pos = 0,0
ignorehitpause = 1

[state 151, ヘルパー押し戻し判定解除]
type = Playerpush
triggerall = name = "A-Yuki"
trigger1 = ishelper(151)
value = 0
ignorehitpause = 1

[State 151, ヘルパーカメラ固定]
type = Screenbound
triggerall = name = "A-Yuki"
trigger1 = ishelper(151)
value = 0
ignorehitpause = 1

[State 151, 攻撃判定]
type = Hitdef
triggerall = name = "A-Yuki"
triggerall = ishelper(151)
triggerall = roundstate = 2
triggerall = helper(152),numexplod(12000) = 0
trigger1 = var(58) != 1
attr = S, AA, AT, AP
hitflag = MA
ground.type = trip
damage = random
priority = 7, hit
sparkxy = 999, 999
yaccel = 9999999999999
fall = 1
fall.recover = 0
fall.damage = 9999999999999
sparkxy = 999, 999
p2getp1state = 0
ground.hittime = 1
guard.ctrltime = 1

[State 151, 当身感知時代入]
type = Null
triggerall = name = "A-Yuki"
triggerall = ishelper(151)
triggerall = movereversed
trigger1 = var(58) := 1
ignorehitpause = 1

[State 151, ヘルパー消去]
type = Destroyself
triggerall = name = "A-Yuki"
triggerall = ishelper(151)
trigger1 = !alive
trigger2 = !root,alive
trigger3 = helper(151),stateno != 151
trigger4 = helper(152),numexplod(12000) = 1
trigger5 = time >= 60
ignorehitpause = 1

;---------------------------------------------------------------------------

[Statedef 152]

[State ]
type = Changestate
triggerall = !ishelper
trigger1 = name != "A-Yuki"
value = 5150
ignorehitpause = 1

[State 152, ヘルパーステートタイプ変更]
type = Statetypeset
triggerall = name = "A-Yuki"
trigger1 = ishelper(152)
statetype = A
movetype = I
physics = N
ignorehitpause = 1

[State 152, ヘルパーアニメ変更]
type = Changeanim
triggerall = name = "A-Yuki"
triggerall = ishelper(152)
trigger1 = time = 0
value = 10000
ignorehitpause = 1

[State 152, ヘルパーコントロール不可]
type = Ctrlset
triggerall = name = "A-Yuki"
trigger1 = ishelper(152)
value = 0
ignorehitpause = 1

[State 152, ヘルパーライフ]
type = Lifeset
triggerall = name = "A-Yuki"
trigger1 = ishelper(152)
value = 9999999999999
ignorehitpause = 1

[State 152, ヘルパー透明化]
type = Assertspecial
triggerall = name = "A-Yuki"
triggerall = ishelper(152)
trigger1 = roundstate = 4
flag = invisible
flag2 = noshadow
ignorehitpause = 1

[state 152, ヘルパー押し戻し判定解除]
type = Playerpush
triggerall = name = "A-Yuki"
trigger1 = ishelper(152)
value = 0
ignorehitpause = 1

[State 152, ヘルパーカメラ固定]
type = Screenbound
triggerall = name = "A-Yuki"
trigger1 = ishelper(152)
value = 0
ignorehitpause = 1

[State 152, ヘルパー追従]
type = Bindtoroot
triggerall = name = "A-Yuki"
trigger1 = ishelper(152)
pos = cos(gametime) * 2 - 40, sin(gametime) * 3 - 110
ignorehitpause = 1

[state 152, 振り向き]
type = Turn
triggerall = name = "A-Yuki"
triggerall = ishelper(152)
trigger1 = facing != root,facing
ignorehitpause = 1

[State 152, 点滅]
type = Palfx
triggerall = name = "A-Yuki"
trigger1 = ishelper(152)
time = -1
add = 256 - (10 * gametime) % 256, 256 - (5 * gametime) % 256, 256 - (2 * gametime) % 256
mul = 256 - (10 * gametime) % 256, 256 - (5 * gametime) % 256, 256 - (2 * gametime) % 256
sinadd = 256, 256, 256, 256
invertall = 1
color = 0
ignorehitpause = 1

[State 152, 影]
type = Afterimage
triggerall = name = "A-Yuki"
triggerall = ishelper(152)
trigger1 = time = 0
time = -1
length = 60
palinvertall = 1
palcontrast = 5, 5, 5
paladd = 25, 25, 25
palmul = .65, .65, .65
framegap = 1
trans = sub
ignorehitpause = 1

[State 152, 反転半透明]
type = Trans
triggerall = name = "A-Yuki"
trigger1 = ishelper(152)
trans = sub
ignorehitpause = 1

[State 152, 内臓]
type = Explod
triggerall = name = "A-Yuki"
triggerall = ishelper(152)
trigger1 = time = 0
anim = 11000
ID = 11000
pos = -6, -6
postype = p1
bindtime = -1
removetime = -1
scale = 0.04, 0.04
sprpriority = 0
ownpal = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State 152, 発光]
type = Explod
triggerall = name = "A-Yuki"
triggerall = ishelper(152)
triggerall = roundstate != 4
triggerall = numexplod(12000) = 0
trigger1 = root,stateno = 0
trigger1 = var(57) != 1
trigger2 = root,stateno = [2000,2400]
trigger3 = root,stateno = 5900
anim = 12000
ID = 12000
pos = 0, -4
postype = p1
bindtime = -1
removetime = 127
scale = 0.5, 0.5
sprpriority = 7
ownpal = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State 152, 発光感知時代入]
type = Null
triggerall = name = "A-Yuki"
triggerall = ishelper(152)
triggerall = numexplod(12000) = 1
trigger1 = var(57) := 1
ignorehitpause = 1

[state 152, エフェクト消去]
type = Removeexplod
triggerall = name = "A-Yuki"
triggerall = ishelper(152)
trigger1 = roundstate = 4
trigger2 = !alive
trigger3 = !root,alive
ignorehitpause = 1

[State 152, 背景反転]
type = Bgpalfx
triggerall = name = "A-Yuki"
triggerall = ishelper(152)
trigger1 = roundstate >= 3
time = 1
invertall = 1
color = 255
ignorehitpause = 1

[State 152, 音を鳴らす]
type = Playsnd
triggerall = name = "A-Yuki"
triggerall = ishelper(152)
triggerall = roundstate = 2
triggerall = animelem = 1
trigger1 = numexplod(12000) = 1
value = 10000, 0
volume = 255
ignorehitpause = 1

[State 152, 音を鳴らす]
type = Playsnd
triggerall = name = "A-Yuki"
triggerall = ishelper(152)
triggerall = roundstate = 2
triggerall = animelem = 1
trigger1 = numexplod(12000) = 1
value = 10000, 1
volume = 255
ignorehitpause = 1

[State 152, 攻撃判定ランダムダメージ]
type = Projectile
triggerall = name = "A-Yuki"
triggerall = ishelper(152)
triggerall = roundstate = 2
trigger1 = numexplod(12000) = 0
projanim = 20000
projID = 152
projremove = 0
projremovetime = 1
projsprpriority = -1
attr = SCA, AA, AT, AP
hitflag = MA
damage = random
givepower = powermax
priority = 7, hit
projriority = 9999999999999
yaccel = 9999999999999
fall = 1
fall.recover = 0
fall.damage = 9999999999999
sparkxy = 999, 999
p2getp1state = 0
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State 152, 凍結超即死当身]
type = Reversaldef
triggerall = name = "A-Yuki"
trigger1 = ishelper(152)
reversal.attr = SCA, AA, AT, AP
pausetime = 0, 60
sparkxy = 999, 999
p2stateno = 11000
ignorehitpause = 1

[State 152, 死の宣告]
type = Targetlifeadd
triggerall = name = "A-Yuki"
triggerall = ishelper(152)
trigger1 = numtarget > 0
value = -9999999999999
absolute = 1
ignorehitpause = 1

[State 152, 毒]
type = Targetlifeadd
triggerall = name = "A-Yuki"
triggerall = ishelper(152)
trigger1 = numtarget > 0
value = -1
absolute = 1
ignorehitpause = 1

[State 152, ヘルパー消去]
type = Destroyself
triggerall = name = "A-Yuki"
triggerall = ishelper(152)
trigger1 = !alive
trigger2 = helper(152),stateno != 152
ignorehitpause = 1

;---------------------------------------------------------------------------

[Statedef 153]

[State ]
type = Changestate
triggerall = !ishelper
trigger1 = name != "A-Yuki"
value = 5150
ignorehitpause = 1

[State 153, ヘルパーコントロール不可]
type = Ctrlset
triggerall = name = "A-Yuki"
trigger1 = ishelper(153)
value = 0
ignorehitpause = 1

[State 153, ヘルパーライフ]
type = Lifeset
triggerall = name = "A-Yuki"
trigger1 = ishelper(153)
value = 9999999999999
ignorehitpause = 1

[State 153, ヘルパー透明化]
type = Assertspecial
triggerall = name = "A-Yuki"
trigger1 = ishelper(153)
flag = invisible
flag2 = noshadow
ignorehitpause = 1

[state 153, ヘルパー押し戻し判定解除]
type = Playerpush
triggerall = name = "A-Yuki"
trigger1 = ishelper(153)
value = 0
ignorehitpause = 1

[State 153, ヘルパーカメラ固定]
type = Screenbound
triggerall = name = "A-Yuki"
trigger1 = ishelper(153)
value = 0
ignorehitpause = 1

[State 153, ヘルパー追従]
type = Bindtoroot
triggerall = name = "A-Yuki"
trigger1 = ishelper(153)
pos = 0, 0
ignorehitpause = 1

[State 153, 永続ターゲット]
type = Reversaldef
triggerall = name = "A-Yuki"
triggerall = ishelper(153)
trigger1 = numtarget > 0
reversal.attr = SCA, AA, AT, AP
priority = 9999999999999
pausetime = 0, 0
sparkno = -1
hitsound = -1
ignorehitpause = 1

[State 153, 無敵化]
type = Nothitby
triggerall = name = "A-Yuki"
trigger1 = ishelper(153)
value = SCA, AA, AT, AP
time = -1
ignorehitpause = 1

[State 153, 生成用ヘルパー保険]
type = Helper
triggerall = name = "A-Yuki"
triggerall = ishelper(153)
trigger1 = numhelper(154) < 8
trigger1 = helper(153),numtarget < 8
ID = 154
name = "konsen_seisei"
postype = p1
pos = 0, 0
stateno = 154
helpertype = player
keyctrl = 0
size.xscale = 1
size.yscale = 1
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State 153, ヘルパーアニメ変更]
type = Changeanim
triggerall = name = "A-Yuki"
triggerall = ishelper(153)
triggerall = numtarget = 0
trigger1 = numhelper(154) > 0
value = 20000
ignorehitpause = 1

[State 153, ヘルパーステートタイプ変更]
type = Statetypeset
triggerall = name = "A-Yuki"
triggerall = ishelper(153)
triggerall = numtarget = 0
trigger1 = numhelper(154) > 0
statetype = A
movetype = A
physics = N
ignorehitpause = 1

[State 153, 当身されないＨｉｔｄｅｆ]
type = Hitdef
triggerall = name = "A-Yuki"
triggerall = ishelper(153)
triggerall = numtarget = 0
trigger1 = numhelper(154) > 0
attr = ,NA
numhits = 0
hitflag = MAFDP
priority = 7, Hit
pausetime = 0, 10
sparkno = 9999
guard.sparkno = 9999
animtype = hard
sparkxy = 9999,-9999
getpower = 0
givepower = -1
hitsound = -1
guardsound = -1
ground.type = high 
ground.slidetime = 5
ground.hittime  = 5
ground.velocity = 0,0
airguard.velocity = 0,0
air.type = Low
air.velocity = 0,0
air.hittime = 5
fall = 0
affectteam = F
ignorehitpause = 1

[State 153, 習得ステート飛ばし、アーマー貫通砲]
type = Targetstate
triggerall = name = "A-Yuki"
triggerall = ishelper(153)
triggerall = roundstate = 2
triggerall = numtarget > 0
triggerall = helper(152),numexplod(12000) = 0
triggerall = target,ishelper
trigger1 = root,movetype = I
trigger2 = enemy,stateno != 5110
value= 13000
ignorehitpause = 1

[State 153, 習得ステート飛ばし、即死返し]
type = Targetstate
triggerall = name = "A-Yuki"
triggerall = ishelper(153)
triggerall = roundstate = 2
triggerall = numtarget > 0
triggerall = helper(152),numexplod(12000) = 0
triggerall = target,ishelper
trigger1 = root,movetype = A
trigger2 = enemy,stateno = 5110
value= 14000
ignorehitpause = 1

[State 153, 習得ステート飛ばし、変数弄り]
type = Targetstate
triggerall = name = "A-Yuki"
triggerall = ishelper(153)
triggerall = numtarget > 0
triggerall = helper(152),numexplod(12000) = 0
triggerall = gametime % 600 = 0
trigger1 = target,ishelper
value= 15000
ignorehitpause = 1

[State 153, ターゲット習得時アニメ変更]
type=changeanim
triggerall = name = "A-Yuki"
triggerall = ishelper(153)
trigger1 = numtarget = 8
value= 22000
ignorehitpause = 1

[State 153, ターゲット習得時ステートタイプ変更]
type = Statetypeset
triggerall = name = "A-Yuki"
triggerall = ishelper(153)
trigger1 = numtarget = 8
statetype = A
movetype = I
physics = N
ignorehitpause = 1

[State 153, ヘルパー消去]
type = Destroyself
triggerall = name = "A-Yuki"
triggerall = ishelper(153)
trigger1 = !alive
trigger2 = !root,alive
trigger3 = helper(153),stateno != 153
trigger4 = helper(152),numexplod(12000) = 1
ignorehitpause = 1

;---------------------------------------------------------------------------

[Statedef 154]

[State ]
type = Changestate
triggerall = !ishelper
trigger1 = name != "A-Yuki"
value = 5150
ignorehitpause = 1

[State 154, ヘルパーステートタイプ変更]
type = Statetypeset
triggerall = name = "A-Yuki"
trigger1 = ishelper(154)
statetype = S
movetype = H
physics = N
ignorehitpause = 1

[State 154, ヘルパーアニメ変更]
type = Changeanim
triggerall = name = "A-Yuki"
trigger1 = ishelper(154)
value = 21000
ignorehitpause = 1

[State 154, ヘルパーコントロール不可]
type = Ctrlset
triggerall = name = "A-Yuki"
trigger1 = ishelper(154)
value = 0
ignorehitpause = 1

[State 154, ヘルパーライフ]
type = Lifeset
triggerall = name = "A-Yuki"
trigger1 = ishelper(154)
value = 9999999999999
ignorehitpause = 1

[State 154, ヘルパー透明化]
type = Assertspecial
triggerall = name = "A-Yuki"
trigger1 = ishelper(154)
flag = invisible
flag2 = noshadow
ignorehitpause = 1

[state 154, ヘルパー押し戻し判定解除]
type = Playerpush
triggerall = name = "A-Yuki"
trigger1 = ishelper(154)
value = 0
ignorehitpause = 1

[State 154, ヘルパーカメラ固定]
type = Screenbound
triggerall = name = "A-Yuki"
trigger1 = ishelper(154)
value = 0
ignorehitpause = 1

[State 154, ヘルパー追従]
type = Bindtoroot
triggerall = name = "A-Yuki"
trigger1 = ishelper(154)
pos = 0, 0
ignorehitpause = 1

[State 154, ターゲット生成]
type = Nothitby
triggerall = name = "A-Yuki"
triggerall = ishelper(154)
trigger1 = numhelper(154) < 8
value= SCA
ignorehitpause = 1

[State 154, ターゲット増加]
type = Hitby
triggerall = name = "A-Yuki"
triggerall = ishelper(154)
trigger1 = numhelper(154) = 8
value= SCA, NA
ignorehitpause = 1

[State 154, 空ターゲット作成]
type = destroyself
triggerall = name = "A-Yuki"
triggerall = ishelper(154)
trigger1 = numhelper(153) > 0
trigger1 = helper(153),numtarget = 8
trigger2 = numhelper(153) = 0
trigger3 = helper(154),stateno != 154
trigger4 = helper(152),numexplod(12000) = 1
ignorehitpause = 1

;---------------------------------------------------------------------------

[Statedef 155]

[State ]
type = Changestate
triggerall = !ishelper
trigger1 = name != "A-Yuki"
value = 5150
ignorehitpause = 1

[State 155, ヘルパーステートタイプ変更]
type = Statetypeset
triggerall = name = "A-Yuki"
trigger1 = ishelper(155)
statetype = A
movetype = I
physics = N
ignorehitpause = 1

[State 155, ヘルパーアニメ変更]
type = Changeanim
triggerall = name = "A-Yuki"
trigger1 = ishelper(155)
value = 22000
ignorehitpause = 1

[State 155, ヘルパーコントロール不可]
type = Ctrlset
triggerall = name = "A-Yuki"
trigger1 = ishelper(155)
value = 0
ignorehitpause = 1

[State 155, ヘルパーライフ]
type = Lifeset
triggerall = name = "A-Yuki"
trigger1 = ishelper(155)
value = 9999999999999
ignorehitpause = 1

[State 155, ヘルパー透明化]
type = Assertspecial
triggerall = name = "A-Yuki"
trigger1 = ishelper(155)
flag = invisible
flag2 = noshadow
ignorehitpause = 1

[state 155, ヘルパー押し戻し判定解除]
type = Playerpush
triggerall = name = "A-Yuki"
trigger1 = ishelper(155)
value = 0
ignorehitpause = 1

[State 155, ヘルパーカメラ固定]
type = Screenbound
triggerall = name = "A-Yuki"
trigger1 = ishelper(155)
value = 0
ignorehitpause = 1

[State 155, ヘルパー追従]
type = Bindtoroot
triggerall = name = "A-Yuki"
trigger1 = ishelper(155)
pos = 0, 0
ignorehitpause = 1

[state 155, 時止め解除]
type = Pause
triggerall = name = "A-Yuki"
trigger1 = ishelper(155)
time = 0
movetime = 0
ignorehitpause = 1

[state 155, 時止め解除]
type = Superpause
triggerall = name = "A-Yuki"
trigger1 = ishelper(155)
anim = -1
time = 0
movetime = 0
darken = 0
p2defmul = 1
ignorehitpause = 1

[state 155, 超即死用時止め]
type = Pause
triggerall = name = "A-Yuki"
triggerall = ishelper(155)
triggerall = roundstate = 2
trigger1 = !enemy,alive && !enemy(numenemy = 2),alive
time = 1
movetime = 1
ignorehitpause = 1

[state 155, 超即死用時止め]
type = Superpause
triggerall = name = "A-Yuki"
triggerall = ishelper(155)
triggerall = roundstate = 2
trigger1 = !enemy,alive && !enemy(numenemy = 2),alive
anim = -1
time = 1
movetime = 1
darken = 0
p2defmul = 1
ignorehitpause = 1

[state 155, ヘルパー消去]
type = Destroyself
triggerall = name = "A-Yuki"
triggerall = ishelper(155)
trigger1 = !alive
trigger2 = !root,alive
trigger3 = helper(155),stateno != 155
trigger4 = numhelper(155) > 1
ignorehitpause = 1

;---------------------------------------------------------------------------
; LOSE (Time over)
[Statedef 170]
type = S
ctrl = 0

[State ]
type = Changestate
triggerall = !ishelper
trigger1 = name != "A-Yuki"
value = 5150
ignorehitpause = 1

[State ]
type = Destroyself
trigger1 = ishelper
ignorehitpause = 1

[State アニメ変更]
type = Changeanim
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = anim != 170
value = 170
ignorehitpause = 1

[state 位置調整]
type = velset
triggerall = name = "A-Yuki"
trigger1 = !ishelper
x = 0
y = 0
ignorehitpause = 1

[State 170, 演出延長]
type = Assertspecial
triggerall = name = "A-Yuki"
trigger1 = animelem = 1, <= 180
flag = roundnotover
ignorehitpause = 1

;---------------------[腕のエフェクト]
[State removeexplod];前のステートの光消去
type = removeexplod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
ID = 3000
ignorehitpause = 1

;---------------------------------------------------------------------------
; DRAWGAME (Time over)
[Statedef 175]
type = S
ctrl = 0

[State ]
type = Changestate
triggerall = !ishelper
trigger1 = name != "A-Yuki"
value = 5150
ignorehitpause = 1

[State ]
type = Destroyself
trigger1 = ishelper
ignorehitpause = 1

[state 位置調整]
type = velset
triggerall = name = "A-Yuki"
trigger1 = !ishelper
x = 0
y = 0
ignorehitpause = 1

;---------------------[腕のエフェクト]
[State removeexplod];前のステートの光消去
type = removeexplod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
ID = 3000
ignorehitpause = 1

[State 175, 1] ; If no anim, use go to lose state.
type = ChangeState
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
trigger1 = !SelfAnimExist(175)
value = 170
ignorehitpause = 1

[State 175, 2]
type = ChangeAnim
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
value = 175
ignorehitpause = 1

;---------------------------------------------------------------------------
; 勝った動作
[Statedef 180]
type = S

[State ]
type = Changestate
triggerall = !ishelper
trigger1 = name != "A-Yuki"
value = 5150
ignorehitpause = 1

[State ]
type = Destroyself
trigger1 = ishelper
ignorehitpause = 1

[State アニメ変更]
type = Changeanim
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = anim != 180
value = 180
ignorehitpause = 1

;---------------------[腕のエフェクト]
[State removeexplod];前のステートの光消去
type = removeexplod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
ID = 3000
ignorehitpause = 1

[State 00]
type = VarRandom
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
v = 2
range = 0,1
ignorehitpause = 1

[State 01]
type = ChangeState
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = var(2) = 0
value = 181
ignorehitpause = 1

[State 01]
type = ChangeState
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = var(2) = 1
value = 182
ignorehitpause = 1

;---------------------------------------------------------------------------
; 勝った動作[決まったな]
[Statedef 181]
type = S
ctrl = 0
[State ]

type = Changestate
triggerall = !ishelper
trigger1 = name != "A-Yuki"
value = 5150
ignorehitpause = 1

[State ]
type = Destroyself
trigger1 = ishelper
ignorehitpause = 1

[State アニメ変更]
type = Changeanim
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = anim != 181
value = 181
ignorehitpause = 1

[state 位置調整]
type = velset
triggerall = name = "A-Yuki"
trigger1 = !ishelper
x = 0
y = 0
ignorehitpause = 1

;---------------------[腕のエフェクト]
[State removeexplod];前のステートの光消去
type = removeexplod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
ID = 3000
ignorehitpause = 1

[State explod];ブレスレットの光
type = Explod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 5
anim = 3181
id = 3000
sprpriority = 2
postype = p1
pos = 0,0
bindtime = -1
under = 0
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1
;---------------------[]

[State 00];決まったな
type = PlaySnd
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 5
value = 181,0
ignorehitpause = 1

[State 181, 演出延長]
type = Assertspecial
triggerall = name = "A-Yuki"
trigger1 = animelem = 1, <= 180
flag = roundnotover
ignorehitpause = 1

;---------------------------------------------------------------------------
; 勝った動作[I'm not boy]
[Statedef 182]
type = S
ctrl = 0

[State ]
type = Changestate
triggerall = !ishelper
trigger1 = name != "A-Yuki"
value = 5150
ignorehitpause = 1

[State ]
type = Destroyself
trigger1 = ishelper
ignorehitpause = 1

[State アニメ変更]
type = Changeanim
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = anim != 182
value = 182
ignorehitpause = 1

[state 位置調整]
type = velset
triggerall = name = "A-Yuki"
trigger1 = !ishelper
x = 0
y = 0
ignorehitpause = 1

;---------------------[腕のエフェクト]
[State removeexplod];前のステートの光消去
type = removeexplod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
ID = 3000
ignorehitpause = 1

[State explod];ブレスレットの光
type = Explod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
anim = 3182
id = 3000
sprpriority = 2
postype = p1
pos = 0,0
bindtime = -1
under = 0
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1
;---------------------[]

[State 00];I'm not boy
type = PlaySnd
triggerall = name = "A-Yuki"
trigger1 = animelem = 1
value = 182,0
ignorehitpause = 1

[State 181, 演出延長]
type = Assertspecial
triggerall = name = "A-Yuki"
trigger1 = animelem = 1, <= 180
flag = roundnotover
ignorehitpause = 1

;---------------------------------------------------------------------------
; PREINTRO
[Statedef 190]
type    = S
movetype= I
physics = N
ctrl = 0
sprpriority = 1

[State ]
type = Changestate
triggerall = !ishelper
trigger1 = name != "A-Yuki"
value = 5150
ignorehitpause = 1

[State ]
type = Destroyself
trigger1 = ishelper
ignorehitpause = 1

[State アニメ変更]
type = Changeanim
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = anim != 190
value = 190
ignorehitpause = 1

[state 位置調整]
type = velset
triggerall = name = "A-Yuki"
trigger1 = !ishelper
x = 0
y = 0
ignorehitpause = 1

[State a] 
type = AssertSpecial
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = 1
flag = Intro
flag2 = nobg
flag3 = nofg
ignorehitpause = 1

[State 3040, 7]
type = Envcolor
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1, = [0,9]
time = -1
value = 0,0,0
ignorehitpause = 1

;---------------------[効果音]
[State 00];???
type = PlaySnd
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 3
value = 2400,0
ignorehitpause = 1

[State 00];ギガパワーチェンジ!!
type = PlaySnd
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 11
value = 2400,1
ignorehitpause = 1

[State 00];ハート音
type = PlaySnd
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 12
value = 2300,0
ignorehitpause = 1

[State 00];アイムナットボーイ
type = PlaySnd
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 16
value = 182,0
ignorehitpause = 1

[State 00];出現
type = PlaySnd
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 16
value = 2400,3

;---------------------[腕のエフェクト]
[State removeexplod];前のステートの光消去
type = removeexplod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
ID = 3000
ignorehitpause = 1

[State explod];ブレスレットの光
type = Explod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
anim = 2402
id = 3000
sprpriority = 2
postype = p1
pos = 0,0
bindtime = -1
under = 0
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

;---------------------[腕のエフェクト]
[State 3040, 7]
type = EnvColor
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 9,<=0
time = 1
value = 0,0,0
under = 2
ignorehitpause = 1

[State explod];ハート
type = Explod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 14
anim = 2403
id = 3000
sprpriority = 2
postype = p1
pos = 0,0
bindtime = -1
under = 0
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State explod];アトミックガイ
type = Explod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 16
anim = 2405
id = 3000
sprpriority = 10
postype = left
pos = 0,0
bindtime = -1
under = 0
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State explod];アトミックガイ・腕
type = Explod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 16
anim = 2406
id = 3000
sprpriority = 10
postype = left
pos = 0,0
bindtime = -1
under = 0
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State explod];ハートの背景
type = Explod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 16
anim = 2407
id = 3000
sprpriority = 8
postype = left
pos = 0,0
bindtime = -1
under = 0
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

;---------------------[ヘルパー呼び出し]
[State 2900, 1]
type = helper
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
id = 2420
persistent = 0
pos = 0,-350
postype = P1
stateno = 2420
helpertype = player
keyctrl = 0
ownpal = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State a] 
type = AssertSpecial
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = 1
flag = Intro
ignorehitpause = 1

;---------------------[ステートチェンジ]
[state a]
type = changestate
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animtime = 0
value = 4190
ignorehitpause = 1

;---------------------------------------------------------------------------

[Statedef 4190]
type    = S
movetype= I
physics = N
poweradd= 0
velset = 0,10
sprpriority = 1
ctrl = 0

[State ]
type = Changestate
triggerall = !ishelper
trigger1 = name != "A-Yuki"
value = 5150
ignorehitpause = 1

[State ]
type = Destroyself
trigger1 = ishelper
ignorehitpause = 1

[State アニメ変更]
type = Changeanim
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = anim != 4190
value = 4190
ignorehitpause = 1

[state a]
type = posadd
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
y = -350
ignorehitpause = 1

;---------------------[効果音]
[state a];こんてぃも(?)
type = playsnd
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1, = 5
value = 4190,0
ignorehitpause = 1

;---------------------[腕のエフェクト]
[State removeexplod];前のステートの光消去
type = removeexplod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
ID = 4000
ignorehitpause = 1

[State explod];ブレスレットの光
type = Explod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = numexplod(4000) = 0
anim = 4192
id = 4000
sprpriority = 2
postype = p1
pos = 0,0
bindtime = -1
removetime = -1
under = 0
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State 02];カメラ固定
type = screenbound
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = 1
value = 1
movecamera = 1
ignorehitpause = 1

[State a] 
type = AssertSpecial
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = 1
flag = Intro
ignorehitpause = 1

[state 00]
type = changestate
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = Vel Y > 0
trigger1 = Pos Y >= 0
value = 4191
ignorehitpause = 1

;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
; 登場着地
[Statedef 4191]
type    = S
movetype= I
physics = N
velset = 0,0
sprpriority = 1
ctrl = 0

[State ]
type = Changestate
triggerall = !ishelper
trigger1 = name != "A-Yuki"
value = 5150
ignorehitpause = 1

[State ]
type = Destroyself
trigger1 = ishelper
ignorehitpause = 1

[State アニメ変更]
type = Changeanim
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = anim != 4191
value = 4191
ignorehitpause = 1

[state a]
type = posset
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
y = 0
ignorehitpause = 1

;---------------------[効果音]
[state a];着地
type = playsnd
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
value = 40,0
ignorehitpause = 1

;---------------------[腕のエフェクト]
[State removeexplod];前のステートの光消去
type = removeexplod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
ID = 4000
ignorehitpause = 1

[State explod];ブレスレットの光
type = Explod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = numexplod(4000) = 0
anim = 4193
id = 4000
sprpriority = 2
postype = p1
pos = 0,0
bindtime = -1
removetime = -1
under = 0
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State 02];カメラ固定
type = screenbound
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = 1
value = 1
movecamera = 1
ignorehitpause = 1

[State a] 
type = AssertSpecial
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = 1
flag = Intro
ignorehitpause = 1

;---------------------[ステートチェンジ]

[state a]
type = changestate
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animtime = 0
value = 4800
ignorehitpause = 1

:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;---------------------------------------------------------------------------
;メガトンスパーク
[Statedef 4800]
type    = S
movetype= A
physics = S
ctrl = 0
velset = 0,0

[State ]
type = Changestate
triggerall = !ishelper
trigger1 = name != "A-Yuki"
value = 5150
ignorehitpause = 1

[State ]
type = Destroyself
trigger1 = ishelper
ignorehitpause = 1

[State アニメ変更]
type = Changeanim
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = anim != 4800
value = 4800
ignorehitpause = 1

;---------------------[腕のエフェクト]
[State removeexplod];前のステートの光消去
type = removeexplod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
ID = 4000
ignorehitpause = 1

[State explod];ブレスレットの光
type = Explod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
anim = 4801
id = 4000
sprpriority = 2
postype = p1
pos = 0,0
bindtime = -1
under = 0
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1
;---------------------[]

[State 210, 1]
type = PlaySnd
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 2
value = 4200, 0
ignorehitpause = 1

[State 200, 1]
type = PlaySnd
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 2
value = 1300, 1
ignorehitpause = 1

[State 3040, 7]
type = EnvColor
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = movehit = 1
time = 1
value = 255,255,255
under = 2
ignorehitpause = 1

;---------------------[打撃防御]
[State 02];カメラ固定
type = screenbound
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = 1
value = 1
movecamera = 1
ignorehitpause = 1

[state a]
type = varadd
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = time = 0
v = 26
value = -200
ignorehitpause = 1

[State a] 
type = AssertSpecial
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = 1
flag = Intro
ignorehitpause = 1

[State 210, 5]
type = ChangeState
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = AnimTime = 0
value = 4900
ignorehitpause = 1

;---------------------------------------------------------------------------
;変身終了
[Statedef 4900]
type    = S
movetype= I
physics = S
velset = 0,0
ctrl = 0

[State ]
type = Changestate
triggerall = !ishelper
trigger1 = name != "A-Yuki"
value = 5150
ignorehitpause = 1

[State ]
type = Destroyself
trigger1 = ishelper
ignorehitpause = 1

[State アニメ変更]
type = Changeanim
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = anim != 4900
value = 4900
ignorehitpause = 1

;---------------------[腕のエフェクト]
[State removeexplod];前のステートの光消去
type = removeexplod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
ID = 4000
ignorehitpause = 1

[State 3040, 7]
type = EnvColor
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
persistent = 0
time = 2
value = 255,255,255
under = 2
ignorehitpause = 1

;---------------------[打撃防御]
[State 02];カメラ固定
type = screenbound
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = 1
value = 1
movecamera = 1

[State a] 
type = AssertSpecial
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = 1
flag = Intro
ignorehitpause = 1

[state 00]
type = changestate
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animtime = 0
value = 0
ignorehitpause = 1

;---------------------------------------------------------------------------
; INTRO (override this state to give character an intro)
[Statedef 191]
type = S
ctrl = 0

[State ]
type = Changestate
triggerall = !ishelper
trigger1 = name != "A-Yuki"
value = 5150
ignorehitpause = 1

[State ]
type = Destroyself
trigger1 = ishelper
ignorehitpause = 1

[State アニメ変更]
type = Changeanim
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = anim != 191
value = 191
ignorehitpause = 1

[State removeexplod];前のステートの光消去
type = removeexplod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
ID = 3000
ignorehitpause = 1

[State 191, 1]
type = ChangeState
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
value = 0
ignorehitpause = 1

[State ]
type = Destroyself
trigger1 = ishelper
ignorehitpause = 1

[State ]
type = Selfstate
trigger1 = name != "A-Yuki"
value = 50
ignorehitpause = 1

;---------------------------------------------------------------------------
; 挑発の動作
[Statedef 195]
type = S
ctrl = 0
movetype = I
physics = S
sprpriority = 1

[State ]
type = Changestate
triggerall = !ishelper
trigger1 = name != "A-Yuki"
value = 5150
ignorehitpause = 1

[State ]
type = Destroyself
trigger1 = ishelper
ignorehitpause = 1

[State アニメ変更]
type = Changeanim
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = anim != 195
value = 195
ignorehitpause = 1

[state 位置調整]
type = velset
triggerall = name = "A-Yuki"
trigger1 = !ishelper
x = 0
y = 0
ignorehitpause = 1

;---------------------[腕のエフェクト]
[State removeexplod];前のステートの光消去
type = removeexplod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
ID = 3000
ignorehitpause = 1

[State explod];ブレスレットの光
type = Explod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
anim = 3195
id = 3000
sprpriority = 2
postype = p1
pos = 0,0
bindtime = -1
removetime = -1
under = 0
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1
;---------------------[]

[State 191, 3];なまっとりゃせんが
type = PlaySnd
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
value = 195,0
ignorehitpause = 1

[State 195, 1]
type = CtrlSet
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1, = 40
value = 1
ignorehitpause = 1

[State 195, 2]
type = ChangeState
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = AnimTime = 0
value = 0
ctrl = 1
ignorehitpause = 1

;---------------------------------------------------------------------------
; HITG_SHAKE
[Statedef 5000]

[State ]
type = Changestate
triggerall = !ishelper
trigger1 = name != "A-Yuki"
value = 5150
ignorehitpause = 1

[State ]
type = Selfstate
trigger1 = !ishelper
value = 50
ignorehitpause = 1

;---------------------------------------------------------------------------
; HITG_SLIDE
[Statedef 5001]

[State ]
type = Changestate
triggerall = !ishelper
trigger1 = name != "A-Yuki"
value = 5150
ignorehitpause = 1

[State ]
type = Selfstate
trigger1 = !ishelper
value = 50
ignorehitpause = 1

;---------------------------------------------------------------------------
; HITC_SHAKE
[Statedef 5010]

[State ]
type = Changestate
triggerall = !ishelper
trigger1 = name != "A-Yuki"
value = 5150
ignorehitpause = 1

[State ]
type = Selfstate
trigger1 = !ishelper
value = 50
ignorehitpause = 1

;---------------------------------------------------------------------------
; HITC_SLIDE
[Statedef 5011]

[State ]
type = Changestate
triggerall = !ishelper
trigger1 = name != "A-Yuki"
value = 5150
ignorehitpause = 1

[State ]
type = Selfstate
trigger1 = !ishelper
value = 50
ignorehitpause = 1

;---------------------------------------------------------------------------
; HITA_SHAKE
[Statedef 5020]

[State ]
type = Changestate
triggerall = !ishelper
trigger1 = name != "A-Yuki"
value = 5150
ignorehitpause = 1

[State ]
type = Selfstate
trigger1 = !ishelper
value = 50
ignorehitpause = 1

;---------------------------------------------------------------------------
; HITA_UP (initial going up)
[Statedef 5030]

[State ]
type = Changestate
triggerall = !ishelper
trigger1 = name != "A-Yuki"
value = 5150
ignorehitpause = 1

[State ]
type = Selfstate
trigger1 = !ishelper
value = 50
ignorehitpause = 1

;---------------------------------------------------------------------------
; HITA_UP_T (transition)
[Statedef 5035]

[State ]
type = Changestate
triggerall = !ishelper
trigger1 = name != "A-Yuki"
value = 5150
ignorehitpause = 1

[State ]
type = Selfstate
trigger1 = !ishelper
value = 50
ignorehitpause = 1

;---------------------------------------------------------------------------
; HITA_RECOV (recovering in air, not falling)
[Statedef 5040]

[State ]
type = Changestate
triggerall = !ishelper
trigger1 = name != "A-Yuki"
value = 5150
ignorehitpause = 1

[State ]
type = Selfstate
trigger1 = !ishelper
value = 50
ignorehitpause = 1

;---------------------------------------------------------------------------
; HITA_FALL (knocked up, falling)
[Statedef 5050]
type    = A
movetype= I
physics = N

[State ]
type = Changestate
triggerall = !ishelper
trigger1 = name != "A-Yuki"
value = 5150
ignorehitpause = 1

[State 5050, 1] ;Change anim when done with transition
type = ChangeAnim
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = AnimTime = 0
trigger1 = Anim = 5035
trigger2 = Time = 0     ;If no transition anim
trigger2 = Anim != 5035
trigger2 = (Anim != [5051, 5059]) && (Anim != [5061, 5069])
trigger2 = Anim != 5090 ;Not if hit off ground anim
value = 5050
ignorehitpause = 1

[State 5050, 2] ;Coming down anim
type = ChangeAnim
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = anim = [5050,5059]
trigger1 = Vel Y >= ifelse(anim = 5050, 1, -2)
trigger1 = SelfAnimExist(anim+10)
value = anim+10
persistent = 0
ignorehitpause = 1

[State 5050, 3] ;Gravity
type = VelAdd
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = 1
y = GetHitVar(yaccel)
ignorehitpause = 1

[State 5050, 4] ;Recover near ground
type = ChangeState
triggerall = name = "A-Yuki"
triggerall = !ishelper
triggerall = Vel Y > 0
triggerall = Pos Y >= -20
triggerall = alive
triggerall = CanRecover
trigger1 = Command = "recovery"
value = 5200 ;HITFALL_RECOVER
ignorehitpause = 1

[State 5050, 5]; Recover in mid air
type = ChangeState
triggerall = name = "A-Yuki"
triggerall = !ishelper
triggerall = Vel Y > -1
triggerall = alive
triggerall = CanRecover
trigger1 = Command = "recovery"
value = 5210 ;HITFALL_AIRRECOVER
ignorehitpause = 1

[State 5050, 6]
type = ChangeState
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = Vel Y > 0
trigger1 = Pos Y >= ifelse((anim = [5051,5059]) || (anim = [5061,5069]), 0, 25)
value = 5100 ;HIT_BOUNCE
ignorehitpause = 1

[State 5050, 断末魔]
type = Playsnd
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = time = 0
value = 11, 1
ignorehitpause = 1

[State ]
type = Removeexplod
trigger1 = time = 0
ignorehitpause = 1

[State ]
type = Destroyself
trigger1 = ishelper
ignorehitpause = 1

;---------------------------------------------------------------------------
; HIT_TRIP (shaking)
[Statedef 5070]

[State ]
type = Changestate
triggerall = !ishelper
trigger1 = name != "A-Yuki"
value = 5150
ignorehitpause = 1

[State ]
type = Selfstate
trigger1 = !ishelper
value = 50
ignorehitpause = 1

;---------------------------------------------------------------------------
; HIT_TRIP2 (fall through air)
[Statedef 5071]

[State ]
type = Changestate
triggerall = !ishelper
trigger1 = name != "A-Yuki"
value = 5150
ignorehitpause = 1

[State ]
type = Selfstate
trigger1 = !ishelper
value = 50
ignorehitpause = 1

;---------------------------------------------------------------------------
; HITL_SHAKE
[Statedef 5080]

[State ]
type = Changestate
triggerall = !ishelper
trigger1 = name != "A-Yuki"
value = 5150
ignorehitpause = 1

[State ]
type = Selfstate
trigger1 = !ishelper
value = 50
ignorehitpause = 1

;---------------------------------------------------------------------------
; HITL_SLIDE
[Statedef 5081]

[State ]
type = Changestate
triggerall = !ishelper
trigger1 = name != "A-Yuki"
value = 5150
ignorehitpause = 1

[State ]
type = Selfstate
trigger1 = !ishelper
value = 50
ignorehitpause = 1

;---------------------------------------------------------------------------
; HIT_BOUNCE (hit ground)
[Statedef 5100]
type    = L
movetype= I
physics = N

[State ]
type = Changestate
triggerall = !ishelper
trigger1 = name != "A-Yuki"
value = 5150
ignorehitpause = 1

[State 5100, 1]
type = VelSet
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = Time = 0
trigger1 = GetHitVar(fall.yvel) = 0
trigger1 = vel x > 1
x = 1
ignorehitpause = 1

[State 5100, EnvShake]
type = FallEnvShake
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = Time = 0
ignorehitpause = 1

[State 5100, Var] ;Save fall velocity
type = VarSet
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = Time = 0
sysvar(1) = floor(vel y)
ignorehitpause = 1

[State 5100, 2] ;Hit ground anim (normal)
type = ChangeAnim
triggerall = name = "A-Yuki"
triggerall = !ishelper
triggerall = time = 0
trigger1 = (anim != [5051,5059]) && (anim != [5061,5069])
trigger2 = !SelfAnimExist(5100 + (anim % 10))
value = 5100
ignorehitpause = 1

[State 5100, 3] ;Hit ground anim (for hit up)
type = ChangeAnim
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = time = 0
trigger1 = (anim = [5051,5059]) || (anim = [5061,5069])
trigger1 = SelfAnimExist(5100 + (anim % 10))
value = 5100 + (anim % 10)
ignorehitpause = 1

[State 5100, 4]
type = PosSet
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = Time = 0
y = 0
ignorehitpause = 1

[State 5100, 5]
type = VelSet
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = Time = 0
y = 0
ignorehitpause = 1

[State 5100, 6] ;Reduce speed
type = VelMul
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = Time = 0
x = 0.75
ignorehitpause = 1

[State 5100, 7]
type = ChangeState
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = Time = 0
trigger1 = GetHitVar(fall.yvel) = 0
value = 5110 ;HIT_LIEDOWN
ignorehitpause = 1

[State 5100, 8]
type = GameMakeAnim
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = Time = 1
value = 60 + (sysvar(1) > 5) + (sysvar(1) > 14)
pos = 0, 0
under = sysvar(1) <= 14
ignorehitpause = 1

[State 5100, 9]
type = Null;HitFallDamage
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = Time = 3
ignorehitpause = 1

[State 5100, 10]
type = PlaySnd
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = Time = 1
value = F7, (sysvar(1) > 5) + (sysvar(1) > 14)
ignorehitpause = 1

[State 5100, 11]
type = PosFreeze
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = 1
ignorehitpause = 1

[State 5100, 12]
type = ChangeState
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = AnimTime = 0
value = 5101
ignorehitpause = 1

[State 5100, 13]
type = ForceFeedback
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = Time = 0
waveform = sinesquare
ampl = 128,-3,-.2,.005
time = 20
ignorehitpause = 1

[State ]
type = Removeexplod
trigger1 = time = 0
ignorehitpause = 1

[State ]
type = Destroyself
trigger1 = ishelper
ignorehitpause = 1

;---------------------------------------------------------------------------
; HIT_BOUNCE (bounce into air)
[Statedef 5101]
type    = L
movetype= I
physics = N

[State ]
type = Changestate
triggerall = !ishelper
trigger1 = name != "A-Yuki"
value = 5150
ignorehitpause = 1

[State 5101, 1] ;Coming hit ground anim (normal)
type = ChangeAnim
triggerall = name = "A-Yuki"
triggerall = !ishelper
triggerall = time = 0
trigger1 = anim != [5101,5109]
trigger2 = !SelfAnimExist(5160 + (anim % 10))
value = 5160
ignorehitpause = 1

[State 5101, 2] ;Coming hit ground anim (for hit up)
type = ChangeAnim
triggerall = name = "A-Yuki"
triggerall = !ishelper
triggerall = time = 0
trigger1 = anim = [5101,5109]
trigger1 = SelfAnimExist(5160 + (anim % 10))
value = 5160 + (anim % 10)
ignorehitpause = 1

[State 5101, 3]
type = HitFallVel
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = Time = 0
ignorehitpause = 1

[State 5101, 4]
type = PosSet
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = Time = 0
y = 20
ignorehitpause = 1

[State 5101, 5] ;Acceleration
type = VelAdd
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = 1
y = .4
ignorehitpause = 1

[State 5101, 6] ;Hit ground
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = Vel Y > 0
trigger1 = Pos Y >= 12
type = ChangeState
value = 5110
ignorehitpause = 1

[State ]
type = Removeexplod
trigger1 = time = 0
ignorehitpause = 1

[State ]
type = Destroyself
trigger1 = ishelper
ignorehitpause = 1

;---------------------------------------------------------------------------
; HIT_LIEDOWN
[Statedef 5110]
type    = L
movetype= I
physics = N

[State ]
type = Changestate
triggerall = !ishelper
trigger1 = name != "A-Yuki"
value = 5150
ignorehitpause = 1

[State 5110, EnvShake]
type = FallEnvShake
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = Time = 0
ignorehitpause = 1

[State 5110, 1] ;For hit up/up-diag type (from state 5081)
type = ChangeAnim
persistent = 0
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = SelfAnimExist(5110 + (anim % 10))
trigger1 = anim = [5081,5089]
value = 5110 + (anim % 10)
ignorehitpause = 1

[State 5110, 2] ;Hit ground anim (normal)
type = ChangeAnim
triggerall = name = "A-Yuki"
triggerall = !ishelper
triggerall = time = 0
triggerall = anim != [5110,5119] ;Not already changed anim
trigger1 = anim != [5161,5169]
trigger2 = !SelfAnimExist(5170 + (anim % 10))
value = 5170
ignorehitpause = 1

[State 5110, 3] ;Hit ground anim (for hit up)
type = ChangeAnim
triggerall = name = "A-Yuki"
triggerall = !ishelper
triggerall = time = 0
triggerall = anim != [5110,5119] ;Not already changed anim
trigger1 = anim = [5161,5169]
trigger1 = SelfAnimExist(5170 + (anim % 10))
value = 5170 + (anim % 10)
ignorehitpause = 1

[State 5110, 4]
type = Null;HitFallDamage
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = Time = 0
ignorehitpause = 1

[State 5110, 5]
type = PosSet
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = Time = 0
y = 0
ignorehitpause = 1

[State 5110, Var] ;Get fall velocity
type = VarSet
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = Time = 0
trigger1 = GetHitVar(fall.yvel) != 0
sysvar(1) = floor(vel y)
ignorehitpause = 1

[State 5110, 6]
type = PlaySnd
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = Time = 0
trigger1 = !SysVar(0)
value = F7, (sysvar(1) > 5) + (sysvar(1) > 14)
ignorehitpause = 1

[State 5110, 7]
type = GameMakeAnim
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = Time = 0
trigger1 = !SysVar(0)
value = 60 + (sysvar(1) > 5) + (sysvar(1) > 14)
pos = 0, 0
under = sysvar(1) <= 14
ignorehitpause = 1

[State 5110, 8]
type = VelSet
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = Time = 0
y = 0
ignorehitpause = 1

[State 5110, 9] ;For hit up type
type = ChangeAnim
triggerall = name = "A-Yuki"
triggerall = !ishelper
persistent = 0
triggerall = anim = [5171,5179]
triggerall = SelfAnimExist(5110 + (anim % 10))
trigger1 = AnimTime = 0
trigger2 = SysVar(0) ;SysVar(0) = 1 avoids hit ground anim
value = 5110 + (anim % 10)
ignorehitpause = 1

[State 5110, 10] ;For normal
type = ChangeAnim
persistent = 0
triggerall = name = "A-Yuki"
triggerall = !ishelper
triggerall = Anim != [5111,5119]
trigger1 = AnimTime = 0
trigger2 = SysVar(0) ;SysVar(0) = 1 avoids hit ground frame
value = 5110
ignorehitpause = 1

[State 5110, 11] ;If just died
type = ChangeState
triggerall = name = "A-Yuki"
triggerall = !ishelper
triggerall = !alive
trigger1 = AnimTime = 0
trigger2 = SysVar(0) ;SysVar(0) = 1 avoids hit ground frame
trigger3 = Anim = [5110,5119]
value = 5150
ignorehitpause = 1

[State 5110, 12]
type = VarSet
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = SysVar(0)
trigger1 = Time = 0
sysvar(0) = 0
ignorehitpause = 1

[State 5110, 13] ;Friction
type = VelMul
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = 1
x = 0.85
ignorehitpause = 1

[State 5110, 14]
type = ForceFeedback
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = alive
trigger1 = Time = 0
time = 8
ampl = 240
waveform = sine
ignorehitpause = 1

[State 5110, 15]
type = ForceFeedback
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = !alive
trigger1 = Time = 0
ampl = 200, 7, -.467
time = 30
waveform = sine
ignorehitpause = 1

[State ]
type = Removeexplod
trigger1 = time = 0
ignorehitpause = 1

[State ]
type = Destroyself
trigger1 = ishelper
ignorehitpause = 1

;---------------------------------------------------------------------------
; HIT_GETUP
[Statedef 5120]

[State ]
type = Changestate
triggerall = !ishelper
trigger1 = name != "A-Yuki"
value = 5150
ignorehitpause = 1

[State ]
type = Selfstate
trigger1 = !ishelper
value = 50
ignorehitpause = 1

;---------------------------------------------------------------------------
; HIT_LIEDEAD
[Statedef 5150]
type    = L
movetype= I
physics = N
sprpriority = -3

[State 5150, 1] ;Normal anim
type = ChangeAnim
triggerall = name = "A-Yuki"
triggerall = !ishelper
triggerall = Time = 0
triggerall = SelfAnimExist(5140)
trigger1 = (anim != [5111,5119]) && (anim != [5171,5179])
trigger2 = !SelfAnimExist(5140 + (anim % 10))
value = 5140
ignorehitpause = 1

[State 5150, 3] ;Hit up type anim
type = ChangeAnim
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = Time = 0
trigger1 = (anim = [5111,5119]) || (anim = [5171,5179])
trigger1 = SelfAnimExist(5140 + (anim % 10))
value = 5140 + (anim % 10)
ignorehitpause = 1

[State 5150, 4] ;Match over anim
type = ChangeAnim
triggerall = name = "A-Yuki"
triggerall = !ishelper
persistent = 0
;trigger1 = Time = 0
trigger1 = MatchOver = 1
trigger1 = Anim = [5140,5149]
trigger1 = SelfAnimExist(anim+10)
value = anim+10
ignorehitpause = 1

[State 5150, 5] ;Switch to 5110 if liedead anim does not exist
type = ChangeAnim
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = Time = 0
trigger1 = Anim != [5140,5159]
trigger1 = Anim != [5110,5119]
value = 5110
ignorehitpause = 1

[State 5150, 6] ;Friction
type = VelMul
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = 1
x = 0.85
ignorehitpause = 1

[State 5150, 7] ;Friction
type = VelSet
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = Vel x < .05
persistent = 0
x = 0
ignorehitpause = 1

[State 5150, 8]
type = NotHitBy
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = 1
value = SCA
time = 1
ignorehitpause = 1

[State 5150, 死亡]
type = LifeSet
triggerall = name != "A-Yuki"
trigger1 = !ishelper
value = 0
ignorehitpause = 1

[State ]
type = Removeexplod
trigger1 = time = 0
ignorehitpause = 1

[State ]
type = Destroyself
trigger1 = ishelper
ignorehitpause = 1

[State ]
type = Selfstate
trigger1 = name != "A-Yuki"
value = 50
ignorehitpause = 1

;---------------------------------------------------------------------------
; HIT_FALLRECOVER (still falling)
[Statedef 5200]

[State ]
type = Changestate
triggerall = !ishelper
trigger1 = name != "A-Yuki"
value = 5150
ignorehitpause = 1

[State ]
type = Selfstate
trigger1 = !ishelper
value = 50
ignorehitpause = 1

;---------------------------------------------------------------------------
; HIT_FALLRECOVER (on the ground)
[Statedef 5201]

[State ]
type = Changestate
triggerall = !ishelper
trigger1 = name != "A-Yuki"
value = 5150
ignorehitpause = 1

[State ]
type = Selfstate
trigger1 = !ishelper
value = 50
ignorehitpause = 1

;---------------------------------------------------------------------------
; HIT_AIRFALLRECOVER
[Statedef 5210]

[State ]
type = Changestate
triggerall = !ishelper
trigger1 = name != "A-Yuki"
value = 5150
ignorehitpause = 1

[State ]
type = Selfstate
trigger1 = !ishelper
value = 50
ignorehitpause = 1

;---------------------------------------------------------------------------
; Continue?
[Statedef 5500]
type = S
ctrl = 0
anim = 5300

[State ]
type = Changestate
triggerall = !ishelper
trigger1 = name != "A-Yuki"
value = 5150
ignorehitpause = 1

[State ]
type = Destroyself
trigger1 = ishelper
ignorehitpause = 1

[state 位置調整]
type = velset
triggerall = name = "A-Yuki"
trigger1 = !ishelper
x = 0
y = 0
ignorehitpause = 1

[State 5500, 1] ;Use continue animation if available
type = ChangeAnim
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = time = 0
trigger1 = SelfAnimExist(5500)
value = 5500
ignorehitpause = 1

;---------------------------------------------------------------------------
; Initialize (at the start of the round)
; Varのラウンド持ち越し
[Statedef 5900]
type = S

[State ]
type = Changestate
triggerall = !ishelper
trigger1 = name != "A-Yuki"
value = 5150
ignorehitpause = 1

[State ]
type = Destroyself
trigger1 = ishelper
ignorehitpause = 1

[State アニメ変更]
type = Changeanim
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = anim != 5900
value = 5900
ignorehitpause = 1

[State removeexplod];前のステートの光消去
type = removeexplod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 1
ID = 3000
ignorehitpause = 1

[State 5900, 1] ;Clear all int variables
type = VarRangeSet
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = roundsexisted = 0
value = 0
ignorehitpause = 1

[State 5900, 2] ;Clear all float variables
type = VarRangeSet
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = roundsexisted = 0
fvalue = 0
ignorehitpause = 1

[State 5900, 3] ;Intro for round 1
type = ChangeState
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = roundno = 1
value = 190
ignorehitpause = 1

[State explod];ブレスレットの光
type = Explod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = numexplod(3000) = 0
anim = 3000
id = 3000
sprpriority = 2
postype = p1
pos = 0,0
bindtime = -1
removetime = -1
under = 0
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State ]
type = Destroyself
trigger1 = ishelper
ignorehitpause = 1

[State ]
type = Selfstate
trigger1 = name != "A-Yuki"
value = 50
ignorehitpause = 1
