

;AI开关用
;-----------------------------------
[Command]
name = "AI1"
command = a, a, a, a, a, a, a, a, a, a, a
time = 1

[Command]
name = "AI2"
command = a, a, a, a, a, a, a, a, a, a, b
time = 1

[Command]
name = "AI3"
command = a, a, a, a, a, a, a, a, a, a, c
time = 1

[Command]
name = "AI4"
command = a, a, a, a, a, a, a, a, a, a, x
time = 1

[Command]
name = "AI5"
command = a, a, a, a, a, a, a, a, a, a, y
time = 1

[Command]
name = "AI6"
command = a, a, a, a, a, a, a, a, a, a, z
time = 1

[Command]
name = "AI7"
command = b, b, b, b, b, b, b, b, b, b, a
time = 1

[Command]
name = "AI8"
command = b, b, b, b, b, b, b, b, b, b, b
time = 1

[Command]
name = "AI9"
command = b, b, b, b, b, b, b, b, b, b, c
time = 1

[Command]
name = "AI10"
command = b, b, b, b, b, b, b, b, b, b, x
time = 1

[Command]
name = "AI11"
command = b, b, b, b, b, b, b, b, b, b, y
time = 1

[Command]
name = "AI12"
command = b, b, b, b, b, b, b, b, b, b, z
time = 1

[Command]
name = "AI13"
command = c, c, c, c, c, c, c, c, c, c, a
time = 1

[Command]
name = "AI14"
command = c, c, c, c, c, c, c, c, c, c, b
time = 1

[Command]
name = "AI15"
command = c, c, c, c, c, c, c, c, c, c, c
time = 1

[Command]
name = "AI16"
command = c, c, c, c, c, c, c, c, c, c, x
time = 1

[Command]
name = "AI17"
command = c, c, c, c, c, c, c, c, c, c, y
time = 1

[Command]
name = "AI18"
command = c, c, c, c, c, c, c, c, c, c, z
time = 1

[Command]
name = "AI19"
command = x, x, x, x, x, x, x, x, x, x, a
time = 1

[Command]
name = "AI20"
command = x, x, x, x, x, x, x, x, x, x, b
time = 1

[Command]
name = "AI21"
command = x, x, x, x, x, x, x, x, x, x, c
time = 1

[Command]
name = "AI22"
command = x, x, x, x, x, x, x, x, x, x, x
time = 1

[Command]
name = "AI23"
command = x, x, x, x, x, x, x, x, x, x, y
time = 1

[Command]
name = "AI24"
command = x, x, x, x, x, x, x, x, x, x, z
time = 1

[Command]
name = "AI25"
command = y, y, y, y, y, y, y, y, y, y, a
time = 1

[Command]
name = "AI26"
command = y, y, y, y, y, y, y, y, y, y, b
time = 1

[Command]
name = "AI27"
command = y, y, y, y, y, y, y, y, y, y, c
time = 1

[Command]
name = "AI28"
command = y, y, y, y, y, y, y, y, y, y, x
time = 1

[Command]
name = "AI29"
command = y, y, y, y, y, y, y, y, y, y, y
time = 1

[Command]
name = "AI30"
command = y, y, y, y, y, y, y, y, y, y, z
time = 1

[Command]
name = "AI31"
command = z, z, z, z, z, z, z, z, z, z, a
time = 1

[Command]
name = "AI32"
command = z, z, z, z, z, z, z, z, z, z, b
time = 1

[Command]
name = "AI33"
command = z, z, z, z, z, z, z, z, z, z, c
time = 1

[Command]
name = "AI34"
command = z, z, z, z, z, z, z, z, z, z, x
time = 1

[Command]
name = "AI35"
command = z, z, z, z, z, z, z, z, z, z, y
time = 1







;-----------------------------------
[Remap]
x = x
y = y
z = z
a = a
b = b
c = c
s = s

;-----------------------------------
[Defaults]
command.time = 15
command.buffer.time = 1



;-----------------------------------
+ [Command]
+ name = "天地魔境阵_横版"
+ command = ~D, F, U, x
+ time = 35

+ [Command]
+ name = "群魔乱舞_横版"
+ command = ~D, F, U, y
+ time = 35

+ [Command]
+ name = "群魔乱舞_横版Z"
+ command = ~D, F, U, z
+ time = 35

[Command]
name = "天地魔境阵"
command = ~F, D, B, F, x
time = 35

[Command]
name = "群魔乱舞"
command = ~F, D, B, F, y
time = 35



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


[Command]
name = "魔界转生_前"
command = /D, a+b
+ time = 2
time = 1

[Command]
name = "魔界转生_后"
command = /D, b+c
+ time = 2
time = 1


[Command]
name = "霸气阴灭阵"
command = ~D, F, a
time = 25

[Command]
name = "邪心共鸣"
command = ~D, F, x
time = 25



+ [Command]
+ name = "我神饥爆魂_横版"
+ command = ~D, U, x
+ time = 25

+ [Command]
+ name = "我神共鸣魂_横版"
+ command = ~D, U, y
+ time = 25

+ [Command]
+ name = "我神变裂魂_横版"
+ command = ~D, U, a
+ time = 25


[Command]
name = "我神饥爆魂"
command = ~D, B, x
time = 25


[Command]
name = "我神共鸣魂"
command = ~D, B, y
time = 25

[Command]
name = "我神变裂魂"
command = ~D, B, a
time = 25





;---------魔改技-----------
[Command]
name = "爆炎龙_近"
command = ~F, D, x
time = 20

[Command]
name = "爆炎龙_中"
command = ~F, D, y
time = 20

[Command]
name = "爆炎龙_远"
command = ~F, D, z
time = 20



+ [Command]
+ name = "魔音水月刀_近_横版"
+ command = ~U, D, x
+ time = 20

+ [Command]
+ name = "魔音水月刀_中_横版"
+ command = ~U, D, y
+ time = 20

+ [Command]
+ name = "魔音水月刀_远_横版"
+ command = ~U, D, z
+ time = 20




[Command]
name = "魔音水月刀_近"
command = ~B, D, x
time = 20

[Command]
name = "魔音水月刀_中"
command = ~B, D, y
time = 20

[Command]
name = "魔音水月刀_远"
command = ~B, D, z
time = 20




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

[Command]  ;受身
name = "recovery"
command = a+b
time = 0

[Command]
name = "前滚"
command = ~DF, DF
time = 20

[Command]
name = "后滚"
command = ~DB, DB
time = 20
  
[Command]
name = "趴"
command = D, D
time = 10


;-----------------------------------
[Command]
name = "a"
command = a
+ time = 2
time = 1

[Command]
name = "b"
+ command = /b
command = b
+ time = 2
time = 1

[Command]
name = "c"
+ command = /c
command = c
+ time = 2
time = 1

[Command]
name = "x"
command = x
+ time = 2
time = 1

[Command]
name = "y"
command = y
+ time = 2
time = 1

[Command]
name = "z"
command = z
+ time = 2
time = 1

[Command]  
name = "s"  
command = s 
+ time = 2
time = 1

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

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

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

[Command]
name = "UU"
command = U, U
time = 10

[Command]
name = "DD"
command = D, D
time = 10



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

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










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













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

