;-| AI |--------------------------------------------------------
[Command]
name = "cpu0"
command = a,a
time = 0

[Command]
name = "cpu0"
command = a,b
time = 0

[Command]
name = "cpu0"
command = a,c
time = 0

[Command]
name = "cpu0"
command = a,x
time = 0

[Command]
name = "cpu0"
command = a,y
time = 0

[Command]
name = "cpu0"
command = a,z
time = 0

[Command]
name = "cpu0"
command = a,s
time = 0

[Command]
name = "cpu0"
command = a,U
time = 0

[Command]
name = "cpu0"
command = a,D
time = 0

[Command]
name = "cpu0"
command = a,F
time = 0

[Command]
name = "cpu0"
command = a,B
time = 0

[Command]
name = "cpu1"
command = b,a
time = 0

[Command]
name = "cpu1"
command = b,b
time = 0

[Command]
name = "cpu1"
command = b,c
time = 0

[Command]
name = "cpu1"
command = b,x
time = 0

[Command]
name = "cpu1"
command = b,y
time = 0

[Command]
name = "cpu1"
command = b,z
time = 0

[Command]
name = "cpu1"
command = b,s
time = 0

[Command]
name = "cpu1"
command = b,U
time = 0

[Command]
name = "cpu1"
command = b,D
time = 0

[Command]
name = "cpu1"
command = b,F
time = 0

[Command]
name = "cpu1"
command = b,B
time = 0

[Command]
name = "cpu2"
command = c,a
time = 0

[Command]
name = "cpu2"
command = c,b
time = 0

[Command]
name = "cpu2"
command = c,c
time = 0

[Command]
name = "cpu2"
command = c,x
time = 0

[Command]
name = "cpu2"
command = c,y
time = 0

[Command]
name = "cpu2"
command = c,z
time = 0

[Command]
name = "cpu2"
command = c,s
time = 0

[Command]
name = "cpu2"
command = c,U
time = 0

[Command]
name = "cpu2"
command = c,D
time = 0

[Command]
name = "cpu2"
command = c,F
time = 0

[Command]
name = "cpu2"
command = c,B
time = 0

[Command]
name = "cpu3"
command = x,a
time = 0

[Command]
name = "cpu3"
command = x,b
time = 0

[Command]
name = "cpu3"
command = x,c
time = 0

[Command]
name = "cpu3"
command = x,x
time = 0

[Command]
name = "cpu3"
command = x,y
time = 0

[Command]
name = "cpu3"
command = x,z
time = 0

[Command]
name = "cpu3"
command = x,s
time = 0

[Command]
name = "cpu3"
command = x,U
time = 0

[Command]
name = "cpu3"
command = x,D
time = 0

[Command]
name = "cpu3"
command = x,F
time = 0

[Command]
name = "cpu3"
command = x,B
time = 0

[Command]
name = "cpu4"
command = y,a
time = 0

[Command]
name = "cpu4"
command = y,b
time = 0

[Command]
name = "cpu4"
command = y,c
time = 0

[Command]
name = "cpu4"
command = y,x
time = 0

[Command]
name = "cpu4"
command = y,y
time = 0

[Command]
name = "cpu4"
command = y,z
time = 0

[Command]
name = "cpu4"
command = y,s
time = 0

[Command]
name = "cpu4"
command = y,U
time = 0

[Command]
name = "cpu4"
command = y,D
time = 0

[Command]
name = "cpu4"
command = y,F
time = 0

[Command]
name = "cpu4"
command = y,B
time = 0

[Command]
name = "cpu5"
command = z,a
time = 0

[Command]
name = "cpu5"
command = z,b
time = 0

[Command]
name = "cpu5"
command = z,c
time = 0

[Command]
name = "cpu5"
command = z,x
time = 0

[Command]
name = "cpu5"
command = z,y
time = 0

[Command]
name = "cpu5"
command = z,z
time = 0

[Command]
name = "cpu5"
command = z,s
time = 0

[Command]
name = "cpu5"
command = z,U
time = 0

[Command]
name = "cpu5"
command = z,D
time = 0

[Command]
name = "cpu5"
command = z,F
time = 0

[Command]
name = "cpu5"
command = z,B
time = 0

[Command]
name = "cpu6"
command = s,a
time = 0

[Command]
name = "cpu6"
command = s,b
time = 0

[Command]
name = "cpu6"
command = s,c
time = 0

[Command]
name = "cpu6"
command = s,x
time = 0

[Command]
name = "cpu6"
command = s,y
time = 0

[Command]
name = "cpu6"
command = s,z
time = 0

[Command]
name = "cpu6"
command = s,s
time = 0

[Command]
name = "cpu6"
command = s,U
time = 0

