; 汉化版功夫人的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 = 三连功夫掌"。
;为了方便玩家操作，指令接受时间不是默认的15，而是20。
;

[Command]
name = "毁灭风暴"
command = ~D, DF, F, D, DF, F, z
time = 30

[Command]
name = "毁灭风暴"
command = x+z
time = 30

[Command]
name = "MAX金色闪光"
command = ~D, DF, F, D, DF, F, b
time = 30

[Command]
name = "MAX金色闪光"
command = b+c
time = 30

[Command]
name = "金色闪光"
command = ~D, DF, F, D, DF, F, a
time = 30

[Command]
name = "金色闪光"
command = a+b
time = 30

[Command]
name = "MAX斗气风暴"
command = ~D, DF, F, D, DF, F, y
time = 30

[Command]
name = "MAX斗气风暴"
command = y+z
time = 30

[Command]
name = "斗气风暴"
command = ~D, DF, F, D, DF, F, x
time = 30

[Command]
name = "斗气风暴"
command = x+y
time = 30

[Command]
name = "八极天-暴足"
command = ~D, DF, F, D, DF, F, s
time = 30

[Command]
name = "八极天-暴足"
command = a+c
time = 30

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


[Command]
name = "制动-后"
command = ~D, B, c
time = 13

[Command]
name = "制动-前"
command = ~D, F, c
time = 13

[Command]
name = "锋意"
command = ~D, F, b
time = 13

[Command]
name = "胧车-重"
command = ~F, D, b
time = 11

[Command]
name = "胧车"
command = ~F, D, a
time = 11

[Command]
name = "升蹴轰击-重"
command = ~F, D, y
time = 11

[Command]
name = "升蹴轰击"
command = ~F, D, x
time = 11

[Command]
name = "破鞘"
command = ~D, F, a
time = 13

[Command]
name = "飞雷-破"
command = ~D, B, b
time = 13

[Command]
name = "碎颅踢-空"
command = ~D, B, b
time = 13

[Command]
name = "碎石踢-空"
command = ~D, B, a
time = 13

[Command]
name = "碎石踢"
command = ~D, B, a
time = 13

[Command]
name = "金色利刃-重"
command = ~D, B, y
time = 13

[Command]
name = "金色利刃"
command = ~D, B, x
time = 13

[Command]
name = "双重烈风拳-空"
command = ~D, B, y
time = 13

[Command]
name = "烈风拳-空"
command = ~D, B, x
time = 13

[Command]
name = "双重烈风拳"
command = ~D, F, y
time = 13

[Command]
name = "烈风拳"
command = ~D, F, x
time = 13

