;==========================================================================
;正男の技
;==========================================================================
[Command]
name = "road"
command = ~D, DB, B, z
time = 60

[Command]
name = "troc"
command =  a+b
time = 60

[Command]
name = "unyo"
command =  b+z
time = 60

[Command]
name = "ken_a"
command = ~F, D, DF, a
time = 60

[Command]
name = "ken_b"
command = ~F, D, DF, b
time = 60

[Command]
name = "ken_c"
command = ~F, D, DF, c
time = 60

[Command]
name = "ken_y"
command = ~F, D, DF, x
time = 60

[Command]
name = "hado"
command = /B, c
time = 60

[Command]
name = "ittemiyou"
command = ~F, D, DF, F, D, DF, a+x
time = 60

[Command]
name = "stomp"
command =  D,D
time = 60

[Command]
name = "g"
command = /F, s

[Command]
name = "Erial"
command = U
time = 60

[Command]
name = "FFF"       ;Required (do not remove)
command = F, F
time = 20

[Command]
name = "FFFX"       ;Required (do not remove)
command = U,D,F
time = 20

[Command]
name = "airglide"
command = U, F
time = 10

[Command]
name = "sif"
command = b+x
time = 30

[Command]
name = "nsif"
command = ~D, DF, F, D, DF, F, x+y
time = 30

[Command]
name = "fbl"
command = D, DF, F, z
time = 30

[Command]
name = "trn"
command = /B, b
time = 60

[Command]
name = "trnx"
command = /B, x
time = 60
;-| ポッピー隊 |-----------------------------------------------------------
[Command]
name = "pt"
command = ~D, DB, B, D, DB, B, x
time = 60

[Command]
name = "fr"
command = ~D, DB, B, D, DB, B, z
time = 60

;-| ポッピー |-----------------------------------------------------------
[Command]
name = "rg"
command = ~B, F, x
time = 15

[Command]
name = "ran"
command = b+c
time = 15

;-| カメ |-----------------------------------------------------------
[Command]
name = "kame"
command = D, DB, B, a
time = 30

[Command]
name = "her"
command = a+x
time = 30

[Command]
name = "mizu"
command = x+z
time = 30

;-| ヒノララシ |-----------------------------------------------------------
[Command]
name = "hino"
command = D, DB, B, b
time = 30

;-| ヤチャモ |-----------------------------------------------------------
[Command]
name = "ya"
command = D, DB, B, x
time = 30

;-| エアームズ |-----------------------------------------------------------
[Command]
name = "ea"
command = ~B, F, y
time = 15

;-| エアームズ爆撃隊 |-----------------------------------------------------------
[Command]
name = "easp"
command = ~D, DB, B, D, DB, B, y
time = 100

;-| カイオール |-----------------------------------------------------------
[Command]
name = "kai"
command = ~D, DF, F, D, DF, F, z
time = 100

;-| カメ軍団 |-----------------------------------------------------------
[Command]
name = "kamesp"
command = ~D, DB, B, D, DB, B, a
time = 100

;-| ヒノララシ軍団 |-----------------------------------------------------------
[Command]
name = "hinosp"
command = ~D, DB, B, D, DB, B, b
time = 100

;-| ヤチャモ軍団 |-----------------------------------------------------------
[Command]
name = "yasp"
command = ~D, DB, y
time = 100

;-| ピカチー |-----------------------------------------------------------
[Command]
name = "sanbista"
command = D, F, x+y

[Command]
name = "pika"
command = D, DF, F, a
time = 30

;-| ピカチー軍団 |-----------------------------------------------------------
[Command]
name = "pikasp"
command = ~D, DF, F, D, DF, F, y
time = 100

[Command]
name = "sb"
command = D, DB, B, y
time = 30
;-| 超必殺技 |-----------------------------------------------------------
[Command]
name = "tyou"
command = ~F,DF,D,F,DF,D,a
time = 100

[Command]
name = "tyou2"
command = ~F,DF,D,F,DF,D,b
time = 100

[Command]
name = "gra"
command = ~F,DF,D,F,DF,D,c
time = 100


;-| AI |-----------------------------------------------------------

[command]
name = "AI_1"
command = D, D, D, D, D, D, D, D
time = 1

[command]
name = "AI_2"
command = D, D, D, D, D, D, D, D
time = 1

[command]
name = "AI_3"
command = D, D, D, D, D, D, D, D
time = 1

[command]
name = "AI_4"
command = z, z, z, z, z, z, z, z
time = 1

[command]
name = "AI_5"
command = z, z, z, z, z, z, z, z
time = 1

[command]
name = "AI_6"
command = z, z, z, z, z, z, z, z
time = 1

[command]
name = "AI_7"
command = B, B, B, B, B, B, B, B
time = 1

[command]
name = "AI_8"
command = B, B, B, B, B, B, B, B
time = 1

[command]
name = "AI_9"
command = B, B, B, B, B, B, B, B
time = 1

[command]
name = "AI_10"
command = x, x, x, x, x, x, x, x
time = 1

[command]
name = "AI_11"
command = x, x, y, x, x, x, x, x
time = 1

[command]
name = "AI_12"
command = x, x, x, c, x, x, a, x
time = 1

[command]
name = "AI_13"
command = U, U, U, U, U, U, U, U
time = 1

[command]
name = "AI_14"
command = U, U, U, U, U, U, U, U
time = 1

[command]
name = "AI_15"
command = U, U, U, U, U, U, U, U
time = 1

[command]
name = "AI_16"
command = a, a, a, a, a, a, a, a
time = 1

[command]
name = "AI_17"
command = a, a, a, a, a, a, a, a
time = 1

[command]
name = "AI_18"
command = a, a, a, a, a, a, a, a
time = 1

[command]
name = "AI_19"
command = F, F, F, F, F, F, F, F
time = 1

[command]
name = "AI_20"
command = F, F, F, F, F, F, F, F
time = 1

[command]
name = "AI_21"
command = F, F, F, F, F, F, F, F
time = 1

