[Statedef -3]

[State -1,【AI开关】]
type = Varset
triggerall = var(59) != 1
triggerall = RoundState != 3
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"
trigger51 = command = "CPU51"
trigger52 = command = "CPU52"
trigger53 = command = "CPU53"
trigger54 = command = "CPU54"
trigger55 = command = "CPU55"
trigger56 = command = "CPU56"
trigger57 = command = "CPU57"
trigger58 = command = "CPU58"
trigger59 = command = "CPU59"
trigger60 = 1;手操= 0  常时AI = 1
var(59) = 1


[State -1,【喷火和谐开关】]
type = Varset
trigger1 = 1 ;开启= 1  关闭 = 0
var(55) = 1





;----------------------------------------------------以下是AI，不要动！----------------------------------------------------
;----------------------------------------------------以下是AI，不要动！----------------------------------------------------
;----------------------------------------------------以下是AI，不要动！----------------------------------------------------
;----------------------------------------------------以下是AI，不要动！----------------------------------------------------

;12P
[State 0,不动]
type = ChangeState
triggerall = var(59)= 1
trigger1 = palno=12
trigger1 = stateno!=196
value = 196

;防止覆盖
[State 0,火箭]
type = ChangeState
triggerall = var(59)= 1
trigger1 = roundno >= 2&&palno>=6
trigger1 = CTRL&&roundstate = 2&&power >=8500
value = 3100

[State 0,火箭]
type = ChangeState
triggerall = var(59)= 1
trigger1 = roundno >= 2&&Life<=600
trigger1 = CTRL&&roundstate = 2&&power >=8500
value = 3100


[State 0,火箭]
type = ChangeState
triggerall = var(59)= 1
trigger1 = roundno >= 2&&Life<=500
trigger1 = CTRL&&roundstate = 2&&power >=6500
value = 3100

[State 0,被枪打冲过去]
type = ChangeState
triggerall = var(59)= 1
trigger1 = p2dist x!=[-60,60]
trigger1 = P2stateno=1003&&P2movetype =H&&CTRL&&roundstate = 2
value = 101

[State 0,脱缰结束接火箭]
type = ChangeState
triggerall = var(59)= 1
trigger1 = roundno >= 2&&Life<=500
trigger1 = P2stateno=3025&&P2movetype =H&&CTRL&&roundstate = 2&&power >=3000
value = 3100

[State 0,脱缰结束接四个]
type = ChangeState
triggerall = var(59)= 1
trigger1 = p2dist x=[-180,180]
trigger1 = P2stateno=3025&&P2movetype =H&&CTRL&&roundstate = 2&&power >=5000&&Life<=500
value = ifelse(Random <=666,Ifelse(random<=333,3040,3030),3040)

[State 0,喷火结束接四个]
type = ChangeState
triggerall = var(59)= 1
trigger1 = p2dist x=[-180,180]
trigger1 = P2stateno=3003&&P2movetype =H&&CTRL&&roundstate = 2&&power >=4000&&Life<=500
value = IfElse(random >= 499,IfElse(random <= 499,3040,3010),IfElse(random <= 499,3040,3060))

[State 0,脱缰结束接四个]
type = ChangeState
triggerall = var(59)= 1
trigger1 = p2dist x=[-180,180]
trigger1 = P2stateno=3025&&P2movetype =H&&CTRL&&roundstate = 2&&power >=4000&&Life<=500
value = IfElse(random >= 499,IfElse(random <= 499,3030,3090),IfElse(random <= 499,3050,3040))

[State 0,喷火结束接四个]
type = ChangeState
triggerall = var(59)= 1
trigger1 = p2dist x=[-180,180]
trigger1 = P2stateno=3003&&P2movetype =H&&CTRL&&roundstate = 2&&power >=3000&&Life<=500
value = IfElse(random >= 499,IfElse(random <= 499,3010,3070),IfElse(random <= 499,3040,3030))


[State 0,脱缰结束接四个]
type = ChangeState
triggerall = var(59)= 1
trigger1 = p2dist x=[-180,180]
trigger1 = P2stateno=3025&&P2movetype =H&&CTRL&&roundstate = 2&&power >=5000
value = ifelse(Random <=666,Ifelse(random<=333,3060,3030),3090)

[State 0,喷火结束接四个]
type = ChangeState
triggerall = var(59)= 1
trigger1 = p2dist x=[-180,180]
trigger1 = P2stateno=3003&&P2movetype =H&&CTRL&&roundstate = 2&&power >=4000
value = IfElse(random >= 499,IfElse(random <= 499,3070,3010),IfElse(random <= 499,3070,3060))

