; 汉化版功夫人的cmd文件
;
; 两部分:按键定义和state入口（就是按什么键进入什么state。原谅我吧……想不出好名字了）
; (state入口在按键定义之后)
;
; 1. 按键定义
; ---------------------
; 注意: 按键和招式名分大小写。
; 八个方向分别是:
;   B, DB, D, DF, F, UF, U, UB     (全大写)
;   对应后，下后，下，下前，前，前上，上，上后。
; 六个按键是:
;   a, b, c, x, y, z               (全小写)
;   在默认按键的情况下，xyz在上排，abc在下排。
;   推荐使用xyz作为拳，abc作为脚。
;
; 每一个[Command]定义一个操作指令。
; 这些操作指令可以在cmd和cns里被调用。
; 操作指令的语法规范如下:
;
;   [Command]
;   name = "指令名"
;   command = 按键输入
;   time = 接受指令输入的时间 (可选)
;   buffer.time = 输入缓存的时间 (可选)
;
; - 指令名
;   指令的名字，在调用时需要输入同样的名字，比如trigger1=command="指令名"。
;   指令名区分大小写。(QCB_a和Qcb_a或者QCB_A不同)。
;
; - 按键输入
;   输入的按键的列表。每一个键由逗号隔开。一个方向键或者一个攻击键叫为一个符号。
;   方向键和攻击键之前可以用特殊符号来达到一些效果:
;   斜杠 (/) - 表示之后的一个键必须被按住不放
;          举例, command = /D       ;按住不放下方向键
;               command = /DB, a   ;按住不放下后方向键的时候按a
;   波浪号 (~) - 表示按键被松开
;          举例, command = ~a       ;松开a键
;               command = ~D, F, a ;松开下方向键，按前方向键，再按a
;          如果你想让某个键蓄力一段时间再放开，可以再波浪号之后加入你想保持蓄力的时间(以帧为单位)
;          举例, command = ~30a     ;按住a30帧，再松开
;   美金 ($) - 仅限上下左右方向键。表示包括正和斜方向
;          举例, command = $D       ;包括下，下后和下前
;               command = $B       ;包括后，下后和上后
;   加号 (+) - 仅限攻击键。表示同时按多个键。
;          举例, command = a+b      ;同时按a和b
;               command = x+y+z    ;同时按x，y和z
;   大于号 (>) - 表示上一次按键和这一次按键之中不能掺杂其他的按键
;          举例, command = a, >~a   ;按下a再松开a，而其中不按下或者松开其他键
;   这些符号可以组合使用:
;     举例, command = ~30$D, a+b     ;按住下，下后或者下前30帧，松开，然后同时按a和b
;
;   注意: 连续按方向键的指令会被MUGEN引擎自动理解如下:
;         举例，cmd文件中的定义:
;           command = F, F
;         会被引擎理解成:
;           command = F, >~F, >F
;
;   对于有多个方向键的定义，例如四分之一圈下前，为了让招数能更容易的使出，最好在定义由一个"松开方向键"起始。
;
; - 指令输入时间 (可选)
;   接受指令输入的时间，以帧为单位。默认值可以在[Defaults]条目修改，通常为15。
;
; - 指令缓存时间 (可选)
;   输入的指令被缓存的时间。当一个指令被输入时，它在这段时间里都是有效的。
;   最基本的情况是设置成值为1。这种情况下只有在这一帧输入指令才会执行。如果值更高，比如3或4，输入会提前进入缓存，然后当可以执行时就被执行。这样人物的操作会松快一些，因为玩家可以提前输入指令，比如在还没有击中敌人时就开始取消，或者从受击状态还没有获得控制时就切反。
;   但这也有副作用，因为在缓存的期间会认为一直在输入这个指令。举例来说，把这个值设成30，然后发一个很快的招式，比如功夫人的站轻拳，看它的效果。
;   默认值可以在[Defaults]条目修改。
;   这个参数对蓄力指令不起作用，参数的值会自动当作1。
;
; 如果有多种输入有同样的名子，每一种输入都会读出这个指令。你可以用这个技巧来让一个招式接受不同的输入。
;
; 以下是一些常用指令的输入示例:
;
; [Command] ;下前 + x
; name = "下前x"
; command = ~D, DF, F, x
;
; [Command] ;向后半圈 + a
; name = "后半圈a"
; command = ~F, DF, D, DB, B, a
;
; [Command] ;下前下前 + y
; name = "下前下前y"
; command = ~D, DF, F, D, DF, F, y
;
; [Command] ;连打b
; name = "连打b"
; command = b, b, b, b, b
; time = 30
;
; [Command] ;蓄后，前 + z
; name = "蓄后前z"
; command = ~60$B, F, z
; time = 10
;
; [Command] ;蓄下，上 + c
; name = "蓄下上c"
; command = ~60$D, U, c
; time = 10