;-| 按两次 |-----------------------------------------------------------
[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 = "蓄血"
command = x+b
time = 1

[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 = "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 = "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 = "蓄上方向"
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]

;===========================================================================

;---------------------------------------------------------------------------
;毁灭风暴
[State 毁灭风暴]
type = ChangeState
value = 4000
triggerall = command = "毁灭风暴"
triggerall = statetype != A
triggerall = power >= 3000
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact  
trigger3 = stateno = 205 && movecontact  
trigger4 = stateno = 210 && movecontact  
trigger5 = stateno = 215 && movecontact 
trigger6 = stateno = 230 && movecontact  
trigger7 = stateno = 235 && movecontact
trigger8 = stateno = 240 && movecontact 
trigger9 = stateno = 245 && movecontact
trigger10 = stateno = 300 && movecontact
trigger11 = (stateno = [310,330]) && movecontact
trigger12 = (stateno = [400,499]) && movecontact
trigger13 = (stateno = [1001,1003])
trigger13 = time >= 8
trigger14 = stateno = 1050
trigger14 = time >= 35
trigger15 = stateno = 1100 && movecontact
trigger16 = stateno = 1101 && movecontact
trigger17 = (stateno = [1150,1199]) && movecontact
trigger18 = stateno = 1200 && movecontact
trigger19 = stateno = 1205
trigger20 = stateno = 1250 && movecontact
trigger21 = stateno = 1261 && movecontact
trigger22 = stateno = 1270
trigger22 = time >= 15
trigger23 = stateno = 1301 && movecontact
trigger24 = (stateno = [1061,1062])
trigger24 = time >= 15
trigger25 = stateno = 1600 && movecontact
trigger26 = stateno = 1610 && movecontact

;---------------------------------------------------------------------------
;MAX金色闪光
[State MAX金色闪光]
type = ChangeState
value = 3250
triggerall = command = "MAX金色闪光"
triggerall = statetype != A
triggerall = power >= 2000
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact  
trigger3 = stateno = 205 && movecontact  
trigger4 = stateno = 210 && movecontact  
trigger5 = stateno = 215 && movecontact 
trigger6 = stateno = 230 && movecontact  
trigger7 = stateno = 235 && movecontact
trigger8 = stateno = 240 && movecontact 
trigger9 = stateno = 245 && movecontact
trigger10 = stateno = 300 && movecontact
trigger11 = (stateno = [310,330]) && movecontact
trigger12 = (stateno = [400,499]) && movecontact
trigger13 = (stateno = [1001,1003])
trigger13 = time >= 8
trigger14 = stateno = 1050
trigger14 = time >= 35
trigger15 = stateno = 1100 && movecontact
trigger16 = stateno = 1101 && movecontact
trigger17 = (stateno = [1150,1199]) && movecontact
trigger18 = stateno = 1200 && movecontact
trigger19 = stateno = 1205
trigger20 = stateno = 1250 && movecontact
trigger21 = stateno = 1261 && movecontact
trigger22 = stateno = 1270
trigger22 = time >= 15
trigger23 = stateno = 1301 && movecontact
trigger24 = (stateno = [1061,1062])
trigger24 = time >= 15
trigger25 = stateno = 1600 && movecontact
trigger26 = stateno = 1610 && movecontact

;---------------------------------------------------------------------------
;金色闪光
[State 金色闪光]
type = ChangeState
value = 3200
triggerall = command = "金色闪光"
triggerall = statetype != A
triggerall = power >= 1000
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact  
trigger3 = stateno = 205 && movecontact  
trigger4 = stateno = 210 && movecontact  
trigger5 = stateno = 215 && movecontact 
trigger6 = stateno = 230 && movecontact  
trigger7 = stateno = 235 && movecontact
trigger8 = stateno = 240 && movecontact 
trigger9 = stateno = 245 && movecontact
trigger10 = stateno = 300 && movecontact
trigger11 = (stateno = [310,330]) && movecontact
trigger12 = (stateno = [400,499]) && movecontact
trigger13 = (stateno = [1001,1003])
trigger13 = time >= 8
trigger14 = stateno = 1050
trigger14 = time >= 35
trigger15 = stateno = 1100 && movecontact
trigger16 = stateno = 1101 && movecontact
trigger17 = (stateno = [1150,1199]) && movecontact
trigger18 = stateno = 1200 && movecontact
trigger19 = stateno = 1205
trigger20 = stateno = 1250 && movecontact
trigger21 = stateno = 1261 && movecontact
trigger22 = stateno = 1270
trigger22 = time >= 15
trigger23 = stateno = 1301 && movecontact
trigger24 = (stateno = [1061,1062])
trigger24 = time >= 15
trigger25 = stateno = 1600 && movecontact
trigger26 = stateno = 1610 && movecontact

;---------------------------------------------------------------------------
;MAX斗气风暴
[State MAX斗气风暴]
type = ChangeState
value = 3150
triggerall = command = "MAX斗气风暴"
triggerall = statetype != A
triggerall = power >= 2000
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact  
trigger3 = stateno = 205 && movecontact  
trigger4 = stateno = 210 && movecontact  
trigger5 = stateno = 215 && movecontact 
trigger6 = stateno = 230 && movecontact  
trigger7 = stateno = 235 && movecontact
trigger8 = stateno = 240 && movecontact 
trigger9 = stateno = 245 && movecontact
trigger10 = stateno = 300 && movecontact
trigger11 = (stateno = [310,330]) && movecontact
trigger12 = (stateno = [400,499]) && movecontact
trigger13 = (stateno = [1001,1003])
trigger13 = time >= 8
trigger14 = stateno = 1050
trigger14 = time >= 35
trigger15 = stateno = 1100 && movecontact
trigger16 = stateno = 1101 && movecontact
trigger17 = (stateno = [1150,1199]) && movecontact
trigger18 = stateno = 1200 && movecontact
trigger19 = stateno = 1205
trigger20 = stateno = 1250 && movecontact
trigger21 = stateno = 1261 && movecontact
trigger22 = stateno = 1270
trigger22 = time >= 15
trigger23 = stateno = 1301 && movecontact
trigger24 = (stateno = [1061,1062])
trigger24 = time >= 15
trigger25 = stateno = 1600 && movecontact
trigger26 = stateno = 1610 && movecontact

;---------------------------------------------------------------------------
;斗气风暴
[State 斗气风暴]
type = ChangeState
value = 3100
triggerall = command = "斗气风暴"
triggerall = statetype != A
triggerall = power >= 1000
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact  
trigger3 = stateno = 205 && movecontact  
trigger4 = stateno = 210 && movecontact  
trigger5 = stateno = 215 && movecontact 
trigger6 = stateno = 230 && movecontact  
trigger7 = stateno = 235 && movecontact
trigger8 = stateno = 240 && movecontact 
trigger9 = stateno = 245 && movecontact
trigger10 = stateno = 300 && movecontact
trigger11 = (stateno = [310,330]) && movecontact
trigger12 = (stateno = [400,499]) && movecontact
trigger13 = (stateno = [1001,1003])
trigger13 = time >= 8
trigger14 = stateno = 1050
trigger14 = time >= 35
trigger15 = stateno = 1100 && movecontact
trigger16 = stateno = 1101 && movecontact
trigger17 = (stateno = [1150,1199]) && movecontact
trigger18 = stateno = 1200 && movecontact
trigger19 = stateno = 1205
trigger20 = stateno = 1250 && movecontact
trigger21 = stateno = 1261 && movecontact
trigger22 = stateno = 1270
trigger22 = time >= 15
trigger23 = stateno = 1301 && movecontact
trigger24 = (stateno = [1061,1062])
trigger24 = time >= 15
trigger25 = stateno = 1600 && movecontact
trigger26 = stateno = 1610 && movecontact

;---------------------------------------------------------------------------
;八极天-暴足
[State 八极天-暴足]
type = ChangeState
value = 3000
triggerall = command = "八极天-暴足"
triggerall = statetype != A
triggerall = power >= 1000
triggerall = var(5) = 0
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact  
trigger3 = stateno = 205 && movecontact  
trigger4 = stateno = 210 && movecontact  
trigger5 = stateno = 215 && movecontact 
trigger6 = stateno = 230 && movecontact  
trigger7 = stateno = 235 && movecontact
trigger8 = stateno = 240 && movecontact 
trigger9 = stateno = 245 && movecontact
trigger10 = stateno = 300 && movecontact
trigger11 = (stateno = [310,330]) && movecontact
trigger12 = (stateno = [400,499]) && movecontact
trigger13 = (stateno = [1001,1003])
trigger13 = time >= 8
trigger14 = stateno = 1050
trigger14 = time >= 35
trigger15 = stateno = 1100 && movecontact
trigger16 = stateno = 1101 && movecontact
trigger17 = (stateno = [1150,1199]) && movecontact
trigger18 = stateno = 1200 && movecontact
trigger19 = stateno = 1205
trigger20 = stateno = 1250 && movecontact
trigger21 = stateno = 1261 && movecontact
trigger22 = stateno = 1270
trigger22 = time >= 15
trigger23 = stateno = 1301 && movecontact
trigger24 = stateno = 1600 && movecontact
trigger25 = stateno = 1610 && movecontact

;---------------------------------------------------------------------------
;制动-后
[State 制动-后]
type = ChangeState
value = 1710
triggerall = command = "制动-后"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 205 && movecontact
trigger3 = stateno = 215 && movecontact
trigger4 = stateno = 235 && movecontact
trigger5 = stateno = 245 && movecontact
trigger6 = (stateno = [400,439]) && movecontact
trigger7 = stateno = 300 && movecontact
trigger8 = (stateno = [310,330]) && movecontact
trigger9 = stateno = 1200 && movecontact
trigger9 = time >= 17
trigger10 = stateno = 1205
trigger11 = (stateno = [1001,1003]) && time >= 8
trigger11 = var(5) = 1
trigger12 = stateno = 1050 && time >= 35
trigger12 = var(5) = 1
trigger13 = stateno = 1250 && movecontact
trigger13 = time >= 19
trigger14 = (stateno = [1061,1062])
trigger14 = time >= 15
trigger15 = stateno = 1301 && movecontact
trigger16 = stateno = 1101 && movecontact
trigger16 = var(5) = 1
trigger17 = stateno = 1180 && movecontact
trigger17 = var(5) = 1

;---------------------------------------------------------------------------
;制动-前
[State 制动-前]
type = ChangeState
value = 1700
triggerall = command = "制动-前"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 205 && movecontact
trigger3 = stateno = 215 && movecontact
trigger4 = stateno = 235 && movecontact
trigger5 = stateno = 245 && movecontact
trigger6 = (stateno = [400,439]) && movecontact
trigger7 = stateno = 300 && movecontact
trigger8 = (stateno = [310,330]) && movecontact
trigger9 = stateno = 1200 && movecontact
trigger9 = time >= 17
trigger10 = stateno = 1205
trigger11 = (stateno = [1001,1003]) && time >= 8
trigger11 = var(5) = 1
trigger12 = stateno = 1050 && time >= 35
trigger12 = var(5) = 1
trigger13 = stateno = 1250 && movecontact
trigger13 = time >= 19
trigger14 = (stateno = [1061,1062])
trigger14 = time >= 15
trigger15 = stateno = 1301 && movecontact
trigger16 = stateno = 1101 && movecontact
trigger16 = var(5) = 1
trigger17 = stateno = 1180 && movecontact
trigger17 = var(5) = 1

;---------------------------------------------------------------------------
;锋意
[State 锋意]
type = ChangeState
value = 1600
triggerall = command = "锋意"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 205 && movecontact
trigger3 = stateno = 215 && movecontact
trigger4 = stateno = 235 && movecontact
trigger5 = stateno = 245 && movecontact
trigger6 = (stateno = [400,439]) && movecontact
trigger7 = stateno = 300 && movecontact
trigger8 = (stateno = [310,330]) && movecontact
trigger9 = stateno = 1200 && movecontact
trigger9 = time >= 17
trigger10 = stateno = 1205
trigger11 = (stateno = [1001,1003]) && time >= 8
trigger11 = var(5) = 1
trigger12 = stateno = 1050 && time >= 35
trigger12 = var(5) = 1
trigger13 = stateno = 1250 && movecontact
trigger13 = time >= 19
trigger14 = (stateno = [1061,1062])
trigger14 = time >= 15
trigger15 = stateno = 1301 && movecontact
trigger15 = time >= 12

;---------------------------------------------------------------------------
;胧车-重
[State 胧车-重]
type = ChangeState
value = 1550
triggerall = command = "胧车-重"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 205 && movecontact
trigger3 = stateno = 215 && movecontact
trigger4 = stateno = 235 && movecontact
trigger5 = stateno = 245 && movecontact
trigger6 = (stateno = [400,499]) && movecontact
trigger7 = stateno = 300 && movecontact
trigger8 = (stateno = [310,330]) && movecontact
trigger9 = stateno = 1200 && movecontact
trigger9 = time >= 17
trigger10 = stateno = 1205
trigger11 = (stateno = [1001,1003]) && time >= 8
trigger11 = var(5) = 1
trigger12 = stateno = 1050 && time >= 35
trigger12 = var(5) = 1
trigger13 = stateno = 1250 && movecontact
trigger13 = time >= 19
trigger14 = (stateno = [1061,1062])
trigger14 = time >= 15

;---------------------------------------------------------------------------
;胧车
[State 胧车]
type = ChangeState
value = 1500
triggerall = command = "胧车"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 205 && movecontact
trigger3 = stateno = 215 && movecontact
trigger4 = stateno = 235 && movecontact
trigger5 = stateno = 245 && movecontact
trigger6 = (stateno = [400,499]) && movecontact
trigger7 = stateno = 300 && movecontact
trigger8 = (stateno = [310,330]) && movecontact
trigger9 = stateno = 1200 && movecontact
trigger9 = time >= 17
trigger10 = stateno = 1205
trigger11 = (stateno = [1001,1003]) && time >= 8
trigger11 = var(5) = 1
trigger12 = stateno = 1050 && time >= 35
trigger12 = var(5) = 1
trigger13 = stateno = 1250 && movecontact
trigger13 = time >= 19
trigger14 = (stateno = [1061,1062])
trigger14 = time >= 15

;---------------------------------------------------------------------------
;升蹴轰击-重
[State 升蹴轰击-重]
type = ChangeState
value = 1450
triggerall = command = "升蹴轰击-重"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 205 && movecontact
trigger3 = stateno = 215 && movecontact
trigger4 = stateno = 235 && movecontact
trigger5 = stateno = 245 && movecontact
trigger6 = (stateno = [400,439]) && movecontact
trigger7 = stateno = 300 && movecontact
trigger8 = (stateno = [310,330]) && movecontact
trigger9 = stateno = 1200 && movecontact
trigger9 = time >= 17
trigger10 = stateno = 1205
trigger11 = stateno = 1301 && movecontact
trigger11 = time >= 12
trigger12 = (stateno = [1061,1062])
trigger12 = time >= 15

;---------------------------------------------------------------------------
;升蹴轰击
[State 升蹴轰击]
type = ChangeState
value = 1400
triggerall = command = "升蹴轰击"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 205 && movecontact
trigger3 = stateno = 215 && movecontact
trigger4 = stateno = 235 && movecontact
trigger5 = stateno = 245 && movecontact
trigger6 = (stateno = [400,439]) && movecontact
trigger7 = stateno = 300 && movecontact
trigger8 = (stateno = [310,330]) && movecontact
trigger9 = stateno = 1200 && movecontact
trigger9 = time >= 17
trigger10 = stateno = 1205
trigger11 = stateno = 1301 && movecontact
trigger11 = time >= 12
trigger12 = (stateno = [1061,1062])
trigger12 = time >= 15

;---------------------------------------------------------------------------
;破鞘
[State 破鞘]
type = ChangeState
value = 1300
triggerall = command = "破鞘"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 205 && movecontact
trigger3 = stateno = 215 && movecontact
trigger4 = stateno = 235 && movecontact
trigger5 = stateno = 245 && movecontact
trigger6 = (stateno = [400,499]) && movecontact
trigger7 = stateno = 300 && movecontact
trigger8 = (stateno = [310,330]) && movecontact
trigger9 = stateno = 1200 && movecontact
trigger9 = time >= 17
trigger10 = stateno = 1205
trigger11 = (stateno = [1001,1003]) && time >= 8
trigger11 = var(5) = 1
trigger12 = stateno = 1050 && time >= 35
trigger12 = var(5) = 1
trigger13 = stateno = 1250 && movecontact
trigger13 = time >= 19
trigger14 = (stateno = [1061,1062])
trigger14 = time >= 15

;---------------------------------------------------------------------------
;飞雷-破敌
[State 飞雷-破]
type = ChangeState
value = 1250
triggerall = command = "飞雷-破"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 205 && movecontact
trigger3 = stateno = 215 && movecontact
trigger4 = stateno = 235 && movecontact
trigger5 = stateno = 245 && movecontact
trigger6 = (stateno = [400,439]) && movecontact
trigger7 = stateno = 300 && movecontact
trigger8 = (stateno = [310,330]) && movecontact
trigger9 = stateno = 1200 && movecontact
trigger9 = time >= 17
trigger10 = stateno = 1205
trigger11 = stateno = 1301 && movecontact
trigger11 = time >= 12
trigger12 = (stateno = [1061,1062])
trigger12 = time >= 15

;---------------------------------------------------------------------------
;碎颅踢-空
[State 碎颅踢-空]
type = ChangeState
value = 1241;+var(5)*1
triggerall = command = "碎颅踢-空"
triggerall = statetype = A
trigger1 = ctrl
Trigger2 = StateNo = 110
trigger3 = (stateno = [600,649]) && movecontact

;---------------------------------------------------------------------------
;碎石踢-空
[State 碎石踢-空]
type = ChangeState
value = 1240;+var(5)*1
triggerall = command = "碎石踢-空"
triggerall = statetype = A
trigger1 = ctrl
Trigger2 = StateNo = 110
trigger3 = (stateno = [600,649]) && movecontact

;---------------------------------------------------------------------------
;碎石踢
[State 碎石踢]
type = ChangeState
value = 1200+var(5)*1
triggerall = command = "碎石踢"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 205 && movecontact
trigger3 = stateno = 215 && movecontact
trigger4 = stateno = 235 && movecontact
trigger5 = stateno = 245 && movecontact
trigger6 = (stateno = [400,499]) && movecontact
trigger7 = stateno = 300 && movecontact
trigger8 = (stateno = [310,330]) && movecontact
trigger9 = stateno = 1301 && movecontact
trigger9 = time >= 12
trigger10 = stateno = 1250 && movecontact
trigger10 = time >= 19
trigger11 = (stateno = [1001,1003]) && time >= 8
trigger11 = var(5) = 1
trigger12 = stateno = 1050 && time >= 35
trigger12 = var(5) = 1
trigger13 = (stateno = [1061,1062])
trigger13 = time >= 15

;---------------------------------------------------------------------------
;金色利刃-重
[State 金色利刃-重]
type = ChangeState
value = 1150+var(5)*1
triggerall = command = "金色利刃-重"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 205 && movecontact
trigger3 = stateno = 215 && movecontact
trigger4 = stateno = 235 && movecontact
trigger5 = stateno = 245 && movecontact
trigger6 = (stateno = [400,499]) && movecontact
trigger7 = stateno = 300 && movecontact
trigger8 = (stateno = [310,330]) && movecontact
trigger9 = (stateno = [1001,1003]) && time >= 8
trigger9 = var(5) = 1
trigger10 = stateno = 1050 && time >= 35
trigger10 = var(5) = 1
trigger11 = stateno = 1200 && movecontact
trigger11 = time >= 17
trigger12 = stateno = 1205
trigger13 = stateno = 1301 && movecontact
trigger13 = time >= 12
trigger14 = stateno = 1250 && movecontact
trigger14 = time >= 19
trigger15 = (stateno = [1061,1062])
trigger15 = time >= 15

;---------------------------------------------------------------------------
;金色利刃
[State 金色利刃]
type = ChangeState
value = 1100+var(5)*1
triggerall = command = "金色利刃"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 205 && movecontact
trigger3 = stateno = 215 && movecontact
trigger4 = stateno = 235 && movecontact
trigger5 = stateno = 245 && movecontact
trigger6 = (stateno = [400,499]) && movecontact
trigger7 = stateno = 300 && movecontact
trigger8 = (stateno = [310,330]) && movecontact
trigger9 = (stateno = [1001,1003]) && time >= 8
trigger9 = var(5) = 1
trigger10 = stateno = 1050 && time >= 35
trigger10 = var(5) = 1
trigger11 = stateno = 1200 && movecontact
trigger11 = time >= 17
trigger12 = stateno = 1205
trigger13 = stateno = 1301 && movecontact
trigger13 = time >= 12
trigger14 = stateno = 1250 && movecontact
trigger14 = time >= 19
trigger15 = (stateno = [1061,1062])
trigger15 = time >= 15

;---------------------------------------------------------------------------
;双重烈风拳-空
[State 双重烈风拳-空]
type = ChangeState
value = 1080
triggerall = command = "双重烈风拳-空"
triggerall = statetype = A
trigger1 = ctrl
Trigger2 = StateNo = 110
trigger3 = (stateno = [600,649]) && movecontact

;---------------------------------------------------------------------------
;烈风拳-空
[State 烈风拳-空]
type = ChangeState
value = 1060
triggerall = command = "烈风拳-空"
triggerall = statetype = A
trigger1 = ctrl
Trigger2 = StateNo = 110
trigger3 = (stateno = [600,649]) && movecontact

;---------------------------------------------------------------------------
;双重烈风拳
[State 双重烈风拳]
type = ChangeState
value = 1050
triggerall = command = "双重烈风拳"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 205 && movecontact
trigger3 = stateno = 215 && movecontact
trigger4 = stateno = 235 && movecontact
trigger5 = stateno = 245 && movecontact
trigger6 = (stateno = [400,499]) && movecontact
trigger7 = stateno = 300 && movecontact
trigger8 = (stateno = [310,330]) && movecontact
trigger9 = stateno = 1200 && movecontact
trigger9 = time >= 17
trigger10 = stateno = 1205
trigger11 = stateno = 1301 && movecontact
trigger11 = time >= 12
trigger12 = stateno = 1250 && movecontact
trigger12 = time >= 19
trigger13 = (stateno = [1061,1062])
trigger13 = time >= 15

;---------------------------------------------------------------------------
;烈风拳
[State 烈风拳]
type = ChangeState
value = 1000
triggerall = command = "烈风拳"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 205 && movecontact
trigger3 = stateno = 215 && movecontact
trigger4 = stateno = 235 && movecontact
trigger5 = stateno = 245 && movecontact
trigger6 = (stateno = [400,499]) && movecontact
trigger7 = stateno = 300 && movecontact
trigger8 = (stateno = [310,330]) && movecontact
trigger9 = stateno = 1200 && movecontact
trigger9 = time >= 17
trigger10 = stateno = 1205
trigger11 = stateno = 1301 && movecontact
trigger11 = time >= 12
trigger12 = stateno = 1250 && movecontact
trigger12 = time >= 19
trigger13 = (stateno = [1061,1062])
trigger13 = time >= 15
trigger14 = stateno = 1610 && movecontact  && time >= 17
trigger14 = var(5) = 1
trigger15 = stateno = 1101 && movecontact
trigger15 = var(5) = 1
trigger16 = stateno = 1180 && movecontact
trigger16 = var(5) = 1
trigger17 = stateno = 1261 && movecontact
trigger17 = time >= 22

;===========================================================================
;---------------------------------------------------------------------------
;前跑
[State -1, 前跑]
type = ChangeState
value = 100+var(5)*2
trigger1 = command = "前前"
trigger1 = statetype = S
trigger1 = ctrl

[State 空中冲刺]
type = ChangeState
value = 110
triggerall = var(5) = 1
trigger1 = command = "前前"
trigger1 = statetype = A
trigger1 = ctrl

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

[State 闪避-后]
Type = ChangeState
Value = 720
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 = 710
TriggerAll = Command = "a+b" 
TriggerAll = Command = "holdfwd" 
TriggerAll = RoundState = 2
TriggerAll = StateType != A
Trigger1 = Ctrl || (StateNo= [100,101])
Trigger2 = (StateNo = 150 || StateNo = 152) && Power >= 1000 

;---------------------------------------------------------------------------
;功夫投
[State -1, 功夫投]
type = ChangeState
value = 800
triggerall = command = "y"
triggerall = statetype = S
triggerall = ctrl
triggerall = stateno != [100,102]
trigger1 = command = "蓄上方向"
trigger1 = p2bodydist X < 3
trigger1 = (p2statetype = S) || (p2statetype = C)
trigger1 = p2movetype != H
trigger2 = command = "蓄后方向"
trigger2 = p2bodydist X < 5
trigger2 = (p2statetype = S) || (p2statetype = C)
trigger2 = p2movetype != H

;===========================================================================

;------------------------------------------------------------------------------
;特殊技—肘击
[State 特殊技—肘钉]
type = ChangeState
value = 310
triggerall = command = "x"
triggerall = command = "holdfwd"
triggerall = statetype != A
triggerall = command != "holddown"
trigger1 = ctrl
trigger2 = stateno = 205 && movecontact
trigger3 = stateno = 215 && movecontact
trigger4 = stateno = 235 && movecontact
trigger5 = stateno = 245 && movecontact
trigger6 = stateno = 400 && movecontact
trigger7 = stateno = 410 && movecontact
trigger8 = (stateno = [1061,1062])
trigger8 = time >= 15

;---------------------------------------------------------------------------
;立轻拳
[State 立轻拳远]
type = ChangeState
value = 200
triggerall = command = "x"
triggerall = command != "蓄下方向"
triggerall = P2dist X > 50
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 = time >= 6
trigger3 = (stateno = [1061,1062])
trigger3 = time >= 15

;---------------------------------------------------------------------------
;立轻拳-近
[State 立轻拳近]
type = ChangeState
value = 205
triggerall = !var(59)
triggerall = command = "x"
triggerall = command != "蓄下方向"
triggerall = P2dist X <= 50
triggerall = statetype = S
trigger1 = ctrl || stateno = 100
trigger2 = (stateno = [1061,1062])
trigger2 = time >= 15

;---------------------------------------------------------------------------
;立重拳-远
[State 立重拳远]
type = ChangeState
value = 210
triggerall = command = "y"
triggerall = command != "蓄下方向"
triggerall = P2dist X > 55
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = [1061,1062])
trigger2 = time >= 15