[State -1,AI]
type = VarSet
triggerall = !ishelper
triggerall = !(sysvar(4)&2**0)
triggerall = roundstate = 2
triggerall = ctrl
trigger1 = command = "AI1"
trigger2 = command = "AI2"
trigger3 = command = "AI3"
trigger4 = command = "AI4"
trigger5 = command = "AI5" 
trigger6 = command = "AI6" 
trigger7 = command = "AI7" 
trigger8 = command = "AI8"
trigger9 = command = "AI9"
trigger10 = command = "AI10"
trigger11 = command = "AI11"
trigger12 = command = "AI12"
trigger13 = command = "AI13"
trigger14 = command = "AI14"
trigger15 = command = "AI15"
trigger16 = command = "AI16"
trigger17 = command = "AI17"
trigger18 = command = "AI18"
trigger19 = command = "AI19"
trigger20 = command = "AI20"
trigger21 = command = "AI21"
trigger22 = command = "AI22"
trigger23 = command = "AI23"
trigger24 = command = "AI24"
trigger25 = command = "AI25"
trigger26 = command = "AI26"
trigger27 = command = "AI27"
trigger28 = command = "AI28"
trigger29 = command = "AI29"
trigger30 = command = "AI30"
trigger31 = command = "AI31"
trigger32 = command = "AI32"
trigger33 = command = "AI33"
trigger34 = command = "AI34"
trigger35 = command = "AI35"
trigger36 = 1  ;常识开启
sysvar(4) = sysvar(4)|2**0


[State -2]  ;过场关闭AI防下一局偷跑
type = VarSet
triggerall = !ishelper
triggerall = sysvar(4)&2**0
triggerall = roundstate != 2
trigger1 = 1
sysvar(4) = (sysvar(4) - (sysvar(4)&2**0))
ignorehitpause = 1



[State -1]  ;满气系统自动发怒
type = ChangeState
value = 950
triggerall = !ishelper
triggerall = roundstate = 2
triggerall = statetype != A
triggerall = playeridexist(var(46))
triggerall = playerid(var(46)),var(11) = 1
triggerall = playerid(var(46)),var(14) = 0
triggerall = ctrl
trigger1 = 1









;人工智能
;--------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------

[State -1]
type = ChangeState
value = 98
triggerall = var(51) = 1  ;是梦工厂
;+ triggerall = aivar(24) = 1  ;有Z轴
triggerall = !ishelper
triggerall = sysvar(4)&2**0
triggerall = alive != 0
triggerall = roundstate = 2
triggerall = statetype = S
triggerall = !numenemy || (numenemy = 1 && !enemynear,alive)
triggerall = FrontEdgeBodyDist > 15
triggerall = ctrl
trigger1 = 1


[State -1]  ;前____尽量远程牵制__近身战吃亏
type = changestate
value = 21
triggerall = !ishelper
triggerall = alive != 0
triggerall = sysvar(4)&2**0
triggerall = roundstate = 2
triggerall = statetype != A
triggerall = p2bodydist x > 0 && FrontEdgeBodyDist > 60
triggerall = !inguarddist
Triggerall = random = [0,100)
triggerall = ctrl
triggerall = var(1) = -1  ;P2常态
trigger1 = 1


[State -1]  ;后
type = ChangeState
value = 22
Triggerall = !ishelper
Triggerall = alive != 0
triggerall = sysvar(4)&2**0
Triggerall = roundstate = 2
Triggerall = statetype != A
triggerall = p2bodydist x <= 85 && BackEdgeBodyDist > 60
triggerall = !inguarddist
Triggerall = random = [100,200)
triggerall = ctrl
triggerall = var(1) = -1  ;P2常态
Trigger1 = 1


[State -1]  ;对丧尸球
type = changestate
value = 41 + (random <= 20)
+ triggerall = aivar(23) = 0  ;Z轴距离检测
triggerall = enemynear,name = "LEGION"
triggerall = !ishelper
triggerall = alive != 0
triggerall = sysvar(4)&2**0
triggerall = roundstate = 2
triggerall = statetype != A
Triggerall = random <= 220
triggerall = ctrl || (anim = [20,21])
triggerall = var(1) = -1  ;P2常态
trigger1 = 1


[State -1]  ;后撤/后跳
type = ChangeState
Triggerall = !ishelper
Triggerall = alive != 0
triggerall = sysvar(4)&2**0
triggerall = roundstate = 2
Triggerall = statetype != A
triggerall = var(1) = [4,5]
triggerall = p2bodydist x <= 55
triggerall = ctrl || (anim = [20,21])
trigger1 = 1
value = ifelse(BackEdgeBodyDist > 60,105,42)


[State -1]  ;躲
type = ChangeState
Triggerall = !ishelper
Triggerall = alive != 0
triggerall = sysvar(4)&2**0
triggerall = roundstate = 2
Triggerall = statetype != A
triggerall = var(1) = -1
triggerall = p2bodydist x <= 160
triggerall = enemynear,anim = [100,102]
Triggerall = random = [200,300)
trigger1 = ctrl || (anim = [20,21]) || (anim = 5120 && animtime = 0)
value = 109 + 2*(random%2)



[State ]  ;版边对指令投__前滚
type = ChangeState
Triggerall = !ishelper
Triggerall = alive != 0
triggerall = sysvar(4)&2**0
Triggerall = roundstate = 2
triggerall = var(1) = -1  ;P2常态
triggerall = var(2)&2**0  ;P2有指令投
triggerall = var(9) = [1800,2000)
triggerall = enemynear,movetype != H && p2bodydist x <= 55 
triggerall = ctrl || (stateno = [120,131]) || anim = 910 || (anim = [20,21]) || (anim = 5120 && animtime = 0)
trigger1 = BackEdgeBodyDist <= 45
trigger1 = p2statetype = A && p2bodydist x >= -77
value = 109




;--------------------------------------------------------------------------------------------------
;------------------------------------------------------嘲讽追击

[State -1]  ;跑
type = ChangeState
value = 99
triggerall = !ishelper
triggerall = sysvar(4)&2**0
triggerall = alive != 0
triggerall = roundstate = 2
triggerall = statetype != A
triggerall = ctrl || (anim = [20,21])
triggerall = numexplod(44) = 0
triggerall = numexplod(55) = 0
trigger1 = var(1) = 6 || var(1) = 8


[State -1]
type = Explod
triggerall = !ishelper
triggerall = sysvar(4)&2**0
triggerall = alive != 0
triggerall = sysvar(3) = 99
triggerall = numexplod(55) = 0
triggerall = var(1) = 6 || var(1) = 8
trigger1 = 1
anim = 9999
ID = 55
removetime = -1
scale = 0,0


[State -1]  ;笑
type = ChangeState
value = 195
triggerall = !ishelper
triggerall = sysvar(4)&2**0
triggerall = alive != 0
triggerall = roundstate = 2
triggerall = statetype != A
triggerall = ctrl || (anim = [20,21])
triggerall = numexplod(44) = 0
triggerall = numexplod(55) = 0
trigger1 = var(1) = 1 || var(1) = 3 || var(1) = 7


[State -1]
type = Explod
triggerall = !ishelper
triggerall = sysvar(4)&2**0
triggerall = alive != 0
triggerall = sysvar(3) = 195
triggerall = numexplod(44) = 0
triggerall = var(1) = 1 || var(1) = 3 || var(1) = 7
trigger1 = 1
anim = 9999
ID = 44
removetime = -1
scale = 0,0

[State -1]
type = RemoveExplod
triggerall = !ishelper
triggerall = anim = [0,21]
triggerall = p2bodydist x > 40 && numexplod(44)
triggerall = var(1) = 1 || var(1) = 3
trigger1 = 1
id = 44



