;-| AI |------------------------------------------------------
[Command]
name = "CPU1"
command = U, D, F, U, D, F
time = 1

[Command]
name = "CPU2"
command = U, B, F, U, D, F
time = 1

[Command]
name = "CPU3"
command = U, D, D, U, D, F
time = 1

[Command]
name = "CPU4"
command = F, B, U, U, D, F, U, B, U, D, F
time = 1

[Command]
name = "CPU5"
command = U, F, U, B, U, D, F
time = 1

[Command]
name = "CPU6"
command = U, D, B, U, B, U, D, F
time = 1

[Command]
name = "CPU7"
command = F, F, B, U, B, U, D, F
time = 1

[Command]
name = "CPU8"
command = U, D, U, U, B, U, D, F
time = 1

[Command]
name = "CPU9"
command = F, B, B, U, B, U, D, F
time = 1

[Command]
name = "CPU10"
command = F, F, B, B, U, B, U, D, F
time = 1

[Command]
name = "CPU11"
command = U, U, F, U, B, U, D, F
time = 1

[Command]
name = "CPU12"
command = U, B, B, U, B, U, D, F
time = 1

[Command]
name = "CPU13"
command = U, B, F, F, U, B, U, D, F
time = 1

[Command]
name = "CPU14"
command = U, F, B, U, U, B, U, D, F
time = 1

[Command]
name = "CPU15"
command = U, B, F, U, U, B, U, D, F
time = 1

[Command]
name = "CPU16"
command = U, B, B, B, U, B, U, D, F
time = 1

[Command]
name = "CPU17"
command = U, D, B, F, U, B, U, D, F
time = 1

[Command]
name = "CPU18"
command = U, D, B, D, U, B, U, D, F
time = 1

[Command]
name = "CPU19"
command = U, D, F, U, U, B, U, D, F
time = 1

[Command]
name = "CPU20"
command = U, D, U, B, U, B, U, D, F
time = 1

[Command]
name = "CPU21"
command = U, D, F, F, U, B, U, D, F
time = 1

[Command]
name = "CPU22"
command = F, F, F, F, U, B, U, D, F
time = 1

[Command]
name = "CPU23"
command = U, U, U, D, U, B, U, D, F
time = 1

[Command]
name = "CPU24"
command = B, B, B, U, B, U, D, F
time = 1

[Command]
name = "CPU25"
command = D, D, D, D, U, B, U, D, F
time = 1

[Command]
name = "CPU26"
command = D, D, D, U, B, U, D, F
time = 1

[Command]
name = "CPU27"
command = F, F, F, U, B, U, D, F
time = 1

[Command]
name = "CPU28"
command = U, U, U, U, B, U, D, F
time = 1

[Command]
name = "CPU29"
command = U, U, B, B, U, B, U, D, F
time = 1

[Command]
name = "CPU30"
command = D, D, F, F, U, B, U, D, F
time = 1

[Command]
name = "CPU31"
command = U, D, F, U, D, U, B, U, D, F
time = 1

[Command]
name = "CPU32"
command = U, B, F, U, D, U, B, U, D, F
time = 1

[Command]
name = "CPU33"
command = U, D, D, U, D, U, B, U, D, F
time = 1

[Command]
name = "CPU34"
command = F, B, U, U, D, U, B, U, D, F
time = 1

[Command]
name = "CPU35"
command = U, F, U, B, U, D, U, B, U, D, F
time = 1

[Command]
name = "CPU36"
command = U, D, B, U, D, U, B, U, D, F
time = 1

[Command]
name = "CPU37"
command = F, F, B, U, D, U, B, U, D, F
time = 1

[Command]
name = "CPU38"
command = U, D, U, U, D, U, B, U, D, F
time = 1

[Command]
name = "CPU39"
command = F, B, B, U, D, U, B, U, D, F
time = 1

[Command]
name = "CPU40"
command = F, F, B, B, U, D, U, B, U, D, F
time = 1

