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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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





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

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

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

[Command]
name = "holddown";Required (do not remove)
command = /$D
time = 1
;-| Hold Dir |--------------------------------------------------------------
[Command]
name = "holddf";Required (do not remove)
command = /$DF
time = 1
;-| Hold Dir |--------------------------------------------------------------
[Command]
name = "holddb";Required (do not remove)
command = /$DB
time = 1
;-| Hold Dir |--------------------------------------------------------------
[Command]
name = "holduf";Required (do not remove)
command = /$UF
time = 1
;-| Hold Dir |--------------------------------------------------------------
[Command]
name = "holdub";Required (do not remove)
command = /$UB
time = 1


[Command]
name = "FWD"
command = /F
time = 1

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

[Command]
name = "DB"
command = /DB
time = 1

[Command]
name = "DF"
command = /DF
time = 1







;-| 特殊方向按键 |-----------------------------------------------------------

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

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


[Command]
name = "HighJump"
command = D, $U
time = 18


[Command]
name = "jump"
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





;-|组合按键 Button Combination |-----------------------------------------------


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

[Command]
name = "recovery2"
command = /a+x
time = 1

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

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


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

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

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

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

;---------技能按键----------------------------------------



[Command]
name = "QCF_x"
command = ~D, F, x
time = 10

[Command]
name = "QCF_y"
command = ~D, F, y
time = 10


[Command]
name = "QCF_z"
command = ~D, F, z
time = 10

[Command]
name = "BCF_x"
command = ~B,D, F, x
time = 15

[Command]
name = "BCF_y"
command = ~B,D, F, y
time = 15


[Command]
name = "BCF_z"
command = ~B,D, F, z
time = 15




[Command]
name = "QCF_a"
command = ~D, F, a
time = 10


[Command]
name = "QCF_b"
command = ~D, F, b
time = 10

[Command]
name = "QCF_c"
command = ~D, F, c
time = 10


[Command]
name = "BCF_a"
command = ~B,D, F, a
time = 12


[Command]
name = "BCF_b"
command = ~B,D, F, b
time = 12

[Command]
name = "BCF_c"
command = ~B,D, F, c
time = 12



[Command]
name = "DB_x"
command = ~D, B, x
time = 10

[Command]
name = "DB_y"
command = ~D, B, y
time = 10

[Command]
name = "DB_z"
command = ~D, B, z
time = 10

[Command]
name = "DB_a"
command = ~D, B, a
time = 10

[Command]
name = "DB_b"
command = ~D, B, b
time = 10

[Command]
name = "DB_c"
command = ~D, B, c
time = 10




[Command]
name = "hold_x"
command = ~5$D,$U, x
time = 10


[Command]
name = "hold_y"
command = ~5$D,$U, y
time = 10

[Command]
name = "hold_z"
command = ~5$D,$U, z
time = 10


[Command]
name = "hold_a"
command = ~5$D,$U, a
time = 20


[Command]
name = "hold_b"
command = ~5$D,$U, b
time = 20


[Command]
name = "hold_c"
command = ~5$D,$U, c
time = 20



[Command]
name = "shengquan_a"
command = ~F, D, DF, a
time = 12

[Command]
name = "shengquan_b"
command = ~F, D, DF, b
time = 12

[Command]
name = "shengquan_c"
command = ~F, D, DF, c
time = 12

[Command]
name = "shengquan_x"
command = ~F, D, DF, x
time = 12

[Command]
name = "shengquan_y"
command = ~F, D, DF, y
time = 12

[Command]
name = "shengquan_z"
command = ~F, D, DF, z
time = 12




;-必杀--------------------------------------------------------

[Command]
name = "luanwu_x"
command = ~D, B, DB, D, DF, F, x
time = 25

[Command]
name = "luanwu_y"
command = ~D, B, DB, D, DF, F, y
time = 25


[Command]
name = "luanwu_z"
command = ~D, B, DB, D, DF, F, z
time = 25


[Command]
name = "luanwu_a"
command = ~D, B, DB, D, DF, F, a
time = 25


[Command]
name = "luanwu_b"
command = ~D, B, DB, D, DF, F, b
time = 25


[Command]
name = "luanwu_c"
command = ~D, B, DB, D, DF, F, c
time = 25


[Command]
name = "chao_x"
command = ~D,  F, D, DF, F, x
time = 20


[Command]
name = "chao_y"
command = ~D,  F, D, DF, F, y
time = 20



[Command]
name = "chao_z"
command = ~D,  F, D, DF, F, z
time = 20


[Command]
name = "DBDB_x"
command = ~D, B, D,DB, B, x
time = 25

[Command]
name = "DBDB_y"
command = ~D, B, D,DB, B, y
time = 25


[Command]
name = "DBDB_z"
command = ~D, B, D,DB, B, z
time = 25




[Command]
name = "DBDBa"
command = ~D,DB, B, D,DB, B, a
time = 25


[Command]
name = "DBDBb"
command = ~D,DB, B, D,DB, B, b
time = 25


[Command]
name = "DBDBc"
command = ~D,DB, B, D,DB, B, c
time = 25



;===================================================================
[Statedef -1]

[State -1, AI]
type = VarSet
triggerall = var(59) != 1
triggerall = RoundState = 2
trigger1  = command = "CPU1"
trigger2  = command = "CPU2"
trigger3  = command = "CPU3"
trigger4  = command = "CPU4"
trigger5  = command = "CPU5"
trigger6  = command = "CPU6"
trigger7  = command = "CPU7"
trigger8  = command = "CPU8"
trigger9  = command = "CPU9"
trigger10  = command = "CPU10"
trigger11  = command = "CPU11"
trigger12  = command = "CPU12"
trigger13  = command = "CPU13"
trigger14  = command = "CPU14"
trigger15  = command = "CPU15"
trigger16  = command = "CPU16"
trigger17  = command = "CPU17"
trigger18  = command = "CPU18"
trigger19  = command = "CPU19"
trigger20  = command = "CPU20"
trigger21  = command = "CPU21"
trigger22  = command = "CPU22"
trigger23  = command = "CPU23"
trigger24  = command = "CPU24"
trigger25  = command = "CPU25"
trigger26  = command = "CPU26"
trigger27  = command = "CPU27"
trigger28  = command = "CPU28"
trigger29  = command = "CPU29"
trigger30  = command = "CPU30"
trigger31  = command = "CPU31"
trigger32  = command = "CPU32"
trigger33  = command = "CPU33"
trigger34  = command = "CPU34"
trigger35  = command = "CPU35"
trigger36  = command = "CPU36"
trigger37  = command = "CPU37"
trigger38  = command = "CPU38"
trigger39  = command = "CPU39"
trigger40  = command = "CPU40"
trigger41  = command = "CPU41"
trigger42  = command = "CPU42"
trigger43  = command = "CPU43"
trigger44  = command = "CPU44"
trigger45  = command = "CPU45"
trigger46  = command = "CPU46"
trigger47  = command = "CPU47"
trigger48  = command = "CPU48"
trigger49  = command = "CPU49"
trigger50  = command = "CPU50"
var(59) = 1
;-------------------------------------------------------------

;AI
[State -1, AI]
type = VarSet
triggerall = var(59) != 0
trigger1 = RoundState != 2
var(59) = 0

;AI2
[State -1, AI]
type = VarSet
trigger1 = command  = "chargea"
trigger1 = command  = "chargeb"
trigger1 = command  = "chargec"
var(59) = Ifelse (var(59),0,1)




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

[State -1, 换模式]
type = null;ChangeState
value = 194
triggerall = VAR(59)
triggerall = !VAR(1)
triggerall = life < 700
triggerall = stateno !=  194
trigger1 = statetype != a
trigger1 = ctrl

;----------------------------
;防御
[state -1, 防御] ;
type = ChangeState
value = Ifelse (StateType != A && (enemynear, HitDefAttr = SA, AA, AT, AP), 130, ifelse (StateType = A, 132, 131))
triggerall = Var(59)= 1 && MoveType = I && enemynear,MoveType = A  && p2bodydist X < 270 && Ctrl && InGuardDist
trigger1 = Random = [150,300]

;---------------------------------------------------------------------------
;蹲防御
[state -1, 蹲防御] ;
type = ChangeState
triggerall = Var(59)= 1 && MoveType = I && enemynear,MoveType = A  && p2bodydist X < 270 && Ctrl && InGuardDist
triggerall = StateType = s && (enemynear, HitDefAttr = CA)
trigger1 = Random = [150,300]

value = 131

;---------------------------------------------------------------------------
;蹲防御
[state -1, 蹲防御] ;
type = ChangeState
triggerall = ctrl
triggerall = Var(59)= 1 && MoveType = I && enemynear,MoveType = A  && p2bodydist X < 270 && InGuardDist
triggerall = (enemynear, HitDefAttr = CA)
trigger1 = statetype != a
trigger1 = Random = [150,300]
trigger1 = Stateno = 130
trigger2 = StateType = c
trigger2 = Random = [150,300]
trigger2 = enemynear,MoveType = A
value = 131


;---------------------------------------------------------------------------
;蹲防御
[state -1, 转蹲] ;
type =  StateTypeSet
triggerall = Var(59)= 1 && MoveType = I && enemynear,MoveType = A  && p2bodydist X < 270 && InGuardDist
triggerall = statetype != a && (enemynear, HitDefAttr = CA)
trigger1 = Random = [150,300]
trigger1 = enemynear,MoveType = A
statetype = c
;---------------------------------------------------------------------------
;转蹲
[state -1, 转蹲] ;
type = StateTypeSet
triggerall = var(59)
triggerall = Stateno != 10
triggerall = statetype != a
trigger1 = p2bodydist X < 80
trigger1 = p2bodydist X >0
trigger1 = Random = [150,300]
trigger1 = enemynear,statetype != a
trigger1 = ctrl
statetype = c

;---------------------------------------------------------------------------
;转蹲
[state -1, 转蹲] ;
type = ChangeState
triggerall = var(59)
triggerall = Stateno = 11
triggerall = statetype = c
trigger1 = p2bodydist X < 80
trigger1 = p2bodydist X >0
trigger1 = Random = [150,300]
trigger1 = enemynear,statetype != a
value = 11




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

[state -1, 蹲防御] ;
type = ChangeState
triggerall = statetype = c
triggerall = Var(59)= 1 && MoveType = I && enemynear,MoveType = A  && p2bodydist X < 270 && InGuardDist
triggerall =  (enemynear, HitDefAttr = CA)
trigger1 = Random = [150,300]
trigger1 = Stateno = 130
trigger2 = Random = [150,300]
trigger2 = enemynear,MoveType = A
value = 131

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

