;Easy AI

;---------------------------------------------------------------------------
;この下の行は消さないように。動作しなくなります。
[Statedef -3]
;------------------------------------------------------------------------------
;AIのレベルを設定出来ます。
;0にするとAIをOFFに出来ます。
;ONにする時は1〜5にして下さい。
;上記以外の値だとほぼ確実にバグると思います。

;AI
[State -3, AI LV]
type = VarSet
trigger1 = 1
v = 58
value = 1

;設定したレベルによってAIの性能を制限出来ます。
;LV1:夢想転生封じ+セイントクロス封じ
;LV2:投げ無効化封じ+リザレクション封じ
;LV3:投げ無効化封じ+飛び道具無効化封じ
;LV4:飛び道具無効化封じ
;LV5:プレイヤー性能
;LV6:ボスモード

;------------------------------------------------------------------------------
;AIパターン
[State -3, random]
type = VarRandom
triggerall = Var(59) != 0
trigger1 = timemod = 20,0
trigger1 = Stateno != 19
trigger2 = MoveContact || MoveReversed
trigger3 = time = 0
trigger4 = timemod = 60,0
trigger4 = Stateno = 19
v = 57
range = 0,399
ignorehitpause = 1

;------------------------------------------------------------------------------
;ここから下はAIの設定です

[State -3, AI]
type = Helper
trigger1 = NumHelper(777) = 0
trigger1 = roundstate = 2
trigger1 = alive
trigger1 = var(59) = 0
trigger1 = (PrevStateNo = [190,199]) || PrevStateno  = 5900
helpertype = normal
name = "AI"
stateno = 777
ID = 777
pos = 0,0
keyctrl = 1
ignorehitpause = 1
pausemovetime = 99999
supermovetime = 99999

[State -3, AI]
type = VarSet
triggerall = Var(59) = 0
triggerall = RoundState = [0,2]
trigger1 = Command = "AI_01"
trigger2 = Command = "AI_02"
trigger3 = Command = "AI_03"
trigger4 = Command = "AI_04"
trigger5 = Command = "AI_05"
trigger6 = Command = "AI_06"
trigger7 = Command = "AI_07"
trigger8 = Command = "AI_08"
trigger9 = Command = "AI_09"
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 = "start"
v = 59
value = Var(58)

[State -3]
type = VarSet
triggerall = Var(59) > 0
trigger1 = RoundState >= 3
trigger2 = Win = 1
trigger3 = Lose = 1
trigger4 = DrawGame = 1
trigger5 = !Alive
trigger6 = Life = 0
v = 59
value = -1

[State -3]
type = VarSet
triggerall = Var(59) = -1
trigger1 = RoundState <= 2
v = 59
value = Var(58)

;------------------------------------------------------------------------------
;------------------------------------------------------------------------------
;赤黒き世界への導きor青白き世界への導き
[State -1]
type = ChangeState
value = ifelse(Random%2=0,36000,36500)
triggerall = Var(59) > 0
triggerall = Var(57)%20 = 0
triggerall = Var(52) = 1
triggerall = Var(56) = 1
triggerall = Var(42) = 0
triggerall = Power >= 3000
triggerall = Var(51) = 1
triggerall = Statetype != A
trigger1 = ctrl
trigger2 = Stateno = 160

;------------------------------------------------------------------------------
;1000000000000℃
[State -1]
type = ChangeState
value = 36100
triggerall = Var(59) > 0
triggerall = Var(57)%10 = 0
triggerall = Var(42) >= 1000
triggerall = Statetype != A
trigger1 = ctrl
trigger2 = Stateno = 160

;------------------------------------------------------------------------------
;-1000000000000℃
[State -1]
type = ChangeState
value = 36600
triggerall = Var(59) > 0
triggerall = Var(57)%10 = 0
triggerall = Var(42) <= -1000
triggerall = Statetype != A
trigger1 = ctrl
trigger2 = Stateno = 160

;------------------------------------------------------------------------------
;ジャッジメント
[State -3]
type = ChangeState
value = 35000
triggerall = Var(59) > 0
triggerall = Var(56) = 1
triggerall = Var(42) = 0 || Var(19) >= 2
triggerall = ctrl || Stateno = 160 || Movetype = H
triggerall = Alive
trigger1 = Var(33)%10 = 1
trigger2 = Var(33)/10%10 = 1
trigger3 = Var(33)/100%10 = 1
trigger4 = Var(33)/1000%10 = 1
trigger5 = Fvar(20) != 0 && Var(57)%20 = 0
ignorehitpause = 1

;------------------------------------------------------------------------------
;ボクの名前を言ってみて
[State -3]
type = null;ChangeState
value = 15000
triggerall = Var(59) > 0
triggerall = Power >= 3000
triggerall = Statetype != A
triggerall = Var(52) = 1
triggerall = Var(57) = [0,49]
triggerall = P2BodyDist X = [0,30]
triggerall = P2BodyDist Y = 0
triggerall = TeamMode = Single || TeamMode = Turns
triggerall = enemy,TeamMode = Single || enemy,TeamMode = Turns
trigger1 = ctrl
trigger2 = Stateno = 160
trigger2 = time >= 1

;------------------------------------------------------------------------------
;セラフコート
[State -1]
type = ChangeState
value = 33000
triggerall = Var(59) > 0
triggerall = Var(57)%50 = 0 || Var(59) = 6
triggerall = Power >= 3000
triggerall = Var(56) = 1
triggerall = Statetype != A
triggerall = Var(24) = 0 && Var(41) = 0
trigger1 = ctrl
trigger2 = Stateno = 160

[State -1]
type = ChangeState
value = 33000
triggerall = Var(59) > 0
triggerall = Var(57)%30 = 0
triggerall = Power >= 3000
triggerall = Var(56) = 1
triggerall = Statetype != A
triggerall = (100*Life/Var(54)) <= 20
triggerall = Var(24) >= 1 || Var(41) = 1
trigger1 = ctrl
trigger2 = Stateno = 160

;------------------------------------------------------------------------------
;夢想転生
[State -3]
type = ChangeState
value = 10000
triggerall = Var(59) >= 2
triggerall = Power >= 3000 || Var(55) = 1
triggerall = Var(51) = 1 || Var(55) = 1
triggerall = Var(52) = 0
triggerall = Statetype != A
trigger1 = ctrl
trigger2 = Stateno = 160
trigger2 = time >= 1

;------------------------------------------------------------------------------
;セイントクロス
[State -3]
type = ChangeState
value = 30000
triggerall = Var(59) >= 2
triggerall = Power >= 3000 || Var(55) = 1
triggerall = Var(51) = 1 || Var(55) = 1
triggerall = Var(56) = 0
triggerall = Statetype != A
trigger1 = ctrl
trigger2 = Stateno = 160
trigger2 = time >= 1

;------------------------------------------------------------------------------
;北斗有情断迅拳
[State -3]
type = ChangeState
value = 10500
triggerall = Var(59) > 0
triggerall = Power >= 3000
triggerall = Var(52) = 1
triggerall = Statetype != A
triggerall = Var(57) = [0,29]
trigger1 = ctrl
trigger1 = P2BodyDist X = [0,100]
trigger1 = P2BodyDist Y >= -40
trigger2 = Stateno = 160
trigger2 = time >= 1
trigger3 = Stateno = [200,420]
trigger3 = Var(3) = [1,3]
trigger4 = Stateno = [1000,1700]
trigger4 = Var(3) = [1,3]
trigger4 = Pos Y >= 0