[Command]
name = "CPU41"
command = U, U, F, U, D, U, B, U, D, F
time = 1

[Command]
name = "CPU42"
command = U, B, B, U, D, U, B, U, D, F
time = 1

[Command]
name = "CPU43"
command = U, B, F, F, U, D, U, B, U, D, F
time = 1

[Command]
name = "CPU44"
command = U, F, B, U, U, D, U, B, U, D, F
time = 1

[Command]
name = "CPU45"
command = U, B, F, U, U, D, U, B, U, D, F
time = 1

[Command]
name = "CPU46"
command = U, B, B, B, U, D, U, B, U, D, F
time = 1

[Command]
name = "CPU47"
command = U, D, B, F, U, D, U, B, U, D, F
time = 1

[Command]
name = "CPU48"
command = U, D, B, D, U, D, U, B, U, D, F
time = 1

[Command]
name = "CPU49"
command = U, D, F, U, U, D, U, B, U, D, F
time = 1

[Command]
name = "CPU50"
command = U, D, U, B, U, D, U, B, U, D, F
time = 1

[Command]
name = "CPU51"
command = U, D, F, U, D, F, D, U, B, U, D, U, B, U, D, F
time = 1

[Command]
name = "CPU52"
command = U, B, F, U, D, F, D, U, B, U, D, U, B, U, D, F
time = 1

[Command]
name = "CPU53"
command = U, D, D, U, D, F, D, U, B, U, D, U, B, U, D, F
time = 1

[Command]
name = "CPU54"
command = F, B, U, U, D, F, U, B, U, D, F, D, U, B, U, D, U, B, U, D, F
time = 1

[Command]
name = "CPU55"
command = U, F, U, B, U, D, F, D, U, B, U, D, U, B, U, D, F
time = 1

[Command]
name = "CPU56"
command = U, D, B, U, B, U, D, F, D, U, B, U, D, U, B, U, D, F
time = 1

[Command]
name = "CPU57"
command = F, F, B, U, B, U, D, F, D, U, B, U, D, U, B, U, D, F
time = 1

[Command]
name = "CPU58"
command = U, D, U, U, B, U, D, F, D, U, B, U, D, U, B, U, D, F
time = 1