[Command]
name = "cpu6"
command = s,D
time = 0

[Command]
name = "cpu6"
command = s,F
time = 0

[Command]
name = "cpu6"
command = s,B
time = 0

[Command]
name = "cpu7"
command = U,a
time = 0

[Command]
name = "cpu7"
command = U,b
time = 0

[Command]
name = "cpu7"
command = U,c
time = 0

[Command]
name = "cpu7"
command = U,x
time = 0

[Command]
name = "cpu7"
command = U,y
time = 0

[Command]
name = "cpu7"
command = U,z
time = 0

[Command]
name = "cpu7"
command = U,s
time = 0

[Command]
name = "cpu7"
command = U,U
time = 0

[Command]
name = "cpu7"
command = U,D
time = 0

[Command]
name = "cpu7"
command = U,F
time = 0

[Command]
name = "cpu7"
command = U,B
time = 0

[Command]
name = "cpu8"
command = D,a
time = 0

[Command]
name = "cpu8"
command = D,b
time = 0

[Command]
name = "cpu8"
command = D,c
time = 0

[Command]
name = "cpu8"
command = D,x
time = 0

[Command]
name = "cpu8"
command = D,y
time = 0

[Command]
name = "cpu8"
command = D,z
time = 0

[Command]
name = "cpu8"
command = D,s
time = 0

[Command]
name = "cpu8"
command = D,U
time = 0

[Command]
name = "cpu8"
command = D,D
time = 0

[Command]
name = "cpu8"
command = D,F
time = 0

[Command]
name = "cpu8"
command = D,B
time = 0

[Command]
name = "cpu9"
command = F,a
time = 0

[Command]
name = "cpu9"
command = F,b
time = 0

[Command]
name = "cpu9"
command = F,c
time = 0

[Command]
name = "cpu9"
command = F,x
time = 0

[Command]
name = "cpu9"
command = F,y
time = 0

[Command]
name = "cpu9"
command = F,z
time = 0

[Command]
name = "cpu9"
command = F,s
time = 0

[Command]
name = "cpu9"
command = F,U
time = 0

[Command]
name = "cpu9"
command = F,D
time = 0

[Command]
name = "cpu9"
command = F,F
time = 0

[Command]
name = "cpu9"
command = F,B
time = 0

[Command]
name = "cpu10"
command = B,a
time = 0

[Command]
name = "cpu10"
command = B,b
time = 0

[Command]
name = "cpu10"
command = B,c
time = 0

[Command]
name = "cpu10"
command = B,x
time = 0

[Command]
name = "cpu10"
command = B,y
time = 0

[Command]
name = "cpu10"
command = B,z
time = 0

[Command]
name = "cpu10"
command = B,s
time = 0

[Command]
name = "cpu10"
command = B,U
time = 0

[Command]
name = "cpu10"
command = B,D
time = 0

[Command]
name = "cpu10"
command = B,F
time = 0

[Command]
name = "cpu10"
command = B,B
time = 0

;-| 超必殺技 |--------------------------------------------------------
[Command]
name = "MAXドラゴン・ナイトメア"
command = ~D,DF,F,y
time = 30

[Command]
name = "ドラゴン・ナイトメア"
command = ~D,DF,F,x
time = 30


;-| 必殺技 |------------------------------------------------------
[Command]
name = "名称不明"
command = ~D,DB,B,b

[Command]
name = "アース・ドラゴン"
command = ~D,DB,B,y

[Command]
name = "ドラゴン・スラッシュ"
command = ~D,DB,B,a

[Command]
name = "シャドウ・ドラゴン"
command = ~D,DB,B,x


[Command]
name = "緊急回避"
command = x+a
time = 1

[Command]
name = "緊急回避後"
command = /$B,x+a
time = 1

[Command]
name = "緊急回避後"
command = /$B,z
time = 1

;-| ２回押し技 |-----------------------------------------------------------
[Command]
name = "FF"     
command = F, F
time = 10

[Command]
name = "BB"     
command = B, B
time = 10

;-| ２・３個の同時押し技 |-----------------------------------------------
[Command]
name = "コンビネーション攻撃"
command = y+b
time = 1

[Command]
name = "ゲージ溜め発動"
command = z+c
time = 1

[Command]
name = "recovery"
command = x+y
time = 1

[Command]
name = "投げ"
command = y+b
time = 1

[Command]
name = "ふっ飛ばし"
command = c
time = 1

[Command]
name = "おしっぱなしx"
command = /$x
time = 1

[Command]
name = "おしっぱなしy"
command = /$y
time = 1

[Command]
name = "おしっぱなしa"
command = /$a
time = 1

[Command]
name = "おしっぱなしb"
command = /$b
time = 1