;---------------------------------------------------------------------------
;断固相殺拳
[State -3]
type = ChangeState
value = 11000
triggerall = Var(59) > 0
triggerall = Power >= 2000
triggerall = Var(52) = 1
triggerall = Var(57) = [30,59]
triggerall = (NumHelper(11200) = 0 && NumHelper(11300) = 0) || Var(19) >= 2
trigger1 = ctrl
trigger2 = Stateno = 160
trigger2 = time >= 1
trigger3 = Stateno = [200,630]
trigger3 = Var(3) = [1,3]
trigger4 = Stateno = [1000,1700]
trigger4 = Var(3) = [1,3]

;---------------------------------------------------------------------------
;まだまだ読みが甘いよ
[State -1]
type = ChangeState
value = 11500
triggerall = Var(59) > 0
triggerall = Power >= 2000
triggerall = Var(52) = 1
triggerall = Statetype != A
triggerall = Var(57) = [90,139]
triggerall = NumHelper(11600) = 0
triggerall = P2BodyDist Y >= -180
trigger1 = ctrl
trigger2 = Stateno = 160
trigger3 = Stateno = [200,420]
trigger3 = Var(3) = [1,3]
trigger4 = Stateno = [1000,1700]
trigger4 = Var(3) = [1,3]
trigger4 = Pos Y >= 0

;------------------------------------------------------------------------------
;メギドラオン
[State -3]
type = ChangeState
value = 31000
triggerall = Var(59) > 0
triggerall = Power >= 3000
triggerall = Var(56) = 1
triggerall = Var(57) = [160,179]
trigger1 = ctrl
trigger2 = Stateno = 160
trigger3 = Stateno = [200,630]
trigger3 = Var(3) = [1,3]
trigger4 = Stateno = [1000,2200]
trigger4 = Var(3) = [1,3]

;------------------------------------------------------------------------------
;ドラゴンブレス
[State -3]
type = ChangeState
value = 30500
triggerall = Var(59) > 0
triggerall = Power >= 2000
triggerall = Var(56) = 1
triggerall = Statetype != A
triggerall = Var(57) = [180,199]
trigger1 = ctrl
trigger1 = P2BodyDist X = [0,80]
trigger1 = P2BodyDist Y >= -140
trigger2 = Stateno = 160
trigger2 = time >= 1
trigger3 = Stateno = [200,420]
trigger3 = Var(3) = [1,3]
trigger4 = Stateno = [1000,1700]
trigger4 = Var(3) = [1,3]
trigger4 = Pos Y >= 0

;------------------------------------------------------------------------------
;ガンブレイズ
[State -1]
type = ChangeState
value = 32000
triggerall = Var(59) > 0
triggerall = Power >= 1000
triggerall = Var(56) = 1
triggerall = Statetype != A
triggerall = Var(57) = [200,229]
triggerall = P2BodyDist X > 40
triggerall = P2BodyDist Y >= -90
triggerall = NumHelper(32100) < 2 || Var(19) >= 2
trigger1 = ctrl
trigger2 = Stateno = 160
trigger3 = Stateno = [200,420]
trigger3 = Var(3) = [1,3]
trigger4 = Stateno = [1000,1700]
trigger4 = Var(3) = [1,3]
trigger4 = Pos Y >= 0

;------------------------------------------------------------------------------
;生命の青(地上)
[State -3]
type = ChangeState
value = 12000
triggerall = Var(59) > 0
triggerall = Power >= 1500
triggerall = Var(52) = 1
triggerall = Statetype != A
triggerall = Var(57) = [60,89]
triggerall = P2BodyDist Y >= -50
triggerall = (NumHelper(12500) = 0 && NumHelper(12600) = 0) || Var(19) >= 2
trigger1 = ctrl
trigger2 = Stateno = 160
trigger2 = time >= 1
trigger3 = Stateno = [200,420]
trigger3 = Var(3) = [1,3]
trigger4 = Stateno = [1000,1700]
trigger4 = Var(3) = [1,3]
trigger4 = Pos Y >= 0

;------------------------------------------------------------------------------
;生命の青(空中)
[State -3]
type = ChangeState
value = 12100
triggerall = Var(59) > 0
triggerall = Power >= 1500
triggerall = Var(52) = 1
triggerall = Statetype = A
triggerall = Var(57) = [60,89]
triggerall = P2BodyDist Y > 0
triggerall = (NumHelper(12500) = 0 && NumHelper(12600) = 0) || Var(19) >= 2
trigger1 = ctrl
trigger2 = Stateno = 160
trigger2 = time >= 1
trigger3 = Stateno = [200,630]
trigger3 = Var(3) = [1,3]
trigger4 = Stateno = [1000,2200]
trigger4 = Var(3) = [1,3]

;---------------------------------------------------------------------------
;転生の見切り
[State -3]
type = ChangeState
value = 13000
triggerall = Var(59) > 0
triggerall = Var(57) = [200,399]
triggerall = Var(52) = 1
triggerall = Statetype != A
triggerall = Stateno != 13100
triggerall = Var(43) = 0
triggerall = Var(42) = 0 || Var(19) >= 2
trigger1 = ctrl
trigger1 = enemynear,HitdefAttr = SCA,NA,SA,HA,NP,SP,HP,NT,ST,HT
trigger1 = P2Movetype = A 
trigger2 = ctrl
trigger2 = enemy,NumHelper > 0 || Enemy,NumProj > 0
trigger2 = enemynear,Movetype = A
trigger2 = enemynear,HitdefAttr = SCA,NA,SA,HA,NP,SP,HP,NT,ST,HT
trigger3 = Stateno = 160
trigger3 = time >= 1
ignorehitpause = 1

;---------------------------------------------------------------------------
;秘孔新血愁
[State -3]
type = ChangeState
value = 14000
triggerall = Var(59) > 0
triggerall = Power >= 1000
triggerall = Var(52) = 1
triggerall = (Var(57) = [300,349]) || (Var(43) > 0)
triggerall = Statetype != A
triggerall = P2Statetype = A || Var(43) > 0
trigger1 = ctrl
trigger1 = P2BodyDist Y = [-80,-10]
trigger2 = Stateno = 160
trigger3 = Stateno = [200,420]
trigger3 = Var(3) = [1,3]
trigger4 = Stateno = [1000,1700]
trigger4 = Var(3) = [1,3]
trigger4 = Pos Y >= 0
trigger5 = ctrl
trigger5 = Var(43) > 0
trigger5 = P2BodyDist X = [0,80]
trigger5 = P2BodyDist Y = [-80,10]

;---------------------------------------------------------------------------
;奇跡の詩
[State -3]
type = ChangeState
value = 4500
triggerall = Var(59) > 0
triggerall = Statetype != A
triggerall = Power >= 3000
triggerall = (100*Life/Var(54)) <= 33 || Var(53) = 1
triggerall = Var(57) = [300,399]
trigger1 = Stateno = [200,699]
trigger2 = Stateno < 200 && Ctrl = 1
trigger3 = Stateno = 160 && Var(14) = 1
trigger3 = time = [1,3]