[command]
name = "AI_22"
command = b, b, b, b, b, b, b, b
time = 1

[command]
name = "AI_23"
command = b, b, b, b, b, b, b, b
time = 1

[command]
name = "AI_24"
command = b, b, b, b, b, b, b, b
time = 1

[command]
name = "AI_25"
command = y, y, y, y, y, y, y, y
time = 1

[command]
name = "AI_26"
command = y, y, y, y, y, y, y, y
time = 1

[command]
name = "AI_27"
command = y, y, y, y, y, y, y, y
time = 1

[command]
name = "AI_28"
command = s, s, s, s, s, s, s, s
time = 1

[command]
name = "AI_29"
command = s, s, s, s, s, s, s, s
time = 1

[command]
name = "AI_30"
command = s, s, s, s, s, s, s, s
time = 1

;-| Double Tap |-----------------------------------------------------------
[Command]
name = "FF";Required (do not remove)
command = F, F
time = 10

[Command]
name = "BB";Required (do not remove)
command = B, B
time = 10

;-| 2/3 Button Combination |-----------------------------------------------
[Command]
name = "recovery";Required (do not remove)
command = a+b
time = 1

[Command]
name = "ab"
command = a+b
time = 1

;-| Dir + Button |---------------------------------------------------------
[Command]
name = "fwd_a"
command = /F,a
time = 1

[Command]
name = "fwd_b"
command = /F,b
time = 1

[Command]
name = "fwd_x"
command = /F,x
time = 1

[Command]
name = "fwd_y"
command = /F,y
time = 1

[Command]
name = "holdfwd";Required (do not remove)
command = /$F
time = 1

[Command]
name = "holdback";Required (do not remove)
command = /$B
time = 1

[Command]
name = "holdup" ;Required (do not remove)
command = /$U
time = 1

[Command]
name = "holddown";Required (do not remove)
command = /$D
time = 1

[Command]
name = "downfwd_a"
command = /DF,a
time = 1

[Command]
name = "downfwd_b"
command = /DF,b
time = 1

[Command]
name = "back_a"
command = /B,a
time = 1

[Command]
name = "back_b"
command = /B,b
time = 1

[Command]
name = "down_a"
command = /$D,a
time = 1

[Command]
name = "down_b"
command = /$D,b
time = 1

[Command]
name = "down_c"
command = /$D,c
time = 1

[Command]
name = "down_z"
command = /$D,z
time = 1

[Command]
name = "fwd_ab"
command = /F, a+b
time = 1

[Command]
name = "back_ab"
command = /B, a+b
time = 1

;-| 攻撃ボタン押しっぱなし |-----------------------------------------------

[Command]
name = "hold_a"
command = /a
time = 1

[Command]
name = "hold_b"
command = /b
time = 1

[Command]
name = "hold_c"
command = /c
time = 1

[Command]
name = "hold_x"
command = /x
time = 1

[Command]
name = "hold_y"
command = /y
time = 1

[Command]
name = "hold_z"
command = /z
time = 1


;-| ボタン設定（編集しない） |---------------------------------------------------------

[Command]
name = "ao"
command = a+y
time = 1

[Command]
name = "a"
command = a
time = 1

[Command]
name = "b"
command = b
time = 1

[Command]
name = "c"
command = c
time = 1

[Command]
name = "x"
command = x
time = 1

[Command]
name = "y"
command = y
time = 1

[Command]
name = "z"
command = z
time = 1

[Command]
name = "s"
command = s
time = 1

[Command]
name = "u"
command = $U
time = 1

[Command]
name = "uu"
command = /$U
time = 1

[Command]
name = "cc"
command = a+c
time = 1
;-| Hold Dir |--------------------------------------------------------------
[Command]
name = "holdfwd";Required (do not remove)
command = /$F
time = 1

[Command]
name = "holdback";Required (do not remove)
command = /$B
time = 1

[Command]
name = "holdup";Required (do not remove)
command = /$U
time = 1

[Command]
name = "holddown";Required (do not remove)
command = /$D
time = 1


[Command]
name = "f_a"
command = F, a
time = 15

[Command]
name = "f_b"
command = F, b
time = 15

[Command]
name = "f_c"
command = F, c
time = 15

; Don't remove the following line. It's required by the CMD standard.
[Statedef -1]


;===========================================================================
;コマンド実行部分（優先順位が高いものを先に表記）
;===========================================================================
;---------------------------------------------------------------------------

;---------------------------------------------------------------------------
;前方ダッシュ
[State -1]
type = ChangeState
value = 100
trigger1 = command = "FF"
trigger1 = statetype = S
trigger1 = ctrl = 1

;---------------------------------------------------------------------------
;バックステップ
[State -1]
type = ChangeState
value = 105
trigger1 = command = "BB"
trigger1 = statetype = S
trigger1 = ctrl = 1
;---------------------------------------------------------------------------
;大ジャンプ
[State -1]
type = ChangeState
value = 241
trigger1 = command = "Erial"
trigger1 = statetype = C
trigger1 = ctrl = 1
;===========================================================================
; AIの強さ設定
;-----------------
; 数字を大きくすると強くなる
; [セット値の目安]
; 999999  ：最強。1000％の確率でAI制御が働きますし、待機をほとんどしない。
; 999  ：かなり強い。ほぼ100％の確率でAI制御が働きます
; 500  ：中程度。 約50％の確率でAI制御が働きます
; 128  : 標準値。 約13％の確率でAI制御が働きます
; 0    ：OFF。 AI制御が無効となります でも強い
;-----------------
[State -1,AI_Dif]
type=VarSet
trigger1   = RoundState    != 2       ; Not in Fight
v          = 29
value      = 999999                   ; ← この値を変更してAIレベルを変更します