[State -1, 技能防空]
type = ChangeState
value = ifelse(var(1),ifelse(random< 333,2000,(ifelse(random< 500,2600,(ifelse(random< 500,2800,1900))))),ifelse(random< 300,1300,ifelse(p2bodydist x <25 ,245,220)))
triggerall = !var(2)
triggerall = !VAR(12)
triggerall = !VAR(22)
triggerall = var(59)
triggerall = statetype != a
triggerall = stateno !=  2000
trigger1 = statetype != a && ctrl
trigger1 = p2bodydist x <= 120
trigger1 = p2movetype = A
trigger2 = 0;statetype != a && ctrl
trigger2 = 0;p2bodydist x <= 40
trigger2 = 0;random = [450,500]
trigger3 = (stateno = 103)&& time > 0; 1
trigger3 = p2movetype = A
trigger3 = p2bodydist x <= 50
trigger3 = random = [450,800]
trigger4 = var(23) = 1
trigger4 = statetype != a && ctrl
trigger5 = ctrl
trigger5 = statetype != a
trigger5 = p2bodydist x <= 70
trigger5 = enemynear,vel x > 5
trigger6 = PrevStateNo= 5210
trigger6 = enemyNEAR,statetype = A
trigger6 = p2bodydist x <= 60
trigger7 = PrevStateNo= 151||PrevStateNo= 152||PrevStateNo= 153
trigger7 = p2bodydist x <= 60
trigger8 = PrevStateNo= 6000||PrevStateNo= 6005||PrevStateNo= 6100||PrevStateNo= 6105
trigger8 = p2bodydist x <= 60


[State -1, 大招防空]
type = ChangeState
value = ifelse(var(1),ifelse(random< 500,3399,(ifelse(random< 500,3650,3600))),3200)
triggerall = var(2)
triggerall = var(59)
triggerall = !VAR(12)
triggerall = !VAR(22)
triggerall = statetype != a
triggerall = stateno !=  2000
trigger1 = statetype != a && ctrl
trigger1 = p2bodydist x <= 120
trigger1 = p2movetype = A
trigger2 = 0;statetype != a && ctrl
trigger2 = 0;p2bodydist x <= 40
trigger2 = 0;random = [450,500]
trigger3 = (stateno = 103)&& time > 0; 1
trigger3 = p2movetype = A
trigger3 = p2bodydist x <= 50
trigger3 = random = [450,800]
trigger4 = var(23) = 1
trigger4 = statetype != a && ctrl
trigger5 = ctrl
trigger5 = statetype != a
trigger5 = p2bodydist x <= 70
trigger5 = enemynear,vel x > 5
trigger6 = PrevStateNo= 5210
trigger6 = enemyNEAR,statetype = A
trigger6 = p2bodydist x <= 60
trigger7 = PrevStateNo= 151||PrevStateNo= 152||PrevStateNo= 153
trigger7 = p2bodydist x <= 60
trigger8 = PrevStateNo= 6000||PrevStateNo= 6005||PrevStateNo= 6100||PrevStateNo= 6105
trigger8 = p2bodydist x <= 60

;---------------------------------------------------------------------------
[State -1, 空对地]
type = ChangeState
value = 3300
triggerALL = !var(1)
triggerall = MoveType != H
triggerall = var(59)
triggerall = var(2)
triggerall = statetype = A
trigger1 = ctrl = 1
trigger1 = p2movetype = A
trigger1 = p2bodydist x <= 50
trigger2 = (time >3)&& (stateno !=[800,900])&&(stateno !=[3000,4000]) && (stateno !=[5000,5999])&&var(43)
trigger3 = (var(25)=0||var(25)=6)&& (stateno =[3000,4000]) && (var(10))&&!numhelper(8000)



;---------------------------------------------------------------------------
;Crouching Light Punch
;蹲轻拳
[State -1, 蹲轻拳]
type = ChangeState
value = 400
triggerall = enemyNEAR,statetype != L && enemyNEAR,stateno != 5120
triggerall = var(59)
triggerall = !VAR(12)
triggerall = !VAR(22)
triggerall = !var(24)
triggerall = statetype !=a
trigger1 = ctrl
trigger1 = p2bodydist x <= 45
trigger1 = enemyNEAR,statetype !=a
trigger2 = var(43)
trigger2 = time >3
trigger2 = stateno !=[800,900]
trigger2 = stateno !=[3000,4000]
trigger2 = stateno !=[5000,5999]
trigger2 = movecontact ||var(18)


;---------------------------------------------------------------------------
;Crouching Light Kick
;蹲轻踢
[State -1, 蹲轻踢]
type = ChangeState
value = 430
triggerall = enemynear,statetype != L && enemynear,stateno != 5120
triggerall = enemynear,stateno != 5060 && enemynear,stateno != 5061
triggerall = enemynear,stateno != 5080 && enemynear,stateno != 5090
triggerall = enemynear, statetype != a
triggerall = VAR(59)
triggerall = !VAR(12)
triggerall = !VAR(22)
triggerall = !var(24)
triggerall = statetype !=a
trigger1 = ctrl
trigger1 = p2bodydist x <= 40
trigger2 = var(43)
trigger2 = time >3
trigger2 = stateno !=[800,900]
trigger2 = stateno !=[3000,4000]
trigger2 = stateno !=[5000,5999]
trigger2 = movecontact ||var(18)
trigger3 = p2bodydist x <= 50
trigger3 = stateno =103

;---------------------------------------------------------------------------
;Crouching Strong Kick
;蹲重踢
[State -1, 蹲重踢]
type = ChangeState
value = 440
triggerall = !VAR(12)
triggerall = !VAR(22)
triggerall = !var(24)
triggerall = var(59)
triggerall = enemyNEAR,statetype != L && enemyNEAR,stateno != 5120
triggerall =  enemynear, statetype != a
triggerall = statetype !=a
triggerall = p2bodydist x <= 65
trigger1 = Random = [0,160]
trigger1 = ctrl
trigger2 = var(43)
trigger2 = time >3
trigger2 = stateno !=[800,900]
trigger2 = stateno !=[3000,4000]
trigger2 = stateno !=[5000,5999]
trigger2 = movecontact ||var(18)


;---------------------------------------------------------------------------
; song
[State -1, 尿尿]
type = ChangeState
value = 2200
triggerALL = var(1)
triggerall = MoveType != H
triggerall = numproj <= 1
triggerall = var(59)
triggerall = statetype = A
triggerall = p2movetype = A
trigger1 = ctrl = 1
trigger2 = (time >3)&& (stateno !=[800,900])&&(stateno !=[3000,4000]) && (stateno !=[5000,5999])&& (movecontact ||var(18) )&&var(43)

;---------------------------------------------------------------------------
;Jump Strong Kick

[State -1, 跳脚]
type = ChangeState
value = ifelse((random <500),635,(ifelse((random <500),645,640)))
triggerall = var(59)
triggerall = !var(24)
trigger1 = random = [0,200]
trigger1 = statetype = A
trigger1 = ctrl
trigger1 = p2bodydist x < 45
trigger2 = statetype = A
trigger2 = ctrl = 1
trigger2 = enemynear,movetype = A
trigger2 = random = [0,100]



;---------------------------------------------------------------------------
[State -1, 防御与格挡]
type = ChangeState
triggerall = var(59)
triggerall = var(25) = 2||var(25) = 6
triggerall = prevstateno!=[5001,5999]
triggerall = statetype != a
triggerall = stateno = 5000
triggerall = var(40)=0
triggerall = time  = 0
trigger1 = random < 125
trigger1 = !var(24)
value = 6000



;---------------------------------------------------------------------------
[State -1, 防御与格挡]
type = ChangeState
triggerall = var(59)
triggerall = prevstateno!=[5001,5999]
triggerall = var(25) = 5||var(25) = 6
triggerall = stateno = 5000
triggerall = statetype != a
triggerall = time  =0
triggerall = var(40)=0
trigger1 = random < 125
value = 6005

;---------------------------------------------------------------------------
[State -1, 防御与格挡]
type = ChangeState
triggerall = var(59)
triggerall = prevstateno!=[5001,5999]
triggerall = var(25) = 5||var(25) = 6
triggerall = stateno = 5000
triggerall = statetype = a
triggerall = time  =0
triggerall = var(40)=0
trigger1 = random < 125
value = 6205


;---------------------------------------------------------------------------
; Throw
[State -1, 投技]
type = ChangeState
value = 800
triggerall = command = "c"
triggerall = statetype != a
triggerall = ctrl
triggerall = stateno != 100
triggerall = stateno != 101
triggerall = stateno != 102
trigger1 = command = "holdfwd"
trigger1 = p2bodydist X < 10
trigger1 = (p2statetype != a) || (p2statetype = C)
trigger1 = p2movetype != H
trigger2 = command = "holdback"
trigger2 = p2bodydist X < 10
trigger2 = (p2statetype != a) || (p2statetype = C)
trigger2 = p2movetype != H




;---------------------------------------------------------------------------
; Throw
[State -1, 投技]
type = ChangeState
value = 830
triggerall = command = "z"
triggerall = statetype != a
triggerall = ctrl
triggerall = stateno != 101
trigger1 = command = "holdfwd"
trigger1 = p2bodydist X < 10
trigger1 = (p2statetype != a) || (p2statetype = C)
trigger1 = p2movetype != H
trigger2 = command = "holdback"
trigger2 = p2bodydist X < 10
trigger2 = (p2statetype != a) || (p2statetype = C)
trigger2 = p2movetype != H

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


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

;大花蝶扇          特殊技要放在     普通技之前   否则放不出

[State -1,大花蝶扇]
type = ChangeState
value = 3100
triggerall = var(1)= 0
triggerall = StateNo !=[800,900]
triggerALL = statetype != a
triggerALL = movetype!= h
triggerall = command != "luanwu_x"
triggerall = command = "chao_x" ||command = "chao_y"||command = "chao_z"
triggerall = !var(59)
triggerall = var(2)
trigger1 = ctrl
trigger2 = (stateno = 245) && time > 0; 0; 5
trigger3 = 0;(stateno = 200) && time > 0; 0; 0
trigger4 = (stateno = 210) && time > 0; 0; 5
trigger5 = (stateno = 240) && time > 0; 0; 5
trigger6 = (stateno = 410) && time > 0; 0; 5
trigger7 = (stateno = 215) && time > 0; 0; 5
trigger8 = (stateno = 205) && time > 0; 0; 5
trigger9 = (stateno = 405) && time > 0; 0; 0
trigger10 = (stateno = 235) && time > 0; 0; 5
trigger11 = (stateno = 400) && time > 0; 0; 5
trigger12 = (stateno = 430) && time > 0; 0; 5
trigger13 = (stateno = 440) && time > 0; 0; 5
trigger14 = (time >3)&& (stateno !=[800,900])&&(stateno !=[3000,4000]) && (stateno !=[5000,5999])&& (movecontact ||var(18) )&&var(43)
trigger15 = (time <25)&&(var(25)=2||var(25)=6) && power >2000 && (stateno !=[800,900])&&(stateno !=[3000,4000]) && (stateno !=[5000,5999])
trigger16 = (var(25)=0||var(25)=6)&& (stateno =[3000,4000])&&var(10)&&!numhelper(8000)




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