[Command]
name = "おしっぱなしz"
command = /$z
time = 1

[Command]
name = "おしっぱなしc"
command = /$c
time = 1

;-| 方向とボタンで出す技 |---------------------------------------------------------
[Command]
name = "フェニックスボム"
command = /$D,a
time = 1


[Command]
name = "連還腿"
command = /$F,a
time = 1


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

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

;-| ボタン設定（いじらない）|---------------------------------------------------------
[Command]
name = "DF"
command = DF
time = 1

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

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

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

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

[Command]
name = "F"
command = F
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 = "start"
command = s
time = 1

;-| 押しっぱなし設定（いじらない）-------------------------------------------------------
[Command]
name = "holdfwd"
command = /$F
time = 1

[Command]
name = "holdback"
command = /$B
time = 1

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

[Command]
name = "holddown"
command = /$D
time = 1


; 下の記述↓は絶対に消さないでください。
[Statedef -1]

;===========================================================================
;基本コマンド
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;MAXドラゴン・ナイトメア
[State -1, Strong Kung Fu Palm]
type = ChangeState
value = 2300
triggerall = !var(59)
triggerall = command = "MAXドラゴン・ナイトメア"
triggerall = power >= 2000
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 210 && movecontact
trigger4 = stateno = 230 && movecontact
trigger5 = stateno = 240 && movecontact
trigger6 = stateno = 400 && movecontact
trigger7 = stateno = 410 && movecontact
trigger8 = stateno = 3000 && movecontact
trigger9 = stateno = 201 && movecontact
trigger10= stateno = 250 && movecontact

;---------------------------------------------------------------------------
;ドラゴン・ナイトメア
[State -1, Strong Kung Fu Palm]
type = ChangeState
value = 1300
triggerall = !var(59)
triggerall = command = "ドラゴン・ナイトメア"
triggerall = power >= 1000
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 210 && movecontact
trigger4 = stateno = 230 && movecontact
trigger5 = stateno = 240 && movecontact
trigger6 = stateno = 400 && movecontact
trigger7 = stateno = 410 && movecontact
trigger8 = stateno = 3000 && movecontact
trigger9 = stateno = 201 && movecontact
trigger10= stateno = 250 && movecontact


;===========================================================================
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;アース・ドラゴン
[State -1, a]
type = ChangeState
value = 1200
triggerall = !var(59)
triggerall = command = "アース・ドラゴン"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 210 && movecontact
trigger4 = stateno = 230 && movecontact
trigger5 = stateno = 240 && movecontact
trigger6 = stateno = 400 && movecontact
trigger7 = stateno = 410 && movecontact
trigger8 = stateno = 3000 && movecontact
trigger9 = stateno = 201 && movecontact
trigger10= stateno = 250 && movecontact

;---------------------------------------------------------------------------
;ドラゴン・スラッシュ
[State -1, a]
type = ChangeState
value = 1100
triggerall = !var(59)
triggerall = command = "ドラゴン・スラッシュ"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 210 && movecontact
trigger4 = stateno = 230 && movecontact
trigger5 = stateno = 240 && movecontact
trigger6 = stateno = 400 && movecontact
trigger7 = stateno = 410 && movecontact
trigger8 = stateno = 3000 && movecontact
trigger9 = stateno = 201 && movecontact
trigger10= stateno = 250 && movecontact

;---------------------------------------------------------------------------
;シャドウ・ドラゴン
[State -1, a]
type = ChangeState
value = 1000
triggerall = !var(59)
triggerall = command = "シャドウ・ドラゴン"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 210 && movecontact
trigger4 = stateno = 230 && movecontact
trigger5 = stateno = 240 && movecontact
trigger6 = stateno = 400 && movecontact
trigger7 = stateno = 410 && movecontact
trigger8 = stateno = 3000 && movecontact
trigger9 = stateno = 201 && movecontact
trigger10= stateno = 250 && movecontact

;===========================================================================
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;ガードキャンセル攻撃
[State -1, 290]
type = ChangeState
value = 290
triggerall = !var(59)
triggerall = command = "y" && command = "b"
triggerall = power >= 1000
trigger1 = stateno = 150
trigger2 = stateno = 151
trigger3 = stateno = 152
trigger4 = stateno = 153

;===========================================================================
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;コンビネーション攻撃
[State -1, Stand Light Punch]
type = ChangeState
value = 3000
triggerall = !var(59)
triggerall = command = "コンビネーション攻撃"
triggerall = power >= 1000
triggerall = stateno !=[150,155]
triggerall = statetype = S || statetype = C
trigger1 = movetype = h


