[Statedef -3]
[State -3]
type = Varset
triggerAll = Var(59) = 0
triggerAll = RoundState = [1,2]
trigger1 = Command = "AI_1"
trigger2 = Command = "AI_2"
trigger3 = Command = "AI_3"
trigger4 = Command = "AI_4"
trigger5 = Command = "AI_5"
trigger6 = Command = "AI_6"
trigger7 = Command = "AI_7"
trigger8 = Command = "AI_8"
trigger9 = Command = "AI_9"
trigger10 = Command = "AI_10"
trigger11 = Command = "AI_11"
trigger12 = Command = "AI_12"
trigger13 = Command = "AI_13"
trigger14 = Command = "AI_14"
trigger15 = Command = "AI_15"
trigger16 = Command = "AI_16"
trigger17 = Command = "AI_17"
trigger18 = Command = "AI_18"
trigger19 = Command = "AI_19"
trigger20 = Command = "AI_20"
trigger21 = Command = "AI_21"
trigger22 = Command = "AI_22"
trigger23 = Command = "AI_23"
trigger24 = Command = "AI_24"
trigger25 = Command = "AI_25"
trigger26 = Command = "AI_26"
trigger27 = Command = "AI_27"
trigger28 = Command = "AI_28"
trigger29 = Command = "AI_29"
trigger30 = Command = "AI_30"
trigger31 = Command = "AI_31"
trigger32 = Command = "AI_32"
trigger33 = Command = "AI_33"
trigger34 = Command = "AI_34"
trigger35 = Command = "AI_35"
trigger36 = Command = "AI_36"
trigger37 = Command = "AI_37"
trigger38 = Command = "AI_38"
trigger39 = Command = "AI_39"
trigger40 = Command = "AI_40"
trigger41 = Command = "AI_41"
trigger42 = Command = "AI_42"
trigger43 = Command = "AI_43"
trigger44 = Command = "AI_44"
trigger45 = Command = "AI_45"
trigger46 = Command = "AI_46"
trigger47 = Command = "AI_47"
trigger48 = Command = "AI_48"
trigger49 = Command = "AI_49"
trigger50 = Command = "AI_50"
V = 59
Value = 1
[State -3];連打防止
type = VarSet
trigger1 = RoundState = 3
var(59) = 0

;---------------------------------------------
;立ちガード
[State -3]
type = ChangeState
value = 130
triggerall = Var(59) = 1
triggerall = P2statetype != C
triggerall = inguarddist
triggerall = random = [250,999]
trigger1 = Ctrl
trigger1 = statetype = S
trigger2 = stateno = [100,101]

;---------------------------------------------
;屈みガード
[State -3]
type = ChangeState
value = 131
triggerall = Var(59) = 1
triggerall = P2statetype = C
triggerall = inguarddist
triggerall = random = [250,999]
trigger1 = Ctrl
trigger1 = statetype = C
trigger2 = stateno = [100,101]

;---------------------------------------------
;空中ガード
[State -3]
type = ChangeState
value = 132
triggerall = Var(59) = 1
triggerall = P2statetype = A
triggerall = inguarddist
trigger1 = Ctrl
trigger1 = statetype = A

;---------------------------------------------------------------------------
;混
[State -3, Strong Kung Fu Palm]
type = ChangeState
value = 2100
triggerall = Var(59) = 1
triggerall = power >= 2000
triggerall = var(1) = 0
trigger1 = statetype != A
trigger1 = ctrl
trigger1 = p2stateno = 1205

;---------------------------------------------------------------------------
;大神
[State -3, Strong Kung Fu Palm]
type = ChangeState
value = 2000
triggerall = Var(59) = 1
triggerall = power >= 1000
triggerall = var(1) = 0
triggerall = p2statetype != A
triggerall = p2movetype = A
triggerall = p2bodydist X = [-5,15]
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 700 && animelem = 3,>=0

;===========================================================================
;---------------------------------------------------------------------------
;強御大
[State -3, Strong Kung Fu Palm]
type = ChangeState
value = 1501
triggerall = Var(59) = 1
triggerall = var(1) = 0
triggerall = statetype = A
trigger1 = ctrl
trigger1 = p2bodydist X = [0,60]
trigger1 = p2bodydist Y = [-80,-20]