;-| 重新排列按键 |-----------------------------------------------------
; 这一段可以让玩家简单的重新排列攻击按键。格式是:
;  以前对应的键 = 修改后的键
; 如果不填写修改后的键，则以前对应的键将失效。
[Remap]
x = x
y = y
z = z
a = a
b = b
c = c
s = s

;-| 默认输入时间 |-------------------------------------------------------
[Defaults]
; 默认接受指令的时间，最小为1。
command.time = 15

; 默认指令蓄力的时间，最小为1，最大为30。
command.buffer.time = 1


;-| 超必杀技 |--------------------------------------------------------

[Command]
name = "皇后-Q"
command = x+z
time = 13
buffer.time = 8

[Command]
name = "同花顺"
command = a+b
time = 13
buffer.time = 8

[Command]
name = "♠♥♣♦"
command = x+y
time = 13
buffer.time = 8

;-| EX技 |------------------------------------------------------

[Command]
name = "牌花-红桃"
command = ~D, F, c
time = 13
buffer.time = 8

[Command]
name = "牌组-10"
command = ~F, B, c
time = 13
buffer.time = 8

[Command]
name = "牌组-ACE2"
command = ~D, B, c
time = 13
buffer.time = 8

[Command]
name = "牌组-ACE1"
command = ~D, B, z
time = 13
buffer.time = 8

[Command]
name = "牌组-6"
command = ~B, F, z
time = 13
buffer.time = 8

;-| 特殊技 |------------------------------------------------------

[Command]
name = "红桃J"
command = ~D, F, b
time = 13
buffer.time = 8

[Command]
name = "黑桃J"
command = ~D, F, y
time = 13
buffer.time = 8

[Command]
name = "幻觉"
command = ~D, F, a
time = 13
buffer.time = 8

[Command]
name = "红桃8-B"
command = ~F, B, b
time = 13
buffer.time = 8

[Command]
name = "红桃8-A"
command = ~F, B, a
time = 13
buffer.time = 8

[Command]
name = "红桃8-Y"
command = ~F, B, y
time = 13
buffer.time = 8

[Command]
name = "红桃8-X"
command = ~F, B, x
time = 13
buffer.time = 8

[Command]
name = "方块9"
command = ~D, F, x
time = 13
buffer.time = 8

[Command]
name = "梅花4-轻"
command = ~D, F, x
time = 13
buffer.time = 8

[Command]
name = "梅花4-重"
command = ~D, F, y
time = 13
buffer.time = 8

[Command]
name = "致命魔术-方块A"
command = ~D, B, b
time = 13
buffer.time = 8

[Command]
name = "致命魔术-梅花A"
command = ~D, B, a
time = 13
buffer.time = 8

[Command]
name = "致命魔术-红桃A"
command = ~D, B, y
time = 13
buffer.time = 8

[Command]
name = "致命魔术-黑桃A"
command = ~D, B, x
time = 13
buffer.time = 8

[Command]
name = "黑桃6-重"
command = ~B, F, y
time = 13
buffer.time = 8

[Command]
name = "黑桃6-轻"
command = ~B, F, x
time = 13
buffer.time = 8

;-| 按两次 |-----------------------------------------------------------
[Command]
name = "FF"     ;必须包括 (不要删除)
command = F, F
time = 10

[Command]
name = "BB"     ;必须包括 (不要删除)
command = B, B
time = 10

[Command]
name = "前前"
command = F, F
time = 10

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

;-| 同时按键 |-----------------------------------------------
[Command]
name = "recovery";必须包括 (不要删除)
command = x+y
time = 1

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

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

[Command]
name = "RC取消"
command = a+y
time = 1

[Command]
name = "取消"
command = ~D, F, D, B, s
time = 25

[Command]
Name = "a+b"
Command = z
Time = 1

;-| 方向＋攻击键 |---------------------------------------------------------
[Command]
name = "下+a"
command = /$D,a
time = 1

[Command]
name = "下+b"
command = /$D,b
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 = "fwd"
command = F
time = 1

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

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

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

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

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

[Command]
name = "/6"
command = /$F
time = 1

[Command]
name = "/2"
command = /$D
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

[Command]
name = "holda"     ;必须包括 (不要删除)
command = /$a
time = 3

[Command]
name = "holdb"     ;必须包括 (不要删除)
command = /$b
time = 1