[State -1, 乱舞]
type = ChangeState
value = 3399
triggerall = var(1)
triggerall = !var(59)
triggerall = StateNo !=[800,900]
triggerall = command = "luanwu_a" ||command = "luanwu_b"||command = "luanwu_c"
triggerall = statetype != a
triggerall = var(2)
trigger1 = ctrl
trigger2 = (stateno = 245) && time > 0; 0; 5
trigger3 = 0;(stateno = 200) && time > 0; 0; 0
trigger4 = (stateno = 210) && time > 0; 0; 5
trigger5 = (stateno = 240) && time > 0; 0; 5
trigger6 = (stateno = 410) && time > 0; 0; 5
trigger7 = (stateno = 215) && time > 0; 0; 5
trigger8 = (stateno = 205) && time > 0; 0; 5
trigger9 = (stateno = 405) && time > 0; 0; 0
trigger10 = (stateno = 235) && time > 0; 0; 5
trigger11 = (stateno = 400) && time > 0; 0; 5
trigger12 = (stateno = 430) && time > 0; 0; 5
trigger13 = (stateno = 440) && time > 0; 0; 5
trigger14 = (time >3)&& (stateno !=[800,900])&&(stateno !=[3000,4000]) && (stateno !=[5000,5999])&& (movecontact ||var(18) )&&var(43)
trigger15 = (time <25)&&(var(25)=2||var(25)=6) && power >2000 && (stateno !=[800,900])&&(stateno !=[3000,4000]) && (stateno !=[5000,5999])
trigger16 = (var(25)=0||var(25)=6)&& (stateno =[3000,4000])&&var(10) &&!numhelper(8000)

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

[State -1, 必杀忍蜂]
type = ChangeState
value = 3200
triggerall = !var(1)
triggerall = !var(59)
triggerall = StateNo !=[800,900]
triggerall = command = "luanwu_a" ||command = "luanwu_b"||command = "luanwu_c"
triggerall = statetype != a
triggerall = var(2)
trigger1 = ctrl
trigger2 = (stateno = 245) && time > 0; 0; 5
trigger3 = 0;(stateno = 200) && time > 0; 0; 0
trigger4 = (stateno = 210) && time > 0; 0; 5
trigger5 = (stateno = 240) && time > 0; 0; 5
trigger6 = (stateno = 410) && time > 0; 0; 5
trigger7 = (stateno = 215) && time > 0; 0; 5
trigger8 = (stateno = 205) && time > 0; 0; 5
trigger9 = (stateno = 405) && time > 0; 0; 0
trigger10 = (stateno = 235) && time > 0; 0; 5
trigger11 = (stateno = 400) && time > 0; 0; 5
trigger12 = (stateno = 430) && time > 0; 0; 5
trigger13 = (stateno = 440) && time > 0; 0; 5
trigger14 = (time >3)&& (stateno !=[800,900])&&(stateno !=[3000,4000]) && (stateno !=[5000,5999])&& (movecontact ||var(18) )&&var(43)
trigger15 = (time <25)&&(var(25)=2||var(25)=6) && power >2000 && (stateno !=[800,900])&&(stateno !=[3000,4000]) && (stateno !=[5000,5999])
trigger16 = (var(25)=0||var(25)=6)&& (stateno =[3000,4000])&&var(10) &&!numhelper(8000)

;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
[State -1, 必杀飞鼠]
type = ChangeState
value = 3300
triggerALL = !var(1)
triggerall = MoveType != H
triggerall = !var(59)
triggerall = var(2)
triggerall = command = "DBDB_x" || command ="DBDB_y"|| command ="DBDB_z"
triggerall = statetype = A
trigger1 = ctrl = 1
trigger2 = (time >3)&& (stateno !=[800,900])&&(stateno !=[3000,4000]) && (stateno !=[5000,5999])&&var(43)
trigger3 = (var(25)=0||var(25)=6)&& (stateno =[3000,4000]) && (var(10))&&!numhelper(8000)


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




[State -1,里百八式·大蛇雉]
type = ChangeState
value = 3600
triggerall = var(1)
triggerall = StateNo !=[800,900]
triggerALL = movetype!= h
triggerall = statetype != a
triggerall = !var(59)
triggerall = command = "luanwu_x"||command ="luanwu_y" || command ="luanwu_z"
triggerall = var(2)
trigger1 = ctrl
trigger2 = (stateno = 245) && time > 0; 0; 5
trigger3 = 0;(stateno = 200) && time > 0; 0; 0
trigger4 = (stateno = 210) && time > 0; 0; 5
trigger5 = (stateno = 240) && time > 0; 0; 5
trigger6 = (stateno = 410) && time > 0; 0; 5
trigger7 = (stateno = 215) && time > 0; 0; 5
trigger8 = (stateno = 205) && time > 0; 0; 5
trigger9 = (stateno = 405) && time > 0; 0; 0
trigger10 = (stateno = 235) && time > 0; 0; 5
trigger11 = (stateno = 400) && time > 0; 0; 5
trigger12 = (stateno = 430) && time > 0; 0; 5
trigger13 = (stateno = 440) && time > 0; 0; 5
trigger14 = (time >3)&& (stateno !=[800,900])&&(stateno !=[3000,4000]) && (stateno !=[5000,5999])&& (movecontact ||var(18) )&&var(43)
trigger15 = (time <25)&&(var(25)=2||var(25)=6) && power >2000 && (stateno !=[800,900])&&(stateno !=[3000,4000]) && (stateno !=[5000,5999])
trigger16 = (var(25)=0||var(25)=6)&& (stateno =[3000,4000])&&var(10) &&!numhelper(8000)


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




[State -1,三神技.无式]
type = ChangeState
value = 3650
triggerall = var(1)
triggerall = StateNo !=[800,900]
triggerALL = movetype!= h
triggerall = !var(59)
triggerall = statetype != a
triggerall = command = "chao_x" ||command = "chao_y"||command = "chao_z"
triggerall = var(2)
trigger1 = ctrl
trigger2 = (stateno = 245) && time > 0; 0; 5
trigger3 = 0;(stateno = 200) && time > 0; 0; 0
trigger4 = (stateno = 210) && time > 0; 0; 5
trigger5 = (stateno = 240) && time > 0; 0; 5
trigger6 = (stateno = 410) && time > 0; 0; 5
trigger7 = (stateno = 215) && time > 0; 0; 5
trigger8 = (stateno = 205) && time > 0; 0; 5
trigger9 = (stateno = 405) && time > 0; 0; 0
trigger10 = (stateno = 235) && time > 0; 0; 5
trigger11 = (stateno = 400) && time > 0; 0; 5
trigger12 = (stateno = 430) && time > 0; 0; 5
trigger13 = (stateno = 440) && time > 0; 0; 5
trigger14 = (time >3)&& (stateno !=[800,900])&&(stateno !=[3000,4000]) && (stateno !=[5000,5999])&& (movecontact ||var(18) )&&var(43)
trigger15 = (time <25)&&(var(25)=2||var(25)=6) && power >2000 && (stateno !=[800,900])&&(stateno !=[3000,4000]) && (stateno !=[5000,5999])
trigger16 = (var(25)=0||var(25)=6)&& (stateno =[3000,4000])&&var(10)&&!numhelper(8000)






;---------------------------------------------------------------------------
;
;剪刀脚
[State -1, 剪刀脚]
type = ChangeState
value = 2000
triggerall = var(1)
triggerall = !var(59)
triggerall = command = "shengquan_a"||command = "shengquan_b" ||command = "shengquan_c"
triggerall = statetype != a
trigger1 =  ctrl
trigger2 = (stateno = 245) && time > 0; 0
trigger3 = 0;(stateno = 200) && time > 0; 0
trigger4 = (stateno = 210) && time > 0; 0
trigger5 = (stateno = 240) && time > 0; 0
trigger6 = (stateno = 410) && time > 0; 0
trigger7 = (stateno = 215) && time > 0; 0
trigger8 = (stateno = 205) && time > 0; 0
trigger9 = 0;(stateno = 230) && time > 0; 0
trigger10 = (stateno = 235) && time > 0; 0
trigger11 = (stateno = 400) && time > 0; 0
trigger12 = (stateno = 430) && time > 0; 0
trigger13 = (stateno = 440) && time > 0; 0
trigger14 = (time >3)&& (stateno !=[800,900])&&(stateno !=[3000,4000]) && (stateno !=[5000,5999])&& (movecontact ||var(18) )&&var(43)
trigger15 = (var(25)=0||var(25)=6)&& (stateno =[3000,4000]) && (var(10))&&!numhelper(8000)


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


 [State -1, 金家脚]
type = ChangeState
value = 2300
triggerall = var(1)
triggerall = !var(59)
triggerALL = stateno != 2301
triggerall = command = "DB_a"|| command = "DB_b"|| command = "DB_c"
triggerall = statetype != a
trigger1 =  ctrl
trigger2 = (stateno = 245) && time > 0; 0
trigger3 =0; (stateno = 200) && time > 0; 0
trigger4 = (stateno = 210) && time > 0; 0
trigger5 = (stateno = 240) && time > 0; 0
trigger6 = (stateno = 410) && time > 0; 0
trigger7 = (stateno = 215) && time > 0; 0
trigger8 = (stateno = 205) && time > 0; 0
trigger9 = (stateno = 405) && time > 0; 0
trigger10 = (stateno = 235) && time > 0; 0
trigger11 = (stateno = 400) && time > 0; 0
trigger12 = (stateno = 430) && time > 0; 0
trigger13 = (stateno = 440) && time > 0; 0
trigger14 = (stateno = 1400) && time > 0; 0
trigger15 = (stateno = 1450) && time > 0; 0
trigger16 = (time >3)&& (stateno !=[800,900])&&(stateno !=[3000,4000]) && (stateno !=[5000,5999])&&var(43)
trigger17 = (var(25)=0||var(25)=6)&& (stateno =[3000,4000]) && (var(10))&&!numhelper(8000)

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



;---------------------------------------------------------------------------
;花蝶扇          特殊技要放在     普通技之前   否则放不出
[State -1,花蝶扇]
type = ChangeState
value = 1000
triggerall =!var(1)
triggerall = numproj = 0
triggerall = !var(59)
triggerall = command = "QCF_x" ||command = "QCF_y"||command = "QCF_z"
triggerall = statetype != a
trigger1 = ctrl = 1
trigger2 = 0;(stateno = 200) && time > 0; 5 && movecontact
trigger3 = (stateno = 205) && time > 0; 5 && movecontact
trigger4 = (stateno = 210) && time > 0; 5 && movecontact
trigger5 = (stateno = 215) && time > 0; 5 && movecontact
trigger6 = (stateno = 405) && time > 0; 5 && movecontact
trigger7 = (stateno = 235) && time > 0; 5  && movecontact
trigger8 = (stateno = 240) && time > 0; 5 && movecontact
trigger9 = (stateno = 245) && time > 0; 5  && movecontact
trigger10 = (stateno = 400) && time > 0; 5 && movecontact
trigger11 = (stateno = 410) && time > 0; 5 && movecontact
trigger12 = (stateno = 430) && time > 0; 5 && movecontact
trigger13 = (stateno = 440) && time > 0; 5 && movecontact
trigger14 = (time >3)&& (stateno !=[800,900])&&(stateno !=[3000,4000]) && (stateno !=[5000,5999])&&var(43)
trigger15 = (var(25)=0||var(25)=6)&& (stateno =[3000,4000]) && (var(10))&&!numhelper(8000)

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