;---------------------------------------------------------------------------
;強糺
[State -3, Strong Kung Fu Palm]
type = ChangeState
value = 1301
triggerall = Var(59) = 1
triggerall = var(1) = 0
triggerall = statetype != A
triggerall = power >= 500
trigger1 = ctrl
trigger1 = p2movetype = A
trigger1 = p2bodydist X = [0,40]
trigger1 = random = [600,700]

;---------------------------------------------------------------------------
;強顕斎
[State -3, Strong Kung Fu Palm]
type = ChangeState
value = 1201
triggerall = Var(59) = 1
triggerall = var(1) = 0
triggerall = statetype != A
trigger1 = ctrl
trigger1 = p2bodydist X = [0,40]
trigger1 = p2bodydist Y = [-80,-160]

;---------------------------------------------------------------------------
;弱顕斎
[State -3, Strong Kung Fu Palm]
type = ChangeState
value = 1200
triggerall = Var(59) = 1
triggerall = var(1) = 0
triggerall = statetype != A
triggerall = p2bodydist X = [0,40]
triggerall = movehit || prevstateno = 1100
trigger1 = stateno = 205
trigger2 = stateno = 235
trigger3 = stateno = 240 && animelemtime(4) > 0
trigger4 = stateno = 245 && animelemtime(10) > 0
trigger5 = stateno = 410
trigger6 = stateno = 430

;---------------------------------------------------------------------------
;誓約
[State -3, Strong Kung Fu Palm]
type = ChangeState
value = 1100
triggerall = Var(59) = 1
triggerall = var(1) = 0
triggerall = statetype != A
triggerall = power >= 2500
trigger1 = movehit
trigger1 = stateno = 240 && animelemtime(4) > 0

;---------------------------------------------------------------------------
;強解除
[State -3, Strong Kung Fu Palm]
type = ChangeState
value = 1001
triggerall = Var(59) = 1
triggerall = numhelper(1000) = 0
triggerall = var(1) = 0
triggerall = statetype != A
triggerall = p2statetype != L
triggerall = p2movetype != A
triggerall = movecontact || ctrl
trigger1 = p2bodydist X >= 80
trigger1 = random = [0,50]
trigger2 = stateno = 205
trigger3 = stateno = 235
trigger4 = stateno = 240 && animelemtime(4) > 0
trigger5 = stateno = 245 && animelemtime(10) > 0
trigger6 = stateno = 410
trigger7 = stateno = 430

;---------------------------------------------------------------------------
;弱解除
[State -3, Strong Kung Fu Palm]
type = ChangeState
value = 1000
triggerall = Var(59) = 1
triggerall = numhelper(1000) = 0
triggerall = var(1) = 0
triggerall = statetype != A
triggerall = p2statetype != L
triggerall = p2movetype != A
trigger1 = ctrl
trigger1 = p2bodydist X >= 100
trigger1 = random = [50,100]

;===========================================================================
;---------------------------------------------------------------------------
;門客人
[State -3, Kung Fu Throw]
type = ChangeState
value = 800
triggerall = Var(59) = 1
triggerall = statetype != A
triggerall = p2bodydist X < 5
triggerall = (p2statetype = S) || (p2statetype = C)
triggerall = p2movetype != H
trigger1 = ctrl
trigger1 = random = [0,500]
trigger2 = stateno = 700 && animelem = 3,>=0

;---------------------------------------------------------------------------
;ガードキャンセルふっ飛ばし攻撃
[State -3, 290]
type = ChangeState
value = 291
triggerall = Var(59) = 1
triggerall = power >= 500
triggerall = p2statetype != A
triggerall = p2bodydist X = [-5,40]
triggerall = random = [0,5]
trigger1 = stateno = 150
trigger2 = stateno = 151