[Command]
name = "holdc"     ;必须包括 (不要删除)
command = /$c
time = 1

[Command]
name = "holdx"    ;必须包括 (不要删除)
command = /$x
time = 1

[Command]
name = "holdy"    ;必须包括 (不要删除)
command = /$y
time = 1

[Command]
name = "holdz"    ;必须包括 (不要删除)
command = /$z
time = 1

[Command]
name = "holds"    ;必须包括 (不要删除)
command = /$s
time = 1

[Command]
name = "蓄上方向"
command = /$F
time = 1

[Command]
name = "蓄后方向"
command = /$B
time = 1

[Command]
name = "蓄前方向"
command = /$U
time = 1

[Command]
name = "蓄下方向"
command = /$D
time = 1

[Command]
name = "jump"    
command = D, $U
time = 12

;---------------------------------------------------------------------------
; 2. state入口
; --------------
; 在这一段里，人物会依据输入来转到相应的state里。
;
; 入口示例如下:
;   [State -1, 标签]           ;标签可以是任意你想要来标注这个入口的名字
;   type = ChangeState          ;不要改
;   value = 要跳转到的state
;   trigger1 = command = "招式名"
;   . . .  (其他trigger)
;
; - 一些常用的trigger:
;   - statetype
;       S, C or A : 现在人物的状态 (站立, 下蹲, 空中)
;   - ctrl
;       0 or 1 : 如果人物可控，则值为1，否则为0。除非取消另一个招数，否则出招是一般要求ctrl=1
;   - stateno
;       现在人物的state号 - 在取消招数时常用。
;   - movecontact
;       0 or 1 : 如果上一个招数接触到了敌人，则值为1，否则为0。在取消招数时常用。
;
; 注意: 入口的顺序很重要。
;   如果指令A是指令B的一部分，则指令B的入口应排在指令A前。
;   比如说，下前下前XY应该排在下前XY之前，下前XY应该排在下前X之前，下前X应该排在X之前。
;
; 关于trigger的详细解释，请参阅MUGEN自带的cns参考说明。
;
; 提示:
; 这部分是cns的延伸。-1这个state是一个特殊state，无论人物实际上在哪个state，-1这个state每一帧都会执行。


; 不要删除下面这行。语法标准要求CMD文件必须包括这行。
[Statedef -1]

;===========================================================================
;---------------------------------------------------------------------------

;---------------------------------------------------------------------------
;皇后-Q
[State 皇后-Q]
type = ChangeState
value = 3200
triggerall = command = "皇后-Q"
triggerall = statetype != A
triggerall = power >= 1000 
triggerall = !NumHelper(3210)
triggerall = !NumHelper(3220)
trigger1 = ctrl
trigger2 = (stateno = [200,499]) && movecontact
trigger3 = stateno = [1000,1010]
trigger3 = time >= 18
trigger4 = stateno = [1100,1130]
trigger4 = time >= 11
trigger5 = (stateno = [1500,1510]) && movecontact
trigger6 = stateno = [1600,1603]
trigger6 = time >= 22
trigger7 = stateno = 1900
trigger7 = time >= 21
trigger8 = stateno = 1920
trigger8 = time >= 31

;---------------------------------------------------------------------------
;同花顺
[State 同花顺]
type = ChangeState
value = 3100
triggerall = command = "同花顺"
triggerall = statetype != A
triggerall = power >= 1000 
trigger1 = ctrl
trigger2 = (stateno = [200,499]) && movecontact
trigger3 = stateno = [1000,1010]
trigger3 = time >= 18
trigger4 = stateno = [1100,1130]
trigger4 = time >= 11
trigger5 = (stateno = [1500,1510]) && movecontact
trigger6 = stateno = [1600,1603]
trigger6 = time >= 22
trigger7 = stateno = 1900
trigger7 = time >= 21
trigger8 = stateno = 1920
trigger8 = time >= 31

;---------------------------------------------------------------------------
;♠♥♣♦
[State ♠♥♣♦]
type = ChangeState
value = 3000
triggerall = command = "♠♥♣♦"
triggerall = statetype != A
triggerall = power >= 1000 
trigger1 = ctrl
trigger2 = (stateno = [200,499]) && movecontact
trigger3 = stateno = [1000,1010]
trigger3 = time >= 18
trigger4 = stateno = [1100,1130]
trigger4 = time >= 11
trigger5 = (stateno = [1500,1510]) && movecontact
trigger6 = stateno = [1600,1603]
trigger6 = time >= 22
trigger7 = stateno = 1900
trigger7 = time >= 21
trigger8 = stateno = 1920
trigger8 = time >= 31