[State -1,地烧]
type = ChangeState
value = 1007
triggerall = var(1)
triggerall = !var(59)
triggerall = numproj = 0
triggerall = command = "QCF_x" ||command = "QCF_y"||command = "QCF_z"
triggerall = command !="shengquan_x"
triggerall = command !="shengquan_y"
triggerall = command !="shengquan_z"
triggerall = command !="BCF_x"
triggerall = command !="BCF_y"
triggerall = command !="BCF_z"
triggerall = statetype != a
trigger1 = ctrl = 1
trigger2 = 0;(stateno = 200) && time > 0; 5 && movecontact
trigger3 = (stateno = 205) && time > 0; 5 && movecontact
trigger4 = (stateno = 210) && time > 0; 5  && movecontact
trigger5 = (stateno = 215) && time > 0; 5  && movecontact
trigger6 = (stateno = 405) && time > 0; 5 && movecontact
trigger7 = (stateno = 235) && time > 0; 5 && movecontact
trigger8 = (stateno = 240) && time > 0; 5 && movecontact
trigger9 = (stateno = 245) && time > 0; 5 && movecontact
trigger10 = (stateno = 400) && time > 0; 5 && movecontact
trigger11 = (stateno = 410) && time > 0; 5 && movecontact
trigger12 = (stateno = 430) && time > 0; 4 && movecontact
trigger13 = (stateno = 440) && time > 0; 5 && movecontact
trigger14 = (time >3)&& (stateno !=[800,900])&&(stateno !=[3000,4000]) && (stateno !=[5000,5999])&&var(43)
trigger15 = (var(25)=0||var(25)=6)&& (stateno =[3000,4000]) && (var(10))&&!numhelper(8000)
;---------------------------------------------------------------------------
[State -1,冲击波]
type = ChangeState
value = 1006
triggerall = var(1)
triggerall = numproj = 0
triggerall = !var(59)
triggerall = command = "BCF_x" ||command = "BCF_y"||command = "BCF_z"
triggerall = command !="shengquan_x"
triggerall = command !="shengquan_y"
triggerall = command !="shengquan_z"
triggerall = statetype != a
trigger1 = ctrl = 1
trigger2 = 0;(stateno = 200) && time > 0; 5 && movecontact
trigger3 = (stateno = 205) && time > 0; 5 && movecontact
trigger4 = (stateno = 210) && time > 0; 5  && movecontact
trigger5 = (stateno = 215) && time > 0; 5  && movecontact
trigger6 = (stateno = 405) && time > 0; 5 && movecontact
trigger7 = (stateno = 235) && time > 0; 5 && movecontact
trigger8 = (stateno = 240) && time > 0; 5 && movecontact
trigger9 = (stateno = 245) && time > 0; 5 && movecontact
trigger10 = (stateno = 400) && time > 0; 5 && movecontact
trigger11 = (stateno = 410) && time > 0; 5 && movecontact
trigger12 = (stateno = 430) && time > 0; 4 && movecontact
trigger13 = (stateno = 440) && time > 0; 5 && movecontact
trigger14 = (time >3)&& (stateno !=[800,900])&&(stateno !=[3000,4000]) && (stateno !=[5000,5999])&&var(43)
trigger15 = (var(25)=0||var(25)=6)&& (stateno =[3000,4000]) && (var(10))&&!numhelper(8000)
;---------------------------------------------------------------------------

;------------------------------------------------------
[State -1, 鬼烧]
type = ChangeState
value = ifelse (random < 500,1006,1007)
triggerall = var(1)
triggerall = numproj = 0
triggerALL = statetype != a
triggerall = stateno!= 1000
triggerall = var(59)
triggerall = !var(24)
triggerall = !var(12)
triggerall = !var(22)
;triggerall = random = [300,500]
trigger1 = statetype != A && ctrl
trigger1 = P2BodyDist X >= 200
trigger2 = StateNo = 210 && time > 0; 0; 8
trigger2 = movecontact
trigger3 = StateNo = 245 && time > 0; 0; 8
trigger3 = movecontact
trigger4 = StateNo = 240 && time > 0; 0; 8
trigger4 = movecontact
trigger5 = StateNo = 410 && time > 0; 0; 8
trigger5 = movecontact
trigger6 = StateNo = 440 && time > 0; 0; 8
trigger6 = movecontact
trigger7 = (stateno = 215) && time > 0; 0; 5
trigger7 = movecontact
trigger8 = enemynear,numproj >= 1
trigger8 = ctrl
trigger8 = P2BodyDist X > 150
trigger9 = StateNo = 405 && time > 0; 0; 8
trigger9 = movecontact


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

[State -1, 鬼烧]
type = ChangeState
value = 2600
triggerall = var(1)
triggerall = !var(59)
triggerall = command = "shengquan_x"||command = "shengquan_y" ||command = "shengquan_z"
triggerall = statetype != a
trigger1 = ctrl
trigger2 = (stateno = 245) && time > 0; 0; 5
trigger3 = 0;(stateno = 200) && time > 0; 0; 0
trigger4 = (stateno = 210) && time > 0; 0; 5
trigger5 = (stateno = 240) && time > 0; 0; 5
trigger6 = (stateno = 410) && time > 0; 0; 5
trigger7 = (stateno = 215) && time > 0; 0; 5
trigger8 = (stateno = 205) && time > 0; 0; 5
trigger9 = (stateno = 405) && time > 0; 0; 0
trigger10 = (stateno = 235) && time > 0; 0; 5
trigger11 = (stateno = 400) && time > 0; 0; 5
trigger12 = (stateno = 430) && time > 0; 0; 5
trigger13 = (stateno = 440) && time > 0; 0; 5
trigger14 = (time >3)&& (stateno !=[800,900])&&(stateno !=[3000,4000]) && (stateno !=[5000,5999])&&var(43)
trigger15 = (var(25)=0||var(25)=6)&& (stateno =[3000,4000]) && (var(10))&&!numhelper(8000)

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

;龙炎舞
[State -1,龙炎舞]
type = ChangeState
value = 1100
triggerall = !var(59)
triggerall = command = "DB_x"|| command = "DB_y"||command = "DB_z"
triggerall = statetype != a
trigger1 =  !var(1)&&ctrl
trigger2 = !var(1)&&(stateno = 245) && time > 3; 0; 0 ; 1
trigger3 = !var(1)&&(stateno = 405) && time > 3; 0; 0 ; 1
trigger4 = !var(1)&&(stateno = 210) && time > 3; 0; 0 ; 1
trigger5 = !var(1)&&(stateno = 240) && time > 3; 0; 0 ; 1
trigger6 = !var(1)&&(stateno = 410) && time > 3; 0; 0 ; 1
trigger7 = !var(1)&&(stateno = 215) && time > 3; 0; 0 ; 1
trigger8 = !var(1)&&(stateno = 205) && time > 3; 0; 0 ; 1
trigger9 = !var(1)&&(stateno = 230) && time > 3; 0; 0 ; 1
trigger10 = !var(1)&&(stateno = 235) && time > 3; 0; 0 ; 1
trigger11 = !var(1)&&(stateno = 400) && time > 3; 0; 0 ; 1
trigger12 = !var(1)&&(stateno = 430) && time > 3; 0; 0 ; 1
trigger13 = !var(1)&&(stateno = 440) && time > 3; 0; 0 ; 1
trigger14 = movecontact
trigger14 = (stateno = 1400) && time > 3; 0; 0 ; 12
trigger15 = movecontact
trigger15 = (stateno = 1450) && time > 3; 0; 0 ; 12
trigger16 = (time >3)&& (stateno !=[800,900])&&(stateno !=[3000,4000]) && (stateno !=[5000,5999])&&var(43)
trigger17 = (var(25)=0||var(25)=6)&& (stateno =[3000,4000]) && (var(10))&&!numhelper(8000)



;---------------------------------------------------------------------
;飞鼠之舞
[State -1,飞鼠之舞]
type = ChangeState
value = 1200
triggerall = !var(59)
triggerall = !(command = "DBDB_x" || command ="DBDB_y"|| command ="DBDB_z")
triggerall = command = "DB_x"||command = "DB_y"||command = "DB_z"
triggerall = StateType = A
trigger1 = Ctrl = 1
trigger2 = (time >3)&& (stateno !=[800,900])&&(stateno !=[3000,4000]) && (stateno !=[5000,5999])&&var(43)
trigger3 = (var(25)=0||var(25)=6)&& (stateno =[3000,4000]) && (var(10))&&!numhelper(8000)


;－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－
;后飞
[State -1,后飞]
type = ChangeState
value = 1250
triggerall = Command = "hold_x"||Command = "hold_y"||Command = "hold_z"
triggerall = StateType != A
trigger1 = StateNo = 40
trigger2 = 0;(stateno = 200) && time > 0; 5 && movecontact
trigger3 = (stateno = 205) && time > 0; 5 && movecontact
trigger4 = (stateno = 210) && time > 0; 5 && movecontact
trigger5 = (stateno = 215) && time > 0; 5 && movecontact
trigger6 = (stateno = 405) && time > 0; 5 && movecontact
trigger7 = (stateno = 235) && time > 0; 5  && movecontact
trigger8 = (stateno = 240) && time > 0; 5 && movecontact
trigger9 = (stateno = 245) && time > 0; 5  && movecontact
trigger10 = (stateno = 400) && time > 0; 5 && movecontact
trigger11 = (stateno = 410) && time > 0; 5 && movecontact
trigger12 = (stateno = 430) && time > 0; 5 && movecontact
trigger13 = (stateno = 440) && time > 0; 5 && movecontact
trigger14 = (time >3)&& (stateno !=[800,900])&&(stateno !=[3000,4000]) && (stateno !=[5000,5999])&&var(43)
trigger15 = (var(25)=0||var(25)=6)&& (stateno =[3000,4000]) && (var(10))&&!numhelper(8000)



