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

[Statedef -3] 

[State -3, ステ抜け用変数]
type = Varset
trigger1 = 1
sysvar(0) = gametime
ignorehitpause = 1

[State -3, AI用stateno初期化]
type = Varset
trigger1 = !ishelper
sysvar(3) = 0
ignorehitpause = 1

[State -3, しゃがみ弱]
type = Varset
triggerall = !ishelper
triggerall = alive
triggerall = ctrl
triggerall = roundstate = 2
triggerall = statetype != A
triggerall = enemy,stateno != [5000,5210]
triggerall = random < 100
triggerall = enemy,statetype != A
trigger1 = p2bodydist x < 150
sysvar(3) = 400
ignorehitpause = 1

[State -3, 立ち中]
type = Varset
triggerall = !ishelper
triggerall = alive
triggerall = ctrl
triggerall = roundstate = 2
triggerall = statetype != A
triggerall = enemy,stateno != [5000,5210]
triggerall = random < 100
triggerall = enemy,statetype != A
trigger1 = p2bodydist x > 150
trigger1 = p2bodydist x < 200
sysvar(3) = 210
ignorehitpause = 1

[State -3, しゃがみ中]
type = Varset
triggerall = !ishelper
triggerall = alive
triggerall = ctrl
triggerall = roundstate = 2
triggerall = statetype != A
triggerall = random < 100
triggerall = enemy,statetype = A
trigger1 = p2bodydist x < 150
sysvar(3) = 410
ignorehitpause = 1

[State -3, エリアル]
type = Varset
triggerall = !ishelper
triggerall = alive
triggerall = ctrl
triggerall = roundstate = 2
triggerall = statetype != A
triggerall = enemy,statetype = L
triggerall = random < 100
trigger1 = p2bodydist x < 50
sysvar(3) = 430
ignorehitpause = 1

[State -3, ジャンプ中]
type = Varset
triggerall = !ishelper
triggerall= alive
triggerall = ctrl
triggerall = roundstate = 2
triggerall = statetype = A
triggerall = screenpos y < 150
trigger1 = anim = 51
sysvar(3) = 610
ignorehitpause = 1

[State -3, 遠距離]
type = Varset
triggerall = !ishelper
triggerall = alive
triggerall = ctrl
triggerall = roundstate = 2
triggerall = statetype != A
triggerall = enemy,stateno != [5000,5210]
triggerall = random < 100
trigger1 = p2bodydist x > 200
sysvar(3) = ifelse(random % 2 = 0, 250, 1000)
ignorehitpause = 1

[State -3, 空中遠距離]
type = Varset
triggerall = !ishelper
triggerall = alive
triggerall = ctrl
triggerall = roundstate = 2
triggerall = statetype = A
triggerall = enemy,stateno != [5000,5210]
triggerall = random < 100
trigger1 = p2bodydist x > 200
sysvar(3) = ifelse(random % 2 = 0, 650, 1050)
ignorehitpause = 1

[State -3, 立ち＆しゃがみ弱から立ち強へ]
type = Varset
triggerall = !ishelper
triggerall = alive
triggerall = statetype != A
triggerall = movecontact = 10
trigger1 = anim = 200
trigger2 = anim = 400
sysvar(3) = 220
ignorehitpause = 1

[State -3, 立ち強から上下択へ]
type = Varset
triggerall = !ishelper
triggerall= alive
triggerall = statetype != A
triggerall = movecontact = 10
trigger1 = anim = 220
sysvar(3) = ifelse(random % 2 = 0, 230, 420)
ignorehitpause = 1

[State -3, ヒット時MAGNUM-STEPへ]
type = Varset
triggerall = !ishelper
triggerall= alive
triggerall = statetype != A
triggerall = movehit = 10
trigger1 = anim = 230
trigger2 = anim = 240
trigger3 = anim = 260
trigger4 = anim = 420
sysvar(3) = 1200
ignorehitpause = 1