;===========================================================================
;　　AI
;===========================================================================
;ローラー　AI
[State -1]
type = ChangeState
value = 18000
triggerall = Random       < Var(29) ; 難易度
triggerall = ctrl && (var(30)=30)
triggerall = power >= 3000
trigger1 = statetype = A
trigger1 = stateno != 7200
trigger1 = stateno != 7205
trigger1 = ctrl = 1
;===========================================================================
;逝ってみよう　AI
[State -1]
type = ChangeState
value = 8888
triggerall = Random       < Var(29) ; 難易度
triggerall = ctrl && (var(30)=30)
triggerall = power >= 3000
trigger1 = p2statetype = A
trigger1 = statetype = S
trigger1 = stateno != 7200
trigger1 = stateno != 7205
trigger1 = ctrl = 1
;-------------------------------------------------------------
;カイオール呼び出し　AI
[State -1]
type = ChangeState
value = 3000
triggerall = Random       < Var(29) ; 難易度
triggerall = ctrl && (var(30)=30)
triggerall = power >= 2000
trigger1   = p2statetype 　= L       ; Not Lie down
trigger1 = statetype = S
trigger1 = ctrl = 1
;-------------------------------------------------------------
;エアームズ爆撃隊呼び出し　AI
[State -1]
type = ChangeState
value = 2900
triggerall = Random       < Var(29) ; 難易度
triggerall = ctrl && (var(30)=30)
triggerall = power >= 1000
triggerall = power != 3000
TriggerAll = NumHelper(824) <= 0
trigger1   = p2statetype != L       ; Not Lie down
trigger1 = statetype = S
trigger1 = ctrl = 1

;-------------------------------------------------------------
;ポッピー隊呼び出し　AI
[State -1]
type = ChangeState
value = 2000
triggerall = Random       < Var(29) ; 難易度
triggerall = ctrl && (var(30)=30)
triggerall = power >= 1000
triggerall = power != 3000
TriggerAll = NumHelper(781) = 0
TriggerAll = NumHelper(811) <= 6
trigger1   = p2statetype != L       ; Not Lie down
trigger1 = statetype = S
trigger1 = ctrl = 1
;-------------------------------------------------------------
;カイオール呼び出し２　AI
[State -1]
type = ChangeState
value = 99999
triggerall = Random       < Var(29) ; 難易度
triggerall = ctrl && (var(30)=30)
triggerall = power >= 2000
triggerall = power != 3000
trigger1   = p2statetype 　= L       ; Not Lie down
trigger1 = stateno != 7200
trigger1 = stateno != 7205
trigger1 = statetype = S
trigger1 = ctrl = 1

;-------------------------------------------------------------
;カウンター昇竜拳　AI
[State -1]
type = ChangeState
value = 1350                        ; 昇龍拳のような無敵技
triggerall = Random       < Var(29) ; 難易度
triggerall = ctrl && (var(30)=30)
triggerall = life >= 0
triggerall   = p2bodydist X = ( 0,70)      ; 相手の近く65
trigger1   = movetype   = H       ; in Attack
trigger2   = statetype   = L       ; in Attack


;Thanks to BBH for guard AI
[State -1, Stand guard]
type = ChangeState
triggerall = var(7) = 1
triggerall = StateType != A
triggerall = P2statetype != C
triggerall = P2Movetype = A
triggerall = PalNo != 11
triggerall = PalNo != 8
trigger1 = ctrl
value = 130

[State -1, S-to-C guard]
type = ChangeState
triggerall = var(7) = 1
triggerall = StateType != A
triggerall = P2statetype = C
triggerall = P2Movetype = A
triggerall = PalNo != 11
triggerall = PalNo != 8
trigger1 = stateno = 150
value = 152

[State -1, Crouch guard]
type = ChangeState
triggerall = var(7) = 1
triggerall = StateType != A
triggerall = P2statetype = C
triggerall = P2Movetype = A
triggerall = PalNo != 11
triggerall = PalNo != 8
trigger1 = ctrl
value = 131

[State -1, C-to-S guard]
type = ChangeState
triggerall = var(7) = 1
triggerall = StateType != A
triggerall = P2statetype != C
triggerall = P2Movetype = A
triggerall = PalNo != 11
triggerall = PalNo != 8
trigger1 = stateno = 152
value = 150

[State -1, Air guard]
type = ChangeState
triggerall = var(7) = 1
triggerall = StateType = A
triggerall = P2Movetype = A
triggerall = PalNo != 11
triggerall = PalNo != 8
trigger1 = ctrl
value = 132



ありえないぐらい早く歩く
[State -1]
type = ChangeState
triggerall = Random       < Var(29) ; 難易度
triggerall = ctrl && (var(30)=30)
trigger1 = stateno = 20
value = 20

ありえないぐらい早く走る
[State -1]
type = ChangeState
triggerall = Random       < Var(29) ; 難易度
triggerall = ctrl && (var(30)=30)
trigger1 = stateno = 100
value = 100

;波動 AI
[State -1,]
Type = ChangeState
Value = 652
triggerall = Random       < Var(29) ; 難易度
triggerall = ctrl && (var(30)=30)
trigger1   = P2movetype   = A       ; in Attack
triggerall   = p2statetype != L       ; Not Lie down
triggerall = stateno != 7200
triggerall = stateno != 7205
triggerall = statetype = S
triggerall = ctrl = 1


;超必殺技　AI
[State -1]
type = ChangeState
value = 1660
triggerall = Random       < Var(29) ; 難易度
triggerall = ctrl && (var(30)=30)
triggerall = power >= 2000
triggerall = power != 3000
trigger1 = statetype = S
trigger1 = stateno != 7200
trigger1 = stateno != 7205
trigger1 = ctrl = 1
trigger1   = p2bodydist X = ( 0,70)      ; 相手の近く65
;-------------------------------------------------------------
;召喚　AI
[State -1]
type = ChangeState
value = 322340
triggerall = Random       < Var(29) ; 難易度
triggerall = ctrl && (var(30)=30)
triggerall = power >= 2000
triggerall = stateno != 7200
triggerall = stateno != 7205
trigger1   = p2bodydist X = ( 0,65)      ; 相手の近く65
trigger2   = movehit      ; 相手の近く65
triggerall = statetype = S
triggerall = ctrl = 1