[State 0,脱缰结束接四个]
type = ChangeState
triggerall = var(59)= 1
trigger1 = p2dist x=[-180,180]
trigger1 = P2stateno=3025&&P2movetype =H&&CTRL&&roundstate = 2&&power >=4000
value = IfElse(random >= 499,IfElse(random <= 499,3030,3070),IfElse(random <= 499,3050,3060))

[State 0,喷火结束接四个]
type = ChangeState
triggerall = var(59)= 1
trigger1 = p2dist x=[-180,180]
trigger1 = P2stateno=3003&&P2movetype =H&&CTRL&&roundstate = 2&&power >=3000&&Life<=500
value = IfElse(random >= 499,IfElse(random <= 499,3010,3030),IfElse(random <= 499,3040,3030))

[State 0,弹地追打]
type = ChangeState
triggerall = var(59)= 1
trigger1 = P2stateno=1605&&P2movetype =H&&AnimTIME = 0&&roundstate = 2
value = 3200


[State 0,喷火结束接四个]
type = ChangeState
triggerall = var(59)= 1
trigger1 = p2dist x=[-150,150]
trigger1 = P2stateno=3003&&P2movetype =H&&CTRL&&roundstate = 2&&power >=4500
value = IfElse(random >= 499,IfElse(random <= 499,3060,3070),IfElse(random <= 499,3040,3200))

[State 0,喷火结束接四个]
type = ChangeState
triggerall = var(59)= 1
trigger1 = p2dist x=[-180,180]
trigger1 = P2stateno=3003&&P2movetype =H&&CTRL&&roundstate = 2&&power >=3000
value = IfElse(random >= 499,IfElse(random <= 499,3060,3090),IfElse(random <= 499,3100,3030))

[State 0,喷火结束接四个]
type = ChangeState
triggerall = var(59)= 1
trigger1 = p2dist x=[-150,150]
trigger1 = P2stateno=3003&&P2movetype =H&&CTRL&&roundstate = 2&&power >=2000
value = IfElse(random >= 499,IfElse(random <= 499,3000,3010),IfElse(random <= 499,3030,3050))

[State 0,喷火结束接三个]
type = ChangeState
triggerall = var(59)= 1
trigger1 = P2stateno=3003&&P2movetype =H&&CTRL&&roundstate = 2&&power >=1000
value = IfElse(random >= 499,IfElse(random <= 499,3010,1010),IfElse(random <= 499,1000,3000))

[State 0,喷火结束接三个]
type = ChangeState
triggerall = var(59)= 1
trigger1 = P2stateno=3003&&P2movetype =H&&CTRL&&roundstate = 2&&power <=999
value = ifelse(Random <=666,Ifelse(random<=333,1010,1900),1000)




[State 0,脱缰结束叫人]
type = ChangeState
triggerall = var(59)= 1
trigger1 = P2stateno=3025&&P2movetype =H&&CTRL&&roundstate = 2
value = 1900


;行动
[State 0,禁止跳跃]
type = ChangeState
triggerall = var(59)= 1
trigger1 = stateno= 40
value = 0
ctrl = 1

;行动
[State 0, 被压起身]
type = ChangeState
triggerall = var(59)= 1
trigger1 = ctrl&&statetype!= A&&prevstateno = 5120
value = IfElse(random >= 499,IfElse(random <= 499,700,902),IfElse(random <= 499,710,1600))


[State 0, 对方起身]
type = ChangeState
triggerall = var(59)= 1
triggerall = !numhelper(1020)
trigger1 = p2dist x!=[-50,50]
trigger1 = ctrl&&P2stateno = 5120&&statetype!= A&&P2stateno != 1522&&power >=4000
value = IfElse(random >= 499,IfElse(random <= 499,902,902),IfElse(random <= 499,710,3000))

[State 0, 对方起身]
type = ChangeState
triggerall = var(59)= 1
triggerall = !numhelper(1020)
trigger1 = p2dist x!=[-50,50]
trigger1 = ctrl&&P2stateno = 5120&&statetype!= A&&P2stateno != 1522&&power >=2000&&power <=3000
value = 1020

[State 0, 对方起身]
type = ChangeState
triggerall = var(59)= 1
trigger1 = p2dist x!=[-50,50]
trigger1 = ctrl&&P2stateno = 5120&&statetype!= A&&P2stateno != 1522
value = IfElse(random >= 499,IfElse(random <= 499,902,902),IfElse(random <= 499,710,1900))