;---------------------------------------------------------------------------
;牌花-红桃
[State 牌花-红桃]
Type = ChangeState
Value = 2900
triggerall = command = "牌花-红桃"
triggerall = statetype != A
triggerall = power >= 500 
trigger1 = ctrl
trigger2 = (stateno = [200,499]) && movecontact

;---------------------------------------------------------------------------
;牌组-10
[State 牌组-10]
Type = ChangeState
Value = 2600
triggerall = command = "牌组-10"
triggerall = statetype != A
triggerall = power >= 500 
trigger1 = ctrl
trigger2 = (stateno = [200,499]) && movecontact

;---------------------------------------------------------------------------
;牌组-ACE
[State 牌组-ACE2]
Type = ChangeState
Value = 2150
triggerall = command = "牌组-ACE2"
triggerall = statetype != A
triggerall = power >= 500 
trigger1 = ctrl
trigger2 = (stateno = [200,499]) && movecontact

[State 牌组-ACE1]
Type = ChangeState
Value = 2100
triggerall = command = "牌组-ACE1"
triggerall = statetype != A
triggerall = power >= 500 
trigger1 = ctrl
trigger2 = (stateno = [200,499]) && movecontact

;---------------------------------------------------------------------------
;牌组-6
[State 牌组-6]
Type = ChangeState
Value = 2000
triggerall = command = "牌组-6"
triggerall = statetype != A
triggerall = power >= 500 
trigger1 = ctrl
trigger2 = (stateno = [200,499]) && movecontact

;---------------------------------------------------------------------------
;牌组-J
[State 红桃J]
Type = ChangeState
Value = 1920
triggerall = command = "红桃J"
triggerall = statetype != A
triggerall = !NumHelper(1911)
triggerall = !NumHelper(1931)
trigger1 = ctrl
trigger2 = (stateno = [200,499]) && movecontact

[State 黑桃J]
Type = ChangeState
Value = 1900
triggerall = command = "黑桃J"
triggerall = statetype != A
triggerall = !NumHelper(1911)
triggerall = !NumHelper(1931)
trigger1 = ctrl
trigger2 = (stateno = [200,499]) && movecontact

;---------------------------------------------------------------------------
;幻觉
[State 幻觉]
Type = ChangeState
Value = 1700
triggerall = command = "幻觉"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,499]) && movecontact

;---------------------------------------------------------------------------
;廉价把戏
[State 廉价把戏]
type = ChangeState
value = 1650
triggerall = command = "holdc"
triggerall = statetype = A
triggerall = p2statetype = A
trigger1 = ctrl

;---------------------------------------------------------------------------
;红桃8
[State 红桃8-B]
Type = ChangeState
Value = 1603
triggerall = command = "红桃8-B"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,499]) && movecontact

[State 红桃8-A]
Type = ChangeState
Value = 1602
triggerall = command = "红桃8-A"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,499]) && movecontact

[State 红桃8-Y]
Type = ChangeState
Value = 1601
triggerall = command = "红桃8-Y"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,499]) && movecontact

[State 红桃8-X]
Type = ChangeState
Value = 1600
triggerall = command = "红桃8-X"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,499]) && movecontact

;---------------------------------------------------------------------------
;方块9
[State 方块9]
Type = ChangeState
Value = 1500
triggerall = command = "方块9"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,499]) && movecontact

;---------------------------------------------------------------------------
;牌组-4
[State 梅花4]
type = ChangeState
value = 1305
triggerall = command = "梅花4-重"
triggerall = statetype = A
trigger1 = ctrl
trigger2 = (stateno = [600,699]) && movecontact

[State 梅花4]
type = ChangeState
value = 1300
triggerall = command = "梅花4-轻"
triggerall = statetype = A
trigger1 = ctrl
trigger2 = (stateno = [600,699]) && movecontact

;---------------------------------------------------------------------------
;致命魔术-ACE
[State 致命魔术-方块A]
Type = ChangeState
Value = 1130
triggerall = command = "致命魔术-方块A"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,499]) && movecontact

[State 致命魔术-梅花A]
Type = ChangeState
Value = 1120
triggerall = command = "致命魔术-梅花A"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,499]) && movecontact

[State 致命魔术-红桃A]
Type = ChangeState
Value = 1110
triggerall = command = "致命魔术-红桃A"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,499]) && movecontact

[State 致命魔术-黑桃A]
Type = ChangeState
Value = 1100
triggerall = command = "致命魔术-黑桃A"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,499]) && movecontact