;---------------------------------------------------------------------------
;フェイント AI
[State -1]
type = ChangeState
value = 320
triggerall = Random       < Var(29) ; 難易度
triggerall = ctrl && (var(30)=30)
triggerall   = p2statetype != L       ; Not Lie down
trigger1   = p2stateno  = 120       ; Not Lie down
trigger2   = p2stateno  = 130       ; Not Lie down
trigger3   = p2stateno  = 150       ; Not Lie down
triggerall   = p2bodydist X < 50      ;>Near P2
triggerall = stateno != 7200
triggerall = stateno != 7205
triggerall = statetype = S
triggerall = ctrl = 1


;トロッコ　AI
[State -1]
type = ChangeState
value = 7200
triggerall = Random       < Var(29) ; 難易度
triggerall = ctrl && (var(30)=30)
trigger1 = stateno  = 1400
trigger2   = p2bodydist X < 50      ;>Near P2
triggerall = statetype = S
triggerall = ctrl = 1

;トロッコジャンプ　AI
[State -1]
type = ChangeState
value = 7201
triggerall = Random       < Var(29) ; 難易度
triggerall = ctrl && (var(30)=30)
triggerall   = p2bodydist X < 50      ;>Near P2
triggerall = statetype = S
trigger1 = stateno  = 7200
trigger2 = stateno  = 7205
triggerall = ctrl = 1


;------------------------------------------------------------------------------
;投げ
[State -1,]
type = ChangeState
value = 800
triggerall = Random       < Var(29) ; 難易度
triggerall = ctrl && (var(30)=30)
triggerall = statetype = S
triggerall = ctrl
trigger1 = p2bodydist X < 10
trigger1 = (p2statetype = S) || (p2statetype = C)
trigger2 = p2bodydist X < 10
trigger2 = (p2statetype = S) || (p2statetype = C)
trigger1 = ctrl = 1

;ミサイル AI
[State -1,]
Type = ChangeState
Value = 740
triggerall = Random       < Var(29) ; 難易度
triggerall = ctrl && (var(30)=30)
trigger1   = P2movetype   = H       ; in Attack
triggerall   = p2statetype != L       ; Not Lie down
triggerall = stateno != 7200
triggerall = stateno != 7205
triggerall = statetype = S
triggerall = ctrl = 1

;-------------------------------------------------------------
;踏む　AI
[State -1]
type = ChangeState
value = 1400
triggerall = Random       < Var(29) ; 難易度
triggerall = ctrl && (var(30)=30)
triggerall = life >= 0
trigger1   = P2movetype   = A       ; in Attack
trigger1   = p2statetype  = A       ; Not Lie down
trigger1   = p2statetype  = L       ; Not Lie down
trigger1   = p2bodydist X < 50      ;>Near P2
trigger1   = p2bodydist Y < 50      ;>Near P2
trigger1 = stateno  = 1400
trigger1 = stateno != 7200
trigger1 = stateno != 7205
trigger1 = statetype = A
trigger1 = ctrl = 1

;-------------------------------------------------------------
;FFF　AI
[State -1]
type = ChangeState
value = 101
triggerall = Random       < Var(29) ; 難易度
triggerall = ctrl && (var(30)=30)
triggerall = life >= 0
trigger1   = P2movetype   = A       ; in Attack
trigger1   = p2statetype  = A       ; Not Lie down
trigger1   = p2bodydist X < 50      ;>Near P2
trigger1 = stateno  = 1700
trigger1 = stateno != 7200
trigger1 = stateno != 7205
trigger1 = statetype != C 
trigger1 = ctrl = 1


;-------------------------------------------------------------
;羽根正男　AI
[State -1]
type = ChangeState
value = 1700
triggerall = Random       < Var(29) ; 難易度
triggerall = ctrl && (var(30)=30)
triggerall = life >= 0
trigger1   = P2movetype   = H       ; Hurt
trigger1   = p2statetype  = A       ; In air
trigger1   = p2bodydist X < 50      ;>Near P2
trigger1   = PalNo != 9 
trigger1 = stateno  = 1070
trigger1 = stateno != 7200
trigger1 = stateno != 7205
trigger1 = statetype != C 
trigger1 = ctrl = 1
trigger2   = P2movetype   = H       ; Hurt
trigger2   = p2statetype  = A       ; In air
trigger2   = p2bodydist X < 50      ;>Near P2
trigger2   = PalNo != 12 
trigger2 = stateno  = 1070
trigger2 = stateno != 7200
trigger2 = stateno != 7205
trigger2 = statetype != C 
trigger2 = ctrl = 1

[State -1, AI Strong Fireball]
type = ChangeState
value = 770
triggerall = Random       < Var(29) ; 難易度
triggerall = ctrl && (var(30)=30)
triggerall = statetype != A
triggerall = ctrl
trigger1 = EnemyNear,HitFall = 0
trigger1 = P2BodyDist X >= 100
trigger1 = Random >= 850 || (P2StateNo = [130,159])
trigger1 = P2statetype != L
trigger2 = P2BodyDist X >= 100
trigger2 = Random > 800 || (P2StateNo = [130,159])
trigger2 = P2statetype != L

[State -1, AI Strong Fireball]
type = ChangeState
value = 777
triggerall = Random       < Var(29) ; 難易度
triggerall = ctrl && (var(30)=30)
triggerall = statetype  = A
triggerall = ctrl
trigger1 = EnemyNear,HitFall = 0
trigger1 = P2BodyDist X >= 100
trigger1 = Random >= 850 || (P2StateNo = [130,159])
trigger1 = P2statetype != L
trigger2 = P2BodyDist X >= 100
trigger2 = Random > 800 || (P2StateNo = [130,159])
trigger2 = P2statetype != L
;-------------------------------------------------------------
;Supa jump　AI
[State -1]
type = ChangeState
value = 241
triggerall = Random       < Var(29) ; 難易度
triggerall = ctrl && (var(30)=30)
trigger1   = P2movetype   = A       ; in Attack
trigger1   = p2statetype  = A       ; In air
trigger1   = p2statetype != L       ; Not Lie down
trigger1   = p2bodydist X < 50      ;>Near P2
trigger1 = stateno != 7200
trigger1 = stateno != 7205
trigger1 = statetype = S
trigger1 = ctrl = 1