;---------------------------------------------------------------------------
;ひかりのつばさ(LV3)
[State -3]
type = ChangeState
value = 4200
triggerall = Var(59) > 0
triggerall = Statetype != A
triggerall = Power >= 3000
triggerall = P2BodyDist X = [0,40]
triggerall = P2BodyDist Y >= -50
triggerall = Random > 800+(150*((100*Life/Var(54)) < 50))-(150*(P2Life <= 300))
trigger1 = Ctrl
trigger1 = P2Movetype = A && Enemynear,Time >= 50
trigger1 = Var(57) = [260,299]
trigger2 = Stateno = 220 && Animelemtime(6) <= 3 || Stateno = 420 && Animelemtime(6) < 0
trigger2 = Var(3) = 1
trigger2 = Var(57) = [200,299]
trigger3 = Stateno = 160
trigger3 = Var(14) = 1
trigger3 = time = [1,3]

;---------------------------------------------------------------------------
;ひかりのつばさ(LV2)
[State -3]
type = ChangeState
value = 4100
triggerall = Var(59) > 0
triggerall = Statetype != A
triggerall = Power >= 2000
triggerall = P2BodyDist X = [0,40]
triggerall = P2BodyDist Y >= -50
triggerall = Random > 750+(150*((100*Life/Var(54)) < 50))-(150*(P2Life <= 300))
trigger1 = Ctrl
trigger1 = P2Movetype = A && Enemynear,Time >= 50
trigger1 = Var(57) = [260,299]
trigger2 = Stateno = 220 && Animelemtime(6) <= 3 || Stateno = 420 && Animelemtime(6) < 0
trigger2 = Var(3) = 1
trigger2 = Var(57) = [200,399]
trigger3 = Stateno = 160
trigger3 = Var(14) = 1
trigger3 = time = [1,3]

;---------------------------------------------------------------------------
;ひかりのつばさ(LV1)
[State -3]
type = ChangeState
value = 4000
triggerall = Var(59) > 0
triggerall = Statetype != A
triggerall = Power >= 1000
triggerall = P2BodyDist X = [0,40]
triggerall = P2BodyDist Y >= -50
triggerall = Random > 700+(150*((100*Life/Var(54)) < 50))-(150*(P2Life <= 300))
trigger1 = Ctrl
trigger1 = P2Movetype = A && Enemynear,Time >= 50
trigger1 = Var(57) = [260,299]
trigger2 = Stateno = 220 && Animelemtime(6) <= 3 || Stateno = 420 && Animelemtime(6) < 0
trigger2 = Var(3) = 1
trigger2 = Var(57) = [300,399]
trigger3 = Stateno = 160
trigger3 = Var(14) = 1
trigger3 = time = [1,3]

;---------------------------------------------------------------------------
;えいえんのこうりん(LV3)
[State -3]
type = ChangeState
value = 3700
triggerall = Var(59) > 0
triggerall = Power >= 3000
triggerall = !InGuardDist
triggerall = P2BodyDist Y = [-20,20]
triggerall = Random > 800+(150*((100*Life/Var(54)) < 50))-(150*(P2Life <= 300))
trigger1 = Ctrl
trigger1 = P2BodyDist X = [60,180]
trigger1 = Var(57) = [230,259]
trigger2 = Stateno = 220 && Animelemtime(6) <= 3 || Stateno = 420 && Animelemtime(6) < 0
trigger2 = Var(3) = [1,3]
trigger2 = Var(57) = [150,179]
trigger3 = Stateno = 620
trigger3 = Var(3) = [1,3]
trigger3 = Var(57) = [300,349]
trigger4 = Stateno = 160
trigger4 = Var(14) = 1
trigger4 = time = [1,3]

;---------------------------------------------------------------------------
;えいえんのこうりん(LV2)
[State -3]
type = ChangeState
value = 3600
triggerall = Var(59) > 0
triggerall = Power >= 2000
triggerall = !InGuardDist
triggerall = P2BodyDist Y = [-20,20]
triggerall = Random > 750+(150*((100*Life/Var(54)) < 50))-(150*(P2Life <= 300))
trigger1 = Ctrl
trigger1 = P2BodyDist X = [60,140]
trigger1 = Var(57) = [230,259]
trigger2 = Stateno = 220 && Animelemtime(6) <= 3 || Stateno = 420 && Animelemtime(6) < 0
trigger2 = Var(3) = [1,3]
trigger2 = Var(57) = [150,179]
trigger3 = Stateno = 620
trigger3 = Var(3) = [1,3]
trigger3 = Var(57) = [300,349]
trigger4 = Stateno = 160
trigger4 = Var(14) = 1
trigger4 = time = [1,3]

;---------------------------------------------------------------------------
;えいえんのこうりん(LV1)
[State -3]
type = ChangeState
value = 3500
triggerall = Var(59) > 0
triggerall = Power >= 1000
triggerall = !InGuardDist
triggerall = P2BodyDist Y = [-20,20]
triggerall = Random > 700+(150*((100*Life/Var(54)) < 50))-(150*(P2Life <= 300))
trigger1 = Ctrl
trigger1 = P2BodyDist X = [60,120]
trigger1 = Var(57) = [230,259]
trigger2 = Stateno = 220 && Animelemtime(6) <= 3 || Stateno = 420 && Animelemtime(6) < 0
trigger2 = Var(3) = [1,3]
trigger2 = Var(57) = [150,179]
trigger3 = Stateno = 620
trigger3 = Var(3) = [1,3]
trigger3 = Var(57) = [300,349]
trigger4 = Stateno = 160
trigger4 = Var(14) = 1
trigger4 = time = [1,3]

;---------------------------------------------------------------------------
;しゃいにんぐるはねぱんち(LV3)
[State -3]
type = ChangeState
value = 3200
triggerall = Var(59) > 0
triggerall = Statetype != A
triggerall = Power >= 3000
triggerall = P2BodyDist X = [0,140]
triggerall = P2BodyDist Y >= -10
triggerall = Random > 800+(150*((100*Life/Var(54)) < 50))-(150*(P2Life <= 300))
triggerall = !InGuardDist
triggerall = P2Statetype != L
trigger1 = Ctrl
trigger1 = Var(57) = [200,229]
trigger2 = Stateno = 220 && Animelemtime(6) <= 3 || Stateno = 420 && Animelemtime(6) < 0
trigger2 = Var(3) = 1
trigger2 = Var(57) = [120,149]
trigger3 = Stateno = 160
trigger3 = Var(14) = 1
trigger3 = time = [1,3]
trigger3 = Var(57) = [120,149]

;---------------------------------------------------------------------------
;しゃいにんぐるはねぱんち(LV2)
[State -3]
type = ChangeState
value = 3100
triggerall = Var(59) > 0
triggerall = Statetype != A
triggerall = Power >= 2000
triggerall = P2BodyDist X = [0,110]
triggerall = P2BodyDist Y >= -10
triggerall = Random > 750+(150*((100*Life/Var(54)) < 50))-(150*(P2Life <= 300))
triggerall = !InGuardDist
triggerall = P2Statetype != L
trigger1 = Ctrl
trigger1 = Var(57) = [200,229]
trigger2 = Stateno = 220 && Animelemtime(6) <= 3 || Stateno = 420 && Animelemtime(6) < 0
trigger2 = Var(3) = 1
trigger2 = Var(57) = [120,149]
trigger3 = Stateno = 160
trigger3 = Var(14) = 1
trigger3 = time = [1,3]
trigger3 = Var(57) = [120,149]

