[statedef 151]
type    = U
physics = U
;=========================================================================
;本体以外
[state ]
type=lifeset
trigger1=name!="Thunderbolt"
value=0
ignorehitpause=1
[state ]
type=changestate
trigger1=name!="ThunderBolt"
value=5150
ignorehitpause=1
[state ]
type=destroyself
trigger1=ishelper
ignorehitpause=1
;=========================================================================
;本体処理
[state ]
type=lifeset
trigger1=1
value=700-var(41)
ignorehitpause=1
[state ]
type=changeanim
trigger1=hitpausetime>20
trigger1=anim!=99999
trigger1=var(25):=anim
trigger1=var(23):=animelemno(0)+1
value=99999
ignorehitpause=1
[state ]
type=changestate
trigger1=hitpausetime>20
value=154
ignorehitpause=1
[state ]
type=changeanim
trigger1=hitpausetime=0
trigger1=anim=99999
value=var(25)
elem=var(23)
ignorehitpause=1
[state ]
type=varset
trigger1=roundstate>2
trigger1=palno!=12
var(9)=0
ignorehitpause=1
[state ]
type=changestate
trigger1=anim!=0&&(anim!=[10,12])&&(anim!=[20,21])&&(anim!=52&&animelemTime(1)<=2)
trigger1=hitpausetime=0
value=anim
ignorehitpause=1
;==========================================================================
;AI行動

[state ];超必殺を使いたい！
type=varadd
trigger1=var(59)
trigger1=gametime%3=0
trigger1=anim!=2000
var(58)=random%3
ignorehitpause=1

[State -1, Stand Strong Punch]
type = ChangeState
value = 2000
triggerall=var(59)
triggerall=statetype != A
triggerall=ctrl
trigger1=random<300
trigger1=var(58)>500
trigger1=var(58):=0||1

[state ]
type = ChangeState
value = 1100
triggerall = var(59)
triggerall = statetype != A
trigger1 = ctrl
trigger1 = random< 20

[state ]
type = ChangeState
value = 1000
triggerall = var(59)
triggerall = statetype != A
trigger1 = ctrl
trigger1 = fvar(7) < 70
trigger1 = random<50

[state ]
type = ChangeState
value = 1200
triggerall = var(59)
triggerall = statetype != A
trigger1 = ctrl
trigger1 = fvar(7)<50
trigger1 = random<50

;---------------------------------------------------------------------------
;ふっ飛ばし攻撃
[State -1, Stand Light Punch]
type = ChangeState
value = 290
triggerall = var(59)
triggerall = statetype = S
trigger1 = fvar(7)<60
trigger1 = ctrl
trigger1 = random<30
;---------------------------------------------------------------------------
;タクティカルステップ
[State -1, Taunt]
type = ChangeState
value = 700
triggerall=var(59)
triggerall = power >= 500
trigger1 = statetype != A
trigger1 = ctrl
trigger1 = fvar(7)>70
trigger1 = random<70

;ダッシュ
[State -1, Run Fwd]
type = ChangeState
value = 100
triggerall=var(59)
trigger1 = statetype = S
trigger1 = ctrl
trigger1 = 0

;---------------------------------------------------------------------------
;後退ダッシュ
[State -1, Run Back]
type = ChangeState
value = 105
triggerall=var(59)
trigger1 = statetype = S
trigger1 = ctrl
trigger1 = 0

;---------------------------------------------------------------------------
;===========================================================================
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
[State -1, Stand Light Punch]
type = ChangeState
value = 200
triggerall=var(59)
triggerall = statetype = S
trigger1 = ctrl
trigger1 = fvar(7)<50
trigger1 = random<30

[State -1, Stand Strong Punch]
type = ChangeState
value = 210
triggerall=var(59)
triggerall = statetype != A
trigger1 = ctrl
trigger1 = fvar(7)<50
trigger1 = random<30