;===========================================================================
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;タクティカルステップ
[State -3, Taunt]
type = ChangeState
value = 700
triggerall = Var(59) = 1
triggerall = power >= 500
trigger1 = statetype != A
trigger1 = ctrl
trigger1 = p2bodydist X = [0,60]
trigger1 = p2statetype != A
trigger1 = p2movetype = A
trigger1 = random = [5,10]
;---------------------------------------------------------------------------
;ガードキャンセルタクティカルステップ
[State -3, 700]
type = ChangeState
value = 700
triggerall = Var(59) = 1
triggerall = power >= 2000
triggerall = p2statetype != A
triggerall = p2bodydist X = [0,60]
trigger1 = stateno = 150
trigger2 = stateno = 151

;---------------------------------------------------------------------------
;ダウン回避
[State -3, Taunt]
type = ChangeState
value = 702
triggerall = Var(59) = 1
trigger1 = stateno = 5050
trigger1 = pos y >=-40

;===========================================================================
;---------------------------------------------------------------------------
;近距離立ち弱パンチ
[State -3, Stand Light Punch]
type = ChangeState
value = 205
triggerall = Var(59) = 1
triggerall = P2dist X <=50
triggerall = P2bodydist Y = [-100,0]
triggerall = statetype = S
triggerall = random = [500,600]
trigger1 = p2statetype != A
trigger1 = p2statetype != L
trigger1 = ctrl

;---------------------------------------------------------------------------
;近距離立ち弱キック
[State -3, Stand Light Kick]
type = ChangeState
value = 235
triggerall = Var(59) = 1
triggerall = P2dist X <=50
triggerall = statetype = S
triggerall = random = [400,500]
trigger1 = ctrl
trigger1 = p2statetype != L
;---------------------------------------------------------------------------
;遠距離立ち強キック
[State -3, Standing Strong Kick]
type = ChangeState
value = 240
triggerall = Var(59) = 1
triggerall = P2bodydist X = [50,70]
triggerall = P2bodydist Y = [-100,0]
triggerall = statetype = S
triggerall = random = [100,200]
trigger1 = ctrl
trigger1 = p2statetype != L
;---------------------------------------------------------------------------
;近距離立ち強キック
[State -3, Standing Strong Kick]
type = ChangeState
value = 245
triggerall = Var(59) = 1
triggerall = P2dist X <=50
triggerall = statetype = S
triggerall = random = [0,100]
triggerall = p2statetype != L
trigger1 = ctrl
trigger2 = stateno = 700 && animelem = 3,>=0

;---------------------------------------------------------------------------
;挑発
[State -3, Taunt]
type = ChangeState
value = 195
triggerall = Var(59) = 1
triggerall = statetype != A
trigger1 = Ctrl
trigger1 = p2stateno = 1205 || p2stateno = [805,806]

;---------------------------------------------------------------------------
;しゃがみ強パンチ
[State -3, Crouching Strong Punch]
type = ChangeState
value = 410
triggerall = Var(59) = 1
triggerall = statetype = C
triggerall = random = [300,400]
trigger1 = ctrl
trigger1 = P2statetype != A
trigger1 = p2statetype != L
trigger1 = P2bodydist X = [40,70]

;---------------------------------------------------------------------------
;しゃがみ弱キック
[State -3, Crouching Light Kick]
type = ChangeState
value = 430
triggerall = Var(59) = 1
triggerall = statetype = C
triggerall = random = [200,300]
trigger1 = ctrl
trigger1 = P2statetype != A
trigger1 = p2statetype != L
trigger1 = P2bodydist X = [0,40]

;---------------------------------------------------------------------------
;空中強パンチ
[State -3, Jump Strong Punch]
type = ChangeState
value = 610
triggerall = Var(59) = 1
trigger1 = statetype = A
trigger1 = stateno != 106
trigger1 = ctrl
trigger1 = P2bodydist X = [0,70]
trigger1 = P2bodydist Y = [-80,-20]

;---------------------------------------------------------------------------
;空中強キック
[State -3, Jump Strong Kick]
type = ChangeState
value = 640
triggerall = Var(59) = 1
trigger1 = statetype = A
trigger1 = stateno != 106
trigger1 = ctrl
trigger1 = P2bodydist X = [0,90]
trigger1 = P2bodydist Y = [-20,50]