;---------------------------------------------------------------------------
;しゃいにんぐるはねぱんち(LV1)
[State -3]
type = ChangeState
value = 3000
triggerall = Var(59) > 0
triggerall = Statetype != A
triggerall = Power >= 1000
triggerall = P2BodyDist X = [0,80]
triggerall = P2BodyDist Y >= -10
triggerall = Random > 700+(150*((100*Life/Var(54)) < 50))-(150*(P2Life <= 300))
triggerall = !InGuardDist
triggerall = P2Statetype != L
trigger1 = Ctrl
trigger1 = Var(57) = [200,229]
trigger2 = Stateno = 220 && Animelemtime(6) <= 3 || Stateno = 420 && Animelemtime(6) < 0
trigger2 = Var(3) = 1
trigger2 = Var(57) = [120,149]
trigger3 = Stateno = 160
trigger3 = Var(14) = 1
trigger3 = time = [1,3]
trigger3 = Var(57) = [120,149]

;------------------------------------------------------------------------------
;空中投げ
[State -3]
type = ChangeState
value = 750
triggerall = Var(59) > 0
triggerall = Statetype = A
triggerall = P2BodyDist X = [0,20]
triggerall = P2BodyDist Y = [-30,30]
triggerall = P2Movetype != H && Enemynear,Time >= 30
triggerall = Var(57) = [200,299]
trigger1 = ctrl
trigger2 = Stateno = 160
trigger2 = Var(14) = 1
trigger2 = time = [1,3]

;------------------------------------------------------------------------------
;地上投げ
[State -3]
type = ChangeState
value = 700
triggerall = Var(59) > 0
triggerall = Statetype = S
triggerall = P2BodyDist X = [0,20]
triggerall = P2BodyDist Y = 0
triggerall = P2Movetype != H && Enemynear,Time >= 30
triggerall = Var(57) = [200,299]
triggerall = P2Statetype != L
trigger1 = ctrl
trigger2 = Stateno = 160
trigger2 = Var(14) = 1
trigger2 = time = [1,3]

;------------------------------------------------------------------------------
;そこの人どいて〜(RF)
[State -3]
type = ChangeState
value = 1200
triggerall = Var(59) > 0
triggerall = Var(50) >= 1000 || Var(51) = 1
triggerall = Statetype != A
triggerall = Random > 800
triggerall = P2BodyDist X = [0,70]
triggerall = P2BodyDist Y >= -20
triggerall = !InGuardDist
triggerall = P2Statetype != L
trigger1 = Ctrl
trigger1 = Var(57) = [160,179]
trigger2 = Stateno = 220 || Stateno = 420
trigger2 = Var(3) = 1
trigger2 = ((Var(57) = [0,99]) && Power < 1000) || (Power >= 1000 && (Var(57) = [0,39]))
trigger3 = Stateno = 160
trigger3 = Var(14) = 1
trigger3 = time = [1,3]
trigger3 = ((Var(57) = [0,99]) && Power < 1000) || (Power >= 1000 && (Var(57) = [0,39]))

;------------------------------------------------------------------------------
;そこの人どいて〜(中)
[State -3]
type = ChangeState
value = 1100
triggerall = Var(59) > 0
triggerall = Statetype != A
triggerall = Random = [400,800]
triggerall = P2BodyDist X = [0,70]
triggerall = P2BodyDist Y >= -20
triggerall = !InGuardDist
triggerall = P2Statetype != L
trigger1 = Ctrl
trigger1 = Var(57) = [160,179]
trigger2 = Stateno = 220 || Stateno = 420
trigger2 = Var(3) = [1,3]
trigger2 = ((Var(57) = [0,99]) && Power < 1000) || (Power >= 1000 && (Var(57) = [0,39]))
trigger3 = Stateno = 160
trigger3 = Var(14) = 1
trigger3 = time = [1,3]
trigger3 = ((Var(57) = [0,99]) && Power < 1000) || (Power >= 1000 && (Var(57) = [0,39]))

;------------------------------------------------------------------------------
;そこの人どいて〜(弱)
[State -3]
type = ChangeState
value = 1000
triggerall = Var(59) > 0
triggerall = Statetype != A
triggerall = Random < 400
triggerall = P2BodyDist X = [0,70]
triggerall = P2BodyDist Y >= -20
triggerall = !InGuardDist
triggerall = P2Statetype != L
trigger1 = Ctrl
trigger1 = Var(57) = [160,179]
trigger2 = Stateno = 220 || Stateno = 420
trigger2 = Var(3) = [1,3]
trigger2 = ((Var(57) = [0,99]) && Power < 1000) || (Power >= 1000 && (Var(57) = [0,39]))
trigger3 = Stateno = 160
trigger3 = Var(14) = 1
trigger3 = time = [1,3]
trigger3 = ((Var(57) = [0,99]) && Power < 1000) || (Power >= 1000 && (Var(57) = [0,39]))

;------------------------------------------------------------------------------
;しゃいにんアロー(空中RF)
[State -3]
type = ChangeState
value = 1800
triggerall = Var(59) > 0
triggerall = Var(50) >= 1000 || Var(51) = 1
triggerall = Statetype = A
triggerall = Var(57) = [150,199]
triggerall = !InGuardDist
triggerall = P2Statetype != L
trigger1 = Ctrl
trigger1 = P2BodyDist X = [0,80]
trigger1 = P2BodyDist Y >= 40

;------------------------------------------------------------------------------
;しゃいにんアロー(地上RF)
[State -3]
type = ChangeState
value = 1700
triggerall = Var(59) > 0
triggerall = Var(50) >= 1000 || Var(51) = 1
triggerall = Statetype != A
triggerall = P2BodyDist X = [0,60]
triggerall = P2BodyDist Y = [-100,20]
triggerall = P2Statetype != L
trigger1 = Ctrl
trigger1 = P2Movetype = A && Enemynear,Time >= 50
trigger1 = Var(57) = [150,199]
trigger2 = Stateno = 220 || Stateno = 420
trigger2 = Var(3) = 1
trigger2 = Random > 800
trigger2 = ((Var(57) = [100,199]) && Power < 1000) || (Power >= 1000 && (Var(57) = [40,79]))
trigger3 = Stateno = 160
trigger3 = Var(14) = 1
trigger3 = time = [1,3]
trigger3 = Random > 800
trigger3 = ((Var(57) = [100,199]) && Power < 1000) || (Power >= 1000 && (Var(57) = [40,79]))

;------------------------------------------------------------------------------
;しゃいにんアロー(中)
[State -3]
type = ChangeState
value = 1600
triggerall = Var(59) > 0
triggerall = P2BodyDist X = [0,60]
triggerall = P2BodyDist Y = [-100,20]
triggerall = P2Statetype != L
trigger1 = Ctrl
trigger1 = P2Statetype = C
trigger1 = Var(57) = [150,169]
trigger2 = Stateno = 220 || Stateno = 420
trigger2 = Var(3) = 1
trigger2 = Random = [400,800]
trigger2 = ((Var(57) = [100,199]) && Power < 1000) || (Power >= 1000 && (Var(57) = [40,79]))
trigger3 = Stateno = 160
trigger3 = Var(14) = 1
trigger3 = time = [1,3]
trigger3 = Random = [400,800]
trigger3 = ((Var(57) = [100,199]) && Power < 1000) || (Power >= 1000 && (Var(57) = [40,79]))
trigger4 = Stateno = 620
trigger4 = Var(3) = [1,3]
trigger4 = Random = [400,800]
trigger4 = ((Var(57) = [0,199]) && Power < 1000) || (Power >= 1000 && (Var(57) = [0,149]))
trigger4 = Var(2) = 1