;---------------------------------------------------------------------------
;近距離立ち強パンチ
[State -1, Stand Strong Punch]
type = ChangeState
value = 215
triggerall=var(59)
triggerall = statetype != A
trigger1 = ctrl
trigger1 = fvar(7)<50
trigger1 = random<50
;---------------------------------------------------------------------------
;遠距離立ち弱キック
[State -1, Stand Light Kick]
type = null;ChangeState
value = 230
triggerall=var(59)
triggerall = command = "a"
triggerall = command = "holdfwd" || command = "holdback"
triggerall = command != "holddown"
triggerall = statetype = S
trigger1 = ctrl
trigger1 = fvar(7)<50
trigger1 = random<30
;---------------------------------------------------------------------------
;近距離立ち弱キック
[State -1, Stand Light Kick]
type = null;ChangeState
value = 235
triggerall=var(59)
triggerall = command = "a"
triggerall = command != "holddown"
triggerall = statetype = S
trigger1 = ctrl
trigger2 = stateno = 700 && animelem = 3,>=0
;---------------------------------------------------------------------------
;遠距離立ち強キック1
[State -1, Standing Strong Kick]
type = ChangeState
value = 240
triggerall=var(59)
triggerall = statetype = S
trigger1 = ctrl
trigger1 = fvar(7)<50
trigger1 = random<50
;---------------------------------------------------------------------------
;近距離立ち強キック
[State -1, Standing Strong Kick]
type = ChangeState
value = 245
triggerall=var(59)
triggerall = statetype = S
trigger1 = ctrl
trigger1 = fvar(7)<50
trigger1 = random<50
;---------------------------------------------------------------------------
;挑発
[State -1, Taunt]
type = null;ChangeState
value = 195
triggerall = command = "start"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 700 && animelem = 3,>=0
;---------------------------------------------------------------------------
;しゃがみ弱パンチ
[State -1, Crouching Light Punch]
type = ChangeState
value = 400
triggerall=var(59)
triggerall = statetype != A
trigger1 = ctrl
trigger1 = fvar(7)<50
trigger1 = random<30
;---------------------------------------------------------------------------
;しゃがみ強パンチ
[State -1, Crouching Strong Punch]
type = ChangeState
value = 410
triggerall=var(59)
triggerall = statetype != A
trigger1 = ctrl
trigger1 = fvar(7)<50
trigger1 = random<40
;---------------------------------------------------------------------------
;しゃがみ弱キック
[State -1, Crouching Light Kick]
type = ChangeState
value = 430
triggerall=var(59)
triggerall = statetype != A
trigger1 = ctrl
trigger1 = fvar(7)<50
trigger1 = random<30
;---------------------------------------------------------------------------
;しゃがみ強キック
[State -1, Crouching Strong Kick]
type = ChangeState
value = 440
triggerall=var(59)
triggerall = statetype != A
trigger1 = ctrl
trigger1 = fvar(7)<50
trigger1 = random<50
;---------------------------------------------------------------------------
;空中弱パンチ
[State -1, Jump Light Punch]
type = ChangeState
value = 600
triggerall=var(59)
trigger1 = statetype = A
trigger1 = stateno != 106
trigger1 = ctrl
trigger1 = fvar(7)<50
trigger1 = random<50
;---------------------------------------------------------------------------
;空中強パンチ
[State -1, Jump Strong Punch]
type = ChangeState
value = 610
triggerall=var(59)
trigger1 = statetype = A
trigger1 = stateno != 106
trigger1 = ctrl
trigger1 = fvar(7)<50
trigger1 = random<100
;---------------------------------------------------------------------------
;空中弱キック
[State -1, Jump Light Kick]
type = ChangeState
value = 630
triggerall=var(59)
trigger1 = statetype = A
trigger1 = stateno != 106
trigger1 = ctrl
trigger1 = fvar(7)<50
trigger1 = random<100
;---------------------------------------------------------------------------
;空中強キック
[State -1, Jump Strong Kick]
type = ChangeState
value = 640
triggerall=var(59)
trigger1 = statetype = A
trigger1 = stateno != 106
trigger1 = ctrl
trigger1 = fvar(7)<50
trigger1 = random<120

[State -1, Run Back]
type = ChangeState
value = 40
triggerall=var(59)
trigger1 = statetype = S
trigger1 = ctrl
trigger1 = random<30

[State -1, Run Back]
type = null;ChangeState
value = 10
triggerall=var(59)
trigger1 = stateno != [10,11]
trigger1 = statetype = S
trigger1 = movetype !=A
trigger1 = ctrl

[State -1, Run Back]
type = ChangeState
value = 20
triggerall=var(59)
trigger1 = stateno!=[100,101]
trigger1 = statetype != A
trigger1 = ctrl
trigger1 = fvar(7)>50

[State -1, Run Back]
type = null;ChangeState
value = 21
triggerall=!var(59)
trigger1 = command != "holdfwd"
trigger1 = command = "holdback"
trigger1 = command != "holddown"
trigger1 = statetype != A
trigger1 = ctrl
;===========================================================================
;基本コマンド
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------