[State ]  ;蹲B/蹲AB
type = ChangeState
value = 410 + 10*(random%2)
triggerall = !ishelper
+ triggerall = aivar(23) = 0  ;Z轴距离检测
triggerall = sysvar(4)&2**0
triggerall = alive != 0
Triggerall = roundstate = 2
triggerall = p2bodydist x = [-10,79 + enemynear,vel x*8]
triggerall = ctrl || (anim = [20,21])
triggerall = var(1) = 1 || var(1) = 3 || var(1) = 8
Trigger1 = 1











;--------------------------------------------------------------------------------------------------
;------------------------------------------------------直死



[State -1]
type = ChangeState
value = 3510
+ triggerall = aivar(24) = 0  ;没有Z轴
triggerall = !ishelper
triggerall = sysvar(4)&2**0
triggerall = sysvar(4)&2**4    ;准论外确认
triggerall = alive != 0
triggerall = roundstate = 2
triggerall = statetype != A
triggerall = ctrl || (anim = [20,21])
trigger1 = floor(fvar(1)) >= 3  ;敌脱离3次
trigger2 = var(22) >= 30  ;战斗超过30秒敌满血
trigger2 = enemynear,life = enemynear,lifemax


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

[State -1]
type = ChangeState
value = 3400
triggerall = var(51) = 1  ;梦工厂
+ triggerall = aivar(24) = 1   ;有Z轴
+ triggerall = p2bodydist z = [-60,60]
triggerall = sysvar(4)&2**5   ;魔改
triggerall = sysvar(4)&2**0
triggerall = var(40) >= 500
triggerall = !ishelper
triggerall = roundstate = 2
triggerall = alive != 0
triggerall = statetype != A && p2movetype != H && numenemy && enemynear,alive
triggerall = p2bodydist x = [-60,60]
Triggerall = var(9) = [1900,2000)
triggerall = ctrl || (anim = [20,21])
trigger1 = 1



[State -1]
type = ChangeState
value = 3500
triggerall = !ishelper
+ triggerall = aivar(23) = 0  ;Z轴距离检测
triggerall = sysvar(4)&2**5
triggerall = sysvar(4)&2**0
triggerall = playeridexist(var(46))
triggerall = playerid(var(46)),var(11) = 1  ;满气
triggerall = alive != 0
triggerall = roundstate = 2
triggerall = statetype != A
triggerall = p2movetype != H && p2statetype != A
triggerall = p2bodydist x = [-10,225]
Triggerall = random = [300,400)
triggerall = ctrl || (anim = [20,21])
triggerall = var(1) = -1  ;P2常态
trigger1 = 1


[State -1]
type = ChangeState
value = 3000
triggerall = !ishelper
+ triggerall = aivar(23) = 0  ;Z轴距离检测
triggerall = sysvar(4)&2**0
triggerall = playeridexist(var(46))
triggerall = playerid(var(46)),var(11) = 1  ;满气
triggerall = alive != 0
triggerall = roundstate = 2
triggerall = statetype != A
triggerall = p2movetype != H && p2statetype != A
triggerall = p2bodydist x = [-10,225]
triggerall = numhelper(3050) = 0
Triggerall = random = [400,500)
triggerall = ctrl || (anim = [20,21])
triggerall = var(1) = -1  ;P2常态
trigger1 = 1











;--------------------------------------------------------------------------------------------------
;------------------------------------------------------飞道

[State -1]  ;瞬移
type = ChangeState
value = 1300
triggerall = !ishelper
+ triggerall = aivar(23) = 0  ;Z轴距离检测
triggerall = sysvar(4)&2**0
triggerall = alive != 0
triggerall = roundstate = 2
triggerall = statetype != A
triggerall = enemynear,movetype = A || (p2bodydist x <= 145 && p2movetype != H)
Triggerall = var(9) = [1600,1700)
triggerall = ctrl || (anim = [20,21]) || (stateno = [120,131])
triggerall = var(1) = -1  ;P2常态
trigger1 = 1


[State -1]  ;格剑
type = ChangeState
value = 909
triggerall = !ishelper
+ triggerall = aivar(23) = 0  ;Z轴距离检测
triggerall = sysvar(4)&2**0
triggerall = alive != 0
triggerall = roundstate = 2
triggerall = statetype != A
triggerall = enemynear,statetype != A && !enemynear,numproj
triggerall = p2bodydist x = [-6,145]
Triggerall = var(9) = [1500,1600)
triggerall = ctrl || (anim = [20,21])
triggerall = var(1) = -1  ;P2常态
trigger1 = 1



[State -1]  ;弹刀
type = ChangeState
value = 900
triggerall = !ishelper
+ triggerall = aivar(23) = 0  ;Z轴距离检测
triggerall = sysvar(4)&2**0
triggerall = alive != 0
triggerall = roundstate = 2
triggerall = statetype != A
triggerall = enemynear,statetype != A
triggerall = enemynear,movetype = A && (enemynear,hitdefattr = SC,NA,SA)
;triggerall = enemynear,animtime <= -4
triggerall = p2bodydist x = [-6,55]
triggerall = facing != enemynear,facing
Triggerall = var(9) = [1400,1500)
triggerall = ctrl || (anim = [20,21]) || (stateno = [120,131])
triggerall = var(1) = -1  ;P2常态
trigger1 = 1









[State -1]  ;我神共鸣魂
type = ChangeState
value = 2200
triggerall = !ishelper
+ triggerall = aivar(23) = 0  ;Z轴距离检测
triggerall = sysvar(4)&2**0
triggerall = alive != 0
triggerall = roundstate = 2
triggerall = statetype != A
triggerall = p2movetype != H && p2statetype != A
triggerall = p2bodydist x = [180,252]
triggerall = playeridexist(var(24))            ;存在魔兽
triggerall = playerid(var(24)),facing = facing  ;朝向一致
Triggerall = var(9) = [1300,1400)
triggerall = ctrl || (anim = [20,21])
triggerall = var(1) = -1  ;P2常态
trigger1 = playerid(var(24)),sysvar(3) = 10000   ;魔兽站立
trigger2 = playerid(var(24)),sysvar(3) = 10100   ;魔兽走
trigger3 = playerid(var(24)),sysvar(3) = 10110   ;魔兽跑
trigger4 = playerid(var(24)),sysvar(3) = 10150   ;魔兽退




[State -1]  ;我神共鸣魂
type = ChangeState
value = 2100
triggerall = !ishelper
+ triggerall = aivar(23) = 0  ;Z轴距离检测
triggerall = sysvar(4)&2**0
triggerall = alive != 0
triggerall = roundstate = 2
triggerall = statetype != A
triggerall = p2bodydist x = [0,252]
triggerall = playeridexist(var(24))            ;存在魔兽
triggerall = playerid(var(24)),facing = facing  ;朝向一致
Triggerall = var(9) = [1200,1300)
triggerall = ctrl || (anim = [20,21])
triggerall = var(1) = 5  ;P2起身
trigger1 = playerid(var(24)),sysvar(3) = 10000   ;魔兽站立
trigger2 = playerid(var(24)),sysvar(3) = 10100   ;魔兽走
trigger3 = playerid(var(24)),sysvar(3) = 10110   ;魔兽跑
trigger4 = playerid(var(24)),sysvar(3) = 10150   ;魔兽退


[State -1]  ;我神共鸣魂
type = ChangeState
value = 2100
triggerall = !ishelper
+ triggerall = aivar(23) = 0  ;Z轴距离检测
triggerall = sysvar(4)&2**0
triggerall = alive != 0
triggerall = roundstate = 2
triggerall = statetype != A
triggerall = p2movetype != H && p2statetype != A
triggerall = p2bodydist x = [180,252]
triggerall = playeridexist(var(24))            ;存在魔兽
triggerall = playerid(var(24)),facing = facing  ;朝向一致
Triggerall = var(9) = [1100,1200)
triggerall = ctrl || (anim = [20,21])
triggerall = var(1) = -1  ;P2常态
trigger1 = playerid(var(24)),sysvar(3) = 10000   ;魔兽站立
trigger2 = playerid(var(24)),sysvar(3) = 10100   ;魔兽走
trigger3 = playerid(var(24)),sysvar(3) = 10110   ;魔兽跑
trigger4 = playerid(var(24)),sysvar(3) = 10150   ;魔兽退