;---------------------------------------------------------------------------
; 阳炎舞
[State -1, 阳炎舞]
type = ChangeState
value = 1300
triggerall = !var(59)
triggerall = var(1) = 0
triggerall = Command = "hold_a"|| Command = "hold_b"||Command = "hold_c"
triggerall = command != "QCF_a"
triggerall = command != "QCF_b"
triggerall = command != "QCF_c"
triggerall = statetype != a
trigger1 = Ctrl = 1
trigger2 = StateNo = 40 && !MoveType = H
trigger3 = StateNo = 210 && AnimElemTime(1) >= 0
trigger4 = StateNo = 210 && AnimElemTime(1) >= 0|| StateNo = 410 && AnimElemTime(1) >= 0
trigger5 = (stateno = 215) && time > 0; 0; 0 ; 10
trigger6 = (stateno = 435) && time > 0; 0; 0 ; 10
trigger7 = (time >3)&& (stateno !=[800,900])&&(stateno !=[3000,4000]) && (stateno !=[5000,5999])&&var(43)
trigger8 = (var(25)=0||var(25)=6)&& (stateno =[3000,4000]) && (var(10))&&!numhelper(8000)

;---------------------------------------------------------------------------
;XXXX扇
[State -1, 白扇]
type = ChangeState
value = 1400
triggerall = !var(1)
triggerall = !var(59)
triggerall = command = "DB_a"|| command = "DB_b"||command = "DB_c"
triggerall = statetype != a
trigger1 =  ctrl
trigger2 = (stateno = 245) && time > 5
trigger3 = (stateno = 405) && time >  5
trigger4 = (stateno = 210) && time >  5
trigger5 = (stateno = 240) && time >  5
trigger6 = (stateno = 410) && time >  5
trigger7 = (stateno = 215) && time >  5
trigger8 = (stateno = 205) && time >  5
trigger9 = (stateno = 230) && time >  5
trigger10 = (stateno = 235) && time > 5
trigger11 = (stateno = 400) && time >  5
trigger12 = (stateno = 430) && time > 5
trigger13 = (stateno = 440) && time > 5
trigger14 = (stateno = 435) && time > 5
trigger15 = (stateno = 221) && time > 5
trigger16 = (time >3)&& (stateno !=[800,900])&&(stateno !=[3000,4000]) && (stateno !=[5000,5999])&&var(43)
trigger17 = (var(25)=0||var(25)=6)&& (stateno =[3000,4000]) && (var(10))&&!numhelper(8000)
;---------------------------------------------------------------------------
;XXXX扇
[State -1, 白扇]
type = ChangeState
value = 1400
triggerall = command = "DB_x"|| command = "DB_y"||command = "DB_z"
triggerall = statetype != a
trigger1 =  ctrl
trigger2 = (stateno = 245) && time > 5
trigger3 = (stateno = 405) && time >  5
trigger4 = (stateno = 210) && time >  5
trigger5 = (stateno = 240) && time >  5
trigger6 = (stateno = 410) && time >  5
trigger7 = (stateno = 215) && time >  5
trigger8 = (stateno = 205) && time >  5
trigger9 = (stateno = 230) && time >  5
trigger10 = (stateno = 235) && time > 5
trigger11 = (stateno = 400) && time >  5
trigger12 = (stateno = 430) && time > 5
trigger13 = (stateno = 440) && time > 5
trigger14 = (stateno = 435) && time > 5
trigger15 = (stateno = 221) && time > 5
trigger16 = (time >3)&& (stateno !=[800,900])&&(stateno !=[3000,4000]) && (stateno !=[5000,5999])&&var(43)
trigger17 = (var(25)=0||var(25)=6)&& (stateno =[3000,4000]) && (var(10))&&!numhelper(8000)
;---------------------------------------------------------------------------
;白扇
[State -1, 白扇2]
type = ChangeState
value = 1400
triggerall = VAR(59)
triggerall = !VAR(12)
triggerall = !VAR(22)
triggerall = !var(24)
triggerall = Random = [0,1]
triggerall = P2BodyDist y > -25
triggerall = P2BodyDist x < 40
triggerall = statetype != a
trigger1 = ctrl
trigger2 = (time >3)&& (stateno !=[800,900])&&(stateno !=[3000,4000]) && (stateno !=[5000,5999])&&var(43)








;---------------------------------------------------------------------------
;CHONG Kick
;蜂
[State -1,忍蜂]
type = ChangeState
value = 1800
triggerall = !var(1)
triggerall = !var(59)
triggerall = !var(12)
triggerall = !var(22)
triggerall = !(command = "luanwu_a" ||command = "luanwu_b"||command = "luanwu_c")
triggerall = command = "QCF_a"||command = "QCF_b"||command = "QCF_c"
triggerall = command !="shengquan_a"
triggerall = command !="shengquan_b"
triggerall = command !="shengquan_c"
triggerall = statetype != a
trigger1 =  ctrl
trigger2 = (stateno = 245) && time > 0; 0; 0 ; 1
trigger3 = (stateno = 405) && time > 0; 0; 0 ; 1
trigger4 = (stateno = 210) && time > 0; 0; 0 ; 1
trigger5 = (stateno = 240) && time > 0; 0; 0 ; 1
trigger6 = (stateno = 410) && time > 0; 0; 0 ; 1
trigger7 = (stateno = 215) && time > 0; 0; 0 ; 1
trigger8 = (stateno = 205) && time > 0; 0; 0 ; 1
trigger9 = (stateno = 230) && time > 0; 0; 0 ; 1
trigger10 = (stateno = 235) && time > 0; 0; 0 ; 1
trigger11 = (stateno = 400) && time > 0; 0; 0 ; 1
trigger12 = (stateno = 430) && time > 0; 0; 0 ; 1
trigger13 = (stateno = 440) && time > 0; 0; 0 ; 1
trigger14 = movecontact
trigger14 = (stateno = 1400) && time > 0; 0; 0 ; 12
trigger15 = movecontact
trigger15 = (stateno = 1450) && time > 0; 0; 0 ; 12
trigger16 = movecontact
trigger16 = (stateno = 435) && time > 0; 0; 0 ; 4
trigger17 = (time >3)&& (stateno !=[800,900])&&(stateno !=[3000,4000]) && (stateno !=[5000,5999])&&var(43)
trigger18 = (var(25)=0||var(25)=6)&& (stateno =[3000,4000]) && (var(10))&&!numhelper(8000)




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

[State -1, 天翔脚]
type = ChangeState
value = 1900
triggerall = var(1)
triggerall = !var(59)
triggerall = command = "QCF_a"||command = "QCF_b"||command = "QCF_c"
triggerall = statetype != a
trigger1 = ctrl
trigger2 = (stateno = 245) && time > 0; 0; 0 ; 5
trigger3 = (stateno = 405) && time > 0; 0; 0 ; 8
trigger4 = (stateno = 210) && time > 0; 0; 0 ; 5
trigger5 = (stateno = 240) && time > 0; 0; 0 ; 5
trigger6 = (stateno = 410) && time > 0; 0; 0 ; 5
trigger7 = (stateno = 215) && time > 0; 0; 0 ; 5
trigger8 = (stateno = 205) && time > 0; 0; 0 ; 5
trigger9 = (stateno = 230) && time > 0; 0; 0 ; 5
trigger10 = (stateno = 235) && time > 0; 0; 0 ; 5
trigger11 =0; (stateno = 400) && time > 0; 0; 0 ; 8
trigger12 = (stateno = 435) && time > 0; 0; 0 ; 8
trigger13 = (stateno = 440) && time > 0; 0; 0 ; 5
trigger14 = (stateno = 1400) && time > 0; 0; 0 ; 14
trigger15 = (stateno = 1450) && time > 0; 0; 0 ; 14
trigger16 = (time >3)&& (stateno !=[800,900])&&(stateno !=[3000,4000]) && (stateno !=[5000,5999])&&var(43)
trigger17 = (var(25)=0||var(25)=6)&& (stateno =[3000,4000]) && (var(10))&&!numhelper(8000)
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
; song
[State -1, 尿尿]
type = ChangeState
value = 2200
triggerALL = var(1)
triggerall = MoveType != H
triggerall = numproj <= 1
triggerall = !var(59)
triggerall = command = "QCF_x" || command = "QCF_y"|| command = "QCF_z"
triggerall = statetype = A
trigger1 = ctrl = 1
trigger2 = (time >3)&& (stateno !=[800,900])&&(stateno !=[3000,4000]) && (stateno !=[5000,5999])&&var(43)
trigger3 = (var(25)=0||var(25)=6)&& (stateno =[3000,4000]) && (var(10))&&!numhelper(8000)

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

[State -1, 直升机脚]
type = ChangeState
value = 2800
triggerall = var(1)
triggerall = !var(59)
triggerall = command = "hold_a"||command = "hold_b"||command = "hold_c"
triggerall = statetype != a
trigger1 = stateno = 40
trigger2 = (stateno = 245) && time > 0; 0; 0 ; 5
trigger3 = (stateno = 405) && time > 0; 0; 0 ; 8
trigger4 = (stateno = 210) && time > 0; 0; 0 ; 5
trigger5 = (stateno = 240) && time > 0; 0; 0 ; 5
trigger6 = (stateno = 410) && time > 0; 0; 0 ; 5
trigger7 = (stateno = 215) && time > 0; 0; 0 ; 5
trigger8 = (stateno = 205) && time > 0; 0; 0 ; 5
trigger9 = (stateno = 230) && time > 0; 0; 0 ; 5
trigger10 = (stateno = 235) && time > 0; 0; 0 ; 5
trigger11 =0; (stateno = 400) && time > 0; 0; 0 ; 8
trigger12 = (stateno = 435) && time > 0; 0; 0 ; 8
trigger13 = (stateno = 440) && time > 0; 0; 0 ; 5
trigger14 = (stateno = 1400) && time > 0; 0; 0 ; 14
trigger15 = (stateno = 1450) && time > 0; 0; 0 ; 14
trigger16 = (time >3)&& (stateno !=[800,900])&&(stateno !=[3000,4000]) && (stateno !=[5000,5999])&&var(43)
trigger17 = (var(25)=0||var(25)=6)&& (stateno =[3000,4000]) && (var(10))&&!numhelper(8000)


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

;Stand Light Punch
;轻拳
[State -1, 轻拳]
type = ChangeState
value = 200
triggerall = !VAR(59)
triggerall = command = "x"
triggerall = command != "luanwu_x"
triggerall = command != "holddown"
triggerall = p2bodydist x >= -5 ; 防止对手在你后面而你不转身
triggerall = p2bodydist x >= 30
triggerall = statetype != a
trigger1 = ctrl
trigger2 = var(43)
trigger2 = time >3
trigger2 = stateno !=[800,900]
trigger2 = stateno !=[3000,4000]
trigger2 = stateno !=[5000,5999]
trigger2 = movecontact ||var(18)
trigger3 = (stateno = 400) && time > 4
trigger4 = (stateno = 200) && time > 4
trigger5 = (stateno = 205) && time > 2
trigger6 = (stateno = 235) && time > 4

;---------------------------------------------------------------------------
;near Stand Light Punch
;近轻拳
[State -1, 近轻拳]
type = ChangeState
value = 205
triggerall = !VAR(59)