;---------------------------------------------------------------------------
;黑桃6
[State 逃脱]
Type = ChangeState
Value = 1021
TriggerAll = NumHelper(1005) && Helper(1005),Anim = 1006
TriggerAll = command= "a+b"
triggerall = command != "holdfwd" && command != "holdback"
triggerall = statetype = A
Trigger1 = Ctrl
Trigger2 = (StateNo = [200,699]) && MoveContact

[State 逃脱]
Type = ChangeState
Value = 1020
TriggerAll = NumHelper(1005) && Helper(1005),Anim = 1006
TriggerAll = command= "a+b"
triggerall = command != "holdfwd" && command != "holdback"
triggerall = statetype != A
Trigger1 = Ctrl
Trigger2 = (StateNo = [200,699]) && MoveContact

[State 黑桃6-重]
type = ChangeState
value = 1010
triggerall = command = "黑桃6-重"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,499]) && movecontact

[State 黑桃6-轻]
type = ChangeState
value = 1000
triggerall = command = "黑桃6-轻"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,499]) && movecontact

;---------------------------------------------------------------------------
;RC取消

[State RC取消]
type = ChangeState
value = 909
triggerall = command = "RC取消" 
triggerall = command = "holdback"
triggerall = command = "holdup"
triggerall = statetype = A
triggerall = power >= 500
trigger1 = ctrl
trigger2 = (stateno = [600,699]) && movecontact
trigger3 = (stateno = [1100,1140]) 
trigger4 = (stateno = [1200,1250]) 
trigger5 = stateno =  [1300,1305]
trigger6 = stateno = 1701

[State RC取消]
type = ChangeState
value = 908
triggerall = command = "RC取消" 
triggerall = command = "holdfwd"
triggerall = command = "holdup"
triggerall = statetype = A
triggerall = power >= 500
trigger1 = ctrl
trigger2 = (stateno = [600,699]) && movecontact
trigger3 = (stateno = [1100,1140]) 
trigger4 = (stateno = [1200,1250]) 
trigger5 = stateno =  [1300,1305]
trigger6 = stateno = 1701

[State RC取消]
type = ChangeState
value = 907
TriggerAll = Command = "RC取消" && Command = "holdback"
triggerall = command != "holdup"
triggerall = statetype = A
triggerall = power >= 500
trigger1 = ctrl
trigger2 = (stateno = [600,699]) && movecontact
trigger3 = (stateno = [1100,1140]) 
trigger4 = (stateno = [1200,1250]) 
trigger5 = stateno =  [1300,1305]
trigger6 = stateno = 1701

[State RC取消]
type = ChangeState
value = 906
TriggerAll = Command = "RC取消" && Command = "holdfwd"
triggerall = command != "holdup"
triggerall = statetype = A
triggerall = power >= 500
trigger1 = ctrl
trigger2 = (stateno = [600,699]) && movecontact
trigger3 = (stateno = [1100,1140]) 
trigger4 = (stateno = [1200,1250]) 
trigger5 = stateno =  [1300,1305]
trigger6 = stateno = 1701

[State RC取消]
type = ChangeState
value = 905
TriggerAll = Command = "RC取消" 
triggerall = statetype = A
triggerall = power >= 500
trigger1 = ctrl
trigger2 = (stateno = [600,699]) && movecontact
trigger3 = (stateno = [1100,1140]) 
trigger4 = (stateno = [1200,1250]) 
trigger5 = stateno =  [1300,1305]
trigger6 = stateno = 1701

[State RC取消]
type = ChangeState
value = 904
triggerall = command = "RC取消" 
triggerall = command = "holdback"
triggerall = command = "holddown"
triggerall = statetype != A
triggerall = power >= 500
trigger1 = ctrl
trigger2 = (stateno = [200,499]) && movecontact
trigger3 = (stateno = [801,851])
trigger3 = time >= 30
trigger4 = stateno = [1000,1010]
trigger4 = time >= 18
trigger5 = stateno = [1100,1130]
trigger5 = time >= 11
trigger6 = stateno = [1500,1510]
trigger7 = stateno = [1600,1603]
trigger7 = time >= 22
trigger8 = stateno = [1700,1701]
trigger9 = stateno = 1900
trigger9 = time >= 21
trigger10 = stateno = 1920
trigger10 = time >= 31
trigger11 = stateno = 3000
trigger12 = stateno = 3100
trigger13 = stateno = 3104
trigger13 = time >= 20
trigger14 = stateno = [3200,3240]