[State 0, 70格像素内,对方攻击]
type = ChangeState
triggerall = var(59)= 1
trigger1 = p2dist x!=[-60,50]
trigger1 = ctrl&&P2statetype!= L&&statetype!= A&&P2movetype =A
value = IfElse(random >= 499,IfElse(random <= 499,710,1600),IfElse(random <= 499,700,902))

[State 0, 50像素外,嘲讽]
type = ChangeState
triggerall = var(59)= 1
triggerALL = ctrl&&statetype!= A&&P2movetype =H&&roundstate = 2
trigger1 = P2stateno = 1903
trigger2 = P2stateno = 1904
value = ifelse(Random <= 500,195,700)

[State 0, 100像素外，接近]
type = ChangeState
triggerall = var(59)= 1
triggerall = !numhelper(1020)
triggerALL = p2dist x!=[-150,150]
triggerALL = ctrl&&statetype!= A&&P2statetype!= A&&P2movetype !=H&&roundstate = 2&&power >=3000
trigger1 = P2stateno != 1903
trigger2 = P2stateno != 1904
value = IfElse(random >= 499,IfElse(random <= 499,1600,3000),IfElse(random <= 499,1020,1400))

[State 0, 100像素外，接近]
type = ChangeState
triggerall = var(59)= 1
triggerALL = p2dist x!=[-150,150]
triggerALL = ctrl&&statetype!= A&&P2statetype!= A&&P2movetype !=H&&roundstate = 2&&power >=3000
trigger1 = P2stateno != 1903
trigger2 = P2stateno != 1904
value = IfElse(random >= 499,IfElse(random <= 499,1600,3000),IfElse(random <= 499,700,1400))

[State 0, 100像素外，接近]
type = ChangeState
triggerall = var(59)= 1
triggerALL = p2dist x!=[-150,150]
triggerALL = ctrl&&statetype!= A&&P2statetype!= A&&P2movetype !=H&&roundstate = 2
trigger1 = P2stateno != 1903
trigger2 = P2stateno != 1904
value = IfElse(random >= 499,IfElse(random <= 499,1600,1000),IfElse(random <= 499,700,1900))

[State 0, 100像素外，接近]
type = ChangeState
triggerall = var(59)= 1
triggerALL = p2dist x!=[-100,100]
triggerALL = ctrl&&statetype!= A&&P2statetype!= A&&P2movetype !=H&&roundstate = 2&&power >=4000
trigger1 = P2stateno != 1903
trigger2 = P2stateno != 1904
value = IfElse(random >= 499,IfElse(random <= 499,1400,1010),IfElse(random <= 499,700,3000))

[State 0, 100像素外，思古拉哭你铁压路]
type = ChangeState
triggerall = var(59)= 1
triggerALL = p2dist x!=[-90,90]
triggerall = !numhelper(1020)
triggerALL = ctrl&&statetype!= A&&P2statetype!= A&&P2movetype !=H&&roundstate = 2&&power >=500
trigger1 = P2stateno != 1903
trigger2 = P2stateno != 1904
value = IfElse(random >= 499,IfElse(random <= 499,1000,1010),IfElse(random <= 499,1020,1020))

[State 0, 100像素外，阿里里啊]
type = ChangeState
triggerall = var(59)= 1
triggerALL = p2dist x!=[-70,70]
triggerall = !numhelper(1101)
triggerALL = ctrl&&statetype!= A&&P2statetype!= A&&P2movetype !=H&&roundstate = 2
trigger1 = P2stateno != 1903
trigger2 = P2stateno != 1904
value = IfElse(random >= 499,IfElse(random <= 499,1000,1010),IfElse(random <= 499,1100,1100))

[State 0, 100像素外，接近]
type = ChangeState
triggerall = var(59)= 1
triggerALL = p2dist x!=[-100,100]
triggerALL = ctrl&&statetype!= A&&P2statetype!= A&&P2movetype !=H&&roundstate = 2
trigger1 = P2stateno != 1903
trigger2 = P2stateno != 1904
value = IfElse(random >= 499,IfElse(random <= 499,1000,1010),IfElse(random <= 499,700,1900))