[Command]
name = "CPU59"
command = F, B, B, U, B, U, D, F, D, U, B, U, D, U, B, U, D, F
time = 1
;-| 重新排列按键 |-----------------------------------------------------
; 这一段可以让玩家简单的重新排列攻击按键。格式是:
;  以前对应的键 = 修改后的键
; 如果不填写修改后的键，则以前对应的键将失效。
[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 = "王霸之星"
command = ~D, B, D ,B, c
time = 20

[Command]
name = "火箭"
command = ~D, F, D ,F, c
time = 20

[Command]
name = "华莱士豪华套餐"
command = D, B, D, B, x
time = 30

[Command]
name = "野狗脱缰"
command = D, F, D, F, x
time = 30

[Command]
name = "弹力球"
command = D, F, D, F, y
time = 30

[Command]
name = "炼丹炉"
command = D, B, D, B, b
time = 30

[Command]
name = "瞬狱杀"
command = D, F, D, B, y
time = 30

[Command]
name = "赛狗卡修"
command = ~D, B, D ,B, a
time = 20

[Command]
name = "阿尼"
command = ~D, F, D, F, a
time = 20

[Command]
name = "给你吗两拳"
command = D, B, D, B, y
time = 30


;-| 必杀技 |------------------------------------------------------
[Command]
name = "屁股搬运"
command = ~F, DF,BD, x

[Command]
name = "拜年"
command = ~D, DF, x

[Command]
name = "绷直投"
command = ~D, DF, b

[Command]
name = "脑袋搬运"
command = ~F, DF,BD, y

[Command]
name = "我超，有风"
command = ~D, DB, x

[Command]
name = "火舞有枪"
command = ~D, DF, y

[Command]
name = "转圈"
command = ~D, DB, y

[Command]
name = "阿尼尼阿"
command = ~D, DF, a

[Command]
name = "思古辣哭泥系的雅鲁"
command = ~D, DB, a

[Command]
name = "滑雪车"
command = ~F, DF,BD, b

[Command]
name = "腕电"
command = ~D, DB, b
;-| 按两次 |-----------------------------------------------------------
[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 = "下+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 = "蓄上方向"
command = /$F
time = 1

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

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

[Command]
name = "蓄下方向"
command = /$D
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 = "holda"
command = /$a
time = 1

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

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

[Command]
name = "holdb"
command = /$b
time = 1

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

[Statedef -1]

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


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


;===========================================================================
;这个控制器不触发招数。如果人物可以从普通技取消到必杀技，这个控制器会把var(1)设置成1。下面必杀技的控制器会用到这个变量。
;Since a lot of special moves rely on the same conditions, this reduces
;redundant logic.
[State -1, 变量清零]
type = VarSet
trigger1 = 1
var(1) = 0

[State -1, 检查可否取消]
type = VarSet
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;蹲重脚例外
trigger2 = movecontact
trigger3 = stateno = 1310 || stateno = 1330 ;格挡后
var(1) = 1
;---------------------------------------------------------------------------
[State -1, 王霸之星]
type = ChangeState
value = 3040
triggerall = var(59) = 0
triggerall = command = "王霸之星"
triggerall = power >= 3000
trigger1 = statetype = S
trigger1 = statetype != A
trigger1 = ctrl
;---------------------------------------------------------------------------
[State -1, 王霸之星]
type = ChangeState
value = 3100
triggerall = var(59) = 0
triggerall = command = "火箭"
triggerall = power >= 3000
trigger1 = statetype = S
trigger1 = statetype != A
trigger1 = ctrl
;---------------------------------------------------------------------------
[State -1,给你吗两拳]
type = ChangeState
value = 3090
triggerall = var(59) = 0
triggerall = command = "给你吗两拳"
triggerall = power >= 2000
trigger1 = statetype = S
trigger1 = statetype != A
trigger1 = ctrl
;---------------------------------------------------------------------------
[State -1, 炼丹炉]
type = ChangeState
value = 3070
triggerall = var(59) = 0
triggerall = command = "炼丹炉"
triggerall = power >= 2000
trigger1 = statetype = S
trigger1 = statetype != A
trigger1 = ctrl
;---------------------------------------------------------------------------
[State -1, 瞬狱杀]
type = ChangeState
value = 3060
triggerall = var(59) = 0
triggerall = command = "瞬狱杀"
triggerall = power >= 2000
trigger1 = statetype = S
trigger1 = statetype != A
trigger1 = ctrl
;---------------------------------------------------------------------------
[State -1, 弹力球]
type = ChangeState
value = 3030
triggerall = var(59) = 0
triggerall = command = "弹力球"
triggerall = power >= 2000
trigger1 = statetype = S
trigger1 = statetype != A
trigger1 = ctrl
;---------------------------------------------------------------------------
[State -1, 弹力球]
type = ChangeState
value = 3050
triggerall = var(59) = 0
triggerall = command = "赛狗卡修"
triggerall = power >= 1000
trigger1 = statetype = S
trigger1 = statetype != A
trigger1 = ctrl

;---------------------------------------------------------------------------
[State -1, 弹力球]
type = ChangeState
value = 3200
triggerall = var(59) = 0
triggerall = command = "阿尼"
triggerall = power >= 1000
trigger1 = statetype = S
trigger1 = statetype != A
trigger1 = ctrl
;---------------------------------------------------------------------------
[State -1, 喷射战士]
type = ChangeState
value = 3000
triggerall = var(59) = 0
triggerall = command = "华莱士豪华套餐"
triggerall = power >= 1000
trigger1 = statetype = S
trigger1 = statetype != A
trigger1 = ctrl
;---------------------------------------------------------------------------
[State -1, 野狗脱缰]
type = ChangeState
value = 3010
triggerall = var(59) = 0
triggerall = command = "野狗脱缰"
triggerall = power >= 1000
trigger1 = statetype = S
trigger1 = statetype != A
trigger1 = ctrl

;---------------------------------------------------------------------------
;投
[State -1, 投]
type = ChangeState
value = 800
Triggerall = var(59)= 0
Triggerall = Statetype !=A
triggerall = command = "绷直投"
trigger1 = ctrl
;---------------------------------------------------------------------------
;滑雪车
[State -1, 滑雪车]
type = ChangeState
value = 1200
Triggerall = var(59)= 0
Triggerall = Statetype !=A
triggerall = command = "滑雪车"
trigger1 = ctrl
;---------------------------------------------------------------------------
;腕电
[State -1, 腕电]
type = ChangeState
value = 1300
Triggerall = var(59)= 0
Triggerall = Statetype !=A
triggerall = command = "腕电"
trigger1 = ctrl

;---------------------------------------------------------------------------
;搬运
[State -1, 搬运]
type = ChangeState
value = 1400
Triggerall = var(59)= 0
Triggerall = Statetype !=A
triggerall = command = "脑袋搬运"
trigger1 = ctrl

;---------------------------------------------------------------------------
;拜年拳法
[State -1, 拜年]
type = ChangeState
value = 1030
Triggerall = var(59)= 0
Triggerall = Statetype !=A
triggerall = command = "拜年"
trigger1 = ctrl

;---------------------------------------------------------------------------
;搬运
[State -1, 搬运]
type = ChangeState
value = 1600
Triggerall = var(59)= 0
Triggerall = Statetype !=A
triggerall = command = "屁股搬运"
trigger1 = ctrl
;---------------------------------------------------------------------------
;四谷牧凯西的迥避哦
[State -1,小八]
type = ChangeState
value = 1020
triggerall = !numhelper(1020)
Triggerall = var(59)= 0
Triggerall = Statetype !=A
triggerall = command = "思古辣哭泥系的雅鲁"
trigger1 = ctrl
;---------------------------------------------------------------------------
;阿尼尼阿
[State -1,阿尼尼阿]
type = ChangeState
value = 1100
triggerall = !numhelper(1101)
Triggerall = var(59)= 0
Triggerall = Statetype !=A
triggerall = command = "阿尼尼阿"
trigger1 = ctrl
;---------------------------------------------------------------------------
;旋风
[State -1, 旋风]
type = ChangeState
value = 1010
triggerall = !numhelper(1010)
triggerall =  p2stateno != 1012
Triggerall = var(59)= 0
Triggerall = Statetype !=A
triggerall = command = "我超，有风"
trigger1 = ctrl
;---------------------------------------------------------------------------
;七步之内，还是枪快
[State -1, 爱你吗性感]
type = ChangeState
value = 1000
Triggerall = var(59)= 0
Triggerall = Statetype !=A
triggerall = command = "火舞有枪"
trigger1 = ctrl
;---------------------------------------------------------------------------
;七步之内，还是枪快
[State -1, 爱你吗性感]
type = ChangeState
value = 1500
Triggerall = var(59)= 0
Triggerall = Statetype !=A
triggerall = command = "转圈"
trigger1 = ctrl


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

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

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


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

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


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

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

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


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


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


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

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

;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
[State -1,叫人]
type = ChangeState
value = 1900
triggerall = var(59)= 0
triggerall = statetype = S
triggerall = var(59)=0
triggerall = ctrl = 1
trigger1 = command = "hold_a"
trigger1 = command = "hold_y"

;===========================================================================
;---------------------------------------------------------------------------
;前跑
[State -1, 前跑]
type = ChangeState
value = 100
triggerall = var(59)= 0
trigger1 = command = "前前"
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
;后跑
[State -1, 后跑]
type = ChangeState
value = 105
triggerall = var(59)= 0
trigger1 = command = "后后"
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
;功夫投
[State -1, 功夫投]
type = ChangeState
value = 800
triggerall = var(59)= 0
triggerall = command = "y"
triggerall = statetype = S
triggerall = ctrl
triggerall = stateno != 100
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 -1, T S]
type = ChangeState
value = 710
triggerall = var(59)= 0
triggerall = command = "z"
triggerall = command =  "holdback"
trigger1 = statetype = S
trigger1 = ctrl || (stateno = [100,101])
trigger2 = power >= 1000
trigger2 = stateno = [150,151]

;---------------------------------------------------------------------------
;前緊急回避
[State -1, T S]
type = ChangeState
value = 700
triggerall = var(59)= 0
triggerall = command = "z"
triggerall = command =  "holdfwd"
trigger1 = statetype = S
trigger1 = ctrl || (stateno = [100,101])
trigger2 = power >= 1000
trigger2 = stateno = [150,151]

;===========================================================================
;---------------------------------------------------------------------------
;立轻拳
[State -1, 立轻拳]
type = ChangeState
value = 200
triggerall = var(59)= 0
triggerall = command = "x"
triggerall = command != "蓄下方向"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 = time > 6

;---------------------------------------------------------------------------
;立重拳
[State -1, 立重拳]
type = ChangeState
value = 210
triggerall = var(59)= 0
triggerall = command = "y"
triggerall = command != "蓄下方向"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 200) && time > 5
trigger3 = (stateno = 230) && time > 6