triggerall = command = "x"
triggerall = command != "holddown"
triggerall = p2bodydist x < 30
triggerall = statetype != a
trigger1 = ctrl
trigger2 = (stateno = 205)
trigger2 = time >3
trigger3 = var(43)
trigger3 = time >3
trigger3 = stateno !=[800,900]
trigger3 = stateno !=[3000,4000]
trigger3 = stateno !=[5000,5999]
trigger3 = movecontact ||var(18)

;---------------------------------------------------------------------------
;Stand Strong Punch
;中拳
[State -1, 中拳]
type = ChangeState
value = 210
triggerall = !var(59)
triggerall = command = "y"
triggerall = command != "holddown"
triggerall = statetype != a
trigger1 = ctrl
trigger2 = var(43)
trigger2 = time >3
trigger2 = stateno !=[800,900]
trigger2 = stateno !=[3000,4000]
trigger2 = stateno !=[5000,5999]
trigger2 = movecontact  ||var(18)

;---------------------------------------------------------------------------
;Stand Strong Punch
;大拳
[State -1, 大拳]
type = ChangeState
value = 220
triggerall = p2bodydist x >= 20
triggerall = !var(59)
triggerall = command = "z"
triggerall = statetype != a
triggerall = command != "holddown"
trigger1 = ctrl
trigger2 = var(43)
trigger2 = time >3
trigger2 = stateno !=[800,900]
trigger2 = stateno !=[3000,4000]
trigger2 = stateno !=[5000,5999]
trigger2 = movecontact ||var(18)



;---------------------------------------------------------------------------
;near Stand Strong Punch
;近重拳
[State -1, 近重拳]
type = ChangeState
value = ifelse((enemynear,statetype != a), 215,220)

triggerall = !VAR(59)
triggerall = p2bodydist x < 20
triggerall = Command = "z"
triggerall = statetype != a
triggerall = command != "holddown"
trigger1 = ctrl
trigger2 =  movecontact &&(stateno = 400) && time > 6
trigger3 =  movecontact &&(stateno = 430) && time > 6
trigger4 =  movecontact &&(stateno = 235) && time > 8
trigger5 = var(43)
trigger5 = time >3
trigger5 = stateno !=[800,900]
trigger5 = stateno !=[3000,4000]
trigger5 = stateno !=[5000,5999]
trigger5 = movecontact||var(18)

;---------------------------------------------------------------------------
;Stand Strong Punch
;大拳
[State -1, 闪近大拳]
type = ChangeState
value = 215
triggerall = !var(59)
triggerall = command = "x"|| command = "y"||command = "z"
triggerall = stateno =876
triggerall = statetype = s
trigger1 = time > 16
trigger1 = time < 26


;---------------------------------------------------------------------------
;Stand Light Kick
;轻踢
[State -1,轻踢]
type = ChangeState
value = 230
triggerall = !var(59)

triggerall = command = "a"
triggerall = p2bodydist x > 20
triggerall = statetype != a
triggerall = command != "holddown"
trigger1 = ctrl
trigger2 = (stateno = 230) && time > 5&& movecontact; 0; 0 ; 12
trigger3 = (stateno = 235) && time > 5&& movecontact; 0; 0 ; 12
trigger4 = var(43)
trigger4 = time >3
trigger4 = stateno !=[800,900]
trigger4 = stateno !=[3000,4000]
trigger4 = stateno !=[5000,5999]
trigger4 = movecontact ||var(18)
;---------------------------------------------------------------------------
;near Stand Light Kick
;近轻踢
[State -1, 近轻踢]
type = ChangeState
value = 235
triggerall = !var(59)
triggerall = command = "a"
triggerall = command != "holddown"
triggerall = p2bodydist x <= 20
triggerall = statetype != a
trigger1 = ctrl
trigger2 = movecontact&&(stateno = 200) && time > 5; 0; 0 ; 13
trigger3 = movecontact&&(stateno = 235) && time > 5; 0; 0 ; 13
trigger4 = var(43)
trigger4 = time >3
trigger4 = stateno !=[800,900]
trigger4 = stateno !=[3000,4000]
trigger4 = stateno !=[5000,5999]
trigger4 = movecontact ||var(18)
trigger5 = movecontact&&(stateno = 430) && time > 3
trigger5 = p2bodydist x <= 20

;---------------------------------------------------------------------------
;near Stand Light Kick

[State -1, 中踢]
type = ChangeState
value = 236
triggerall = !var(59)
triggerall = command = "b"
triggerall = command != "holddown"
triggerall = command != "holdfwd"
triggerall = statetype != a
trigger1 =  enemyNEAR,statetype != a
trigger1 = p2bodydist x >= 25
trigger1 = ctrl
trigger2 =  enemyNEAR,statetype = a
trigger2 = p2bodydist x >= 45
trigger2 = ctrl
trigger3 = var(43)
trigger3 = time >3
trigger3 = stateno !=[800,900]
trigger3 = stateno !=[3000,4000]
trigger3 = stateno !=[5000,5999]
trigger3 = movecontact ||var(18)

;---------------------------------------------------------------------------
;near Stand Light Kick

[State -1, 臀击]
type = ChangeState
value = 237
triggerall = !var(59)
triggerall = command = "b"
triggerall = command != "holddown"
triggerall = command = "holdfwd"
triggerall = statetype != a
trigger1 = ctrl
trigger2 = var(43)
trigger2 = time >3
trigger2 = stateno !=[800,900]
trigger2 = stateno !=[3000,4000]
trigger2 = stateno !=[5000,5999]
trigger2 = movecontact ||var(18)
trigger3 = movecontact&&(stateno = 245) && time > 3; 0; 5
trigger4 = movecontact&&(stateno = 210) && time > 3; 0; 5
trigger5 =  movecontact&&(stateno = 240) && time > 3; 0; 5
trigger6 =  movecontact&&(stateno = 410) && time > 3; 0; 5
trigger7 =  movecontact&&(stateno = 215) && time > 3
trigger8 =  movecontact&&(stateno = 205) && time > 3
trigger9 =  movecontact&&(stateno = 405) && time > 3
trigger10 =  movecontact&&(stateno = 235) && time > 3
trigger11 =  movecontact&&(stateno = 400) && time > 3
trigger12 =  movecontact&&(stateno = 430) && time > 3
trigger13 =  movecontact&&(stateno = 440) && time > 3

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

[State -1,近中踢 ]
type = ChangeState
value = 245
triggerall = !var(59)
triggerall = p2bodydist x <= 25
triggerall =  enemyNEAR,statetype != a
triggerall = statetype != a
triggerall = command != "holddown"
triggerall = command != "holdfwd"
triggerall = command = "b"
trigger1 = ctrl
trigger2 = movecontact&&(stateno = 200) && time > 7
trigger3 = movecontact&&(stateno = 230) && time > 7
trigger4 = stateno = 235
trigger4 = time > 7
trigger5 = stateno = 205
trigger5 = time > 7
trigger6 = var(43)
trigger6 = time >3
trigger6 = stateno !=[800,900]
trigger6 = stateno !=[3000,4000]
trigger6 = stateno !=[5000,5999]
trigger6 = movecontact||var(18)

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

[State -1, 近中踢]
type = ChangeState
value = 245
triggerall = !var(59)
triggerall = p2bodydist x <= 45
triggerall = enemyNEAR,statetype = a
triggerall = statetype != a
triggerall = command != "holddown"
triggerall = command != "holdfwd"
triggerall = command = "b"
trigger1 = ctrl
trigger2 = (stateno = 200) && time > 5
trigger3 = (stateno = 230) && time >5
trigger4 = stateno = 235
trigger4 = time >5
trigger5 = stateno = 205
trigger5 = time > 5
trigger6 = var(43)
trigger6 = time >3
trigger6 = stateno !=[800,900]
trigger6 = stateno !=[3000,4000]
trigger6 = stateno !=[5000,5999]
trigger6 = movecontact||var(18)


;---------------------------------------------------------------------------
;Standing Strong Kick
;重踢2
[State -1, 重踢]
type = ChangeState
value = 250       ;240
triggerall = !var(59)
triggerall = command = "c"
triggerall = p2bodydist x >= 30
triggerall = statetype != a
triggerall = command != "holddown"
trigger1 = ctrl
trigger2 = var(43)
trigger2 = time >3
trigger2 = stateno !=[800,900]
trigger2 = stateno !=[3000,4000]
trigger2 = stateno !=[5000,5999]
trigger2 = movecontact||var(18)

;---------------------------------------------------------------------------
;Standing Strong Kick
;重踢
[State -1, 近重踢]
type = ChangeState
value = 240
triggerall = !var(59)     ;240
triggerall = command = "c"
triggerall = p2bodydist x <= 30
triggerall = statetype != a
triggerall = command != "holddown"
trigger1 = ctrl
trigger2 = var(43)
trigger2 = time >3
trigger2 = stateno !=[800,900]
trigger2 = stateno !=[3000,4000]
trigger2 = stateno !=[5000,5999]
trigger2 = movecontact ||var(18)
trigger3 = (stateno = 430) && time > 6

;---------------------------------------------------------------------------
;Stand Strong Punch
;近重踢
[State -1, 闪近重踢]
type = ChangeState
value = 240
triggerall = !var(59)
triggerall = command = "a"|| command = "b"||command = "c"
triggerall = stateno =876
triggerall = statetype != a
triggerall = command != "holddown"
trigger1 = time > 16
trigger1 = time < 26

;---------------------------------------------------------------------------
;Crouching Light Punch
;蹲轻拳
[State -1, 蹲轻拳]
type = ChangeState
value = 400

triggerall = !var(59)
triggerall = stateno != 102
triggerall = stateno != 104
triggerall = command = "x"
triggerall = command = "holddown"
triggerall = statetype != a
trigger1 = ctrl
trigger2 = stateno = 400
trigger2 = time > 7; 0; 0 ; 18
trigger3 = stateno = 430
trigger3 = time > 7; 0; 0 ; 10
trigger4 = var(43)
trigger4 = time >3
trigger4 = stateno !=[800,900]
trigger4 = stateno !=[3000,4000]
trigger4 = stateno !=[5000,5999]
trigger4 = movecontact ||var(18)
trigger5 = stateno = 205
trigger5 = time > 7; 0; 0 ; 18
trigger6 = stateno = 235
trigger6 = time > 7; 0; 0 ; 18
;---------------------------------------------------------------------------
;Crouching Light Punch
;蹲中拳
[State -1, 蹲中拳]
type = ChangeState
value = 405
triggerall = !var(59)
triggerall = stateno != 102
triggerall = stateno != 104
triggerall = command = "y"
triggerall = command = "holddown"
triggerall = statetype != a
trigger1 = ctrl
trigger2 =  movecontact &&stateno = 400
trigger2 = time > 7
trigger3 =  movecontact &&stateno = 430
trigger3 = time > 7
trigger4 = var(43)
trigger4 = time >3
trigger4 = stateno !=[800,900]
trigger4 = stateno !=[3000,4000]
trigger4 = stateno !=[5000,5999]
trigger4 = movecontact ||var(18)
trigger5 =  movecontact &&stateno = 235
trigger5 = time > 7