[State -1]  ;我神饥爆魂
type = ChangeState
value = 2000
triggerall = !ishelper
+ triggerall = aivar(23) = 0  ;Z轴距离检测
triggerall = sysvar(4)&2**0
triggerall = alive != 0
triggerall = roundstate = 2
triggerall = statetype != A
triggerall = p2movetype != H && p2statetype != A
triggerall = p2bodydist x = [180,252]
triggerall = playeridexist(var(24))            ;存在魔兽
triggerall = playerid(var(24)),facing = facing  ;朝向一致
Triggerall = var(9) = [1000,1100)
triggerall = ctrl || (anim = [20,21])
triggerall = var(1) = -1  ;P2常态
trigger1 = playerid(var(24)),sysvar(3) = 10000   ;魔兽站立
trigger2 = playerid(var(24)),sysvar(3) = 10100   ;魔兽走
trigger3 = playerid(var(24)),sysvar(3) = 10110   ;魔兽跑
trigger4 = playerid(var(24)),sysvar(3) = 10150   ;魔兽退





















[State -1]  ;水月刀
type = ChangeState
value = 1800 + 30*(p2bodydist x = [65,138)) + 40*(p2bodydist x = [138,205))
triggerall = !ishelper
+ triggerall = aivar(23) = 0  ;Z轴距离检测
triggerall = sysvar(4)&2**5
triggerall = sysvar(4)&2**0
triggerall = alive != 0
triggerall = roundstate = 2
triggerall = statetype != A
triggerall = (p2bodydist x = [0,65)) || (p2bodydist x = [65,138)) || (p2bodydist x = [138,205))
Triggerall = var(9) = [900,1000)
triggerall = ctrl || (anim = [20,21])
triggerall = var(1) = 5  ;P2起身
trigger1 = 1












[State -1]  ;爆炎龙
type = ChangeState
value = 1500 + 100*(p2bodydist x = [75,135)) + 200*(p2bodydist x = [135,215))
triggerall = !ishelper
+ triggerall = aivar(23) = 0  ;Z轴距离检测
triggerall = sysvar(4)&2**5
triggerall = sysvar(4)&2**0
triggerall = alive != 0
triggerall = roundstate = 2
triggerall = statetype != A
triggerall = (p2bodydist x = [-10,75)) || (p2bodydist x = [75,135)) || (p2bodydist x = [135,215))
Triggerall = var(9) = [800,900)
triggerall = ctrl || (anim = [20,21])
triggerall = var(1) = 4  ;P2倒地
trigger1 = 1







[State -1]
type = ChangeState
value = 1200
triggerall = !ishelper
+ triggerall = aivar(23) = 0  ;Z轴距离检测
triggerall = sysvar(4)&2**0
triggerall = alive != 0
triggerall = roundstate = 2
triggerall = statetype != A
triggerall = p2movetype != H && p2statetype != A
triggerall = p2bodydist x = [-10,250]
triggerall = numhelper(1250) = 0
Triggerall = var(9) = [700,800)
triggerall = ctrl || (anim = [20,21])
triggerall = var(1) = -1  ;P2常态
trigger1 = 1




[State -1]
type = ChangeState
value = 1000
triggerall = !ishelper
+ triggerall = aivar(23) = 0  ;Z轴距离检测
triggerall = sysvar(4)&2**0
triggerall = alive != 0
triggerall = roundstate = 2
triggerall = statetype != A
triggerall = p2movetype != H && p2statetype = A
triggerall = p2bodydist x = [0,35]
triggerall = p2bodydist y >= -83-enemynear,vel y
Triggerall = var(9) = [600,700)
triggerall = ctrl || (anim = [20,21])
triggerall = var(1) = -1  ;P2常态
trigger1 = numhelper(1050) = 0
trigger2 = numhelper(1055) = 0
trigger2 = numhelper(1050) = 1 && helper(1050),sysvar(3) = 1075


[State -1]
type = ChangeState
value = 1000
triggerall = !ishelper
+ triggerall = aivar(23) = 0  ;Z轴距离检测
triggerall = sysvar(4)&2**0
triggerall = alive != 0
triggerall = roundstate = 2
triggerall = statetype != A
triggerall = p2movetype != H
triggerall = p2bodydist x = [180,250]
Triggerall = var(9) = [500,600)
triggerall = ctrl || (anim = [20,21])
triggerall = var(1) = -1  ;P2常态
trigger1 = numhelper(1050) = 0
trigger2 = numhelper(1055) = 0
trigger2 = numhelper(1050) = 1 && helper(1050),sysvar(3) = 1075



;--------------------------------------------------------------------------------------------------
;------------------------------------------------------普攻

[State -1]  ;BC斩
type = ChangeState
value = 650
Triggerall = !ishelper
+ triggerall = aivar(23) = 0  ;Z轴距离检测
Triggerall = alive != 0
triggerall = sysvar(4)&2**5
triggerall = sysvar(4)&2**0
Triggerall = roundstate = 2
Triggerall = statetype != A
triggerall = p2movetype != H && p2statetype != A
triggerall = p2bodydist x = [-6,120 + enemynear,vel x*10]
Triggerall = var(9) = [1700,1800)
triggerall = ctrl || (anim = [20,21])
triggerall = var(1) = -1  ;P2常态
Trigger1 = 1




[State -1]  ;蹲B/蹲AB
type = ChangeState
value = 410 + 10*(random%2)
Triggerall = !ishelper
+ triggerall = aivar(23) = 0  ;Z轴距离检测
Triggerall = alive != 0
triggerall = sysvar(4)&2**0
Triggerall = roundstate = 2
Triggerall = statetype != A
triggerall = p2movetype != H && p2statetype != A
triggerall = p2bodydist x = [-6,79 + enemynear,vel x*8]
Triggerall = var(9) = [400,500)
triggerall = ctrl || (anim = [20,21])
triggerall = var(1) = -1  ;P2常态
Trigger1 = 1






[State -1]  ;立A/蹲A__试探性攻击
type = ChangeState
value = 200 + 200*(random%2)
Triggerall = !ishelper
+ triggerall = aivar(23) = 0  ;Z轴距离检测
Triggerall = alive != 0
triggerall = sysvar(4)&2**0
Triggerall = roundstate = 2
Triggerall = statetype != A
triggerall = !inguarddist && p2movetype = I && p2statetype != A
triggerall = p2bodydist x = [155,256]
Triggerall = random = [500,600)
Triggerall = (gametime%60) = 0
triggerall = ctrl || (anim = [20,21])
triggerall = var(1) = -1  ;P2常态
Trigger1 = 1



[State -1]  ;立A/蹲A
type = ChangeState
value = 200 + 200*(p2statetype = C)
Triggerall = !ishelper
+ triggerall = aivar(23) = 0  ;Z轴距离检测
Triggerall = alive != 0
triggerall = sysvar(4)&2**0
Triggerall = roundstate = 2
Triggerall = statetype != A
triggerall = p2movetype != H && p2statetype != A
triggerall = p2bodydist x = [-6,80 + enemynear,vel x*8]
Triggerall = var(9) = [300,400)
triggerall = ctrl || (anim = [20,21])
triggerall = var(1) = -1  ;P2常态
Trigger1 = 1