;---------------------------------------------------------------------------
;立重拳-近
[State 立重拳近]
type = ChangeState
value = 215
triggerall = !var(59)
triggerall = command = "y"
triggerall = command != "蓄下方向"
triggerall = P2dist X <= 55
triggerall = statetype = S
trigger1 = ctrl || stateno = 100
trigger2 = (stateno = [1061,1062])
trigger2 = time >= 15

;---------------------------------------------------------------------------
;立轻脚-远
[State 立轻脚远]
type = ChangeState
value = 230
triggerall = command = "a"
triggerall = command != "蓄下方向"
triggerall = P2dist X >50
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = [1061,1062])
trigger2 = time >= 15

;---------------------------------------------------------------------------
;立轻脚-近
[State 立轻脚近]
type = ChangeState
value = 235
triggerall = command = "a"
triggerall = command != "蓄下方向"
triggerall = P2dist X <=50
triggerall = statetype = S
trigger1 = ctrl || stateno = 100
trigger2 = (stateno = [1061,1062])
trigger2 = time >= 15

;---------------------------------------------------------------------------
;立重脚-远
[State 立重脚远]
type = ChangeState
value = 240
triggerall = command = "b"
triggerall = command != "蓄下方向"
triggerall = P2dist X >50
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = [1061,1062])
trigger2 = time >= 15