;---------------------------------------------------------------------------
;立轻脚
[State -1, 立轻脚]
type = ChangeState
value = 230
triggerall = var(59)= 0
triggerall = command = "a"
triggerall = command != "蓄下方向"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 200) && time > 7
trigger3 = (stateno = 230) && time > 9

;---------------------------------------------------------------------------
;立重脚
[State -1, 立重脚]
type = ChangeState
value = 240
triggerall = var(59)= 0
triggerall = command = "b"
triggerall = command != "蓄下方向"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 200) && time > 5
trigger3 = (stateno = 230) && time > 6

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

;---------------------------------------------------------------------------
;蹲轻拳
[State -1, 蹲轻拳]
type = ChangeState
value = 400
triggerall = var(59)= 0
triggerall = command = "x"
triggerall = command = "蓄下方向"
trigger1 = statetype = C
trigger1 = ctrl

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

;---------------------------------------------------------------------------
;蹲轻脚
[State -1, 蹲轻脚]
type = ChangeState
value = 430
triggerall = var(59)= 0
triggerall = command = "a"
triggerall = command = "蓄下方向"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = (stateno = 400) || (stateno = 430)
trigger2 = (time > 9) || (movecontact && time > 5)

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

;---------------------------------------------------------------------------
;跳轻拳
[State -1, 跳轻拳]
type = ChangeState
value = 600
triggerall = var(59)= 0
triggerall = command = "x"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600
trigger2 = statetime >= 7
trigger3 = stateno = 1350 ;空中格挡后

;---------------------------------------------------------------------------
;跳重拳
[State -1, 跳重拳]
type = ChangeState
value = 610
triggerall = var(59)= 0
triggerall = command = "y"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600 || stateno = 630 ;跳轻拳或者跳轻脚后
trigger2 = movecontact
trigger3 = stateno = 1350 ;空中格挡后

;---------------------------------------------------------------------------
;跳轻脚
[State -1, 跳轻脚]
type = ChangeState
value = 630
triggerall = var(59)= 0
triggerall = command = "a"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 1350 ;空中格挡后

;---------------------------------------------------------------------------
;跳重脚
[State -1, 跳重脚]
type = ChangeState
value = 640
triggerall = var(59)= 0
triggerall = command = "b"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600 || stateno = 630 ;jump_x or jump_a
trigger2 = movecontact
trigger3 = stateno = 1350 ;空中格挡后