[State -1]  ;立B
type = ChangeState
value = 210
Triggerall = !ishelper
+ triggerall = aivar(23) = 0  ;Z轴距离检测
Triggerall = alive != 0
triggerall = sysvar(4)&2**0
Triggerall = roundstate = 2
Triggerall = statetype != A
triggerall = p2movetype != H && p2statetype != A
triggerall = p2bodydist x = [-6,85 + enemynear,vel x*9]
Triggerall = var(9) = [200,300)
triggerall = ctrl || (anim = [20,21])
triggerall = var(1) = -1  ;P2常态
Trigger1 = 1


[State -1]  ;立AB
type = ChangeState
value = 220
Triggerall = !ishelper
+ triggerall = aivar(23) = 0  ;Z轴距离检测
Triggerall = alive != 0
triggerall = sysvar(4)&2**0
Triggerall = roundstate = 2
Triggerall = statetype != A
triggerall = p2movetype != H && p2statetype != A
triggerall = p2bodydist x = [-6,70 + enemynear,vel x*9]
Triggerall = var(9) = [100,200)
triggerall = ctrl || (anim = [20,21])
triggerall = var(1) = -1  ;P2常态
Trigger1 = 1




;--------------------------------------------------------------------------------------------------
;------------------------------------------------------投技

[State -1]
type = ChangeState
value = 800 + 10*(random%2)
Triggerall = !ishelper
+ triggerall = aivar(23) = 0  ;Z轴距离检测
Triggerall = alive != 0
triggerall = sysvar(4)&2**0
Triggerall = roundstate = 2
Triggerall = statetype != A
triggerall = p2movetype != H && p2statetype != A
triggerall = p2dist x > 0 && p2bodydist x <= 12
;triggerall = !inguarddist
Triggerall = random = [700,1000)
triggerall = var(1) = -1  ;P2常态
Trigger1 = ctrl || (anim = [20,21]) || (anim = [110,111])




;--------------------------------------------------------------------------------------------------
;------------------------------------------------------闪躲


[State -1]  ;Q
type = ChangeState
value = 198
Triggerall = !ishelper
+ triggerall = aivar(23) = 0  ;Z轴距离检测
Triggerall = alive != 0
triggerall = sysvar(4)&2**0
Triggerall = roundstate = 2
Triggerall = statetype != A
triggerall = p2movetype != H
triggerall = p2bodydist x = [-6,20]
Triggerall = var(9) = [50,100)
triggerall = ctrl || (anim = [20,21])
triggerall = var(1) = -1  ;P2常态
Trigger1 = 1



[State -1]  ;闪后
type = ChangeState
value = ifelse(BackEdgeBodyDist >= 72, 1400, 109 + 2*(random%2))
Triggerall = !ishelper
+ triggerall = aivar(23) = 0  ;Z轴距离检测
Triggerall = alive != 0
triggerall = sysvar(4)&2**0
Triggerall = roundstate = 2
Triggerall = statetype != A
triggerall = inguarddist || (p2movetype = A && p2bodydist x <= 52)
triggerall = enemynear,animtime <= -7
Triggerall = var(9) = [0,50)
triggerall = ctrl || (anim = [20,21])
triggerall = var(1) = -1  ;P2常态
Trigger1 = 1


[State -1]  ;趴
type = ChangeState
value = 116
Triggerall = !ishelper
+ triggerall = aivar(23) = 0  ;Z轴距离检测
Triggerall = alive != 0
triggerall = sysvar(4)&2**0
Triggerall = roundstate = 2
Triggerall = p2statetype != C && statetype != A
triggerall = inguarddist || (p2movetype = A && p2bodydist x <= 52)
triggerall = enemynear,animtime <= -7
Triggerall = var(9) = [-100,0)
triggerall = ctrl || (anim = [20,21])
triggerall = var(1) = -1  ;P2常态
triggerall = !(var(2)&2**0)  ;P2没有指令投
triggerall = !(var(2)&2**4)  ;116破招前
Trigger1 = 1


[State -1]  ;小跳
type = ChangeState
value = 112
Triggerall = !ishelper
+ triggerall = aivar(23) = 0  ;Z轴距离检测
Triggerall = alive != 0
triggerall = sysvar(4)&2**0
Triggerall = roundstate = 2
Triggerall = p2statetype = C && statetype != A
triggerall = inguarddist || (p2movetype = A && p2bodydist x <= 52)
triggerall = enemynear,animtime <= -7
Triggerall = var(9) = [-200,-100)
triggerall = ctrl || (anim = [20,21])
triggerall = var(1) = -1  ;P2常态
triggerall = !(var(2)&2**3)  ;112破招前
Trigger1 = 1





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

[State -1]
type = ChangeState
value = 109 + 2*(random%2)
Triggerall = !ishelper
+ triggerall = aivar(23) = 0  ;Z轴距离检测
Triggerall = alive != 0
triggerall = var(2)&2**5  ;破防记忆
triggerall = sysvar(4)&2**0
Triggerall = roundstate = 2
Triggerall = (statetype != A)
triggerall = inguarddist || (p2movetype = A && p2bodydist x <= 150)
triggerall = random = [600,700)
triggerall = ctrl || (anim = [20,21])
trigger1 = 1


[State -1]
type = ChangeState
value = 130 + (enemynear,statetype != A)
Triggerall = !ishelper
+ triggerall = aivar(23) = 0  ;Z轴距离检测
Triggerall = alive != 0
triggerall = !(sysvar(4)&2**1)
triggerall = sysvar(4)&2**0
Triggerall = roundstate = 2
Triggerall = (statetype != A)
triggerall = inguarddist || (p2movetype = A && p2bodydist x <= 52)
triggerall = ctrl || (anim = [20,21])
trigger1 = 1














































;手操
;--------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------
;注意该人物原版空中攻击只有__空轻斩__空重斩__空轻踢
;该人物飞行道具不分强弱
;--------------------------------------------------------------------------------------------------





;--------------------------------------------------------超杀

[State -1]
type = ChangeState
value = 3510
+ triggerall = aivar(24) = 0  ;没有Z轴
triggerall = !ishelper
triggerall = !(sysvar(4)&2**0)
triggerall = sysvar(4)&2**4    ;准论外确认
triggerall = alive != 0
triggerall = roundstate = 2
triggerall = statetype != A
triggerall = command = "z" && command = "c"
triggerall = ctrl
trigger1 = 1


+ [State -1]
+ type = ChangeState
+ value = 3400
+ triggerall = !ishelper
+ triggerall = sysvar(4)&2**5
+ triggerall = !(sysvar(4)&2**0)
+ triggerall = var(40) >= 500
+ triggerall = alive != 0
+ triggerall = roundstate = 2
+ triggerall = statetype != A
+ triggerall = command = "群魔乱舞_横版Z"
+ triggerall = ctrl
+ trigger1 = 1



[State -1]
type = ChangeState
value = 3500
triggerall = !ishelper
triggerall = sysvar(4)&2**5
triggerall = !(sysvar(4)&2**0)
triggerall = playeridexist(var(46))
triggerall = playerid(var(46)),var(11) = 1  ;满气
triggerall = alive != 0
triggerall = roundstate = 2
triggerall = statetype != A
+ triggerall = (aivar(24) = 0 && command = "群魔乱舞") || (aivar(24) = 1 && command = "群魔乱舞_横版")
triggerall = ifelse(var(51) = 0, command = "群魔乱舞", 1)
triggerall = ctrl
trigger1 = 1