;---------------------------------------------------------------------------
;立重脚-近
[State 立重脚近]
type = ChangeState
value = 245
triggerall = command = "b"
triggerall = command != "蓄下方向"
triggerall = P2dist X <=50
triggerall = statetype = S
trigger1 = ctrl || stateno = 100
trigger2 = (stateno = [1061,1062])
trigger2 = time >= 15

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

;---------------------------------------------------------------------------
;CD
[State CD]
type = ChangeState
value = 300
triggerall = command = "c"
triggerall = command != "蓄下方向"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = [1061,1062])
trigger2 = time >= 15

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

;---------------------------------------------------------------------------
;蹲轻拳
[State 蹲轻拳]
type = ChangeState
value = 400
triggerall = command = "x"
triggerall = command = "蓄下方向"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = stateno = 430 && movecontact && time >= 4
trigger3 = stateno = 400 && movecontact && time >= 6
trigger4 = (stateno = [1061,1062])
trigger4 = time >= 15

;---------------------------------------------------------------------------
;蹲重拳
[State 蹲重拳]
type = ChangeState
value = 410
triggerall = command = "y"
triggerall = command = "蓄下方向"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = (stateno = 400) || (stateno = 430)
trigger2 = (time > 9) || (movecontact && time > 5)
trigger3 = (stateno = [1061,1062])
trigger3 = time >= 15

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