[State RC取消]
type = ChangeState
value = 903
triggerall = command = "RC取消" 
triggerall = command = "holdfwd"
triggerall = command = "holddown"
triggerall = statetype != A
triggerall = power >= 500
trigger1 = ctrl
trigger2 = (stateno = [200,499]) && movecontact
trigger3 = (stateno = [801,851])
trigger3 = time >= 30
trigger4 = stateno = [1000,1010]
trigger4 = time >= 18
trigger5 = stateno = [1100,1130]
trigger5 = time >= 11
trigger6 = stateno = [1500,1510]
trigger7 = stateno = [1600,1603]
trigger7 = time >= 22
trigger8 = stateno = [1700,1701]
trigger9 = stateno = 1900
trigger9 = time >= 21
trigger10 = stateno = 1920
trigger10 = time >= 31
trigger11 = stateno = 3000
trigger12 = stateno = 3100
trigger13 = stateno = 3104
trigger13 = time >= 20
trigger14 = stateno = [3200,3240]

[State RC取消]
type = ChangeState
value = 902
TriggerAll = Command = "RC取消" && Command = "holdback"
triggerall = command != "holddown"
triggerall = statetype != A
triggerall = power >= 500
trigger1 = ctrl
trigger2 = (stateno = [200,499]) && movecontact
trigger3 = (stateno = [801,851])
trigger3 = time >= 30
trigger4 = stateno = [1000,1010]
trigger4 = time >= 18
trigger5 = stateno = [1100,1130]
trigger5 = time >= 11
trigger6 = stateno = [1500,1510]
trigger7 = stateno = [1600,1603]
trigger7 = time >= 22
trigger8 = stateno = [1700,1701]
trigger9 = stateno = 1900
trigger9 = time >= 21
trigger10 = stateno = 1920
trigger10 = time >= 31
trigger11 = stateno = 3000
trigger12 = stateno = 3100
trigger13 = stateno = 3104
trigger13 = time >= 20
trigger14 = stateno = [3200,3240]

[State RC取消]
type = ChangeState
value = 901
TriggerAll = Command = "RC取消" && Command = "holdfwd"
triggerall = command != "holddown"
triggerall = statetype != A
triggerall = power >= 500
trigger1 = ctrl
trigger2 = (stateno = [200,499]) && movecontact
trigger3 = (stateno = [801,851])
trigger3 = time >= 30
trigger4 = stateno = [1000,1010]
trigger4 = time >= 18
trigger5 = stateno = [1100,1130]
trigger5 = time >= 11
trigger6 = stateno = [1500,1510]
trigger7 = stateno = [1600,1603]
trigger7 = time >= 22
trigger8 = stateno = [1700,1701]
trigger9 = stateno = 1900
trigger9 = time >= 21
trigger10 = stateno = 1920
trigger10 = time >= 31
trigger11 = stateno = 3000
trigger12 = stateno = 3100
trigger13 = stateno = 3104
trigger13 = time >= 20
trigger14 = stateno = [3200,3240]

[State RC取消]
type = ChangeState
value = 900
triggerall = command = "RC取消"
triggerall = statetype != A
triggerall = power >= 500
trigger1 = ctrl
trigger2 = (stateno = [200,499]) && movecontact
trigger3 = (stateno = [801,851])
trigger3 = time >= 30
trigger4 = stateno = [1000,1010]
trigger4 = time >= 18
trigger5 = stateno = [1100,1130]
trigger5 = time >= 11
trigger6 = stateno = [1500,1510]
trigger7 = stateno = [1600,1603]
trigger7 = time >= 22
trigger8 = stateno = [1700,1701]
trigger9 = stateno = 1900
trigger9 = time >= 21
trigger10 = stateno = 1920
trigger10 = time >= 31
trigger11 = stateno = 3000
trigger12 = stateno = 3100
trigger13 = stateno = 3104
trigger13 = time >= 20
trigger14 = stateno = [3200,3240]

;===========================================================================
;---------------------------------------------------------------------------
;前跑
[State 前跑]
type = ChangeState
value = 100
trigger1 = command = "前前"
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
;后跑
[State 后跑]
type = ChangeState
value = 105
trigger1 = command = "后后"
trigger1 = statetype = S
trigger1 = ctrl

[State 空中后撤]
type = ChangeState
value = 770
triggerall = command = "后后"
triggerall = statetype = A
triggerall = var(5) <= 0
trigger1 = ctrl
trigger2 = stateno = 600 && movecontact
trigger3 = stateno = 610 && movecontact
trigger4 = stateno = 630 && movecontact
trigger5 = stateno = 640 && movecontact