[State 0, 60像素外，思古拉哭你铁压路]
type = ChangeState
triggerall = var(59)= 1
triggerALL = p2dist x!=[-60,60]
triggerall = !numhelper(1020)
trigger1 = ctrl&&statetype!= A&&P2statetype!= A&&P2movetype !=H&&roundstate = 2&&power >=1000
value = IfElse(random >= 499,IfElse(random <= 499,101,700),IfElse(random <= 499,1030,1020))

[State 0, 50像素外，接近]
type = ChangeState
triggerall = var(59)= 1
triggerALL = p2dist x!=[-50,50]
triggerALL = ctrl&&statetype!= A&&P2statetype!= A&&P2movetype !=H&&roundstate = 2
trigger1 = P2stateno != 1903
trigger2 = P2stateno != 1904
value = IfElse(random >= 499,IfElse(random <= 499,101,700),IfElse(random <= 499,1030,1900))

[State 0, 50像素外，接近]
type = ChangeState
triggerall = var(59)= 1
triggerALL = p2dist x=[-50,50]
triggerALL = ctrl&&statetype!= A&&P2statetype!= A&&roundstate = 2
trigger1 = P2stateno != 1903
trigger2 = P2stateno != 1904
value = IfElse(random >= 499,IfElse(random <= 499,1600,400),IfElse(random <= 499,200,430))

[State 0, 50像素外，接近]
type = ChangeState
triggerall = var(59)= 1
triggerALL = p2dist x=[-50,50]
triggerALL = ctrl&&statetype!= A&&P2statetype!= A&&roundstate = 2&&P2movetype=A
trigger1 = P2stateno != 1903
trigger2 = P2stateno != 1904
value = IfElse(random >= 499,IfElse(random <= 499,1600,400),IfElse(random <= 499,200,911))


;站连段
[State -1,鬼畜轻拳]
type = ChangeState
value = 200
triggerall = var(59) = 1
triggerall = roundstate = 2
triggerall = P2dist X = [-68,68]
trigger1 = stateno = 200 && movecontact

[State -1,轻拳结束接 重拳]
type = ChangeState
value = IfElse(random >= 499,IfElse(random <= 499,210,1300),IfElse(random <= 499,210,1030))
triggerall = var(59) = 1
triggerall = roundstate = 2
triggerall = P2dist X != [-68,68]
trigger1 = stateno = 200 && movecontact

[State -1,鬼畜轻拳]
type = ChangeState
value = 400
triggerall = var(59) = 1
triggerall = roundstate = 2
triggerall = P2dist X = [-68,68]
trigger1 = stateno = 400 && movecontact

[State -1,轻拳结束接 旋转]
type = ChangeState
value = IfElse(random >= 499,IfElse(random <= 499,1030,1200),IfElse(random <= 499,1500,800))
triggerall = var(59) = 1
triggerall = roundstate = 2
triggerall = P2dist X != [-68,68]
trigger1 = stateno = 400 && movecontact

[State -1,鬼畜轻B]
type = ChangeState
value = 430
triggerall = var(59) = 1
triggerall = roundstate = 2
triggerall = P2dist X = [-60,60]
trigger1 = stateno = 430 && movecontact

[State -1,轻B结束接 滑铲]
type = ChangeState
value = 1200
triggerall = var(59) = 1
triggerall = roundstate = 2
triggerall = P2dist X != [-60,60]
trigger1 = stateno = 430 && movecontact

[State 0,重拳接转圈]
type = ChangeState
triggerall = var(59)= 1
trigger1 = stateno=210&&MOVEHIT&&AnimElem = 4&&roundstate = 2
value = ifelse(Random <= 500,1500,1200)

[State 0,重腿接转圈]
type = ChangeState
triggerall = var(59)= 1
trigger1 = stateno=240&&MOVEHIT&&AnimElem = 5&&roundstate = 2
value = IfElse(random >= 499,IfElse(random <= 499,1200,1300),IfElse(random <= 499,800,1500))

[State 0,转圈结束接后撤,旋转搬运]
type = ChangeState
triggerall = var(59)= 1
trigger1 = stateno=1500&&MOVEHIT&&AnimTIME = 0&&roundstate = 2&&power >=3000
value = ifelse(Random <= 500,901,1400)
value = IfElse(random >= 499,IfElse(random <= 499,901,1400),IfElse(random <= 499,3070,3090))

[State 0,转圈结束接后撤,旋转搬运]
type = ChangeState
triggerall = var(59)= 1
trigger1 = stateno=1500&&MOVEHIT&&AnimTIME = 0&&roundstate = 2&&power >=2000
value = IfElse(random >= 499,IfElse(random <= 499,901,1400),IfElse(random <= 499,3050,1400))