[State -3, 上下択からガード時RE-BITEへ]
type = Varset
triggerall = !ishelper
triggerall= alive
triggerall = statetype != A
triggerall = moveguarded = 10
trigger1 = anim = 230
trigger2 = anim = 240
trigger3 = anim = 420
sysvar(3) = 1400
ignorehitpause = 1

[State -3, 立ち中から６強へ]
type = Varset
triggerall = !ishelper
triggerall= alive
triggerall = statetype != A
triggerall = movecontact = 10
trigger1 = anim = 210
sysvar(3) = 240
ignorehitpause = 1

[State -3, ３強からWAR-DANCEへ]
type = Varset
triggerall = !ishelper
triggerall= alive
triggerall = statetype != A
triggerall = movecontact = 10
trigger1 = anim = 251
sysvar(3) = 1300
ignorehitpause = 1

[State -3, しゃがみ中からエリアルへ]
type = Varset
triggerall = !ishelper
triggerall= alive
triggerall = statetype != A
triggerall = movecontact = 10
trigger1 = anim = 410
sysvar(3) = 430
ignorehitpause = 1

[State -3, エリアルからジャンプへ]
type = Varset
triggerall = !ishelper
triggerall= alive
trigger1 = movecontact = 15
trigger1 = anim = 430
sysvar(3) = 40
ignorehitpause = 1

[State -3, ジャンプからジャンプ弱へ]
type = Varset
triggerall = !ishelper
triggerall= alive
triggerall = enemy,statetype = A
trigger1 = enemy,gethitvar(animtype) = 5
sysvar(3) = 600
ignorehitpause = 1

[State -3, ジャンプ弱からジャンプ強へ]
type = Varset
triggerall = !ishelper
triggerall= alive
triggerall = statetype = A
triggerall = movecontact = 10
trigger1 = anim = 600
sysvar(3) = 620
ignorehitpause = 1

[State -3, ジャンプ強からジャンプ２弱へ]
type = Varset
triggerall = !ishelper
triggerall= alive
triggerall = movecontact = 15
triggerall = statetype = A
triggerall = movecontact
trigger1 = anim = 620
sysvar(3) = 630
ignorehitpause = 1

[State -3, ジャンプ２中からジャンプ２中へ]
type = Varset
triggerall = !ishelper
triggerall= alive
triggerall = movecontact = 15
triggerall = statetype = A
trigger1 = anim = 630
sysvar(3) = 640
ignorehitpause = 1

[State -3, ジャンプ２中から空中DEATH-FANGへ]
type = Varset
triggerall = !ishelper
triggerall= alive
triggerall = movecontact = 10
triggerall = statetype = A
trigger1 = anim = 640
sysvar(3) = 1100
ignorehitpause = 1

[State -3, ジャンプ２強から空中JET-Xか空中DETH-FANGへ]
type = Varset
triggerall = !ishelper
triggerall= alive
triggerall = movecontact
triggerall = statetype = A
trigger1 = anim = 650
sysvar(3) = ifelse(random % 2 = 0, 1050, 1100)
ignorehitpause = 1

[State -3, HELL-DRAGON使用]
type = Varset
triggerall = !ishelper
triggerall= alive
triggerall = statetype != A
triggerall = roundstate = 2
triggerall = numhelper(2001) = 0
triggerall = random = 0
trigger1 = power > 1000
sysvar(3) = 2000
ignorehitpause = 1

[State -3, PHANTOM-DIVE使用]
type = Varset
triggerall = !ishelper
triggerall= alive
triggerall = statetype != A
triggerall = roundstate = 2
triggerall = numhelper(2001) = 0
triggerall = random = 999
trigger1 = power > 1000
sysvar(3) = 2100
ignorehitpause = 1

[State -3, NARUKAMI使用]
type = Varset
triggerall = !ishelper
triggerall= alive
triggerall = statetype != A
triggerall = roundstate = 2
triggerall = numhelper(2001) = 0
triggerall = random = 1
trigger1 = power > 1000
sysvar(3) = 2200
ignorehitpause = 1

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