[State -1]
type = ChangeState
value = 3000
triggerall = !ishelper
triggerall = !(sysvar(4)&2**0)
triggerall = playeridexist(var(46))
triggerall = playerid(var(46)),var(11) = 1  ;满气
triggerall = alive != 0
triggerall = roundstate = 2
triggerall = statetype != A
triggerall = numhelper(3050) = 0
+ triggerall = (aivar(24) = 0 && command = "天地魔境阵") || (aivar(24) = 1 && command = "天地魔境阵_横版")
triggerall = ifelse(var(51) = 0, command = "天地魔境阵", 1)
triggerall = ctrl
trigger1 = 1






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



[State -1]
type = ChangeState
value = 2200
triggerall = !ishelper
triggerall = !(sysvar(4)&2**0)
triggerall = alive != 0
triggerall = roundstate = 2
triggerall = statetype != A
+ triggerall = (aivar(24) = 0 && command = "我神变裂魂") || (aivar(24) = 1 && command = "我神变裂魂_横版")
triggerall = ifelse(var(51) = 0, command = "我神变裂魂", 1)
triggerall = playeridexist(var(24))            ;存在魔兽
triggerall = playerid(var(24)),facing = facing  ;朝向一致
triggerall = ctrl
trigger1 = playerid(var(24)),sysvar(3) = 10000   ;魔兽站立
trigger2 = playerid(var(24)),sysvar(3) = 10100   ;魔兽走
trigger3 = playerid(var(24)),sysvar(3) = 10110   ;魔兽跑
trigger4 = playerid(var(24)),sysvar(3) = 10150   ;魔兽退


[State -1]
type = ChangeState
value = 2100
triggerall = !ishelper
triggerall = !(sysvar(4)&2**0)
triggerall = alive != 0
triggerall = roundstate = 2
triggerall = statetype != A
+ triggerall = (aivar(24) = 0 && command = "我神共鸣魂") || (aivar(24) = 1 && command = "我神共鸣魂_横版")
triggerall = ifelse(var(51) = 0, command = "我神共鸣魂", 1)
triggerall = playeridexist(var(24))            ;存在魔兽
triggerall = playerid(var(24)),facing = facing  ;朝向一致
triggerall = ctrl
trigger1 = playerid(var(24)),sysvar(3) = 10000   ;魔兽站立
trigger2 = playerid(var(24)),sysvar(3) = 10100   ;魔兽走
trigger3 = playerid(var(24)),sysvar(3) = 10110   ;魔兽跑
trigger4 = playerid(var(24)),sysvar(3) = 10150   ;魔兽退



[State -1]
type = ChangeState
value = 2000
triggerall = !ishelper
triggerall = !(sysvar(4)&2**0)
triggerall = alive != 0
triggerall = roundstate = 2
triggerall = statetype != A
+ triggerall = (aivar(24) = 0 && command = "我神饥爆魂") || (aivar(24) = 1 && command = "我神饥爆魂_横版")
triggerall = ifelse(var(51) = 0, command = "我神饥爆魂", 1)
triggerall = playeridexist(var(24))            ;存在魔兽
triggerall = playerid(var(24)),facing = facing  ;朝向一致
triggerall = ctrl
trigger1 = playerid(var(24)),sysvar(3) = 10000   ;魔兽站立
trigger2 = playerid(var(24)),sysvar(3) = 10100   ;魔兽走
trigger3 = playerid(var(24)),sysvar(3) = 10110   ;魔兽跑
trigger4 = playerid(var(24)),sysvar(3) = 10150   ;魔兽退




[State -1]
type = ChangeState
value = 1840
triggerall = !ishelper
triggerall = sysvar(4)&2**5
triggerall = !(sysvar(4)&2**0)
triggerall = alive != 0
triggerall = roundstate = 2
triggerall = statetype != A
+ triggerall = (aivar(24) = 0 && command = "魔音水月刀_远") || (aivar(24) = 1 && command = "魔音水月刀_远_横版")
triggerall = ifelse(var(51) = 0, command = "魔音水月刀_远", 1)
triggerall = ctrl
trigger1 = 1




[State -1]
type = ChangeState
value = 1830
triggerall = !ishelper
triggerall = sysvar(4)&2**5
triggerall = !(sysvar(4)&2**0)
triggerall = alive != 0
triggerall = roundstate = 2
triggerall = statetype != A
+ triggerall = (aivar(24) = 0 && command = "魔音水月刀_中") || (aivar(24) = 1 && command = "魔音水月刀_中_横版")
triggerall = ifelse(var(51) = 0, command = "魔音水月刀_中", 1)
triggerall = ctrl
trigger1 = 1


[State -1]
type = ChangeState
value = 1800
triggerall = !ishelper
triggerall = sysvar(4)&2**5
triggerall = !(sysvar(4)&2**0)
triggerall = alive != 0
triggerall = roundstate = 2
triggerall = statetype != A
+ triggerall = (aivar(24) = 0 && command = "魔音水月刀_近") || (aivar(24) = 1 && command = "魔音水月刀_近_横版")
triggerall = ifelse(var(51) = 0, command = "魔音水月刀_近", 1)
triggerall = ctrl
trigger1 = 1













[State -1]
type = ChangeState
value = 1700
triggerall = !ishelper
triggerall = sysvar(4)&2**5
triggerall = !(sysvar(4)&2**0)
triggerall = alive != 0
triggerall = roundstate = 2
triggerall = statetype != A
triggerall = command = "爆炎龙_远"
triggerall = ctrl
trigger1 = 1


[State -1]
type = ChangeState
value = 1600
triggerall = !ishelper
triggerall = sysvar(4)&2**5
triggerall = !(sysvar(4)&2**0)
triggerall = alive != 0
triggerall = roundstate = 2
triggerall = statetype != A
triggerall = command = "爆炎龙_中"
triggerall = ctrl
trigger1 = 1


[State -1]
type = ChangeState
value = 1500
triggerall = !ishelper
triggerall = sysvar(4)&2**5
triggerall = !(sysvar(4)&2**0)
triggerall = alive != 0
triggerall = roundstate = 2
triggerall = statetype != A
triggerall = command = "爆炎龙_近"
triggerall = ctrl
trigger1 = 1







[State -1]
type = ChangeState
value = 1400
triggerall = !ishelper
triggerall = !(sysvar(4)&2**0)
triggerall = alive != 0
triggerall = roundstate = 2
triggerall = statetype != A
triggerall = command = "魔界转生_后"
triggerall = ctrl
trigger1 = 1

[State -1]
type = ChangeState
value = 1300
triggerall = !ishelper
triggerall = !(sysvar(4)&2**0)
triggerall = alive != 0
triggerall = roundstate = 2
triggerall = statetype != A
triggerall = command = "魔界转生_前"
triggerall = ctrl
trigger1 = 1



[State -1]
type = ChangeState
value = 1200
triggerall = !ishelper
triggerall = !(sysvar(4)&2**0)
triggerall = alive != 0
triggerall = roundstate = 2
triggerall = statetype != A
triggerall = numhelper(1250) = 0
triggerall = command = "霸气阴灭阵"
triggerall = ctrl
trigger1 = 1




[State -1]
type = ChangeState
value = 1000
triggerall = !ishelper
triggerall = !(sysvar(4)&2**0)
triggerall = alive != 0
triggerall = roundstate = 2
triggerall = statetype != A
triggerall = command = "邪心共鸣"
triggerall = ctrl
trigger1 = numhelper(1050) = 0
trigger2 = numhelper(1055) = 0
trigger2 = numhelper(1050) = 1 && helper(1050),sysvar(3) = 1075

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