[State 0,转圈结束接后撤,旋转搬运]
type = ChangeState
triggerall = var(59)= 1
trigger1 = stateno=1500&&MOVEHIT&&AnimTIME = 0&&roundstate = 2
value = ifelse(Random <= 500,901,1400)

[State 0,旋转结束接旋风]
type = ChangeState
triggerall = var(59)= 1
trigger1 = stateno=1403&&P2movetype =H&&AnimTIME = 0&&roundstate = 2&&power <=2999
value = IfElse(random >= 499,IfElse(random <= 499,1010,800),IfElse(random <= 499,1300,1200))

[State 0,旋转结束接旋风]
type = ChangeState
triggerall = var(59)= 1
trigger1 = stateno=1403&&P2movetype =H&&AnimTIME = 0&&roundstate = 2&&power >=3000&&power <=4999
value = IfElse(random >= 499,IfElse(random <= 499,1010,800),IfElse(random <= 499,3200,3060))

[State 0,旋转结束接旋风]
type = ChangeState
triggerall = var(59)= 1
trigger1 = stateno=1403&&P2movetype =H&&AnimTIME = 0&&roundstate = 2&&power >=5000&&LIFE >= 500
value = IfElse(random >= 499,IfElse(random <= 499,800,3010),IfElse(random <= 499,3040,3200))

[State 0,旋转结束接旋风]
type = ChangeState
triggerall = var(59)= 1
trigger1 = stateno=1403&&P2movetype =H&&AnimTIME = 0&&roundstate = 2&&power >=5000&&LIFE <= 500
value = ifelse(Random <= 500,1010,3040)

[State 0,转圈结束接后撤,旋转搬运]
type = ChangeState
triggerall = var(59)= 1
trigger1 = stateno=1010&&P2movetype =H&&AnimTIME = 0&&roundstate = 2&&power <=999
value = IfElse(random >= 499,IfElse(random <= 499,901,902),IfElse(random <= 499,195,1400))

[State 0,转圈结束接后撤,旋转搬运]
type = ChangeState
triggerall = var(59)= 1
trigger1 = stateno=1010&&P2movetype =H&&AnimTIME = 0&&roundstate = 2&&power >=1000
value = IfElse(random >= 499,IfElse(random <= 499,901,3000),IfElse(random <= 499,195,1400))

[State 0,滑铲结束接技能]
type = ChangeState
triggerall = var(59)= 1
trigger1 = stateno=1201&&P2movetype =H&&AnimTIME = 0&&roundstate = 2
value = IfElse(random >= 499,IfElse(random <= 499,1300,1900),IfElse(random <= 499,800,1600))

[State 0,腕电结束接技能]
type = ChangeState
triggerall = var(59)= 1
trigger1 = stateno=1303&&P2movetype =H&&AnimTIME = 0&&roundstate = 2
value = IfElse(random >= 499,IfElse(random <= 499,800,1000),IfElse(random <= 499,1300,1400))

[State 0,瞬狱杀接滑铲]
type = ChangeState
triggerall = var(59)= 1
trigger1 = stateno=3066&&P2movetype =H&&AnimTIME = 0&&roundstate = 2&&power >=1000
value = ifelse(Random <=666,Ifelse(random<=333,1200,1900),3200)

[State 0,瞬狱杀接滑铲]
type = ChangeState
triggerall = var(59)= 1
trigger1 = stateno=3066&&P2movetype =H&&AnimTIME = 0&&roundstate = 2
value = ifelse(Random <= 500,1200,1900)

[State 0,投机接滑铲]
type = ChangeState
triggerall = var(59)= 1
trigger1 = stateno=801&&AnimTIME = 0&&roundstate = 2&&power >=3000&&LIFE <= 700
value = IfElse(random >= 499,IfElse(random <= 499,800,1500),IfElse(random <= 499,3040,3040))

[State 0,投机接滑铲]
type = ChangeState
triggerall = var(59)= 1
trigger1 = stateno=801&&AnimTIME = 0&&roundstate = 2&&power >=6000
value = IfElse(random >= 499,IfElse(random <= 499,800,3000),IfElse(random <= 499,3060,3090))

[State 0,投机接滑铲]
type = ChangeState
triggerall = var(59)= 1
trigger1 = stateno=801&&AnimTIME = 0&&roundstate = 2
value = IfElse(random >= 499,IfElse(random <= 499,800,1500),IfElse(random <= 499,1200,1600))