;---------------------------------------------------------------------------
;Crouching Strong Punch
;蹲中拳
[State -1, 蹲中拳]
type = ChangeState
value = 405
triggerall = var(59)
triggerall = !VAR(12)
triggerall = !VAR(22)
triggerall = !var(24)
triggerall = p2bodydist x <= 50
triggerall = statetype !=a
triggerall = enemynear, statetype != a
triggerall = enemynear,statetype != L && enemynear,stateno != 5120
triggerall = enemynear,stateno != 5060 && enemynear,stateno != 5061
triggerall = enemynear,stateno != 5080 && enemynear,stateno != 5090
triggerall = ctrl
trigger1 = Random = [0,150]
trigger1 = enemynear,MoveType = H
trigger2 = Random = [0,200]


;---------------------------------------------------------------------------
;Crouching Strong Punch
;蹲拳
[State -1, 蹲重拳]
type = ChangeState
value = 410

triggerall = !var(59)
triggerall = command = "z"
triggerall = command = "holddown"
triggerall = statetype != a
trigger1 = ctrl
trigger2 =  movecontact &&stateno = 400
trigger2 = time > 7
trigger3 =  movecontact &&stateno = 430
trigger3 = time > 7
trigger4 = var(43)
trigger4 = time >3
trigger4 = stateno !=[800,900]
trigger4 = stateno !=[3000,4000]
trigger4 = stateno !=[5000,5999]
trigger4 = movecontact ||var(18)
trigger5 =  movecontact &&stateno = 235
trigger5 = time > 7
;---------------------------------------------------------------------------
;Crouching Light Kick
;蹲轻踢
[State -1, 蹲轻踢]
type = ChangeState
value = 430
triggerall = !VAR(59)
triggerall = command = "a"
triggerall = statetype != a
triggerall = command = "holddown"
trigger1 = ctrl
trigger2 =  movecontact &&(stateno = 400)
trigger2 = time > 6
trigger3 = var(43)
trigger3 = time >3
trigger3 = stateno !=[800,900]
trigger3 = stateno !=[3000,4000]
trigger3 = stateno !=[5000,5999]
trigger3 = movecontact ||var(18)
trigger4 = 0
trigger5 = stateno = 205
trigger5 = time > 7; 0; 0 ; 18
trigger6 = stateno = 235
trigger6 = time > 7; 0; 0 ; 18
trigger7 =  (stateno = 430)
trigger7 = time > 3


;---------------------------------------------------------------------------
;Crouching Light Kick
;蹲中踢
[State -1, 蹲中踢]
type = ChangeState
value = 435
triggerall = !VAR(59)
triggerall = command = "b"
triggerall = command = "holddown"
triggerall = statetype != a
trigger1 = ctrl
trigger2 = var(43)
trigger2 = time >3
trigger2 = stateno !=[800,900]
trigger2 = stateno !=[3000,4000]
trigger2 = stateno !=[5000,5999]
trigger2 = movecontact ||var(18)





;---------------------------------------------------------------------------
;Crouching Strong Kick
;蹲重踢
[State -1, 蹲重踢]
type = ChangeState
value = 440
triggerall = !var(59)
triggerall = command = "c"
triggerall = command = "holddown"
triggerall = statetype != a
trigger1 = ctrl
trigger2 = movecontact &&(stateno = 400) || (stateno = 430)
trigger2 = time > 8
trigger3 = var(43)
trigger3 = time >3
trigger3 = stateno !=[800,900]
trigger3 = stateno !=[3000,4000]
trigger3 = stateno !=[5000,5999]
trigger3 = movecontact ||var(18)
trigger4 =  movecontact &&stateno = 235
trigger4 = time > 7


;---------------------------------------------------------------------------
;Jump Light Punch
;跳轻拳
[State -1, 跳轻拳]
type = ChangeState
value = 600
triggerall = !var(59)
triggerall = command = "x"
triggerall = statetype = A
trigger1 = ctrl
trigger2 = var(43)
trigger2 = time >3
trigger2 = stateno !=[800,900]
trigger2 = stateno !=[3000,4000]
trigger2 = stateno !=[5000,5999]
trigger2 = movecontact ||var(18)

;---------------------------------------------------------------------------
;Jump Strong Punch跳中拳
[State -1,跳中拳]
type = ChangeState
value = 610
triggerall = !var(59)
triggerall = command = "y"
triggerall = statetype = A
trigger1 = ctrl
trigger2 = var(43)
trigger2 = time >3
trigger2 = stateno !=[800,900]
trigger2 = stateno !=[3000,4000]
trigger2 = stateno !=[5000,5999]
trigger2 = movecontact ||var(18)


;---------------------------------------------------------------------------
;Jump Strong Punch跳中拳

[State -1, 跳打]
type = ChangeState
value = ifelse(random< 333,620,(ifelse(random< 500,640,(ifelse(random< 500,635,645)))))
triggerall = var(59)
triggerall = enemynear,movetype != A
trigger1 = statetype = A
trigger1 = ctrl
trigger1 = p2bodydist x < 55


;---------------------------------------------------------------------------
;Jump Strong Punch跳重拳
[State -1,跳重拳]
type = ChangeState
value = 620
triggerall = !var(59)
triggerall = command = "z"
triggerall = statetype = A
trigger1 = ctrl
trigger2 = var(43)
trigger2 = time >3
trigger2 = stateno !=[800,900]
trigger2 = stateno !=[3000,4000]
trigger2 = stateno !=[5000,5999]
trigger2 = movecontact ||var(18)

;---------------------------------------------------------------------------
;Jump Light Kick
;跳轻脚

[State -1, 跳轻脚]
type = ChangeState
value = 630
triggerall = !var(59)
triggerall = command = "a"
triggerall = statetype = A
trigger1 = ctrl
trigger2 = var(43)
trigger2 = time >3
trigger2 = stateno !=[800,900]
trigger2 = stateno !=[3000,4000]
trigger2 = stateno !=[5000,5999]
trigger2 = movecontact ||var(18)





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

;---------------------------------------------------------------------------
;Jump Strong Kick
;跳重脚2
[State -1,  跳中脚]
type = ChangeState
value = 635
triggerall = !var(59)
triggerall = command = "b"
triggerall = statetype = A
trigger1 = ctrl
trigger2 = var(43)
trigger2 = time >3
trigger2 = stateno !=[800,900]
trigger2 = stateno !=[3000,4000]
trigger2 = stateno !=[5000,5999]
trigger2 = movecontact ||var(18)


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





;---------------------------------------------------------------------------
;Jump Strong Kick
;跳重脚2
[State -1, 跳重脚]
type = ChangeState
value = 640
triggerall = !var(59)
triggerall = command = "c"
triggerall = command != "holdback"
triggerall = statetype = A
trigger1 = ctrl
trigger2 = var(43)
trigger2 = time >3
trigger2 = stateno !=[800,900]
trigger2 = stateno !=[3000,4000]
trigger2 = stateno !=[5000,5999]
trigger2 = movecontact ||var(18)


;---------------------------------------------------------------------------
;Jump Strong Kick
;跳重脚2
[State -1, 跳重脚]
type = ChangeState
value = 645
triggerall = !var(59)
triggerall = command = "c"
triggerall = command = "holdback"
triggerall = statetype = A
trigger1 = ctrl
trigger2 = var(43)
trigger2 = time >3
trigger2 = stateno !=[800,900]
trigger2 = stateno !=[3000,4000]
trigger2 = stateno !=[5000,5999]
trigger2 = movecontact ||var(18)





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

































;---------------------------------------------------------------------------
;Run Fwd
;前跑
[State -1, 前跑]
type = ChangeState
value = 103
triggerall = var(25)>= 3
triggerall = stateno != 100
triggerall = stateno != 101
triggerall = stateno != 102
triggerall = stateno != 103
triggerall = var(59)
triggerall = !var(24)
triggerall = !VAR(12)
triggerall = !VAR(22)
triggerall = movetype != A
trigger1 = statetype != a
trigger1 = enemynear,statetype != a
trigger1 = ctrl
trigger1 = p2bodydist x > 100
trigger1 = enemynear,MoveType = I

;---------------------------------------------------------------------------
;walk Fwd
;前走
[State -1, 前走]
type = ChangeState
value = 21
triggerall = stateno != 22
triggerall = stateno != 21
triggerall = stateno != 20
triggerall = stateno != 100
triggerall = stateno != 101
triggerall = stateno != 102
triggerall = stateno != 103
triggerall = var(59)
triggerall = !var(24)
triggerall = !VAR(12)
triggerall = !VAR(22)
triggerall = movetype != A
trigger1 = statetype != a
trigger1 = ctrl
trigger1 = p2bodydist x >100
trigger1 = enemynear,MoveType = I

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

[State -1, 后走]
type = ChangeState
value = 22
triggerall = !InGuardDist
triggerall = stateno != 22
triggerall = stateno != 21
triggerall = stateno != 20
triggerall = stateno != 100
triggerall = stateno != 101
triggerall = stateno != 102
triggerall = stateno != 103
triggerall = var(59)
triggerall = !var(24)
triggerall = !VAR(12)
triggerall = !VAR(22)
triggerall = movetype != A
trigger1 = Random = [0,150]
trigger1 = statetype != a
trigger1 = ctrl
trigger1 = p2bodydist x < 90
trigger1 = enemynear,MoveType = I





;---------------------------------------------------------------------------
;Run Back
;后跳
[State -1, 后跳]
type = ChangeState
value = 105
triggerall = stateno != 105
triggerall = !VAR(12)
triggerall = !VAR(22)
triggerall = var(59)
triggerall = statetype != a
triggerall = ctrl
trigger1 = p2bodydist X < 15
trigger1 = p2bodydist y < -25
trigger1 = enemynear,statetype = A
trigger1 = Random = [0,150]
trigger1 = p2movetype != A
trigger1 = (enemynear,vel x <= 0)
trigger2 = BackEdgeDist > 20
trigger2 = P2BodyDist X < 10
trigger2 = enemynear,statetype = L
trigger2 = Random = [0,150]



[State -1,转状态]
type= ChangeSTATE
triggerall = var(1) = 0
triggerall = statetype =  s
trigger1 = stateno = [3400,3499]
trigger2 = stateno = [2000,2010]
trigger3 = stateno = [2300,2310]
trigger4 = stateno = [2500,2510]
value= 0
ctrl = 1



[State -1,转状态]
type= ChangeSTATE
triggerall = var(1) = 0
triggerall = statetype =  a
trigger1 = stateno = 3200
trigger2 = stateno = [2200,2210]
value= 600
ctrl = 1








;====================格挡，防御--------------------------------