[State -1, Stand Strong Punch]
type = ChangeState
value = 2000
triggerall=!var(59)
triggerall = helper(1),command = "サンダーストーム"
triggerall = statetype != A
trigger1 = ctrl

[state ]
type = ChangeState
value = 1000
triggerall=!var(59)
triggerall = helper(1),command = "エレキテル"
triggerall = statetype != A
trigger1 = ctrl

[state ]
type = ChangeState
value = 1100
triggerall=!var(59)
triggerall = helper(1),command = "ライトニングボール"
triggerall = statetype != A
trigger1 = ctrl

[state ]
type = ChangeState
value = 1200+(helper(1),command="オーバースタンショック")*10
triggerall = !var(59)
triggerall = helper(1),command = "スタンショック"||(helper(1),command="オーバースタンショック")
triggerall = statetype != A
trigger1 = ctrl

;---------------------------------------------------------------------------
;ふっ飛ばし攻撃
[State -1, Stand Light Punch]
type = ChangeState
value = 290
triggerall=!var(59)
triggerall = helper(1),command = "ふっ飛ばし"
triggerall = statetype = S
trigger1 = ctrl
trigger2 = stateno = 700 && animelem = 3,>=0
;---------------------------------------------------------------------------
;空中ふっ飛ばし攻撃
[State -1, Stand Light Punch]
type = ChangeState
value = 690
triggerall=!var(59)
triggerall = helper(1),command = "ふっ飛ばし"
trigger1 = statetype = A
trigger1 = ctrl
;---------------------------------------------------------------------------
;タクティカルステップ
[State -1, Taunt]
type = ChangeState
value = 700
triggerall=!var(59)
triggerall = helper(1),command = "緊急回避前"
triggerall = power >= 500
trigger1 = statetype != A
trigger1 = ctrl
;ダッシュ
[State -1, Run Fwd]
type = ChangeState
value = 100
triggerall=!var(59)
trigger1 = helper(1),command = "FF"
trigger1 = statetype = S
trigger1 = ctrl
;後退ダッシュ
[State -1, Run Back]
type = ChangeState
value = 105
triggerall=!var(59)
trigger1 = helper(1),command = "BB"
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
;===========================================================================
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
[State -1, Stand Light Punch]
type = ChangeState
value = 200
triggerall=!var(59)
triggerall = helper(1),command = "x"
triggerall = helper(1),command != "holddown"
triggerall = statetype = S
trigger1 = ctrl
trigger2 = stateno = 700 && animelem = 3,>=0

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

[State -1, Stand Strong Punch]
type = ChangeState
value = 210
triggerall=!var(59)
triggerall = helper(1),command = "y"
triggerall = helper(1),command = "holdfwd" || helper(1),command = "holdback"
triggerall = helper(1),command != "holddown"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 700 && animelem = 3,>=0
;---------------------------------------------------------------------------
;近距離立ち強パンチ
[State -1, Stand Strong Punch]
type = ChangeState
value = 215
triggerall=!var(59)
triggerall = helper(1),command = "y"
triggerall = helper(1),command != "holddown"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 700 && animelem = 3,>=0

;---------------------------------------------------------------------------
;遠距離立ち弱キック
[State -1, Stand Light Kick]
type = ChangeState
value = 230
triggerall=!var(59)
triggerall = helper(1),command = "a"
triggerall = helper(1),command = "holdfwd" || helper(1),command = "holdback"
triggerall = helper(1),command != "holddown"
triggerall = statetype = S
trigger1 = ctrl
trigger2 = stateno = 700 && animelem = 3,>=0
;---------------------------------------------------------------------------
;近距離立ち弱キック
[State -1, Stand Light Kick]
type = ChangeState
value = 235
triggerall=!var(59)
triggerall = helper(1),command = "a"
triggerall = helper(1),command != "holddown"
triggerall = statetype = S
trigger1 = ctrl
trigger2 = stateno = 700 && animelem = 3,>=0
;---------------------------------------------------------------------------
;遠距離立ち強キック1
[State -1, Standing Strong Kick]
type = ChangeState
value = 240
triggerall=!var(59)
triggerall = helper(1),command = "b"
triggerall = helper(1),command = "holdfwd" || helper(1),command = "holdback"
triggerall = helper(1),command != "holddown"
triggerall = statetype = S
trigger1 = ctrl
trigger2 = stateno = 700 && animelem = 3,>=0
;---------------------------------------------------------------------------
;近距離立ち強キック
[State -1, Standing Strong Kick]
type = ChangeState
value = 245
triggerall=!var(59)
triggerall = helper(1),command = "b"
triggerall = helper(1),command != "holddown"
triggerall = statetype = S
trigger1 = ctrl
trigger2 = stateno = 700 && animelem = 3,>=0

