;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;僐儞儃
;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭

;僐儞儃曗惓
[state ]
type=varadd
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=sysvar(1)=1&&roundstate=2
trigger1=stateno=1000&&animtime=0||stateno=1010&&animtime=0
trigger2=stateno=1150&&animtime=0||stateno=1160&&animtime=0
trigger3=stateno=1190&&animtime=0||stateno=1200&&animtime=0
sysvar(2)=1
ignorehitpause=1
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=sysvar(1)=1&&roundstate=2
trigger1=stateno=1000&&animtime=0||stateno=1010&&animtime=0
trigger1=sysvar(2)=5
sysvar(2)=0
ignorehitpause=1
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=sysvar(1)=1&&roundstate=2
trigger1=stateno=1150&&animtime=0||stateno=1160&&animtime=0
trigger1=sysvar(2)=3
sysvar(2)=0
ignorehitpause=1
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=sysvar(1)=1&&roundstate=2
trigger1=stateno=1190&&animtime=0||stateno=1200&&animtime=0
trigger1=sysvar(2)=3
sysvar(2)=0
ignorehitpause=1


;仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧
;傆偀偄偊傞傫僐儞儃
;仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧

;傆偀偄偊傞傫両忋抜
[state -1]
type=changestate
value=1000
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=sysvar(1)=1&&roundstate=2
triggerall=statetype!=a
triggerall=stateno=1000&&animtime=0||stateno=1010&&animtime=0
trigger1=sysvar(2)=1
trigger2=sysvar(2)=3
;傆偀偄偊傞傫両壓抜
[state -1]
type=changestate
value=1010
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=sysvar(1)=1&&roundstate=2
triggerall=statetype!=a
triggerall=stateno=1000&&animtime=0||stateno=1010&&animtime=0
trigger1=sysvar(2)=2
trigger2=sysvar(2)=4


;仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧
;傆偀偄偊傞傫偐傜偺乣
;仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧

;僱僗僣幃懳惗惉兛
[state -1]
type=changestate
value=1150
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=sysvar(1)=1&&roundstate=2
triggerall=statetype!=a
triggerall=stateno=1000&&animtime=0||stateno=1010&&animtime=0
trigger1=1
;僱僗僣幃懳惗惉兝
[state -1]
type=changestate
value=1160
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=sysvar(1)=1&&roundstate=2
triggerall=statetype!=a
triggerall=stateno=1000&&animtime=0||stateno=1010&&animtime=0
trigger1=1


;仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧
;嬤偯偄偨傜懄嵗偵償僅僀僪僽儗僀僘
;仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧

;償僅僀僪僽儗僀僘
[state -1]
type=changestate
value=1040
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=sysvar(1)=1&&roundstate=2
triggerall=statetype!=a
triggerall=ctrl||movecontact&&(stateno=200||stateno=210||stateno=230||stateno=240||(var(58)=1&&(stateno=1050||stateno=1060||stateno=1020&&animelem=12,>=0&&animelem=14,>=0||stateno=1030||stateno=1031||stateno=[1050,1062])))
trigger1=enemynear,vel x>0
trigger1=enemynear,movetype=a
trigger1=random<400
trigger2=enemynear,vel x>0
trigger2=enemynear,movetype!=a
trigger2=random<200
trigger3=p2dist x<100
trigger3=random<200
trigger4=random<100


;仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧
;楢嵔偡傞償僅僀僪僽儗僀僘
;仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧

;償僅僀僪僽儗僀僘
[state -1]
type=changestate
value=1040
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=sysvar(1)=1&&roundstate=2
triggerall=statetype!=a
triggerall=stateno=1040&&animtime=0
trigger1=random<300


;仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧
;懳惗惉僐儞儃
;仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧

;僱僗僣幃懳惗惉兛
[state -1]
type=changestate
value=1150
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=sysvar(1)=1&&roundstate=2
triggerall=statetype!=a
triggerall=stateno=1150&&animtime=0||stateno=1160&&animtime=0
trigger1=sysvar(2)=1
trigger1=random<500
;僱僗僣幃懳惗惉兝
[state -1]
type=changestate
value=1160
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=sysvar(1)=1&&roundstate=2
triggerall=statetype!=a
triggerall=stateno=1150&&animtime=0||stateno=1160&&animtime=0
trigger1=sysvar(2)=1
trigger2=sysvar(2)=2


;仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧
;僫僀僼敪惗
;仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧

;娺嬶偺僫僀償僘兛
[state -1]
type=changestate
value=1190
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=sysvar(1)=1&&roundstate=2
triggerall=statetype!=a
triggerall=ctrl||movecontact&&(stateno=200||stateno=210||stateno=230||stateno=240||(var(58)=1&&(stateno=1050||stateno=1060||stateno=1020&&animelem=12,>=0&&animelem=14,>=0||stateno=1030||stateno=1031||stateno=[1050,1062])))
trigger1=p2dist x>100
trigger1=random<200

;娺嬶偺僫僀償僘兝
[state -1]
type=changestate
value=1200
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=sysvar(1)=1&&roundstate=2
triggerall=statetype!=a
triggerall=ctrl||movecontact&&(stateno=200||stateno=210||stateno=230||stateno=240||(var(58)=1&&(stateno=1050||stateno=1060||stateno=1020&&animelem=12,>=0&&animelem=14,>=0||stateno=1030||stateno=1031||stateno=[1050,1062])))
trigger1=p2dist x>100
trigger1=random<200


;仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧
;僫僀僼僐儞儃
;仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧

;娺嬶偺僫僀償僘兛
[state -1]
type=changestate
value=1190
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=sysvar(1)=1&&roundstate=2
triggerall=statetype!=a
triggerall=stateno=1190&&animtime=0||stateno=1200&&animtime=0
trigger1=sysvar(2)=1
;娺嬶偺僫僀償僘兝
[state -1]
type=changestate
value=1200
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=sysvar(1)=1&&roundstate=2
triggerall=statetype!=a
triggerall=stateno=1190&&animtime=0||stateno=1200&&animtime=0
trigger1=sysvar(2)=2


;仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧
;懳惗惉丄僫僀僼偐傜偺乣
;仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧

;償僅僀僪僽儗僀僘
[state -1]
type=changestate
value=1040
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=sysvar(1)=1&&roundstate=2
triggerall=statetype!=a
triggerall=stateno=1150&&animtime=0||stateno=1160&&animtime=0||stateno=1190&&animtime=0||stateno=1200&&animtime=0
trigger1=p2dist x<=25||p2dist x>225
;怺暎偺楖崠兛
[state -1]
type=changestate
value=1100
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=sysvar(1)=1&&roundstate=2
triggerall=statetype!=a
triggerall=stateno=1150&&animtime=0||stateno=1160&&animtime=0||stateno=1190&&animtime=0||stateno=1200&&animtime=0
trigger1=p2dist x>25&&p2dist x<=75
;怺暎偺楖崠兝
[state -1]
type=changestate
value=1110
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=sysvar(1)=1&&roundstate=2
triggerall=statetype!=a
triggerall=stateno=1150&&animtime=0||stateno=1160&&animtime=0||stateno=1190&&animtime=0||stateno=1200&&animtime=0
trigger1=p2dist x>75&&p2dist x<=125
;怺暎偺楖崠兞
[state -1]
type=changestate
value=1120
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=sysvar(1)=1&&roundstate=2
triggerall=statetype!=a
triggerall=stateno=1150&&animtime=0||stateno=1160&&animtime=0||stateno=1190&&animtime=0||stateno=1200&&animtime=0
trigger1=p2dist x>125&&p2dist x<=175
;怺暎偺楖崠儮
[state -1]
type=changestate
value=1130
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=sysvar(1)=1&&roundstate=2
triggerall=statetype!=a
triggerall=stateno=1150&&animtime=0||stateno=1160&&animtime=0||stateno=1190&&animtime=0||stateno=1200&&animtime=0
trigger1=p2dist x>175&&p2dist x<=225


;仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧
;僔僓乕僐儞儃
;仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧

;楖崠僔僓乕兛
[state -1]
type=changestate
value=1170
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=sysvar(1)=1&&roundstate=2
triggerall=statetype!=a
trigger1=stateno=1100&&anim=30290&&animtime=0||stateno=1110&&anim=30290&&animtime=0||stateno=1120&&anim=30290&&animtime=0||stateno=1130&&anim=30290&&animtime=0
trigger2=stateno=1170&&animtime=0||stateno=1180&&animtime=0
trigger2=random<200
;楖崠僔僓乕兝
[state -1]
type=changestate
value=1180
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=sysvar(1)=1&&roundstate=2
triggerall=statetype!=a
trigger1=stateno=1100&&anim=30290&&animtime=0||stateno=1110&&anim=30290&&animtime=0||stateno=1120&&anim=30290&&animtime=0||stateno=1130&&anim=30290&&animtime=0
trigger2=stateno=1170&&animtime=0||stateno=1180&&animtime=0
trigger2=random<500



;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;忢挀偝傫
;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭

;傆偀偄偊傞傫両忋抜
[state -1]
type=changestate
value=1000
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=sysvar(1)=1&&roundstate=2
triggerall=statetype!=a
triggerall=ctrl||movecontact&&(stateno=200||stateno=210||stateno=230||stateno=240||(var(58)=1&&(stateno=1050||stateno=1060||stateno=1020&&animelem=12,>=0&&animelem=14,>=0||stateno=1030||stateno=1031||stateno=[1050,1062])))
trigger1=random<350
;傆偀偄偊傞傫両壓抜
[state -1]
type=changestate
value=1010
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=sysvar(1)=1&&roundstate=2
triggerall=statetype!=a
triggerall=ctrl||movecontact&&(stateno=200||stateno=210||stateno=230||stateno=240||(var(58)=1&&(stateno=1050||stateno=1060||stateno=1020&&animelem=12,>=0&&animelem=14,>=0||stateno=1030||stateno=1031||stateno=[1050,1062])))
trigger1=random<350
;楖崠僔僓乕兛
[state -1]
type=changestate
value=1170
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=sysvar(1)=1&&roundstate=2
triggerall=statetype!=a
triggerall=ctrl||movecontact&&(stateno=200||stateno=210||stateno=230||stateno=240||(var(58)=1&&(stateno=1050||stateno=1060||stateno=1020&&animelem=12,>=0&&animelem=14,>=0||stateno=1030||stateno=1031||stateno=[1050,1062])))
trigger1=random<100
;楖崠僔僓乕兝
[state -1]
type=changestate
value=1180
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=sysvar(1)=1&&roundstate=2
triggerall=statetype!=a
triggerall=ctrl||movecontact&&(stateno=200||stateno=210||stateno=230||stateno=240||(var(58)=1&&(stateno=1050||stateno=1060||stateno=1020&&animelem=12,>=0&&animelem=14,>=0||stateno=1030||stateno=1031||stateno=[1050,1062])))
trigger1=random<100
;僪僫僪僫兛
[state -1]
type=changestate
value=1220
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=sysvar(1)=1&&roundstate=2
triggerall=statetype!=a
triggerall=numhelper(1221)=0
triggerall=numhelper(1222)=0
triggerall=ctrl||movecontact&&(stateno=200||stateno=210||stateno=230||stateno=240||(var(58)=1&&(stateno=1050||stateno=1060||stateno=1020&&animelem=12,>=0&&animelem=14,>=0||stateno=1030||stateno=1031||stateno=[1050,1062])))
trigger1=numhelper(1231)=0
trigger1=numhelper(1232)=0
trigger1=random<800
;僪僫僪僫兝
[state -1]
type=changestate
value=1230
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=sysvar(1)=1&&roundstate=2
triggerall=statetype!=a
triggerall=numhelper(1231)=0
triggerall=numhelper(1232)=0
triggerall=ctrl||movecontact&&(stateno=200||stateno=210||stateno=230||stateno=240||(var(58)=1&&(stateno=1050||stateno=1060||stateno=1020&&animelem=12,>=0&&animelem=14,>=0||stateno=1030||stateno=1031||stateno=[1050,1062])))
trigger1=numhelper(1221)=0
trigger1=numhelper(1222)=0
trigger1=random<800