[State 空中前冲]
type = ChangeState
value = 760
triggerall = command = "前前"
triggerall = statetype = A
triggerall = var(5) <= 0
trigger1 = ctrl
trigger2 = stateno = 600 && movecontact
trigger3 = stateno = 610 && movecontact
trigger4 = stateno = 630 && movecontact
trigger5 = stateno = 640 && movecontact

[State 二段跳]
type = ChangeState
value = 750
triggerall = command = "holdup"
triggerall = statetype = A
triggerall = var(5) <= 0
trigger1 = Vel Y >= 0
trigger1 = ctrl
trigger2 = stateno = 600 && movecontact
trigger3 = stateno = 610 && movecontact
trigger4 = stateno = 630 && movecontact
trigger5 = stateno = 640 && movecontact

[State 闪避-后]
Type = ChangeState
Value = 710
TriggerAll = Command = "a+b" && Command = "holdback"
TriggerAll = RoundState = 2
TriggerAll = StateType != A
Trigger1 = Ctrl
Trigger2 = (StateNo = 150 || StateNo = 152) && Power >= 1000 

[State 闪避-前]
type = ChangeState
value = 700
TriggerAll = Command = "a+b" 
TriggerAll = RoundState = 2
TriggerAll = StateType != A
Trigger1 = Ctrl || (StateNo= [100,101])
Trigger2 = (StateNo = 150 || StateNo = 152) && Power >= 1000 

;------------------------------------------------------------------------------
;C投-2
[State 2]
type = ChangeState
value = 800
triggerall = command = "y"
triggerall = command = "holdfwd" || command = "holdback"
triggerall = statetype = S
triggerall = stateno != 100
trigger1 = p2bodydist X < 25
trigger1 = p2statetype != A && p2movetype != H
trigger1 = ctrl

;------------------------------------------------------------------------------
;D投-3
[State 3]
type = ChangeState
value = 850
triggerall = command = "b"
triggerall = command = "holdfwd" || command = "holdback"
triggerall = statetype = S
triggerall = stateno != 100
trigger1 = p2bodydist X < 25
trigger1 = p2statetype != A && p2movetype != H
trigger1 = ctrl


;------------------------------------------------------------------------------
;特殊技
[State 方块10]
type = ChangeState
value = 310
triggerall = command = "x"
triggerall = command = "holdfwd"
triggerall = statetype != A
triggerall = command != "holddown"
trigger1 = ctrl
trigger2 = (stateno = [200,205]) && movecontact
trigger3 = (stateno = [215,245]) && movecontact
trigger4 = (stateno = [400,499]) && movecontact

[State 红桃7]
type = ChangeState
value = 320
triggerall = command = "a"
triggerall = command = "holdfwd"
triggerall = statetype != A
triggerall = command != "holddown"
trigger1 = ctrl
trigger2 = (stateno = [200,205]) && movecontact
trigger3 = (stateno = [215,245]) && movecontact
trigger4 = (stateno = [400,499]) && movecontact

;===========================================================================
;---------------------------------------------------------------------------
;立轻拳
[State 立轻拳远]
type = ChangeState
value = 200
triggerall = command = "x"
triggerall = command != "蓄下方向"
triggerall = P2dist X > 45
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 205 && movecontact && time >= 5
trigger3 = stateno = 400 && movecontact && time >= 4

;---------------------------------------------------------------------------
;立轻拳-近
[State 立轻拳近]
type = ChangeState
value = 205
triggerall = command = "x"
triggerall = command != "蓄下方向"
triggerall = P2dist X <= 45
triggerall = statetype != A
trigger1 = ctrl || stateno = 100
trigger2 = stateno = 205 && movecontact && time >= 5
trigger3 = stateno = 400 && movecontact && time >= 4

;---------------------------------------------------------------------------
;立重拳-远
[State 立重拳远]
type = ChangeState
value = 210
triggerall = command = "y"
triggerall = command != "蓄下方向"
triggerall = P2dist X > 50
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact && time >= 5
trigger3 = stateno = 205 && movecontact && time >= 5
trigger4 = stateno = 230 && movecontact && time >= 5
trigger5 = stateno = 400 && movecontact && time >= 4

;---------------------------------------------------------------------------
;立重拳-近
[State 立重拳近]
type = ChangeState
value = 215
triggerall = command = "y"
triggerall = command != "蓄下方向"
triggerall = P2dist X <= 50
triggerall = statetype != A
trigger1 = ctrl || stateno = 100
trigger2 = stateno = 200 && movecontact && time >= 5
trigger3 = stateno = 205 && movecontact && time >= 5
trigger4 = stateno = 230 && movecontact && time >= 5
trigger5 = stateno = 400 && movecontact && time >= 4