;---------------------------------------------------------------------------
;陆地格挡 3种情况，没被打倒，被打倒，已经被打到天上
[State -1, 防御与格挡]
type = ChangeState
triggerall = var(40)=0
trigger1 = var(25) = 2||var(25) = 6
trigger1 = !var(59)
trigger1 = statetype =s
trigger1 = stateno = 5000
trigger1 = time <5
trigger1 = var(5) < 10
trigger1 = var(5) > 0
trigger1 = command = "holdfwd"
value = 6000

[State -1, 防御与格挡]
type = ChangeState
triggerall = var(40)=0
trigger1 = var(25) = 2||var(25) = 6
trigger1 = !var(59)
trigger1 = stateno = 5000
trigger1 = time <5
trigger1 = var(5) < 10
trigger1 = var(5) > 0
trigger1 = command = "holdfwd"
trigger1 = statetype = A
trigger1 = life > 0
trigger1 = pos y < 10
value = 6000

[State -1, 防御与格挡]
type = ChangeState
triggerall = var(40)=0
trigger1 = var(25) = 2||var(25) = 6
trigger1 = !var(59)
trigger1 = stateno = 5000
trigger1 = time <5
trigger1 = var(5) < 10
trigger1 = var(5) > 0
trigger1 = command = "holdfwd"
trigger1 = statetype = A
trigger1 = life > 0
trigger1 = pos y > 10
value = 6200

;蹲格挡---------------------------------------------------------------------------
[State -1, 防御与格挡]
type = ChangeState
trigger1 = var(25) = 2||var(25) = 6
trigger1 = !var(59)
trigger1 = statetype != a
trigger1 = stateno = 5010
trigger1 = time <5
trigger1 = var(5) < 10
trigger1 = var(5) > 0
trigger1 = command = "holdfwd"|| command ="holddown"
value = 6100

[State -1, 防御与格挡] ;挡下大T
type = ChangeState
trigger1 = var(25) = 2||var(25) = 6
trigger1 = !var(59)
trigger1 = statetype = a
trigger1 = stateno = 5070
trigger1 = time <5
trigger1 = var(5) < 10
trigger1 = var(5) > 0
trigger1 = command = "holdfwd"|| command ="holddown"
value = 6100
;---------------------------------------------------------------------------


;空格挡-------------------------------------------------------------------------

[State -1, 防御与格挡]
type = ChangeState
triggerall = var(40)=0
trigger1 = var(25) = 2||var(25) = 6
trigger1 = !var(59)
trigger1 = statetype = a
trigger1 = stateno = 5020
trigger1 = time <5
trigger1 = var(5) < 10
trigger1 = var(5) > 0
trigger1 = command = "holdfwd"|| command ="holddown"
value = 6200




;--------------防御

;---------------------------------------------------------------------------
[State -1, 防御与格挡]
type = ChangeState
triggerall = var(40)=0
trigger1 = !var(59)
trigger1 = statetype != a
trigger1 = stateno = 150
trigger1 = var(25) = 5||var(25) = 6
trigger1 = time <5
trigger1 = var(3) < 10
trigger1 = var(3) > 0
value = 6005


;---------------------------------------------------------------------------
[State -1, 防御与格挡]
type = ChangeState
triggerall = var(40)=0
trigger1 = !var(59)
trigger1 = statetype != a
trigger1 = stateno = 152
trigger1 = var(25) = 5||var(25) = 6
trigger1 = time <5
trigger1 = var(3) < 10
trigger1 = var(3) > 0
value = 6105


;---------------------------------------------------------------------------
[State -1, 防御与格挡]
type = ChangeState
triggerall = var(40)=0
trigger1 = !var(59)
trigger1 = statetype = a
trigger1 = stateno = 154
trigger1 = var(25) = 5||var(25) = 6
trigger1 = time <5
trigger1 = var(3) < 10
trigger1 = var(3) > 0
value = 6205










[State -1, 换模式]
type = ChangeState
value = 6100
triggerall = stateno =  6000
trigger1 = (enemynear, HitDefAttr = CA)

[State -1, 换模式]
type = ChangeState
value = 6105
triggerall = stateno =  6005
trigger1 = (enemynear, HitDefAttr = CA)

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


[State -1, 换模式]
type = ChangeState
value = 196
triggerall = !VAR(59)
triggerall = command = "start"
triggerall = stateno !=  196
trigger1 = statetype != a
trigger1 = ctrl







;=================================================================
;a模式爆气//ex模式a爆气
[State -1, A模式爆气]
type = ChangeState
value = 6352
triggerall = power >=3000
triggerall = VAR(25)=1||VAR(25)=6
triggerall = !VAR(59)
triggerall = var(28)<10
triggerall = statetype != A
triggerall = ctrl
trigger1 =command ="chargez" && command ="chargec"
trigger2 =command ="chargey" && command ="chargez"
;=================================================================
;a模式爆气//ex模式a爆气
[State -1, A模式空中爆气]
type = ChangeState
value = 6353
triggerall =! var(44)
triggerall = power >=3000
triggerall = VAR(25)=1||VAR(25)=6
triggerall = !VAR(59)
triggerall = var(28)<10
triggerall = statetype = A
triggerall = ctrl
trigger1 =command ="chargez" && command ="chargec"
trigger2 =command ="chargey" && command ="chargez"
;=================================================================
;n模式爆气
[State -1, n模式爆气]
type = ChangeState
value = 6501
triggerall =! var(43)
triggerall =! var(44)
triggerall = power >=1000
triggerall =  VAR(25)=4
triggerall = !VAR(59)
triggerall = statetype = s
triggerall = ctrl
trigger1 =command ="chargez" && command ="chargec"
trigger2 =command ="chargey" && command ="chargeb"
trigger3 =command ="chargey" && command ="chargez"

;n模式爆气
[State -1, n模式爆气]
type = ChangeState
value = 6501
triggerall =! var(43)
triggerall =! var(44)
triggerall = power >=1000
triggerall =  VAR(25)=6
triggerall = !VAR(59)
triggerall =command ="chargey" && command ="chargeb"
triggerall = statetype = s
trigger1 = ctrl

;=================================================================
;s模式蓄气
[State -1, s模式蓄气]
type = ChangeState
value = 6451
triggerall = (VAR(25)=3&&var(49)<720)||(VAR(25)=6&&power <3000)
triggerall = !VAR(59)
triggerall = !var(45)
triggerall = !var(43)
triggerall = statetype = s
triggerall = ctrl
trigger1 =command ="chargey" && command ="chargez"
trigger2 =command ="chargec" && command ="chargez"

;倒地空翻
;---------------------------------------------------------------------------
;跳
[State -1, 跳]
type = ChangeState
value = 40
triggerall = var(59) = 1 && StateType != A && enemynear,MoveType = I && ctrl
trigger1 = BackEdgebodyDist > 5 && abs(enemynear,Pos X - Pos X) <= 90 && enemynear,StateType = C && Random <= 1
trigger2 = (abs(enemynear,Pos X - Pos X) >= 150 && ctrl) && random = [0,1]

;---------------------------------------------------------------------------
; Run Fwd
[State -1, 跑]
type = ChangeState
value =100 ;100
triggerall = !var(59)
trigger1 = command = "FF"
trigger1 = statetype != a
trigger1 = ctrl

;---------------------------------------------------------------------------
; Run Back
[State -1, 后跃]
type = ChangeState
value = 105
triggerall = !var(59)
trigger1 = command = "BB"
trigger1 = statetype != a
trigger1 = ctrl

;---------------------------------------------------------------------------
;;倒地空翻
[State -1,倒地空翻]
type = ChangeState
value =  886
triggerall = alive
triggerall = !var(59)
triggerall = var(28)<10
triggerall = command != "a"
triggerall = command != "b"
triggerall = command != "x"
triggerall = command != "y"
triggerall = stateno = 5110||stateno = 5100
triggerall = time < 3
trigger1 = command ="chargea" && command ="chargeb"
trigger1 = statetype != a
trigger2 = command ="chargex" && command ="chargey"
trigger2 = statetype != a

;---------------------------------------------------------------------------
[State -1,防御反击]
type = ChangeState
value = 2010
triggerall = !var(59)
triggerall = var(25)!= 2&& var(25)!= 5
triggerall = command ="chargey" && command ="chargeb"
triggerall = statetype != a
triggerall = stateno = [130,132]
triggerall = time < 2
trigger1 = power>1000
trigger2 = var(45)



;前躲闪
[State -1,前躲闪]
type = ChangeState
value = ifelse (var(59),10,875)
triggerall = !var(59)
triggerall = var(28)<10
triggerall = var(25) = 0||var(25) = 1||var(25) = 4
triggerall = command != "a"
triggerall = command != "b"
triggerall = command != "x"
triggerall = command != "y"
triggerall = command != "holdback"
triggerall = command != "holddown"
triggerall = ctrl
trigger1 = command ="chargea" && command ="chargex"
trigger1 = statetype != a
trigger2 = command ="chargex" && command ="chargey"
trigger2 = statetype != a
trigger3 = command ="chargea" && command ="chargeb"
trigger3 = statetype != a


;前躲闪
[State -1,前躲闪]
type = ChangeState
value = ifelse (var(59),10,875)
triggerall = !var(59)
triggerall = var(28)<10
triggerall = var(25) = 6
triggerall = command != "a"
triggerall = command != "b"
triggerall = command != "x"
triggerall = command != "y"
triggerall = command != "holdback"
triggerall = command != "holddown"
triggerall = command = "holdfwd"
triggerall = ctrl
trigger1 = command ="chargea" && command ="chargex"
trigger1 = statetype != a
trigger2 = command ="chargex" && command ="chargey"
trigger2 = statetype != a
trigger3 = command ="chargea" && command ="chargeb"
trigger3 = statetype != a


;侧身闪
[State -1,侧身闪]
type = ChangeState
value = ifelse (var(59),10,876)
triggerall = !var(59)
triggerall = var(28)<10
triggerall = var(25) = 3
triggerall = command != "a"
triggerall = command != "b"
triggerall = command != "x"
triggerall = command != "y"
triggerall = command != "holddown"
triggerall = ctrl
trigger1 = command ="chargea" && command ="chargex"
trigger1 = statetype != a
trigger2 = command ="chargex" && command ="chargey"
trigger2 = statetype != a
trigger3 = command ="chargea" && command ="chargeb"
trigger3 = statetype != a



;侧身闪
[State -1,侧身闪]
type = ChangeState
value = ifelse (var(59),10,876)
triggerall = !var(59)
triggerall = var(28)<10
triggerall = var(25) = 6
triggerall = command != "a"
triggerall = command != "b"
triggerall = command != "x"
triggerall = command != "y"
triggerall = command != "holdback"
triggerall = command != "holddown"
triggerall = command != "holdfwd"
triggerall = ctrl
trigger1 = command ="chargea" && command ="chargex"
trigger1 = statetype != a
trigger2 = command ="chargex" && command ="chargey"
trigger2 = statetype != a
trigger3 = command ="chargea" && command ="chargeb"
trigger3 = statetype != a