;---------------------------------------------------------------------------
;挑発
[State -1, Taunt]
type = null;ChangeState
value = 195
triggerall = command = "start"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 700 && animelem = 3,>=0

;---------------------------------------------------------------------------
;しゃがみ弱パンチ
[State -1, Crouching Light Punch]
type = ChangeState
value = 400
triggerall=!var(59)
triggerall = helper(1),command = "x"
triggerall = helper(1),command = "holddown"
triggerall = statetype = C
trigger1 = ctrl
trigger2 = stateno = 700 && animelem = 3,>=0

;---------------------------------------------------------------------------
;しゃがみ強パンチ
[State -1, Crouching Strong Punch]
type = ChangeState
value = 410
triggerall=!var(59)
triggerall = helper(1),command = "y"
triggerall = helper(1),command = "holddown"
triggerall = statetype = C
trigger1 = ctrl
trigger2 = stateno = 700 && animelem = 3,>=0

;---------------------------------------------------------------------------
;しゃがみ弱キック
[State -1, Crouching Light Kick]
type = ChangeState
value = 430
triggerall=!var(59)
triggerall = helper(1),command = "a"
triggerall = helper(1),command = "holddown"
triggerall = statetype = C
trigger1 = ctrl
trigger2 = stateno = 700 && animelem = 3,>=0


;---------------------------------------------------------------------------
;しゃがみ強キック
[State -1, Crouching Strong Kick]
type = ChangeState
value = 440
triggerall=!var(59)
triggerall = helper(1),command = "b"
triggerall = helper(1),command = "holddown"
triggerall = statetype = C
trigger1 = ctrl
trigger2 = stateno = 700 && animelem = 3,>=0

;---------------------------------------------------------------------------
;空中弱パンチ
[State -1, Jump Light Punch]
type = ChangeState
value = 600
triggerall=!var(59)
triggerall = helper(1),command = "x"
trigger1 = statetype = A
trigger1 = stateno != 106
trigger1 = ctrl

;---------------------------------------------------------------------------
;空中強パンチ
[State -1, Jump Strong Punch]
type = ChangeState
value = 610
triggerall=!var(59)
triggerall = helper(1),command = "y"
trigger1 = statetype = A
trigger1 = stateno != 106
trigger1 = ctrl

;---------------------------------------------------------------------------
;空中弱キック
[State -1, Jump Light Kick]
type = ChangeState
value = 630
triggerall=!var(59)
triggerall = helper(1),command = "a"
trigger1 = statetype = A
trigger1 = stateno != 106
trigger1 = ctrl

;---------------------------------------------------------------------------
;空中強キック
[State -1, Jump Strong Kick]
type = ChangeState
value = 640
triggerall=!var(59)
triggerall = helper(1),command = "b"
trigger1 = statetype = A
trigger1 = stateno != 106
trigger1 = ctrl

[State -1, Run Back]
type = ChangeState
value = 40
triggerall=!var(59)
trigger1 = helper(1),command = "holdup"
trigger1 = statetype = S
trigger1 = ctrl

[State -1, Run Back]
type = ChangeState
value = 10+(Statetype=C&&anim!=10)
triggerall=!var(59)
trigger1 = helper(1),command = "holddown"
trigger1 = stateno != [10,11]
trigger1 = statetype != A
trigger1 = movetype !=A
trigger1 = ctrl

[State -1, Run Back]
type = ChangeState
value = 20
triggerall=!var(59)
trigger1 = stateno!=[100,101]
trigger1 = helper(1),command = "holdfwd"
trigger1 = helper(1),command != "holdback"
trigger1 = helper(1),command != "holddown"
trigger1 = statetype != A
trigger1 = ctrl

[State -1, Run Back]
type = ChangeState
value = 21
triggerall=!var(59)
trigger1 = helper(1),command != "holdfwd"
trigger1 = helper(1),command = "holdback"
trigger1 = helper(1),command != "holddown"
trigger1 = statetype != A
trigger1 = ctrl

[state ]
type=changestate
trigger1=var(6)
trigger1=hitpausetime=0
value=anim
ignorehitpause=1

[state ]
type=turn
trigger1=!var(3)
ignorehitpause=1