;-------------------------------------------------------------
;ランスター　AI
[State -1]
type = ChangeState
value = 789
triggerall = Random       < Var(29) ; 難易度
triggerall = ctrl && (var(30)=30)
trigger1 = statetype = S
trigger1   = p2statetype  = L       ; Not Lie down
trigger1 = ctrl = 1

;-------------------------------------------------------------
;サンビスタ　AI
[State -1]
type = ChangeState
value = 2618
triggerall = Random       < Var(29) ; 難易度
triggerall = ctrl && (var(30)=30)
trigger1 = statetype = S
trigger1   = p2statetype  = L       ; Not Lie down
trigger1 = ctrl = 1


;-------------------------------------------------------------
;カメ軍団呼び出し　AI
[State -1]
type = ChangeState
value = 3100
triggerall = Random       < Var(29) ; 難易度
triggerall = ctrl && (var(30)=30)
triggerall = power >= 1000
triggerall = power != 3000
TriggerAll = NumHelper(781) = 0
TriggerAll = NumHelper(811) <= 6
trigger1 = statetype = S
trigger1 = ctrl = 1


;-------------------------------------------------------------
;昇竜拳・改　AI
[State -1]
type = ChangeState
value = 1550                        ; 昇龍拳のような無敵技
triggerall = Random       < Var(29) ; 難易度
triggerall = ctrl && (var(30)=30)
triggerall = power >= 1000
trigger1   = P2movetype   = A       ; in Attack
trigger1   = p2statetype != L       ; Not Lie down
trigger1   = p2bodydist X < 50      ;>Near P2
trigger1   = statetype  ! = C       ; Standing
trigger1   = ctrl                   ; Enable Control

trigger2   = p2statetype = A        ; Air
trigger2   = p2bodydist X < 50      ;>Near P2
trigger2   = statetype    = S       ; Standing
trigger3   = movehit
;-------------------------------------------------------------
;昇竜拳　AI
[State -1]
type = ChangeState
value = 1050                        ; 昇龍拳のような無敵技
triggerall = Random       < Var(29) ; 難易度
triggerall = ctrl && (var(30)=30)
trigger1   = P2movetype   = A       ; in Attack
trigger1   = p2statetype != L       ; Not Lie down
trigger1   = p2bodydist X < 50      ;>Near P2
trigger1   = statetype  ! = C       ; Standing
trigger1   = ctrl                   ; Enable Control

trigger2   = p2statetype = A        ; Air
trigger2   = p2bodydist X < 50      ;>Near P2
trigger2   = statetype    = S       ; Standing
trigger3   = movehit
;昇竜拳　AI　2
[State -1]
type = ChangeState
value = 1060                        ; 昇龍拳・強
triggerall = Random       < Var(29) ; 難易度
triggerall = ctrl && (var(30)=30)
trigger1   = P2movetype   = A       ; in Attack
trigger1   = p2statetype != L       ; Not Lie down
trigger1   = p2bodydist X < 50      ;>Near P2
trigger1   = statetype  ! = C       ; Standing
trigger1   = ctrl                   ; Enable Control

trigger2   = p2statetype = A        ; Air
trigger2   = p2bodydist X < 50      ;>Near P2
trigger2   = statetype    = S       ; Standing
trigger3   = movehit
;昇竜拳　AI　3
[State -1]
type = ChangeState
value = 1070                        ; 昇龍拳・連続
triggerall = Random       < Var(29) ; 難易度
triggerall = ctrl && (var(30)=30)
trigger1   = P2movetype   = A       ; in Attack
trigger1   = p2statetype != L       ; Not Lie down
trigger1   = p2bodydist X < 50      ;>Near P2
trigger1   = statetype  ! = C       ; Standing
trigger1   = ctrl                   ; Enable Control

trigger2   = p2statetype = A        ; Air
trigger2   = p2bodydist X < 50      ;>Near P2
trigger2   = statetype    = S       ; Standing
trigger3   = movehit
;昇竜拳　AI  4
[State -1]
type = ChangeState
value = 10500                        ; 昇龍拳のような無敵技
triggerall = Random       < Var(29) ; 難易度
triggerall = ctrl && (var(30)=30)
trigger1   = P2movetype   = A       ; in Attack
trigger1   = p2statetype  = A       ; Not Lie down
trigger1   = p2statetype != L       ; Not Lie down
trigger1   = p2bodydist X < 50      ;>Near P2
trigger1   = statetype    = A       ; Standing
trigger1   = ctrl                   ; Enable Control

trigger2   = p2statetype = A        ; Air
trigger2   = p2bodydist X < 50      ;>Near P2
trigger2   = statetype    = A       ; Standing
trigger3   = movehit

;正男トルネ
[State -1, AI Medium TS]
type = ChangeState
value = 882
triggerall = var(30) = 1
triggerall = statetype = A
trigger1 = stateno = 610
trigger1 = movecontact
trigger1 = P2Dist Y <= 0
trigger2 = stateno = 1400 || StateNo = 610 || Stateno = 640
trigger2 = movecontact
trigger2 = Pos Y > -20
trigger2 = P2Dist Y <= 0
trigger3 = var(1) = 2
trigger3 = stateno = 640
trigger3 = movecontact

[State -1, AI Attack BOOST]
type = AssertSpecial
flag = unguardable
flag2 = nojugglecheck
trigger1 = P2name = "Dark Chun Li"
trigger2 = P4name = "Dark Chun Li"
trigger3 = P2name = "Psycho Shredder[S]"
trigger4 = P4name = "Psycho Shredder[S]"
trigger5 = P2name = "Broli Remix ver1.2"
trigger6 = P4name = "Broli Remix ver1.2"
trigger7 = P2name = "Dark Chun Li2"
trigger8 = P4name = "Dark Chun Li2"
trigger9 = P2name = "Super Dan"
trigger10 = P4name = "Super Dan"
trigger11 = P2name = "super kouji"
trigger12 = P4name = "super kouji"