;---------------------------------------------------------------------------
;立轻脚
[State 立轻脚]
type = ChangeState
value = 230
triggerall = command = "a"
triggerall = command != "蓄下方向"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 205 && movecontact && time >= 4
trigger3 = stateno = 400 && movecontact && time >= 4

;---------------------------------------------------------------------------
;立重脚-远
[State 立重脚远]
type = ChangeState
value = 240
triggerall = command = "b"
triggerall = command != "蓄下方向"
triggerall = P2dist X >60
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact && time >= 5
trigger3 = stateno = 205 && movecontact && time >= 5
trigger4 = stateno = 230 && movecontact && time >= 5
trigger5 = stateno = 400 && movecontact && time >= 4

;---------------------------------------------------------------------------
;立重脚-近
[State 立重脚近]
type = ChangeState
value = 245
triggerall = command = "b"
triggerall = command != "蓄下方向"
triggerall = P2dist X <= 60
triggerall = statetype != A
trigger1 = ctrl || stateno = 100
trigger2 = stateno = 200 && movecontact && time >= 5
trigger3 = stateno = 205 && movecontact && time >= 5
trigger4 = stateno = 230 && movecontact && time >= 5
trigger5 = stateno = 400 && movecontact && time >= 4

;---------------------------------------------------------------------------
;CD
[State CD]
type = ChangeState
value = 300
triggerall = command = "c"
triggerall = command != "蓄下方向"
triggerall = statetype != A
trigger1 = ctrl

;---------------------------------------------------------------------------
;刚CD
[state CD]
type=changestate
value  = 305
triggerall = command = "c"
triggerall = command != "蓄下方向"
triggerall = statetype != a
triggerall = power >= 1000
trigger1 = stateno = [140,155]

;---------------------------------------------------------------------------
;挑拨
[State 挑拨]
type = ChangeState
value = 195
triggerall = command = "start"
triggerall = statetype != A
trigger1 = ctrl

;---------------------------------------------------------------------------
;蹲轻拳
[State 蹲轻拳]
type = ChangeState
value = 400
triggerall = command = "x"
triggerall = command = "蓄下方向"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact && time >= 5
trigger3 = stateno = 205 && movecontact && time >= 5
trigger4 = stateno = 400 && movecontact && time >= 4
trigger5 = stateno = 430 && movecontact && time >= 4

;---------------------------------------------------------------------------
;蹲重拳
[State 蹲重拳]
type = ChangeState
value = 410
triggerall = command = "y"
triggerall = command = "蓄下方向"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact && time >= 5
trigger3 = stateno = 205 && movecontact && time >= 5
trigger4 = stateno = 400 && movecontact && time >= 4
trigger5 = stateno = 430 && movecontact && time >= 4

;---------------------------------------------------------------------------
;蹲轻脚
[State 蹲轻脚]
type = ChangeState
value = 430
triggerall = command = "a"
triggerall = command = "蓄下方向"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = stateno = 400 && movecontact && time >= 4
trigger3 = stateno = 430 && movecontact && time >= 4

;---------------------------------------------------------------------------
;蹲重脚
[State 蹲重脚]
type = ChangeState
value = 440
triggerall = command = "b"
triggerall = command = "蓄下方向"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact && time >= 5
trigger3 = stateno = 205 && movecontact && time >= 5
trigger4 = stateno = 400 && movecontact && time >= 4
trigger5 = stateno = 410 && movecontact && time >= 5
trigger6 = stateno = 430 && movecontact && time >= 4

;---------------------------------------------------------------------------
;跳轻拳
[State 跳轻拳]
type = ChangeState
value = 600
triggerall = command = "x"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600 && movecontact && time >= 5

;---------------------------------------------------------------------------
;跳重拳
[State 跳重拳]
type = ChangeState
value = 610
triggerall = command = "y"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600 && movecontact
trigger3 = stateno = 630 && movecontact

;---------------------------------------------------------------------------
;跳轻脚
[State 跳轻脚]
type = ChangeState
value = 630
triggerall = command = "a"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600 && movecontact

;---------------------------------------------------------------------------
;跳重脚
[State 跳重脚]
type = ChangeState
value = 640
triggerall = command = "b"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600 && movecontact
trigger3 = stateno = 630 && movecontact

;---------------------------------------------------------------------------
;跳CD
[State 跳CD]
type = NULL;ChangeState
value = 650
triggerall = command = "c"
trigger1 = statetype = A
trigger1 = ctrl