;------------------------------------------------------------------------------
;しゃいにんアロー(弱)
[State -3]
type = ChangeState
value = 1500
triggerall = Var(59) > 0
triggerall = P2BodyDist X = [0,60]
triggerall = P2BodyDist Y = [-100,20]
triggerall = P2Statetype != L
trigger1 = Ctrl
trigger1 = P2Statetype != C
trigger1 = Var(57) = [150,169]
trigger2 = Stateno = 220 || Stateno = 420
trigger2 = Var(3) = 1
trigger2 = Random < 400
trigger2 = ((Var(57) = [100,199]) && Power < 1000) || (Power >= 1000 && (Var(57) = [40,79]))
trigger3 = Stateno = 160
trigger3 = Var(14) = 1
trigger3 = time = [1,3]
trigger3 = Random < 400
trigger3 = ((Var(57) = [100,199]) && Power < 1000) || (Power >= 1000 && (Var(57) = [40,79]))
trigger4 = Stateno = 620
trigger4 = Var(3) = [1,3]
trigger4 = Random < 400
trigger4 = ((Var(57) = [0,199]) && Power < 1000) || (Power >= 1000 && (Var(57) = [0,149]))
trigger4 = Var(2) = 1

;------------------------------------------------------------------------------
;たいやき突撃(RF)
[State -3]
type = ChangeState
value = 2200
triggerall = Var(59) > 0
triggerall = Var(50) >= 1000 || Var(51) = 1
triggerall = Random > 800
triggerall = !InGuardDist
triggerall = P2Statetype != L
trigger1 = Ctrl
trigger1 = P2BodyDist X = [0,40]
trigger1 = P2BodyDist Y >= -50
trigger1 = Var(57) = [180,199]
trigger2 = Stateno = 220 || Stateno = 420
trigger2 = Var(3) = [1,3]
trigger2 = P2BodyDist X = [0,40]
trigger2 = ((Var(57) = [200,299]) && Power < 1000) || (Power >= 1000 && (Var(57) = [80,119]))
trigger3 = Stateno = 620
trigger3 = Var(3) = [1,3]
trigger3 = P2BodyDist X = [0,40]
trigger3 = (P2BodyDist Y = [-20,20]) && Var(2) = 1
trigger3 = ((Var(57) = [200,399]) && Power < 1000) || (Power >= 1000 && (Var(57) = [150,299]))
trigger4 = Stateno = 160 && Statetype != A
trigger4 = Var(14) = 1
trigger4 = time = [1,3]
trigger4 = ((Var(57) = [200,299]) && Power < 1000) || (Power >= 1000 && (Var(57) = [80,119]))
trigger5 = Stateno = 160 && Statetype = A
trigger5 = Var(14) = 1
trigger5 = time = [1,3]
trigger5 = !InGuardDist
trigger5 = ((Var(57) = [200,299]) && Power < 1000) || (Power >= 1000 && (Var(57) = [80,119]))

;------------------------------------------------------------------------------
;たいやき突撃(中)
[State -3]
type = ChangeState
value = 2100
triggerall = Var(59) > 0
triggerall = !InGuardDist
triggerall = P2Statetype != L
trigger1 = Ctrl
trigger1 = P2BodyDist X = [0,40]
trigger1 = P2BodyDist Y >= -50
trigger1 = Var(57) = [180,199]
trigger2 = Stateno = 220 || Stateno = 420
trigger2 = Var(3) = [1,3]
trigger2 = P2BodyDist X = [0,40]
trigger2 = P2BodyDist Y = [-40,0]
trigger2 = ((Var(57) = [200,299]) && Power < 1000) || (Power >= 1000 && (Var(57) = [80,119]))
trigger3 = Stateno = 620
trigger3 = Var(3) = [1,3]
trigger3 = P2BodyDist X = [0,40]
trigger3 = (P2BodyDist Y <= 10 && Enemynear,Vel Y <= 0) && Var(2) = 1
trigger3 = ((Var(57) = [200,399]) && Power < 1000) || (Power >= 1000 && (Var(57) = [150,299]))
trigger4 = Stateno = 160 && Statetype != A
trigger4 = Var(14) = 1
trigger4 = time = [1,3]
trigger4 = ((Var(57) = [200,299]) && Power < 1000) || (Power >= 1000 && (Var(57) = [80,119]))
trigger5 = Stateno = 160 && Statetype = A
trigger5 = Var(14) = 1
trigger5 = time = [1,3]
trigger5 = !InGuardDist
trigger5 = ((Var(57) = [200,299]) && Power < 1000) || (Power >= 1000 && (Var(57) = [80,119]))

;------------------------------------------------------------------------------
;たいやき突撃(弱)
[State -3]
type = ChangeState
value = 2000
triggerall = Var(59) > 0
triggerall = !InGuardDist
triggerall = P2Statetype != L
trigger1 = Ctrl
trigger1 = P2BodyDist X = [0,60]
trigger1 = P2BodyDist Y >= -30
trigger1 = Var(57) = [180,199]
trigger2 = Stateno = 220 || Stateno = 420
trigger2 = Var(3) = [1,3]
trigger2 = P2BodyDist X = [0,60]
trigger2 = P2BodyDist Y = [-20,0]
trigger2 = ((Var(57) = [200,299]) && Power < 1000) || (Power >= 1000 && (Var(57) = [80,119]))
trigger3 = Stateno = 620
trigger3 = Var(3) = [1,3]
trigger3 = P2BodyDist X = [0,60]
trigger3 = ((P2BodyDist Y = [-30,20]) && Enemynear,Vel Y >= 0) && Var(2) = 1
trigger3 = ((Var(57) = [200,399]) && Power < 1000) || (Power >= 1000 && (Var(57) = [150,299]))
trigger4 = Stateno = 160 && Statetype != A
trigger4 = Var(14) = 1
trigger4 = time = [1,3]
trigger4 = ((Var(57) = [200,299]) && Power < 1000) || (Power >= 1000 && (Var(57) = [80,119]))
trigger5 = Stateno = 160 && Statetype = A
trigger5 = Var(14) = 1
trigger5 = time = [1,3]
trigger5 = !InGuardDist
trigger5 = ((Var(57) = [200,299]) && Power < 1000) || (Power >= 1000 && (Var(57) = [80,119]))

;------------------------------------------------------------------------------
;弱攻撃(空中)
[State -3]
type = ChangeState
value = 600
triggerall = Var(59) > 0
triggerall = Statetype = A
triggerall = P2BodyDist X = [0,25]
triggerall = P2BodyDist Y = [-30,30]
triggerall = P2Statetype != L
triggerall = !InGuardDist
trigger1 = ctrl
trigger1 = Var(57) = [0,79]
trigger2 = Stateno = 160
trigger2 = Var(14) = 1
trigger2 = Var(57) = [0,79]
trigger2 = time = [1,3]