[State -1,Neo Mario Wall Jump]
type = ChangeState
value = 40
trigger1 = PalNo = 7
trigger2 = PalNo = 10
triggerall = statetype = A
triggerall = ((command = "holdup") && (command = "holdfwd") && (backedgebodydist <= 10) && (backedgebodydist > -10))
triggerall = ((command = "holdup") && (command = "holdback") && (backedgebodydist <= 10) && (backedgebodydist > -10))
triggerall = ((command = "holdup") && (command = "holdfwd") && (backedgebodydist <= 10) && (backedgebodydist > -10))
triggerall = ((command = "holdup") && (command = "holdback") && (backedgebodydist <= 10) && (backedgebodydist > -10))

[State -1, Power BOOST]
type = PowerSet
value = 6000
trigger1 = P2name = "super kouji"
trigger2 = P4name = "super kouji"
trigger3 = P2name = "super kouji"
trigger4 = P4name = "super kouji"
trigger5 = P2name = "super kouji"
trigger6 = P4name = "super kouji"

;技データ
;-------------------------------------------------------------
;ロードローラー
[State -1]
type = ChangeState
value = 18000
triggerall = command = "road"
triggerall = power >= 3000
trigger1 = statetype = A
trigger1 = ctrl = 1

;-------------------------------------------------------------
;行ってみよう
[State -1]
type = ChangeState
value = 8888
triggerall = command = "ittemiyou"
triggerall = power >= 3000
trigger1 = statetype = S
trigger1 = ctrl = 1

;-------------------------------------------------------------
;波動
[State -1]
type = ChangeState
value = 652
triggerall = command = "hado"
trigger1 = statetype = S
trigger1 = ctrl = 1

;超必殺技
[State -1]
type = ChangeState
value = 1660
triggerall = command = "tyou"
triggerall = power >= 2000
trigger1 = statetype = S
trigger1 = ctrl = 1

;---------------------------------------------------------------------------
;立ち攻撃・超
[State -1]
type = ChangeState
value = 2123
triggerall = command = "tyou2"
triggerall = power >= 1000
trigger1 = statetype = S
trigger1 = ctrl = 1

;-------------------------------------------------------------
;カイオール呼び出し
[State -1]
type = ChangeState
value = 3000
triggerall = command = "kai"
triggerall = power >= 2000
trigger1 = statetype = S
trigger1 = ctrl = 1

;-------------------------------------------------------------
;トプス呼び出し
[State -1]
type = ChangeState
value = 13500
triggerall = command = "y"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl = 1

;------------------------------------------------------------------------------
;投げ
[State -1,]
type = ChangeState
value = 800
triggerall = Var(59) = 0
triggerall = command = "b"
triggerall = statetype = S
triggerall = ctrl
trigger1 = command = "holdfwd"
trigger1 = p2bodydist X < 10
trigger1 = (p2statetype = S) || (p2statetype = C)
trigger2 = command = "holdback"
trigger2 = p2bodydist X < 10
trigger2 = (p2statetype = S) || (p2statetype = C)

;MATRIX
[State -1, MATRIX]
type = ChangeState
value = 3600
triggerall = command = "stomp"
triggerall = life <= 300
triggerall = power = 3000
trigger1 = statetype = S
trigger1 = ctrl
trigger1 = PalNo = 10
trigger2 = statetype = S
trigger2 = ctrl
trigger2 = PalNo = 7

;-------------------------------------------------------------
;うにょ
[State -1]
type = ChangeState
value = 322340
triggerall = command = "unyo"
triggerall = power >= 2000
Trigger1 = NumHelper(6000) <= 0
triggerall = statetype = S
triggerall = ctrl = 1
Trigger2 = NumHelper(6000) <= 0
trigger2   = movehit
;-------------------------------------------------------------
;カイオール呼び出し２
[State -1]
type = ChangeState
value = 99999
triggerall = command = "fr"
triggerall = power >= 2000
trigger1 = statetype = S
trigger1 = ctrl = 1

;シーフ
[State -1]
type = ChangeState
value = 1200
triggerall = command = "sif"
trigger1 = statetype != A
trigger1 = ctrl = 1

[State 660]
type = ChangeState
value = 320
triggerall = command = "cc"
trigger1 = statetype = S
trigger1 = ctrl = 1

;シーフ２
[State -1]
type = ChangeState
value = 1201
triggerall = command = "nsif"
trigger1 = statetype != A
trigger1 = power >= 1000
trigger1 = ctrl = 1
;-------------------------------------------------------------
;GRA
[State -1]
type = ChangeState
value = 13005
triggerall = command = "gra"
triggerall = power >= 2000
trigger1 = statetype = S
trigger1 = ctrl = 1

;-------------------------------------------------------------
;オニチュン呼び出し
[State -1]
type = ChangeState
value = 158
triggerall = command = "b"
triggerall = command = "y"
trigger1 = statetype = S
trigger1 = ctrl = 1

;-------------------------------------------------------------
;ポッピー隊呼び出し
[State -1]
type = ChangeState
value = 2000
triggerall = command = "pt"
triggerall = power >= 1000
TriggerAll = NumHelper(910) <= 0
TriggerAll = NumHelper(911) <= 0
trigger1 = statetype = S
trigger1 = ctrl = 1

;-------------------------------------------------------------
;エアームズ爆撃隊呼び出し
[State -1]
type = ChangeState
value = 2900
triggerall = command = "easp"
triggerall = power >= 1000
trigger1 = statetype = S
trigger1 = ctrl = 1

;-------------------------------------------------------------
;ガ
[State -1]
type = ChangeState
value = 701
triggerall = command = "g"
trigger1 = statetype = S
trigger1 = command = "holdfwd"
trigger1 = ctrl = 1