;---------------------------------------------------------------------------
;緊急回避前
[State -1, Taunt]
type = ChangeState
value = 701
triggerall = !var(59)
triggerall = command = "緊急回避" && command = "holdfwd"
trigger1 = statetype != A
trigger1 = ctrl
;---------------------------------------------------------------------------
;緊急回避後
[State -1, Taunt]
type = ChangeState
value = 702
triggerall = !var(59)
triggerall = command = "緊急回避" && command = "holdback"
trigger1 = statetype != A
trigger1 = ctrl


;---------------------------------------------------------------------------
;攻撃避け
[State -1, Taunt]
type = ChangeState
value = 700
triggerall = !var(59)
triggerall = command = "緊急回避"
trigger1 = statetype != A
trigger1 = ctrl


;---------------------------------------------------------------------------
;ダウン回避
[State -1, Taunt]
type = ChangeState
value = 705
triggerall = !var(59)
triggerall = command = "緊急回避"
triggerall = pos y >=-40
trigger1 = stateno = 5050
trigger2 = stateno = 5070

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

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

;---------------------------------------------------------------------------
;投げ
[State -1, Kung Fu Throw]
type = ChangeState
value = 800
triggerall = !var(59)
triggerall = (command = "holdfwd" || command = "holdback") && command = "y"
triggerall = statetype != A
triggerall = p2statetype != A
triggerall = p2bodydist x <= 32
triggerall = p2stateno != [120,155]
trigger1 = ctrl
trigger2 = stateno = 200 && movehit
trigger3 = stateno = 230 && movehit
trigger4 = stateno = 240 && movehit
trigger5 = stateno = 400 && movehit
trigger6 = stateno = 410 && movehit
trigger7 = stateno = 201 && movecontact
trigger8 = stateno = 250 && movecontact

;名称不明
[State -1, a]
type = ChangeState
value = 801
triggerall = !var(59)
triggerall = (command = "holdfwd" || command = "holdback") && command = "b"
triggerall = statetype != A
triggerall = p2statetype != A
triggerall = p2bodydist x <= 32
triggerall = p2stateno != [120,155]
trigger1 = ctrl
trigger2 = stateno = 200 && movehit
trigger3 = stateno = 230 && movehit
trigger4 = stateno = 240 && movehit
trigger5 = stateno = 400 && movehit
trigger6 = stateno = 410 && movehit
trigger7 = stateno = 201 && movecontact
trigger8 = stateno = 250 && movecontact

;===========================================================================
;---------------------------------------------------------------------------
;立ち弱パンチ
[State -1, Stand Light Punch]
type = ChangeState
value = 200+1*(P2dist X <=50)
triggerall = !var(59)
triggerall = command = "x"
triggerall = command != "holddown"
triggerall = statetype != A
trigger1 = ctrl

;---------------------------------------------------------------------------
;立ち強パンチ
[State -1, Stand Strong Punch]
type = ChangeState
value = 210
triggerall = !var(59)
triggerall = command = "y"
triggerall = command != "holddown"
triggerall = statetype != A
trigger1 = ctrl

;---------------------------------------------------------------------------
;立ち弱キック
[State -1, Stand Light Kick]
type = ChangeState
value = 230
triggerall = !var(59)
triggerall = command = "a"
triggerall = command != "holddown"
triggerall = statetype != A
trigger1 = ctrl

;---------------------------------------------------------------------------
;立ち強キック
[State -1, Standing Strong Kick]
type = ChangeState
value = 240+10*(command = "holdback")
triggerall = !var(59)
triggerall = command = "b"
triggerall = command != "holddown"
triggerall = statetype != A
trigger1 = ctrl

;---------------------------------------------------------------------------
;挑発
[State -1, Taunt]
type = ChangeState
value = 199
triggerall = !var(59)
triggerall = command = "start"
triggerall = statetype != A
trigger1 = ctrl

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

;---------------------------------------------------------------------------
;しゃがみ強パンチ
[State -1, Crouching Strong Punch]
type = ChangeState
value = 410
triggerall = !var(59)
triggerall = command = "y"
triggerall = command = "holddown"
triggerall = statetype != A
trigger1 = ctrl


;---------------------------------------------------------------------------
;しゃがみ弱キック
[State -1, Crouching Light Kick]
type = ChangeState
value = 430
triggerall = !var(59)
triggerall = command = "a"
triggerall = command = "holddown"
triggerall = statetype != A
trigger1 = ctrl

;---------------------------------------------------------------------------
;しゃがみ強キック
[State -1, Crouching Light Kick]
type = ChangeState
value = 440
triggerall = !var(59)
triggerall = command = "b"
triggerall = command = "holddown"
triggerall = statetype != A
trigger1 = ctrl

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

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


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


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