;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;基本動作
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
; Stand
[Statedef 0]
type = S
physics = S
sprpriority = 0

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

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

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

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

[State removeexplod];前のステートの光消去
type = removeexplod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = anim = 3
trigger2 = roundstate > 2
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 = Time = 0
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 = Time = 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
anim = 10

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

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

[State 10, 1]
type = VelMul
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = Time = 0
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
anim = 11
sprpriority = 0

[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 = time = 0
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
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
ignorehitpause = 1
;---------------------[]

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

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

[State explod];ブレスレットの光
type = Explod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = time = 0
anim = 3012
id = 3000
sprpriority = 2
postype = p1
pos = 0,0
bindtime = -1
removetime = -1
under = 0
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 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 = 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

;---------------------[腕のエフェクト]
[State removeexplod];前のステートの光消去
type = removeexplod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = time = 0
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
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
ignorehitpause = 1
;---------------------[]

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

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

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

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

[State 40, 1]
type = VarSet
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = Time = 0
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

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

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

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

[State 50, 2]
type = ChangeAnim
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = Time = 0
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 = time = 0
ID = 3000
ignorehitpause = 1

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

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

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

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

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

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

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

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

[State 52, 3]
type = CtrlSet
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = Time = 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

;---------------------------------------------------------------------------
; フロントステップ
[Statedef 100]
type    = S
physics = N
anim = 100
sprpriority = 1

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

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

[State 00]
type = null;poweradd
triggerall = name = "A-Yuki"
triggerall = !ishelper
triggerall = time = 0
trigger1 = prevstateno = 150
trigger2 = prevstateno = 151
value = -500
ignorehitpause = 1

[State 01];点滅
type = palfx
triggerall = name = "A-Yuki"
triggerall = !ishelper
triggerall = time = 0
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 = time = 0
trigger1 = prevstateno = 150
trigger2 = prevstateno = 151
value = 1
ignorehitpause = 1

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

[State 03]
type = VelSet
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = animelem = 2;1
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
anim = 101
sprpriority = 1
ctrl = 1

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

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

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

[State 01]
type = VelSet
triggerall = name = "A-Yuki"
triggerall = !ishelper
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
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = 1
flag = NoAutoTurn
ignorehitpause = 1

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

;---------------------------------------------------------------------------
; commonより バックステップ
[Statedef 105]
type    = S
physics = S
ctrl = 0
anim = 104
velset = 0,0

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

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

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

; 空中
[Statedef 106]
type    = A
physics = A
ctrl = 1
anim = 105
sprpriority = 1
ignorehitpause = 1

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

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

[State 00]
type = VelSet
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = Time = 0
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
anim = 106
velset = 0,0

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

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

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

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

[State 02]
type = MakeDust
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = Time = 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

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

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

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

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

[State 120, 4]
type = StateTypeSet
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = Time = 0 && 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 = time = 0
ID = 3000
ignorehitpause = 1

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

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

[State explod];ブレスレットの光
type = Explod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = time = 0
trigger1 = anim = 122
anim = 3122
id = 3000
sprpriority = 2
postype = p1
pos = 0,0
bindtime = -1
removetime = -1
under = 0
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

;---------------------------------------------------------------------------
; GUARD (end)
[Statedef 140]
type = U    ;Leave state type unchanged
physics = U ;Leave physics unchanged
ctrl = 1

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

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

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

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

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

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

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

;[State 140, 5] ;Implemented within engine
;type = ChangeState
triggerall = name = "A-Yuki"
triggerall = !ishelper
;trigger1 = AnimTime = 0
;value = (statetype = C)*11 + (statetype = A)*51
ignorehitpause = 1

;---------------------------------------------------------------------------
; タイムオーバーで負けた時
[Statedef 170]
type = S
ctrl = 0
anim = 170
velset = 0,0

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

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

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

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

[State 00]
type = VarRandom
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = Time = 0
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
anim = 181
velset = 0,0

;---------------------[腕のエフェクト]
[State removeexplod];前のステートの光消去
type = removeexplod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = time = 0
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, 1]
type = NotHitBy
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = 1
value = SCA
time = 1
ignorehitpause = 1

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

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

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

[State explod];ブレスレットの光
type = Explod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = time = 0
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 = time = 0
value = 182,0
ignorehitpause = 1

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

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

;---------------------------------------------------------------------------
; 通常登場
[Statedef 190]
type    = S
movetype= I
physics = N
juggle  = 0
velset = 0,0
ctrl = 0
anim = 2401
sprpriority = 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 = time = [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 = time = 0
ID = 3000
ignorehitpause = 1

[State explod];ブレスレットの光
type = Explod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = time = 0
anim = 2402
id = 3000
sprpriority = 2
postype = p1
pos = 0,0
bindtime = -1
under = 0
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
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
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
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
ignorehitpause = 1

;---------------------[ヘルパー呼び出し]
[State 2900, 1]
type = helper
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = time = 0
id = 2420
persistent = 0
pos = 0,-350
postype = P1
stateno = 2420
helpertype = player
keyctrl = 0
ownpal = 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 = 14190
ignorehitpause = 1

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

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

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

;---------------------[腕のエフェクト]
[State removeexplod];前のステートの光消去
type = removeexplod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = time = 0
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
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 = 14191
ignorehitpause = 1

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

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

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

;---------------------[腕のエフェクト]
[State removeexplod];前のステートの光消去
type = removeexplod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = time = 0
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
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 = 14800
ignorehitpause = 1

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

;---------------------[腕のエフェクト]
[State removeexplod];前のステートの光消去
type = removeexplod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = time = 0
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
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 210, 2]
type = null;HitDef
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = hitcount <= 8
attr = S, HA
animtype  = up
damage    = 40,40
priority = 12, Hit
getpower = 0,0
hitflag = MAFLD
guardflag = N
pausetime = 2,12
sparkno = s7001
sparkxy = -10,-87
hitsound   = s1300,2
guardsound = s120,0
guard.sparkno = s7011
ground.type = low
ground.slidetime = 17
ground.hittime  = 17
ground.velocity = ifelse(enemy,BackEdgeBodyDist <= 10,0,-5),-4
air.velocity = ifelse(enemy,BackEdgeBodyDist <= 10,0,-5),-4
palfx.time =45
palfx.mul = 230,230,250
palfx.sinadd = 255,255,255,5;palfx.sinadd = 63,65,68,5
palfx.add = 16,16,16
palfx.color = 1
palfx.invertall = 1
ID = 4000
fall = 1
fall.recover = 0

[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 00]
type = NotHitBy
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = 1
value = SCA
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 = 14900
ignorehitpause = 1

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

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

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

;---------------------[打撃防御]
[State 00]
type = NotHitBy
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = 1
value = SCA
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

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

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

[State explod];ブレスレットの光
type = Explod
triggerall = name = "A-Yuki"
triggerall = !ishelper
trigger1 = time = 0
anim = 3195
id = 3000
sprpriority = 2
postype = p1
pos = 0,0
bindtime = -1
removetime = -1
under = 0
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 = Time = 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

;---------------------------------------------------------------------------
; Varのラウンド持ち越し
[Statedef 5900]
type = S

[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
ignorehitpause = 1