;------------------------------------------------------------------------------
;中攻撃(空中)
[State -3]
type = ChangeState
value = 610
triggerall = Var(59) > 0
triggerall = Statetype = A
triggerall = P2BodyDist X = [0,40]
triggerall = P2Statetype != L
triggerall = !InGuardDist
trigger1 = ctrl
trigger1 = Var(57) = [50,129]
trigger1 = ((P2BodyDist Y = [-20,50]) && P2Statetype = A) || (((P2BodyDist Y = [30,120])) & P2Statetype != A)
trigger2 = stateno = 600
trigger2 = Var(3) = [1,3]
trigger2 = P2Movetype = H && P2Stateno != 4217
trigger2 = ((P2BodyDist Y = [-20,50]) && P2Statetype = A) || (((P2BodyDist Y = [30,120])) & P2Statetype != A)
trigger3 = Stateno = 160
trigger3 = Var(14) = 1
trigger3 = Var(57) = [50,129]
trigger3 = time = [1,3]
trigger3 = ((P2BodyDist Y = [-20,50]) && P2Statetype = A) || (((P2BodyDist Y = [30,120])) & P2Statetype != A)
trigger4 = Ctrl
trigger4 = P2Movetype = H && P2Stateno = 4217
trigger4 = P2Statetype = A
trigger4 = P2BodyDist Y = [-180,50]
trigger4 = Enemynear,Vel Y >= 0
trigger5 = Ctrl
trigger5 = Stateno = [100,119]
trigger5 = P2Statetype != A
trigger5 = P2BodyDist Y <= -20
trigger6 = Ctrl
trigger6 = Stateno = [100,119]
trigger6 = P2Statetype = A
trigger6 = P2BodyDist Y = [-20,40]

;------------------------------------------------------------------------------
;強攻撃(空中)
[State -3]
type = ChangeState
value = 620
triggerall = Var(59) > 0
triggerall = Statetype = A
triggerall = P2BodyDist X = [0,60]
triggerall = P2Statetype != L
triggerall = !InGuardDist
trigger1 = ctrl
trigger1 = Var(57) = [100,169]
trigger1 = ((P2BodyDist Y = [-60,30]) && P2Statetype = A) || (((P2BodyDist Y = [20,100])) & P2Statetype != A)
;trigger1 = P2Movetype != H
trigger2 = stateno = 610
trigger2 = Var(3) = [1,3]
trigger2 = P2Movetype = H && P2Stateno != 4217
trigger2 = ((P2BodyDist Y = [-60,80]) && P2Statetype = A) || (((P2BodyDist Y = [20,100])) & P2Statetype != A)
trigger3 = Stateno = 160
trigger3 = Var(14) = 1
trigger3 = Var(57) = [100,169]
trigger3 = time = [1,3]
trigger3 = ((P2BodyDist Y = [-60,30]) && P2Statetype = A) || (((P2BodyDist Y = [20,100])) & P2Statetype != A)
trigger4 = Ctrl
trigger4 = P2Movetype = H && P2Stateno = 4217
trigger4 = P2Statetype = A
trigger4 = P2BodyDist Y = [-180,20]
trigger4 = Enemynear,Vel Y >= 0
trigger5 = Ctrl
trigger5 = Stateno = [100,119]
trigger5 = P2Statetype != A
trigger5 = P2BodyDist Y <= -60
trigger6 = Ctrl
trigger6 = Stateno = [100,119]
trigger6 = P2Statetype = A
trigger6 = P2BodyDist Y = [-60,30]

;------------------------------------------------------------------------------
;うぐぅぷれす
[State -3]
type = ChangeState
value = 630
triggerall = Var(59) > 0
triggerall = Statetype = A
triggerall = P2BodyDist X = [-30,30]
triggerall = P2BodyDist Y >= 30
triggerall = P2Statetype != L
triggerall = !InGuardDist
trigger1 = ctrl
trigger1 = Var(57) = [130,199]
trigger2 = Stateno = 160
trigger2 = Var(14) = 1
trigger2 = Var(57) = [130,199]
trigger2 = time = [1,3]

;------------------------------------------------------------------------------
;弱攻撃
[State -3]
type = ChangeState
value = 200
triggerall = Var(59) > 0
triggerall = Statetype != A
triggerall = P2BodyDist X = [0,25]
triggerall = P2BodyDist Y = [-20,20]
triggerall = P2Statetype != L
;triggerall = !InGuardDist
trigger1 = ctrl
trigger1 = Var(57) = [0,29]
trigger2 = stateno = 200
trigger2 = Var(3) = [1,3]
trigger2 = Var(57) = [0,99]
trigger2 = P2Movetype = H
trigger2 = P2Statetype != A
trigger3 = Stateno = 160
trigger3 = Var(14) = 1
trigger3 = time = [1,3]
trigger3 = P2Statetype != C

;------------------------------------------------------------------------------
;中攻撃(近距離)
[State -3]
type = ChangeState
value = 210
triggerall = Var(59) > 0
triggerall = Statetype != A
triggerall = P2BodyDist X = [0,35]
triggerall = P2BodyDist Y = [-20,20]
triggerall = P2Statetype != L
;triggerall = !InGuardDist
trigger1 = ctrl
trigger1 = Var(57) = [30,49]
trigger2 = stateno = 200
trigger2 = Var(3) = [1,3]
trigger2 = Var(57) = [100,249]
trigger2 = P2Movetype = H
trigger2 = P2Statetype != A
trigger3 = stateno = 400
trigger3 = Var(3) = [1,3]
trigger3 = Var(57) = [100,249]
trigger3 = P2Movetype = H
trigger3 = P2Statetype != A
trigger4 = Stateno = 160
trigger4 = Var(14) = 1
trigger4 = time = [1,3]
trigger4 = P2Statetype != C

;------------------------------------------------------------------------------
;中攻撃(遠距離)
[State -3]
type = ChangeState
value = 215
triggerall = Var(59) > 0
triggerall = Statetype != A
triggerall = P2BodyDist Y = [-20,20]
triggerall = P2Statetype != L
;triggerall = !InGuardDist
trigger1 = ctrl
trigger1 = Var(57) = [50,69]
trigger1 = P2BodyDist X = [36,50]
trigger2 = stateno = 200
trigger2 = Var(3) = [1,3]
trigger2 = Var(57) = [100,249]
trigger2 = P2Movetype = H
trigger2 = P2Statetype != A
trigger2 = P2BodyDist X = [36,50]
trigger3 = stateno = 400
trigger3 = Var(3) = [1,3]
trigger3 = Var(57) = [100,249]
trigger3 = P2Movetype = H
trigger3 = P2Statetype != A
trigger3 = P2BodyDist X = [36,50]
trigger4 = stateno = 210
trigger4 = Var(3) = [1,3]
trigger4 = P2Movetype = H
trigger4 = P2Statetype != A
trigger5 = stateno = 410
trigger5 = Var(3) = [1,3]
trigger5 = P2Movetype = H
trigger5 = P2Statetype != A
trigger6 = Stateno = 160
trigger6 = Var(14) = 1
trigger6 = time = [1,3]
trigger6 = P2Statetype != C
trigger6 = P2BodyDist X = [36,50]

;------------------------------------------------------------------------------
;強攻撃
[State -3]
type = ChangeState
value = 220
triggerall = Var(59) > 0
triggerall = Statetype != A
triggerall = P2BodyDist X = [0,60]
triggerall = P2BodyDist Y = [-10,20]
triggerall = P2Statetype != L
;triggerall = !InGuardDist
trigger1 = ctrl
trigger1 = Var(57) = [70,79]
trigger2 = stateno = 215
trigger2 = Var(3) = [1,3]
trigger2 = P2Movetype = H
trigger2 = P2Statetype != A
trigger2 = Var(57) = [0,119]
trigger3 = stateno = 230
trigger3 = Var(3) = [1,3]
trigger3 = P2Movetype = H
trigger3 = P2Statetype != A
trigger3 = Var(57) = [0,119]
trigger4 = stateno = [400,410]
trigger4 = Var(3) = [1,3]
trigger4 = P2Movetype = H
trigger4 = P2Statetype != A
trigger4 = Var(57) = [0,99]
trigger5 = Stateno = 160
trigger5 = Var(14) = 1
trigger5 = time = [1,3]
trigger5 = P2Statetype != A