;-------------------------------------------------------------
;カメ軍団呼び出し
[State -1]
type = ChangeState
value = 3100
triggerall = command = "kamesp"
triggerall = power >= 1000
trigger1 = statetype = S
trigger1 = ctrl = 1

;---------------------------------------------------------------------------
;AirDASH
[State -1]
type = ChangeState
value = 101
TriggerAll = Var(59) = 0
triggerall = command = "FFF"
triggerall = statetype = A
trigger1   = PalNo != 12 
trigger1 = stateno != 101
trigger2 = statetype = A
trigger2   = PalNo != 9 
trigger2 = stateno != 101
triggerall = life != 0

;---------------------------------------------------------------------------
;Airglide
[State -1]
type = ChangeState
value = 1700
TriggerAll = Var(59) = 0
triggerall = command = "airglide"
triggerall = statetype = A
trigger1   = PalNo != 9 
trigger1 = stateno != 1700
trigger2 = statetype = A
trigger2   = PalNo != 12 
trigger2 = stateno != 1700
triggerall = life != 0

;---------------------------------------------------------------------------
;Airglide2
[State -1]
type = ChangeState
value = 1701
TriggerAll = Var(59) = 0
triggerall = command = "FFFX"
triggerall = statetype = A
trigger1   = PalNo != 9 
trigger1 = stateno != 1700
trigger2 = statetype = A
trigger2   = PalNo != 12 
triggerall = power >= 1000
trigger2 = stateno != 1700
triggerall = life != 0
;---------------------------------------------------------------------------
;ランスター召喚
[State -1]
type = ChangeState
value = 789
TriggerAll = Var(59) = 0
trigger1 = command = "ran"
trigger1 = statetype = S
trigger1 = ctrl = 1

;---------------------------------------------------------------------------
;ランスター召喚２
[State -1]
type = ChangeState
value = 2653
TriggerAll = Var(59) = 0
trigger1 = command = "mizu"
trigger1 = statetype = S
trigger1 = ctrl = 1

;---------------------------------------------------------------------------
;サンビスタ召喚
[State -1]
type = ChangeState
value = 2618
TriggerAll = Var(59) = 0
trigger1 = command = "sanbista"
trigger1 = statetype = S
trigger1 = ctrl = 1

;---------------------------------------------------------------------------
;サンビスタ召喚２
[State -1]
type = ChangeState
value = 2603
TriggerAll = Var(59) = 0
trigger1 = command = "her"
trigger1 = statetype = S
trigger1 = ctrl = 1

;-------------------------------------------------------------
;ヒノララシ軍団呼び出し
[State -1]
type = ChangeState
value = 3200
triggerall = command = "hinosp"
triggerall = power >= 1000
trigger1 = statetype = S
trigger1 = ctrl = 1

;-------------------------------------------------------------
;ヤチャモ軍団呼び出し
[State -1]
type = ChangeState
value = 3300
triggerall = command = "yasp"
triggerall = power >= 1000
trigger1 = statetype = S
trigger1 = ctrl = 1

;-------------------------------------------------------------
;ピカチー軍団呼び出し
[State -1]
type = ChangeState
value = 3400
triggerall = command = "pikasp"
triggerall = power >= 1000
trigger1 = statetype = S
trigger1 = ctrl = 1

;ランチャーカット
[State -1]
type = ChangeState
value = 550
triggerall = command = "z"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl = 1

;-------------------------------------------------------------
;ポッピー呼び出し
[State -1]
type = ChangeState
value = 2100
triggerall = command = "z"
triggerall = command != "holdfwd"
trigger1 = statetype = S
trigger1 = ctrl = 1

;-------------------------------------------------------------
;ポッピー呼び出し２
[State -1]
type = ChangeState
value = 2115
triggerall = command = "rg"
trigger1 = statetype = S
trigger1 = ctrl = 1

;-------------------------------------------------------------
;カメ呼び出し
[State -1]
type = ChangeState
value = 2200
triggerall = command = "kame"
trigger1 = statetype = S
trigger1 = ctrl = 1

;-------------------------------------------------------------
;ヒノララシ呼び出し
[State -1]
type = ChangeState
value = 2300
triggerall = command = "hino"
trigger1 = statetype = S
trigger1 = ctrl = 1

;-------------------------------------------------------------
;ヤチャモ呼び出し
[State -1]
type = ChangeState
value = 2400
triggerall = command = "ya"
trigger1 = statetype = S
trigger1 = ctrl = 1

;-------------------------------------------------------------
;正男トルネード
[State -1]
type = ChangeState
value = 880
triggerall = command = "trn"
trigger1 = statetype = S
trigger1 = ctrl = 1

;-------------------------------------------------------------
;正男トルネード空
[State -1]
type = ChangeState
value = 881
triggerall = command = "trn"
trigger1 = statetype = A
trigger1 = ctrl = 1

;-------------------------------------------------------------
;正男トルネードex
[State -1]
type = ChangeState
value = 882
triggerall = command = "trnx"
trigger1 = statetype = S
trigger1 = power  >= 1000
trigger1 = ctrl = 1

;-------------------------------------------------------------
;正男トルネード空ex
[State -1]
type = ChangeState
value = 883
triggerall = command = "trnx"
trigger1 = statetype = A
trigger1 = power  >= 1000
trigger1 = ctrl = 1

;-------------------------------------------------------------
;ヤチャモ呼び出し２
[State -1]
type = ChangeState
value = 24000
triggerall = command = "x"
triggerall = command = "y"
trigger1 = statetype = A
trigger1 = ctrl = 1

;-------------------------------------------------------------
;エアームズ呼び出し
[State -1]
type = ChangeState
value = 2500
triggerall = command = "y"
triggerall = command != "holdfwd"
trigger1 = statetype = S
trigger1 = ctrl = 1

;-------------------------------------------------------------
;エアームズ呼び出し２
[State -1]
type = ChangeState
value = 2201
triggerall = command = "y"
triggerall = command = "holdfwd"
trigger1 = statetype = S
trigger1 = ctrl = 1