;---------------------------------------------------------------------------
;蹲重脚
[State 蹲重脚]
type = ChangeState
value = 440
triggerall = command = "b"
triggerall = command = "蓄下方向"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = (stateno = 400) || (stateno = 430)
trigger2 = (time > 9) || (movecontact && time > 5) 
trigger3 = (stateno = [1061,1062])
trigger3 = time >= 15

;---------------------------------------------------------------------------
;跳轻拳
[State -1, 跳轻拳]
type = ChangeState
value = 600
triggerall = command = "x"
trigger1 = statetype = A
trigger1 = ctrl
Trigger2 = StateNo = 110

;---------------------------------------------------------------------------
;跳重拳
[State -1, 跳重拳]
type = ChangeState
value = 610
triggerall = command = "y"
trigger1 = statetype = A
trigger1 = ctrl
Trigger2 = StateNo = 110
trigger3 = stateno = 640 && movecontact

;---------------------------------------------------------------------------
;跳轻脚
[State 跳轻脚]
type = ChangeState
value = 630
triggerall = command = "a"
trigger1 = statetype = A
trigger1 = ctrl
Trigger2 = StateNo = 110

;---------------------------------------------------------------------------
;跳重脚
[State 跳重脚]
type = ChangeState
value = 640
triggerall = command = "b"
trigger1 = statetype = A
trigger1 = ctrl
Trigger2 = StateNo = 110

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