[State -1]  ;BC低空斩
type = ChangeState
value = 650
triggerall = !ishelper
triggerall = alive != 0
triggerall = sysvar(4)&2**5
triggerall = !(sysvar(4)&2**0)
triggerall = roundstate = 2
triggerall = statetype = S
Triggerall = command = "b" && command = "c"
triggerall = ctrl
trigger1 = 1

[State ]  ;格剑
type = ChangeState
value = 910
+ triggerall = aivar(24) = 0  ;没有Z轴
triggerall = !ishelper
triggerall = alive != 0
triggerall = !(sysvar(4)&2**0)
triggerall = roundstate = 2
triggerall = statetype = S
;triggerall = numhelper(6065) = 0
triggerall = command = "a" && command = "b"
triggerall = ctrl
trigger1 = 1


[State -1]  ;弹刀
type = ChangeState
value = 900
+ triggerall = aivar(24) = 0  ;没有Z轴
triggerall = !ishelper
triggerall = alive != 0
triggerall = !(sysvar(4)&2**0)
triggerall = roundstate = 2
triggerall = statetype = S
triggerall = command = "b"
triggerall = ctrl
trigger1 = 1


[State -1]  ;投2
type = ChangeState
value = 810
triggerall = !ishelper
triggerall = alive != 0
triggerall = !(sysvar(4)&2**0)
triggerall = roundstate = 2
triggerall = statetype = S
triggerall = p2bodydist x <= 12
triggerall = command = "y"
triggerall = command = "前" || command = "后"
triggerall = ctrl
trigger1 = 1

[State -1]  ;投
type = ChangeState
value = 800
triggerall = !ishelper
triggerall = alive != 0
triggerall = !(sysvar(4)&2**0)
triggerall = roundstate = 2
triggerall = statetype = S
triggerall = p2bodydist x <= 12
triggerall = command = "z"
triggerall = command = "前" || command = "后"
triggerall = ctrl
trigger1 = 1


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

[State -1]
type = ChangeState
value = 630
triggerall = !ishelper
triggerall = alive != 0
triggerall = !(sysvar(4)&2**0)
triggerall = roundstate = 2
triggerall = statetype = A
Triggerall = command = "a"
triggerall = ctrl
trigger1 = 1


[State -1]
type = ChangeState
value = 620
triggerall = !ishelper
triggerall = alive != 0
triggerall = !(sysvar(4)&2**0)
triggerall = roundstate = 2
triggerall = statetype = A
Triggerall = command = "z"
triggerall = ctrl
trigger1 = 1


[State -1]
type = ChangeState
value = 600
triggerall = !ishelper
triggerall = alive != 0
triggerall = !(sysvar(4)&2**0)
triggerall = roundstate = 2
triggerall = statetype = A
Triggerall = command = "x" || command = "y"
triggerall = ctrl
trigger1 = 1





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

[State -1]  ;饥爆魂合击
type = ChangeState
value = 460
triggerall = !ishelper
triggerall = alive != 0
triggerall = !(sysvar(4)&2**0)
triggerall = roundstate = 2
triggerall = statetype = S
triggerall = playeridexist(var(24))
triggerall = playerid(var(24)),sysvar(3) = 11110
Triggerall = anim = 100
Triggerall = p2bodydist x <= 106
Triggerall = command = "y" || command = "z"
triggerall = ctrl
trigger1 = 1



[State -1]
type = ChangeState
value = 450
triggerall = !ishelper
triggerall = alive != 0
triggerall = !(sysvar(4)&2**0)
triggerall = roundstate = 2
triggerall = statetype = S
Triggerall = command = "y" || command = "z"
Triggerall = anim = 100
triggerall = ctrl
trigger1 = 1


[State -1]
type = ChangeState
value = 430
triggerall = !ishelper
triggerall = alive != 0
triggerall = !(sysvar(4)&2**0)
triggerall = roundstate = 2
triggerall = statetype = C
Triggerall = command = "a"
triggerall = ctrl
trigger1 = 1

[State -1]
type = ChangeState
value = 420
triggerall = !ishelper
triggerall = alive != 0
triggerall = !(sysvar(4)&2**0)
triggerall = roundstate = 2
triggerall = statetype = C
Triggerall = command = "z"
triggerall = ctrl
trigger1 = 1


[State -1]
type = ChangeState
value = 411
triggerall = !ishelper
triggerall = alive != 0
triggerall = !(sysvar(4)&2**0)
triggerall = roundstate = 2
triggerall = statetype = C
triggerall = P2bodydist X <= 25
Triggerall = command = "y"
triggerall = ctrl
trigger1 = 1



[State -1]
type = ChangeState
value = 410
triggerall = !ishelper
triggerall = alive != 0
triggerall = !(sysvar(4)&2**0)
triggerall = roundstate = 2
triggerall = statetype = C
triggerall = P2bodydist X > 25
Triggerall = command = "y"
triggerall = ctrl
trigger1 = 1









[State -1]
type = ChangeState
value = 401
triggerall = !ishelper
triggerall = alive != 0
triggerall = !(sysvar(4)&2**0)
triggerall = roundstate = 2
triggerall = statetype = C
triggerall = P2bodydist X <= 25
Triggerall = command = "x"
triggerall = ctrl
trigger1 = 1



[State -1]
type = ChangeState
value = 400
triggerall = !ishelper
triggerall = alive != 0
triggerall = !(sysvar(4)&2**0)
triggerall = roundstate = 2
triggerall = statetype = C
triggerall = P2bodydist X > 25
Triggerall = command = "x"
triggerall = ctrl
trigger1 = 1




;--------------------------------------------------
[State -1]
type = ChangeState
value = 230
triggerall = !ishelper
triggerall = alive != 0
triggerall = !(sysvar(4)&2**0)
triggerall = roundstate = 2
triggerall = statetype = S
Triggerall = command = "a"
triggerall = ctrl
trigger1 = 1


[State -1]
type = ChangeState
value = 221
triggerall = !ishelper
triggerall = alive != 0
triggerall = !(sysvar(4)&2**0)
triggerall = roundstate = 2
triggerall = statetype = S
triggerall = P2bodydist X <= 25
Triggerall = command = "z"
triggerall = ctrl
trigger1 = 1


[State -1]
type = ChangeState
value = 220
triggerall = !ishelper
triggerall = alive != 0
triggerall = !(sysvar(4)&2**0)
triggerall = roundstate = 2
triggerall = statetype = S
triggerall = P2bodydist X > 25
Triggerall = command = "z"
triggerall = ctrl
trigger1 = 1


[State -1]
type = ChangeState
value = 211
triggerall = !ishelper
triggerall = alive != 0
triggerall = !(sysvar(4)&2**0)
triggerall = roundstate = 2
triggerall = statetype = S
triggerall = P2bodydist X <= 20
Triggerall = command = "y"
triggerall = ctrl
trigger1 = 1

[State -1]
type = ChangeState
value = 210
triggerall = !ishelper
triggerall = alive != 0
triggerall = !(sysvar(4)&2**0)
triggerall = roundstate = 2
triggerall = statetype = S
triggerall = P2bodydist X > 20
Triggerall = command = "y"
triggerall = ctrl
trigger1 = 1


[State -1]
type = ChangeState
value = 201
triggerall = !ishelper
triggerall = alive != 0
triggerall = !(sysvar(4)&2**0)
triggerall = roundstate = 2
triggerall = statetype = S
triggerall = P2bodydist X <= 20
Triggerall = command = "x"
triggerall = ctrl
trigger1 = 1