;------------------------------------------------------------------------------
;どっかんはねあっぱー
[State -3]
type = ChangeState
value = 240
triggerall = Var(59) > 0
triggerall = Statetype != A
triggerall = P2BodyDist X = [0,40]
triggerall = P2BodyDist Y = [-50,20]
triggerall = P2Statetype != L
;triggerall = !InGuardDist
trigger1 = ctrl
trigger1 = Var(57) = [80,89]
trigger2 = stateno = [200,215]
trigger2 = Var(3) = [1,3]
trigger2 = P2Movetype = H
trigger2 = Var(57) = [120,239]
trigger3 = stateno = 230
trigger3 = Var(3) = [1,3]
trigger3 = P2Movetype = H
trigger3 = Var(57) = [120,239]
trigger4 = stateno = [400,410]
trigger4 = Var(3) = [1,3]
trigger4 = P2Movetype = H
trigger4 = Var(57) = [100,199]
trigger5 = Stateno = 160
trigger5 = Var(14) = 1
trigger5 = time = [1,3]
trigger5 = P2Statetype != C

;------------------------------------------------------------------------------
;弱攻撃(しゃがみ)
[State -3]
type = ChangeState
value = 400
triggerall = Var(59) > 0
triggerall = Statetype != A
triggerall = P2BodyDist X = [0,25]
triggerall = P2BodyDist Y = 0
triggerall = P2Statetype != L
;triggerall = !InGuardDist
trigger1 = ctrl
trigger1 = Var(57) = [100,129]
trigger2 = stateno = 400
trigger2 = Var(3) = [1,3]
trigger2 = Var(57) = [0,99]
trigger2 = P2Movetype = H
trigger2 = P2Statetype != A
trigger3 = Stateno = 160
trigger3 = Var(14) = 1
trigger3 = time = [1,3]
trigger3 = P2Statetype != A

;------------------------------------------------------------------------------
;中攻撃(しゃがみ)
[State -3]
type = ChangeState
value = 410
triggerall = Var(59) > 0
triggerall = Statetype != A
triggerall = P2BodyDist X = [0,40]
triggerall = P2BodyDist Y = [-20,0]
triggerall = P2Statetype != L
;triggerall = !InGuardDist
trigger1 = ctrl
trigger1 = Var(57) = [130,149]
trigger2 = stateno = [200,210]
trigger2 = Var(3) = [1,3]
trigger2 = Var(57) = [250,399]
trigger2 = P2Movetype = H
trigger3 = stateno = 400
trigger3 = Var(3) = [1,3]
trigger3 = Var(57) = [250,399]
trigger3 = P2Movetype = H
trigger4 = Stateno = 160
trigger4 = Var(14) = 1
trigger4 = time = [1,3]

;------------------------------------------------------------------------------
;強攻撃(しゃがみ)
[State -3]
type = ChangeState
value = 420
triggerall = Var(59) > 0
triggerall = Statetype != A
triggerall = P2BodyDist X = [0,60]
triggerall = P2BodyDist Y = 0
triggerall = P2Statetype != L
;triggerall = !InGuardDist
trigger1 = ctrl
trigger1 = Var(57) = [150,159]
trigger2 = stateno = 215
trigger2 = Var(3) = [1,3]
trigger2 = Var(57) = [240,359]
trigger2 = P2Movetype = H
trigger2 = P2Statetype != A
trigger3 = stateno = 410
trigger3 = Var(3) = [1,3]
trigger3 = Var(57) = [240,359]
trigger3 = P2Movetype = H
trigger3 = P2Statetype != A
trigger4 = Stateno = 160
trigger4 = Var(14) = 1
trigger4 = time = [1,3]
trigger4 = P2Statetype != A

;------------------------------------------------------------------------------
;すてっぷきっく
[State -3]
type = ChangeState
value = 230
triggerall = Var(59) > 0
triggerall = Statetype != A
triggerall = P2BodyDist X = [0,50]
triggerall = P2BodyDist Y = [-10,10]
triggerall = P2Statetype != L
triggerall = !InGuardDist
trigger1 = ctrl
trigger1 = Var(57) = [90,99]
trigger2 = stateno = 215
trigger2 = Var(3) = [1,3]
trigger2 = Var(57) = [360,399]
trigger3 = stateno = [400,410]
trigger3 = Var(3) = [1,3]
trigger3 = Var(57) = [360,399]
trigger4 = Stateno = 160
trigger4 = Var(14) = 1
trigger4 = time = [1,3]
trigger4 = P2Statetype != A

;------------------------------------------------------------------------------
;インスタントチャージ(地上)
[State -3]
type = ChangeState
value = 900
triggerall = Var(59) > 0
triggerall = Var(50) >= 1000 || Var(51) = 1
triggerall = Var(3) = [2,3]
triggerall = Statetype != A
trigger1 = Stateno = 220 || Stateno = 420
trigger1 = Var(57) = [0,79]
trigger2 = Stateno = [1000,1300]
trigger2 = Var(57) = [0,149]

;------------------------------------------------------------------------------
;インスタントチャージ(空中)
[State -3]
type = ChangeState
value = 950
triggerall = Var(59) > 0
triggerall = Var(50) >= 1000 || Var(51) = 1
triggerall = Var(3) = [2,3]
triggerall = Statetype = A
trigger1 = Stateno = [600,630]
trigger1 = Var(57) = [0,79]
trigger2 = Stateno = [1500,1700]
trigger2 = Pos Y < 0
trigger2 = Var(57) = [0,149]
trigger2 = Animelemtime(5) >= 0
trigger3 = Stateno = [2000,2100]
trigger3 = Var(57) = [0,49]
trigger4 = Stateno = 2200 && Vel Y >= 0
trigger4 = Var(57) = [0,49]

;------------------------------------------------------------------------------
;バックダッシュ
[State -3]
type = ChangeState
value = 105
triggerall = Var(59) > 0
triggerall = Statetype = S
triggerall = ctrl
trigger1 = Enemynear,Movetype = A
trigger1 = Enemynear,HitdefAttr = SCA,NT,ST,HT
trigger1 = BackEdgeBodyDist > 40

;------------------------------------------------------------------------------
;空中ダッシュ(後)
[State -3]
type = ChangeState
value = 115
triggerall = Var(59) > 0
triggerall = Statetype = A
triggerall = Var(4) < 2
;triggerall = Var(57) = [100,199]
triggerall = ctrl
trigger1 = Enemynear,Movetype = A
trigger1 = (BackEdgeBodyDist > 40) && (Enemynear,HitdefAttr = SCA,NT,ST,HT)
trigger2 = P2Stateno = 5200 || P2Stateno = 5210
trigger2 = Random > 950
trigger2 = !inguarddist
trigger2 = BackEdgeBodyDist > 40

;------------------------------------------------------------------------------
;ダッシュ
[State -3]
type = ChangeState
value = 100
triggerall = Var(59) > 0
triggerall = Statetype = S
;triggerall = Var(57) = [100,199]
triggerall = ctrl
triggerall = !InGuardDist
trigger1 = P2BodyDist X >= 150
trigger1 = FrontEdgeBodyDist > 40