;-------------------------------------------------------------
;シーセライ
[State -1]
type = ChangeState
value = 717
triggerall = command = "a"
triggerall = command = "b"
trigger1 = statetype = S
trigger1 = ctrl = 1

;-------------------------------------------------------------
;昇竜拳空
[State -1]
type = ChangeState
value = 10500
triggerall = command = "ken_a"
trigger1 = statetype = A
trigger1 = ctrl = 1

;-------------------------------------------------------------
;昇竜拳
[State -1]
type = ChangeState
value = 1050
triggerall = command = "ken_a"
trigger1 = statetype != C
trigger1 = ctrl = 1

;-------------------------------------------------------------
;昇竜拳・強
[State -1]
type = ChangeState
value = 1060
triggerall = command = "ken_b"
trigger1 = statetype != C
trigger1 = ctrl = 1

;-------------------------------------------------------------
;昇竜拳・連続
[State -1]
type = ChangeState
value = 1070
triggerall = command = "ken_c"
trigger1 = statetype != C
trigger1 = ctrl = 1

;-------------------------------------------------------------
;昇竜拳・EX
[State -1]
type = ChangeState
value = 1550
triggerall = command = "ken_y"
trigger1 = statetype != C
trigger1 = power  >= 1000
trigger1 = ctrl = 1

;-------------------------------------------------------------
;ピカチー呼び出し
[State -1]
type = ChangeState
value = 2600
triggerall = command = "pika"
trigger1 = statetype = S
trigger1 = ctrl = 1

;---------------------------------------------------------------------------
;立ち攻撃・強
[State -1]
type = ChangeState
value = 650
triggerall = command = "b"
trigger1 = statetype = S
trigger1 = ctrl = 1

;---------------------------------------------------------------------------
;ソード
[State -1]
type = ChangeState
value = 651
triggerall = command = "a"
triggerall = command = "holdfwd"
trigger1 = statetype = S
trigger1 = ctrl = 1
;-------------------------------------------------------------
;立ち攻撃
[State -1]
type = ChangeState
value = 600
triggerall = command = "a"
triggerall = command != "holdfwd"
trigger1 = statetype = S
trigger1 = ctrl = 1

;-------------------------------------------------------------
;トロッコに乗る
[State -1]
type = ChangeState
value = 7200
triggerall = command = "x"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl = 1
1
;-------------------------------------------------------------
;立ち攻撃・連続
[State -1]
type = ChangeState
value = 660
triggerall = command = "c"
trigger1 = statetype = S
trigger1 = ctrl = 1

;-------------------------------------------------------------
;弾丸
[State -1]
type = ChangeState
value = 740
triggerall = command = "x"
TriggerAll = NumHelper(740) <= 100
trigger1 = statetype = S
trigger1 = ctrl = 1

;-------------------------------------------------------------
;弾丸空
[State -1]
type = ChangeState
value = 748
triggerall = command = "x"
TriggerAll = NumHelper(740) <= 100
trigger1 = statetype = A
trigger1 = ctrl = 1

;---------------------------------------------------------------------------
;しゃがみ中尻尾攻撃
[State -1]
type = ChangeState
value = 760
triggerall = command = "b"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl = 1

;---------------------------------------------------------------------------
;しゃがみ弱尻尾攻撃
[State -1]
type = ChangeState
value = 750
triggerall = command = "a"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl = 1


;---------------------------------------------------------------------------
;しゃがみ強尻尾攻撃
[State -1]
type = ChangeState
value = 790
triggerall = command = "c"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl = 1

;---------------------------------------------------------------------------
;ファイアーボール
[State -1]
type = ChangeState
value = 770
triggerall = command = "fbl"
TriggerAll = NumHelper(740) <= 100
triggerall = statetype = S
trigger1 = ctrl = 1

;---------------------------------------------------------------------------
;ファイアーボール空
[State -1]
type = ChangeState
value = 777
triggerall = command = "z"
triggerall = command = "holdfwd"
trigger1 = statetype = A
trigger1 = ctrl = 1
;---------------------------------------------------------------------------
;ファイアーボール
[State -1]
type = ChangeState
value = 770
triggerall = command = "z"
triggerall = command = "holdfwd"
trigger1 = statetype = S
trigger1 = ctrl = 1
---------------------------------------------------------------------------
;ジャンプ攻撃・強;3つめです
[State -1]
type = ChangeState
value = 700
triggerall = command = "c"
triggerall = statetype = A
trigger1 = ctrl = 1

;---------------------------------------------------------------------------
;ジャンプ攻撃・中;2つめです
[State -1]
type = ChangeState
value = 710
triggerall = command = "b"
triggerall = statetype = A
trigger1 = ctrl = 1

;---------------------------------------------------------------------------
;ジャンプ攻撃・弱
[State -1]
type = ChangeState
value = 720
triggerall = command = "a"
triggerall = statetype = A
trigger1 = ctrl = 1


;---------------------------------------------------------------------------
;踏む
[State -1]
type = ChangeState
value = 1400
triggerall = command = "stomp"
triggerall = statetype = A
trigger1 = ctrl = 1

;---------------------------------------------------------------------------
;踏む（コンボ用）
[State -1]
type = ChangeState
value = 1400
triggerall = command = "stomp"
triggerall = statetype = A
trigger1 = stateno  = 101
trigger1 = ctrl = 1
;---------------------------------------------------------------------------
;-------------------------------------------------------------
;立ち・挑発
[State -1]
type = ChangeState
value = 250
triggerall = command = "s"
trigger1 = statetype = S
trigger1 = ctrl = 1

[State -1,2]
type       = Varset
triggerall = var(30) != 30
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"
v          = 30
value      = 30

;AI 終了 (相手ＫＯ時、ＡＩスイッチをＯＦＦ)
[State -1,2]
type=VarSet
trigger1   = Win ;P2life <= 0
v          = 30
value      = 0


[State -1, Masao Energy Boost]
type = PowerAdd
triggerall = P2name = "super kouji"
triggerall = P4name = "super kouji"
trigger1 = Time = 0
value = 3000