[State -1]
type = ChangeState
value = 200
triggerall = !ishelper
triggerall = alive != 0
triggerall = !(sysvar(4)&2**0)
triggerall = roundstate = 2
triggerall = statetype = S
triggerall = P2bodydist X > 20
Triggerall = command = "x"
triggerall = ctrl
trigger1 = 1






;----------------------------------------------------------
[State -1]  ;Q
type = ChangeState
value = 197
triggerall = !ishelper
triggerall = !(sysvar(4)&2**0)
triggerall = alive != 0
triggerall = roundstate = 2
triggerall = command = "s"
triggerall = command = "下"
triggerall = statetype != A
triggerall = anim != 197
triggerall = ctrl
trigger1 = 1


[State -1]
type = ChangeState
value = 195
triggerall = !ishelper
triggerall = !(sysvar(4)&2**0)
triggerall = alive != 0
triggerall = roundstate = 2
triggerall = command = "s"
triggerall = statetype = S
triggerall = anim != 181
triggerall = ctrl
trigger1 = 1





[State -1]
type = ChangeState
value = 115
+ triggerall = aivar(24) = 0  ;没有Z轴
triggerall = !ishelper
triggerall = !(sysvar(4)&2**0)
triggerall = alive != 0
triggerall = roundstate = 2
triggerall = command = "趴"
triggerall = statetype != A
triggerall = anim != [200,3000000000]
triggerall = ctrl
trigger1 = 1

[State -1]
type = ChangeState
value = 112
+ triggerall = aivar(24) = 0  ;没有Z轴
triggerall = !ishelper
triggerall = !(sysvar(4)&2**0)
triggerall = alive != 0
triggerall = roundstate = 2
triggerall = statetype != A
triggerall = command = "c"
triggerall = anim != [200,3000000000]
triggerall = ctrl
trigger1 = 1

[State -1]
type = ChangeState
value = 111
+ triggerall = aivar(24) = 0  ;没有Z轴
triggerall = !ishelper
triggerall = !(sysvar(4)&2**0)
triggerall = alive != 0
triggerall = roundstate = 2
triggerall = command = "后滚"
triggerall = statetype != A
triggerall = anim != [200,3000000000]
triggerall = ctrl
trigger1 = 1

[State -1]
type = ChangeState
value = 110
+ triggerall = aivar(24) = 0  ;没有Z轴
triggerall = !ishelper
triggerall = !(sysvar(4)&2**0)
triggerall = alive != 0
triggerall = roundstate = 2
triggerall = command = "前滚"
triggerall = statetype != A
triggerall = anim != [200,3000000000]
triggerall = ctrl
trigger1 = 1







[State -1]
type = ChangeState
value = 105
+ triggerall = aivar(24) = 0  ;没有Z轴
triggerall = !ishelper
triggerall = !(sysvar(4)&2**0)
triggerall = alive != 0
triggerall = roundstate = 2
triggerall = command = "BB"
triggerall = statetype = S
triggerall = anim != [100,159]
triggerall = anim != [200,3000000000]
triggerall = ctrl
trigger1 = 1




[State -1]
type = ChangeState
value = 100
+ triggerall = aivar(24) = 0  ;没有Z轴
triggerall = !ishelper
triggerall = !(sysvar(4)&2**0)
triggerall = alive != 0
triggerall = roundstate = 2
triggerall = command = "FF"
triggerall = statetype = S
triggerall = (anim != [100,159])
triggerall = anim != [200,3000000000]
triggerall = ctrl
trigger1 = 1


[State -1]
type = ChangeState
value = 90
+ triggerall = aivar(24) = 1  ;有Z轴
triggerall = !ishelper
triggerall = !(sysvar(4)&2**0)
triggerall = alive != 0
triggerall = roundstate = 2
triggerall = command = "FF" || command = "BB" || command = "UU" || command = "DD"
triggerall = statetype = S
triggerall = (anim != [100,159])
triggerall = anim != [200,3000000000]
triggerall = ctrl
trigger1 = 1




[State -1]  ;三角降
type = ChangeState
value = 60
triggerall = !ishelper
triggerall = !(sysvar(4)&2**0)
triggerall = alive != 0
triggerall = roundstate = 2
triggerall = sysvar(3) = 50 && vel y > -1
triggerall = command = "前" || command = "后"
triggerall = BackEdgeBodyDist <= 15 || FrontEdgeBodyDist <= 15
triggerall = ctrl
trigger1 = 1


[State -1]  ;弹墙跳
type = ChangeState
value = 45
triggerall = !ishelper
triggerall = !(sysvar(4)&2**0)
triggerall = alive != 0
triggerall = roundstate = 2
triggerall = sysvar(3) = 50 && vel y > -1
triggerall = command = "上"
triggerall = BackEdgeBodyDist <= 15 || FrontEdgeBodyDist <= 15
triggerall = ctrl
trigger1 = 1


[State -1]
type = ChangeState
value = 10
+ triggerall = aivar(24) = 1  ;有Z轴
triggerall = var(51) = 1  ;梦工厂
triggerall = !ishelper
triggerall = !(sysvar(4)&2**0)
triggerall = alive != 0
triggerall = roundstate = 2
triggerall = statetype = S
triggerall = command = "下" && command = "b"
triggerall = anim != 100
triggerall = anim != [6,12]
triggerall = anim != [200,3000000000]
triggerall = ctrl
trigger1 = 1


[State -1]
type = ChangeState
value = 40
+ triggerall = aivar(24) = 1  ;有Z轴
triggerall = var(51) = 1  ;梦工厂
triggerall = !ishelper
triggerall = !(sysvar(4)&2**0)
triggerall = alive != 0
triggerall = roundstate = 2
triggerall = command = "b"
triggerall = statetype != A
triggerall = anim != [6,12]
triggerall = anim != [200,3000000000]
triggerall = ctrl
trigger1 = 1


[State -1]
type = ChangeState
value = 40
+ triggerall = aivar(24) = 0  ;没有Z轴
triggerall = !ishelper
triggerall = !(sysvar(4)&2**0)
triggerall = alive != 0
triggerall = roundstate = 2
triggerall = command = "上"
triggerall = statetype != A
triggerall = anim != [200,3000000000]
triggerall = ctrl
trigger1 = 1



[State -1]
type = ChangeState
value = 25
triggerall = var(51) = 1  ;是梦工厂
+ triggerall = aivar(24) = 1  ;有Z轴
triggerall = !ishelper
triggerall = !(sysvar(4)&2**0)
triggerall = alive != 0
triggerall = roundstate = 2
triggerall = statetype = S
triggerall = command = "前" || command = "后" || command = "下" || command = "上"
triggerall = (anim != [10,3000000000])
triggerall = ctrl
trigger1 = 1






[State -1]
type = ChangeState
value = 20
+ triggerall = aivar(24) = 0  ;没有Z轴
triggerall = !ishelper
triggerall = !(sysvar(4)&2**0)
triggerall = alive != 0
triggerall = roundstate = 2
triggerall = statetype = S
triggerall = command = "前" || command = "后"
triggerall = (anim != [10,3000000000])
triggerall = ctrl
trigger1 = 1



[State -1]
type = ChangeState
value = 10
+ triggerall = aivar(24) = 0  ;没有Z轴
triggerall = !ishelper
triggerall = !(sysvar(4)&2**0)
triggerall = alive != 0
triggerall = roundstate = 2
triggerall = statetype = S
triggerall = command = "下"
triggerall = anim != 100
triggerall = anim != [6,12]
triggerall = anim != [200,3000000000]
triggerall = ctrl
trigger1 = 1