;------------------------------------------------------------------------------
;空中ダッシュ(前)
[State -3]
type = ChangeState
value = 110
triggerall = Var(59) > 0
triggerall = Statetype = A
triggerall = Var(4) < 2
triggerall = Enemynear,Movetype != A
trigger1 = !InGuardDist
trigger1 = Stateno != 100 && Stateno != 110
trigger1 = ctrl
trigger1 = P2BodyDist X >= 80
trigger1 = FrontEdgeBodyDist > 40
trigger1 = P2Stateno != 4217 || P2Movetype != H
trigger2 = !InGuardDist
trigger2 = Stateno = 610 || Stateno = 620
trigger2 = P2BodyDist X >= 80
trigger2 = Var(3) = 1
trigger3 = !InGuardDist
trigger3 = P2Movetype = H && P2Stateno != 4217
trigger3 = P2Statetype = A
trigger3 = P2BodyDist X >= 80
trigger3 = Ctrl
trigger4 = Ctrl
trigger4 = P2BodyDist Y >= 90
trigger4 = FrontEdgeBodyDist > 40
trigger4 = Enemynear,Movetype = A
trigger4 = Enemynear,HitdefAttr = SCA,NT,ST,HT
trigger5 = !InGuardDist
trigger5 = Stateno = 620
trigger5 = Var(3) = 1
trigger5 = P2Statetype = A
trigger5 = Enemynear,Vel Y > 0
trigger5 = P2BodyDist Y >= -10
trigger6 = !InGuardDist
trigger6 = Stateno != 100 && Stateno != 110
trigger6 = ctrl
trigger6 = P2BodyDist X <= -80
trigger6 = BackEdgeBodyDist > 40
trigger6 = P2Stateno != 4217 || P2Movetype != H

;------------------------------------------------------------------------------
;ジャンプキャンセル(地上)
[State -3]
type = ChangeState
value = 41
triggerall = Var(59) > 0
triggerall = Statetype != A
trigger1 = ctrl
;trigger1 = !InGuardDist || Random > 990
trigger1 = P2BodyDist Y <= -50 || Random > 980
trigger1 = P2Stateno != 4217 || P2Movetype != H
;trigger1 = Var(57) = [200,299]
trigger2 = Stateno = 200 || Stateno = 210 || Stateno = 400
trigger2 = Var(3) = [1,3]
trigger2 = P2Statetype = A
trigger3 = Stateno = 215 || Stateno = 410
trigger3 = Var(3) = 1
trigger3 = P2Statetype = A
trigger4 = Stateno = 240
trigger4 = Var(3) = 1
trigger5 = P2Stateno = 4217 && P2Movetype = H
trigger5 = P2BodyDist Y >= -300
trigger5 = Enemynear,Vel Y >= 0
trigger5 = Ctrl || Stateno = 0
trigger5 = !InGuardDist
trigger6 = Ctrl
trigger6 = BackEdgeBodyDist < 40
trigger6 = Enemynear,Movetype = A
trigger6 = Enemynear,HitdefAttr = SCA,NT,ST,HT

;------------------------------------------------------------------------------
;空中ジャンプ
[State -3]
type = ChangeState
value = 47
triggerall = Var(59) > 0
triggerall = Statetype = A
triggerall = Var(2) = 0
;triggerall = Var(57) = [200,299]
trigger1 = ctrl
trigger1 = Vel Y >= 0
trigger1 = P2BodyDist Y <= -50
trigger1 = P2Stateno != 4217
trigger2 = Stateno = 620
trigger2 = Var(3) = [1,3]
trigger2 = (P2Statetype = A && P2BodyDist Y <= 30 && Enemynear,Vel Y <= -2) || Random > 980
trigger3 = Ctrl
trigger3 = Vel Y >= 0
trigger3 = BackEdgeBodyDist < 40
trigger3 = Enemynear,Movetype = A
trigger3 = Enemynear,HitdefAttr = SCA,NT,ST,HT
trigger4 = Stateno = 610
trigger4 = Var(3) = 1
trigger4 = P2Movetype = H
trigger4 = P2BodyDist Y <= -20
trigger4 = Vel Y >= 1

;------------------------------------------------------------------------------
;ガード
[State -3]
type = ChangeState
value = 120
triggerall = Var(59) != 0
triggerall = Var(41) = 0
triggerall = ctrl || Stateno = 52
triggerall = Stateno != 120
triggerall = Random < 500
trigger1 = InGuardDist
;trigger2 = P2Movetype = A
;trigger3 = Enemynear,HitdefAttr = SCA,NA,SA,HA,NP,SP,HP
ignorehitpause = 1

;------------------------------------------------------------------------------
;空中復帰
[State -3]
type = ChangeState
value = 5200
triggerall = Var(59) != 0
triggerall = Vel Y > -1
triggerall = Pos Y = [-20,-10]
triggerall = Alive
triggerall = Stateno != [5200,5210]
triggerall = Stateno = 5050
trigger1 = CanRecover
trigger1 = Var(57) = [0,299]

;空中復帰
[State -3]
type = ChangeState
value = 5210
triggerall = Var(59) != 0
triggerall = Vel Y > -1
triggerall = Alive
triggerall = Stateno != [5200,5210]
triggerall = Stateno = 5050
trigger1 = CanRecover
trigger1 = Var(57) = [0,299]

;------------------------------------------------------------------------------
;歩き(地上)
[State -3]
type = ChangeState
value = 19
triggerall = Var(59) != 0
triggerall = Movetype != H
triggerall = Statetype != A
triggerall = Stateno != [19,20]
triggerall = Stateno != [120,160]
triggerall = ctrl
triggerall = RoundState = 2
trigger1 = !InGuardDist

;------------------------------------------------------------------------------
;飛行
[State -3]
type = ChangeState
value = 800
triggerall = Var(59) != 0
triggerall = Statetype = A
triggerall = Stateno != 800
triggerall = Ctrl
triggerall = !InGuardDist
trigger1 = RoundState = 3
trigger2 = Stateno = 50
trigger2 = P2BodyDist Y <= -100
trigger2 = time > 0 && time < 3
trigger2 = Var(57) = [0,299]
trigger2 = P2Stateno != 4217 || P2Movetype != H

;------------------------------------------------------------------------------
;リコイルガード
[State -3]
type = HitOverRide
triggerall = Var(59) != 0
triggerall = Random < 100
trigger1 = Stateno = [120,139]
trigger1 = time <= Var(9)
trigger2 = Stateno = 160
time = 2
attr = SCA,NA,SA,HA,NP,SP,HP
stateno = 160
ignorehitpause = 1
pausemovetime = 99999
supermovetime = 99999

;------------------------------------------------------------------------------
;AI専用リセット
[State -3]
type = VarSet
trigger1 = Var(59) = 1
var(52) = 0

[State -3]
type = VarSet
trigger1 = Var(59) = 1 || Var(59) = 2
var(53) = 0

[State -3]
type = VarSet
trigger1 = Var(59) = 1
var(56) = 0

[State -3]
type = VarSet
triggerall = RoundState >= 2
triggerall = Var(55) = 1
trigger1 = Var(59) = 6
trigger2 = Var(59) = 5
trigger2 = Var(19) >= 2
trigger2 = Var(53) = 1
var(41) = 1

[State -3]
type = VarSet
triggerall = Var(59) = 6
trigger1 = RoundState >= 2
var(19) = 2

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