;仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧
;側傞傋偔側傜偙偺媄偱丄寛傔偨偄丅
;仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧

[state ]
type=changestate
value=800
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&facing*(enemynear,screenpos x-screenpos x)<=120&&(ctrl||(stateno=200)&&animelemtime(4)=0||(stateno=210)&&animelemtime(8)=0||(stateno=220)&&animelemtime(5)=0||(stateno=230)&&animelemtime(3)=0||(stateno=400)&&animelemtime(3)=0)
triggerall=floor((sysvar(2)%1000000)/10000)<5
trigger1=floor((sysvar(2)%1000000)/10000)=1
trigger1=facing*(enemynear,screenpos x-screenpos x)<=120
trigger1=enemynear,life*0.3*const(data.attack)*enemynear,const(data.attack)<=15500
trigger1=enemynear,statetype!=a
trigger2=floor((sysvar(2)%1000000)/10000)=1
trigger2=facing*(enemynear,screenpos x-screenpos x)<=120
trigger2=enemynear,life*0.3*const(data.attack)*enemynear,const(data.attack)<=15500
trigger2=enemynear,statetype=a
trigger2=enemynear,movetype=h
trigger3=floor((sysvar(2)%1000000)/10000)=2
trigger3=facing*(enemynear,screenpos x-screenpos x)<=120
trigger3=enemynear,life*0.6*const(data.attack)*enemynear,const(data.attack)<=15500
trigger3=enemynear,statetype!=a
trigger4=floor((sysvar(2)%1000000)/10000)=2
trigger4=facing*(enemynear,screenpos x-screenpos x)<=120
trigger4=enemynear,life*0.6*const(data.attack)*enemynear,const(data.attack)<=15500
trigger4=enemynear,statetype=a
trigger4=enemynear,movetype=h
trigger5=floor((sysvar(2)%1000000)/10000)=3
trigger5=facing*(enemynear,screenpos x-screenpos x)<=120
trigger5=enemynear,life*1.0*const(data.attack)*enemynear,const(data.attack)<=15500
trigger5=enemynear,statetype!=a
trigger6=floor((sysvar(2)%1000000)/10000)=3
trigger6=facing*(enemynear,screenpos x-screenpos x)<=120
trigger6=enemynear,life*1.0*const(data.attack)*enemynear,const(data.attack)<=15500
trigger6=enemynear,statetype=a
trigger6=enemynear,movetype=h
trigger7=floor((sysvar(2)%1000000)/10000)=4
trigger7=facing*(enemynear,screenpos x-screenpos x)<=120
trigger7=enemynear,life*1.5*const(data.attack)*enemynear,const(data.attack)<=15500
trigger7=enemynear,statetype!=a
trigger8=floor((sysvar(2)%1000000)/10000)=4
trigger8=facing*(enemynear,screenpos x-screenpos x)<=120
trigger8=enemynear,life*1.5*const(data.attack)*enemynear,const(data.attack)<=15500
trigger8=enemynear,statetype=a
trigger8=enemynear,movetype=h
[state ]
type=changestate
value=13000
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&(ctrl||(stateno=200)&&animelemtime(4)=0||(stateno=210)&&animelemtime(8)=0||(stateno=220)&&animelemtime(5)=0||(stateno=230)&&animelemtime(3)=0||(stateno=400)&&animelemtime(3)=0)
triggerall=floor((sysvar(2)%1000000)/10000)>=5
trigger1=facing*(enemynear,screenpos x-screenpos x)<=120
trigger1=enemynear,life*2.0*const(data.attack)*enemynear,const(data.attack)<=15500
trigger1=enemynear,statetype!=a
trigger2=facing*(enemynear,screenpos x-screenpos x)<=120
trigger2=enemynear,life*2.0*const(data.attack)*enemynear,const(data.attack)<=15500
trigger2=enemynear,statetype=a
trigger2=enemynear,movetype=h


;仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧
;僐儞儃偺俁丅
;仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧

[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=sysvar(2)%10000>=201&&sysvar(2)%10000<=300
triggerall=sysvar(2)%10000!=201
triggerall=sysvar(2)%10000!=202
triggerall=sysvar(2)%10000!=206
triggerall=sysvar(2)%10000!=207
triggerall=sysvar(2)%10000!=208
triggerall=sysvar(2)%10000!=211
triggerall=sysvar(2)%10000!=212
triggerall=sysvar(2)%10000!=214
triggerall=sysvar(2)%10000!=215
triggerall=sysvar(2)%10000!=216
triggerall=sysvar(2)%10000!=217
triggerall=sysvar(2)%10000!=218
triggerall=sysvar(2)%10000!=219
triggerall=sysvar(2)%10000!=222
triggerall=sysvar(2)%10000!=223
triggerall=sysvar(2)%10000!=224
triggerall=sysvar(2)%10000!=225
triggerall=sysvar(2)%10000!=226
triggerall=sysvar(2)%10000!=227
triggerall=sysvar(2)%10000!=228
triggerall=sysvar(2)%10000!=230
triggerall=sysvar(2)%10000!=231
triggerall=sysvar(2)%10000!=232
trigger1=ctrl
sysvar(2)=10000*floor(sysvar(2)/10000)+0
;僐儞儃乊乮徃弴張棟乯丅



[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a
triggerall=sysvar(2)%10000=232
trigger1=ctrl
sysvar(2)=10000*floor(sysvar(2)/10000)+233
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a
triggerall=sysvar(2)%10000=231
trigger1=ctrl
sysvar(2)=10000*floor(sysvar(2)/10000)+232
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a
triggerall=sysvar(2)%10000=230
trigger1=ctrl
sysvar(2)=10000*floor(sysvar(2)/10000)+231
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a
triggerall=sysvar(2)%10000=228
trigger1=ctrl
sysvar(2)=10000*floor(sysvar(2)/10000)+229
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a
triggerall=sysvar(2)%10000=227
triggerall=floor((sysvar(2)%1000000)/10000)>=7
trigger1=ctrl
sysvar(2)=10000*floor(sysvar(2)/10000)+230
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a
triggerall=sysvar(2)%10000=227
trigger1=ctrl
sysvar(2)=10000*floor(sysvar(2)/10000)+228
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a
triggerall=sysvar(2)%10000=226
trigger1=ctrl
sysvar(2)=10000*floor(sysvar(2)/10000)+227
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a
triggerall=sysvar(2)%10000=225
triggerall=floor((sysvar(2)%1000000)/10000)>=7
trigger1=ctrl
sysvar(2)=10000*floor(sysvar(2)/10000)+230
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a
triggerall=sysvar(2)%10000=225
trigger1=ctrl
sysvar(2)=10000*floor(sysvar(2)/10000)+228
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a
triggerall=sysvar(2)%10000=224
trigger1=ctrl
trigger1=enemynear,movetype=a
sysvar(2)=10000*floor(sysvar(2)/10000)+226
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a
triggerall=sysvar(2)%10000=224
trigger1=ctrl
sysvar(2)=10000*floor(sysvar(2)/10000)+225
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a
triggerall=sysvar(2)%10000=223
trigger1=ctrl
sysvar(2)=10000*floor(sysvar(2)/10000)+224
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a
triggerall=sysvar(2)%10000=222
trigger1=ctrl
sysvar(2)=10000*floor(sysvar(2)/10000)+223
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype=a
triggerall=sysvar(2)%10000=220
trigger1=(stateno=600)&&movecontact
sysvar(2)=10000*floor(sysvar(2)/10000)+221
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype=a
triggerall=sysvar(2)%10000=219
trigger1=ctrl
sysvar(2)=10000*floor(sysvar(2)/10000)+220
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a
triggerall=sysvar(2)%10000=218
trigger1=ctrl
sysvar(2)=10000*floor(sysvar(2)/10000)+219
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a
triggerall=sysvar(2)%10000=217
trigger1=ctrl
sysvar(2)=10000*floor(sysvar(2)/10000)+218
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a
triggerall=sysvar(2)%10000=216
trigger1=ctrl
sysvar(2)=10000*floor(sysvar(2)/10000)+219
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a
triggerall=sysvar(2)%10000=215
trigger1=ctrl
trigger1=enemynear,movetype=a
sysvar(2)=10000*floor(sysvar(2)/10000)+217
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a
triggerall=sysvar(2)%10000=215
trigger1=ctrl
sysvar(2)=10000*floor(sysvar(2)/10000)+216
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a
triggerall=sysvar(2)%10000=214
trigger1=ctrl
sysvar(2)=10000*floor(sysvar(2)/10000)+215
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype=a
triggerall=sysvar(2)%10000=212
trigger1=ctrl
sysvar(2)=10000*floor(sysvar(2)/10000)+213
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a
triggerall=sysvar(2)%10000=211
trigger1=ctrl
sysvar(2)=10000*floor(sysvar(2)/10000)+212
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype=a
triggerall=sysvar(2)%10000=209
trigger1=(stateno=600)&&movecontact
sysvar(2)=10000*floor(sysvar(2)/10000)+210
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype=a
triggerall=sysvar(2)%10000=208
trigger1=ctrl
sysvar(2)=10000*floor(sysvar(2)/10000)+209
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a
triggerall=sysvar(2)%10000=207
trigger1=ctrl
sysvar(2)=10000*floor(sysvar(2)/10000)+208
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a
triggerall=sysvar(2)%10000=206
triggerall=floor((sysvar(2)%1000000)/10000)>=3
trigger1=ctrl
sysvar(2)=10000*floor(sysvar(2)/10000)+211
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a
triggerall=sysvar(2)%10000=206
trigger1=ctrl
sysvar(2)=10000*floor(sysvar(2)/10000)+207
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype=a
triggerall=sysvar(2)%10000=204
trigger1=(stateno=620)&&(animelemtime(7)>=0)&&movecontact
sysvar(2)=10000*floor(sysvar(2)/10000)+205
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype=a
triggerall=sysvar(2)%10000=203
trigger1=(stateno=600)&&movecontact
sysvar(2)=10000*floor(sysvar(2)/10000)+204
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype=a
triggerall=sysvar(2)%10000=202
trigger1=ctrl
sysvar(2)=10000*floor(sysvar(2)/10000)+203
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a
triggerall=sysvar(2)%10000=201
trigger1=ctrl
sysvar(2)=10000*floor(sysvar(2)/10000)+202
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a
triggerall=sysvar(2)%10000=0
triggerall=floor((sysvar(2)%1000000)/10000)>=5
trigger1=ctrl
trigger1=facing*(enemynear,screenpos x-screenpos x)>200
sysvar(2)=10000*floor(sysvar(2)/10000)+222
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a
triggerall=sysvar(2)%10000=0
triggerall=floor((sysvar(2)%1000000)/10000)>=4
trigger1=ctrl
trigger1=facing*(enemynear,screenpos x-screenpos x)>200
sysvar(2)=10000*floor(sysvar(2)/10000)+214
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a
triggerall=sysvar(2)%10000=0
triggerall=floor((sysvar(2)%1000000)/10000)>=1
trigger1=ctrl
trigger1=facing*(enemynear,screenpos x-screenpos x)>200
sysvar(2)=10000*floor(sysvar(2)/10000)+206
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a
triggerall=sysvar(2)%10000=0
trigger1=ctrl
trigger1=facing*(enemynear,screenpos x-screenpos x)>200
sysvar(2)=10000*floor(sysvar(2)/10000)+201
;僐儞儃恑峴乮徃弴張棟乯丅



;僐儞儃巒揰丅
[state ]
type=changestate
value=320
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&(ctrl||(stateno=200)&&animelemtime(4)=0||(stateno=210)&&animelemtime(8)=0||(stateno=220)&&animelemtime(5)=0||(stateno=230)&&animelemtime(3)=0||(stateno=400)&&animelemtime(3)=0)
triggerall=sysvar(2)%10000=201
trigger1=enemynear,statetype!=a
trigger1=enemynear,movetype=h
[state ]
type=changestate
value=300
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&(ctrl||(stateno=200)&&animelemtime(4)=0||(stateno=210)&&animelemtime(8)=0||(stateno=220)&&animelemtime(5)=0||(stateno=230)&&animelemtime(3)=0||(stateno=400)&&animelemtime(3)=0)
triggerall=sysvar(2)%10000=201
trigger1=enemynear,statetype!=a
[state ]
type=changestate
value=310
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&(ctrl||(stateno=200)&&animelemtime(4)=0||(stateno=210)&&animelemtime(8)=0||(stateno=220)&&animelemtime(5)=0||(stateno=230)&&animelemtime(3)=0||(stateno=400)&&animelemtime(3)=0)
triggerall=sysvar(2)%10000=201
trigger1=1

[state ]
type=changestate
value=13300
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&(ctrl||(stateno=200)&&animelemtime(4)=0||(stateno=210)&&animelemtime(8)=0||(stateno=220)&&animelemtime(5)=0||(stateno=230)&&animelemtime(3)=0||(stateno=400)&&animelemtime(3)=0)
triggerall=sysvar(2)%10000=206
trigger1=1

[state ]
type=changestate
value=1100
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&(ctrl||(stateno=200)&&animelemtime(4)=0||(stateno=210)&&animelemtime(8)=0||(stateno=220)&&animelemtime(5)=0||(stateno=230)&&animelemtime(3)=0||(stateno=400)&&animelemtime(3)=0)
triggerall=sysvar(2)%10000=214
trigger1=1

[state ]
type=changestate
value=1300
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&(ctrl||(stateno=200)&&animelemtime(4)=0||(stateno=210)&&animelemtime(8)=0||(stateno=220)&&animelemtime(5)=0||(stateno=230)&&animelemtime(3)=0||(stateno=400)&&animelemtime(3)=0)
triggerall=sysvar(2)%10000=222
trigger1=enemynear,statetype=a
trigger1=enemynear,movetype=h
[state ]
type=changestate
value=1000
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&(ctrl||(stateno=200)&&animelemtime(4)=0||(stateno=210)&&animelemtime(8)=0||(stateno=220)&&animelemtime(5)=0||(stateno=230)&&animelemtime(3)=0||(stateno=400)&&animelemtime(3)=0)
triggerall=sysvar(2)%10000=222
trigger1=1



;僐儞儃懕偒丅
[state ]
type=changestate
value=100
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&(ctrl||(stateno=200)&&animelemtime(4)=0||(stateno=210)&&animelemtime(8)=0||(stateno=220)&&animelemtime(5)=0||(stateno=230)&&animelemtime(3)=0||(stateno=400)&&animelemtime(3)=0)
triggerall=sysvar(2)%10000=202
trigger1=1
[state ]
type=changestate
value=600
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype=a&&(ctrl||(stateno=600)&&movecontact||(stateno=620)&&(animelemtime(7)>=0)&&movecontact)
triggerall=sysvar(2)%10000=203
trigger1=enemynear,movetype=h
trigger1=enemynear,statetype!=l
[state ]
type=changestate
value=720
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype=a&&(ctrl||(stateno=600)&&movecontact||(stateno=620)&&(animelemtime(7)>=0)&&movecontact)
triggerall=sysvar(2)%10000=203
trigger1=1
[state ]
type=changestate
value=620
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype=a&&(ctrl||(stateno=600)&&movecontact||(stateno=620)&&(animelemtime(7)>=0)&&movecontact)
triggerall=sysvar(2)%10000=204
trigger1=1
[state ]
type=changestate
value=720
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype=a&&(ctrl||(stateno=600)&&movecontact||(stateno=620)&&(animelemtime(7)>=0)&&movecontact)
triggerall=sysvar(2)%10000=205
trigger1=1

[state ]
type=changestate
value=300
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&(ctrl||(stateno=200)&&animelemtime(4)=0||(stateno=210)&&animelemtime(8)=0||(stateno=220)&&animelemtime(5)=0||(stateno=230)&&animelemtime(3)=0||(stateno=400)&&animelemtime(3)=0)
triggerall=sysvar(2)%10000=207
trigger1=1
[state ]
type=changestate
value=100
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&(ctrl||(stateno=200)&&animelemtime(4)=0||(stateno=210)&&animelemtime(8)=0||(stateno=220)&&animelemtime(5)=0||(stateno=230)&&animelemtime(3)=0||(stateno=400)&&animelemtime(3)=0)
triggerall=sysvar(2)%10000=208
trigger1=1
[state ]
type=changestate
value=600
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype=a&&(ctrl||(stateno=600)&&movecontact||(stateno=620)&&(animelemtime(7)>=0)&&movecontact)
triggerall=sysvar(2)%10000=209
trigger1=1
[state ]
type=changestate
value=620
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype=a&&(ctrl||(stateno=600)&&movecontact||(stateno=620)&&(animelemtime(7)>=0)&&movecontact)
triggerall=sysvar(2)%10000=210
trigger1=1

[state ]
type=changestate
value=1200
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&(ctrl||(stateno=200)&&animelemtime(4)=0||(stateno=210)&&animelemtime(8)=0||(stateno=220)&&animelemtime(5)=0||(stateno=230)&&animelemtime(3)=0||(stateno=400)&&animelemtime(3)=0)
triggerall=sysvar(2)%10000=211
trigger1=enemynear,movetype=a
trigger1=enemynear,statetype!=a
[state ]
type=changestate
value=1300
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&(ctrl||(stateno=200)&&animelemtime(4)=0||(stateno=210)&&animelemtime(8)=0||(stateno=220)&&animelemtime(5)=0||(stateno=230)&&animelemtime(3)=0||(stateno=400)&&animelemtime(3)=0)
triggerall=sysvar(2)%10000=211
trigger1=enemynear,movetype=a
[state ]
type=changestate
value=13400
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&(ctrl||(stateno=200)&&animelemtime(4)=0||(stateno=210)&&animelemtime(8)=0||(stateno=220)&&animelemtime(5)=0||(stateno=230)&&animelemtime(3)=0||(stateno=400)&&animelemtime(3)=0)
triggerall=sysvar(2)%10000=211
trigger1=1
[state ]
type=changestate
value=100
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&(ctrl||(stateno=200)&&animelemtime(4)=0||(stateno=210)&&animelemtime(8)=0||(stateno=220)&&animelemtime(5)=0||(stateno=230)&&animelemtime(3)=0||(stateno=400)&&animelemtime(3)=0)
triggerall=sysvar(2)%10000=212
trigger1=1
[state ]
type=changestate
value=720
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype=a&&(ctrl||(stateno=600)&&movecontact||(stateno=620)&&(animelemtime(7)>=0)&&movecontact)
triggerall=sysvar(2)%10000=213
trigger1=1

[state ]
type=changestate
value=13300
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&(ctrl||(stateno=200)&&animelemtime(4)=0||(stateno=210)&&animelemtime(8)=0||(stateno=220)&&animelemtime(5)=0||(stateno=230)&&animelemtime(3)=0||(stateno=400)&&animelemtime(3)=0)
triggerall=sysvar(2)%10000=215
trigger1=1
[state ]
type=changestate
value=13400
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&(ctrl||(stateno=200)&&animelemtime(4)=0||(stateno=210)&&animelemtime(8)=0||(stateno=220)&&animelemtime(5)=0||(stateno=230)&&animelemtime(3)=0||(stateno=400)&&animelemtime(3)=0)
triggerall=sysvar(2)%10000=216
trigger1=1
[state ]
type=changestate
value=1300
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&(ctrl||(stateno=200)&&animelemtime(4)=0||(stateno=210)&&animelemtime(8)=0||(stateno=220)&&animelemtime(5)=0||(stateno=230)&&animelemtime(3)=0||(stateno=400)&&animelemtime(3)=0)
triggerall=sysvar(2)%10000=217
trigger1=1
[state ]
type=changestate
value=13400
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&(ctrl||(stateno=200)&&animelemtime(4)=0||(stateno=210)&&animelemtime(8)=0||(stateno=220)&&animelemtime(5)=0||(stateno=230)&&animelemtime(3)=0||(stateno=400)&&animelemtime(3)=0)
triggerall=sysvar(2)%10000=218
trigger1=1
[state ]
type=changestate
value=100
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&(ctrl||(stateno=200)&&animelemtime(4)=0||(stateno=210)&&animelemtime(8)=0||(stateno=220)&&animelemtime(5)=0||(stateno=230)&&animelemtime(3)=0||(stateno=400)&&animelemtime(3)=0)
triggerall=sysvar(2)%10000=219
trigger1=1
[state ]
type=changestate
value=600
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype=a&&(ctrl||(stateno=600)&&movecontact||(stateno=620)&&(animelemtime(7)>=0)&&movecontact)
triggerall=sysvar(2)%10000=220
trigger1=1
[state ]
type=changestate
value=620
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype=a&&(ctrl||(stateno=600)&&movecontact||(stateno=620)&&(animelemtime(7)>=0)&&movecontact)
triggerall=sysvar(2)%10000=221
trigger1=1

[state ]
type=changestate
value=1100
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&(ctrl||(stateno=200)&&animelemtime(4)=0||(stateno=210)&&animelemtime(8)=0||(stateno=220)&&animelemtime(5)=0||(stateno=230)&&animelemtime(3)=0||(stateno=400)&&animelemtime(3)=0)
triggerall=sysvar(2)%10000=223
trigger1=1
[state ]
type=changestate
value=13300
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&(ctrl||(stateno=200)&&animelemtime(4)=0||(stateno=210)&&animelemtime(8)=0||(stateno=220)&&animelemtime(5)=0||(stateno=230)&&animelemtime(3)=0||(stateno=400)&&animelemtime(3)=0)
triggerall=sysvar(2)%10000=224
triggerall=floor((sysvar(2)%1000000)/10000)<6
trigger1=1
[state ]
type=changestate
value=14000
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&ctrl
triggerall=sysvar(2)%10000=224
trigger1=1
[state ]
type=changestate
value=13400
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&(ctrl||(stateno=200)&&animelemtime(4)=0||(stateno=210)&&animelemtime(8)=0||(stateno=220)&&animelemtime(5)=0||(stateno=230)&&animelemtime(3)=0||(stateno=400)&&animelemtime(3)=0)
triggerall=sysvar(2)%10000=225
trigger1=1
[state ]
type=changestate
value=1300
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&(ctrl||(stateno=200)&&animelemtime(4)=0||(stateno=210)&&animelemtime(8)=0||(stateno=220)&&animelemtime(5)=0||(stateno=230)&&animelemtime(3)=0||(stateno=400)&&animelemtime(3)=0)
triggerall=sysvar(2)%10000=226
trigger1=enemynear,statetype=a
[state ]
type=changestate
value=13000
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&(ctrl||(stateno=200)&&animelemtime(4)=0||(stateno=210)&&animelemtime(8)=0||(stateno=220)&&animelemtime(5)=0||(stateno=230)&&animelemtime(3)=0||(stateno=400)&&animelemtime(3)=0)
triggerall=sysvar(2)%10000=226
trigger1=1
[state ]
type=changestate
value=13400
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&(ctrl||(stateno=200)&&animelemtime(4)=0||(stateno=210)&&animelemtime(8)=0||(stateno=220)&&animelemtime(5)=0||(stateno=230)&&animelemtime(3)=0||(stateno=400)&&animelemtime(3)=0)
triggerall=sysvar(2)%10000=227
trigger1=1
[state ]
type=changestate
value=1600
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&(ctrl||(stateno=200)&&animelemtime(4)=0||(stateno=210)&&animelemtime(8)=0||(stateno=220)&&animelemtime(5)=0||(stateno=230)&&animelemtime(3)=0||(stateno=400)&&animelemtime(3)=0)
triggerall=sysvar(2)%10000=228
trigger1=1
[state ]
type=changestate
value=1600
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&(ctrl||(stateno=200)&&animelemtime(4)=0||(stateno=210)&&animelemtime(8)=0||(stateno=220)&&animelemtime(5)=0||(stateno=230)&&animelemtime(3)=0||(stateno=400)&&animelemtime(3)=0)
triggerall=sysvar(2)%10000=229
trigger1=1
[state ]
type=changestate
value=14100
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&ctrl
triggerall=sysvar(2)%10000=230
trigger1=1
[state ]
type=changestate
value=14100
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&ctrl
triggerall=sysvar(2)%10000=231
trigger1=1
[state ]
type=changestate
value=1600
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&(ctrl||(stateno=200)&&animelemtime(4)=0||(stateno=210)&&animelemtime(8)=0||(stateno=220)&&animelemtime(5)=0||(stateno=230)&&animelemtime(3)=0||(stateno=400)&&animelemtime(3)=0)
triggerall=sysvar(2)%10000=232
trigger1=1
[state ]
type=changestate
value=1600
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&(ctrl||(stateno=200)&&animelemtime(4)=0||(stateno=210)&&animelemtime(8)=0||(stateno=220)&&animelemtime(5)=0||(stateno=230)&&animelemtime(3)=0||(stateno=400)&&animelemtime(3)=0)
triggerall=sysvar(2)%10000=233
trigger1=1



;僐儞儃乊乮媡弴張棟乯丅
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=sysvar(2)%10000>=201&&sysvar(2)%10000<=300
trigger1=ctrl
sysvar(2)=10000*floor(sysvar(2)/10000)+0


;仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧
;僐儞儃偺俀丅
;仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧

[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=sysvar(2)%10000>=101&&sysvar(2)%10000<=200
triggerall=sysvar(2)%10000!=101
triggerall=sysvar(2)%10000!=102
triggerall=sysvar(2)%10000!=106
triggerall=sysvar(2)%10000!=107
triggerall=sysvar(2)%10000!=110
trigger1=ctrl
sysvar(2)=10000*floor(sysvar(2)/10000)+0
;僐儞儃乊乮徃弴張棟乯丅



[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a
triggerall=sysvar(2)%10000=110
trigger1=ctrl
trigger1=facing*(enemynear,screenpos x-screenpos x)<=90
trigger2=ctrl
trigger2=facing*(enemynear,screenpos x-screenpos x)>200
sysvar(2)=10000*floor(sysvar(2)/10000)+112
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a
triggerall=sysvar(2)%10000>=106&&sysvar(2)%10000<=107
trigger1=ctrl
trigger1=facing*(enemynear,screenpos x-screenpos x)<=90
trigger2=ctrl
trigger2=backedgedist<=60
sysvar(2)=10000*floor(sysvar(2)/10000)+109
;嫮惂廔椆乮徃弴張棟乯丅



[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a
triggerall=sysvar(2)%10000=110
trigger1=ctrl
sysvar(2)=10000*floor(sysvar(2)/10000)+111
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a
triggerall=sysvar(2)%10000=107
trigger1=ctrl
sysvar(2)=10000*floor(sysvar(2)/10000)+108
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a
triggerall=sysvar(2)%10000=106
trigger1=ctrl
sysvar(2)=10000*floor(sysvar(2)/10000)+107
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype=a
triggerall=sysvar(2)%10000=104
trigger1=(stateno=620)&&(animelemtime(7)>=0)&&movecontact
sysvar(2)=10000*floor(sysvar(2)/10000)+105
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype=a
triggerall=sysvar(2)%10000=103
trigger1=(stateno=600)&&movecontact
sysvar(2)=10000*floor(sysvar(2)/10000)+104
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype=a
triggerall=sysvar(2)%10000=102
trigger1=ctrl
sysvar(2)=10000*floor(sysvar(2)/10000)+103
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a
triggerall=sysvar(2)%10000=101
trigger1=ctrl
sysvar(2)=10000*floor(sysvar(2)/10000)+102
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a
triggerall=sysvar(2)%10000=0
triggerall=floor((sysvar(2)%1000000)/10000)>=5
trigger1=ctrl
trigger1=facing*(enemynear,screenpos x-screenpos x)>90&&facing*(enemynear,screenpos x-screenpos x)<=200
sysvar(2)=10000*floor(sysvar(2)/10000)+110
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a
triggerall=sysvar(2)%10000=0
triggerall=floor((sysvar(2)%1000000)/10000)>=2
trigger1=ctrl
trigger1=facing*(enemynear,screenpos x-screenpos x)>90&&facing*(enemynear,screenpos x-screenpos x)<=200
sysvar(2)=10000*floor(sysvar(2)/10000)+106
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a
triggerall=sysvar(2)%10000=0
trigger1=ctrl
trigger1=facing*(enemynear,screenpos x-screenpos x)>90&&facing*(enemynear,screenpos x-screenpos x)<=200
sysvar(2)=10000*floor(sysvar(2)/10000)+101
;僐儞儃恑峴乮徃弴張棟乯丅



;僐儞儃巒揰丅
[state ]
type=changestate
value=800
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&facing*(enemynear,screenpos x-screenpos x)<=120&&(ctrl||(stateno=200)&&animelemtime(4)=0||(stateno=210)&&animelemtime(8)=0||(stateno=220)&&animelemtime(5)=0||(stateno=230)&&animelemtime(3)=0||(stateno=400)&&animelemtime(3)=0)
triggerall=sysvar(2)%10000=101
trigger1=enemynear,statetype!=a
trigger2=enemynear,statetype=a
trigger2=enemynear,movetype=h
[state ]
type=changestate
value=310
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&ctrl
triggerall=sysvar(2)%10000=101
trigger1=facing*(enemynear,screenpos x-screenpos x)>90
trigger1=random<300
[state ]
type=changestate
value=500
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&ctrl
triggerall=sysvar(2)%10000=101
trigger1=facing*(enemynear,screenpos x-screenpos x)>90
trigger1=random<400
[state ]
type=changestate
value=520
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&ctrl
triggerall=sysvar(2)%10000=101
trigger1=facing*(enemynear,screenpos x-screenpos x)>90

[state ]
type=changestate
value=1600
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&(ctrl||(stateno=200)&&animelemtime(4)=0||(stateno=210)&&animelemtime(8)=0||(stateno=220)&&animelemtime(5)=0||(stateno=230)&&animelemtime(3)=0||(stateno=400)&&animelemtime(3)=0)
triggerall=sysvar(2)%10000=106
trigger1=1

[state ]
type=changestate
value=13200
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&(ctrl||(stateno=200)&&animelemtime(4)=0||(stateno=210)&&animelemtime(8)=0||(stateno=220)&&animelemtime(5)=0||(stateno=230)&&animelemtime(3)=0||(stateno=400)&&animelemtime(3)=0)
triggerall=sysvar(2)%10000=110
trigger1=1



;僐儞儃懕偒丅
[state ]
type=changestate
value=100
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&(ctrl||(stateno=200)&&animelemtime(4)=0||(stateno=210)&&animelemtime(8)=0||(stateno=220)&&animelemtime(5)=0||(stateno=230)&&animelemtime(3)=0||(stateno=400)&&animelemtime(3)=0)
triggerall=sysvar(2)%10000=102
trigger1=1
[state ]
type=changestate
value=600
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype=a&&(ctrl||(stateno=600)&&movecontact||(stateno=620)&&(animelemtime(7)>=0)&&movecontact)
triggerall=sysvar(2)%10000=103
trigger1=enemynear,movetype=h
trigger1=enemynear,statetype!=l
trigger1=enemynear,hitpausetime>=2
[state ]
type=changestate
value=700
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype=a&&(ctrl||(stateno=600)&&movecontact||(stateno=620)&&(animelemtime(7)>=0)&&movecontact)
triggerall=sysvar(2)%10000=103
trigger1=1
[state ]
type=changestate
value=620
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype=a&&(ctrl||(stateno=600)&&movecontact||(stateno=620)&&(animelemtime(7)>=0)&&movecontact)
triggerall=sysvar(2)%10000=104
trigger1=1
[state ]
type=changestate
value=700
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype=a&&(ctrl||(stateno=600)&&movecontact||(stateno=620)&&(animelemtime(7)>=0)&&movecontact)
triggerall=sysvar(2)%10000=105
trigger1=1

[state ]
type=changestate
value=1400
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&(ctrl||(stateno=200)&&animelemtime(4)=0||(stateno=210)&&animelemtime(8)=0||(stateno=220)&&animelemtime(5)=0||(stateno=230)&&animelemtime(3)=0||(stateno=400)&&animelemtime(3)=0)
triggerall=sysvar(2)%10000=107
trigger1=enemynear,statetype!=a
[state ]
type=changestate
value=1500
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&(ctrl||(stateno=200)&&animelemtime(4)=0||(stateno=210)&&animelemtime(8)=0||(stateno=220)&&animelemtime(5)=0||(stateno=230)&&animelemtime(3)=0||(stateno=400)&&animelemtime(3)=0)
triggerall=sysvar(2)%10000=107
trigger1=1

[state ]
type=changestate
value=1400
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&(ctrl||(stateno=200)&&animelemtime(4)=0||(stateno=210)&&animelemtime(8)=0||(stateno=220)&&animelemtime(5)=0||(stateno=230)&&animelemtime(3)=0||(stateno=400)&&animelemtime(3)=0)
triggerall=sysvar(2)%10000=108
trigger1=enemynear,statetype!=a
[state ]
type=changestate
value=1500
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&(ctrl||(stateno=200)&&animelemtime(4)=0||(stateno=210)&&animelemtime(8)=0||(stateno=220)&&animelemtime(5)=0||(stateno=230)&&animelemtime(3)=0||(stateno=400)&&animelemtime(3)=0)
triggerall=sysvar(2)%10000=108
trigger1=1

[state ]
type=changestate
value=13000
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&(ctrl||(stateno=200)&&animelemtime(4)=0||(stateno=210)&&animelemtime(8)=0||(stateno=220)&&animelemtime(5)=0||(stateno=230)&&animelemtime(3)=0||(stateno=400)&&animelemtime(3)=0)
triggerall=sysvar(2)%10000=111
trigger1=backedgedist<=110
trigger1=enemynear,statetype!=a
trigger1=random<=300
[state ]
type=changestate
value=1600
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&(ctrl||(stateno=200)&&animelemtime(4)=0||(stateno=210)&&animelemtime(8)=0||(stateno=220)&&animelemtime(5)=0||(stateno=230)&&animelemtime(3)=0||(stateno=400)&&animelemtime(3)=0)
triggerall=sysvar(2)%10000=111
trigger1=backedgedist<=110
[state ]
type=changestate
value=1400
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&(ctrl||(stateno=200)&&animelemtime(4)=0||(stateno=210)&&animelemtime(8)=0||(stateno=220)&&animelemtime(5)=0||(stateno=230)&&animelemtime(3)=0||(stateno=400)&&animelemtime(3)=0)
triggerall=sysvar(2)%10000=111
trigger1=enemynear,statetype!=a
[state ]
type=changestate
value=1500
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&(ctrl||(stateno=200)&&animelemtime(4)=0||(stateno=210)&&animelemtime(8)=0||(stateno=220)&&animelemtime(5)=0||(stateno=230)&&animelemtime(3)=0||(stateno=400)&&animelemtime(3)=0)
triggerall=sysvar(2)%10000=111
trigger1=1



;僐儞儃乊乮媡弴張棟乯丅
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=sysvar(2)%10000>=101&&sysvar(2)%10000<=200
trigger1=ctrl
sysvar(2)=10000*floor(sysvar(2)/10000)+0


;仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧
;僐儞儃偺侾丅
;仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧

[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=sysvar(2)%10000>=1&&sysvar(2)%10000<=100
triggerall=sysvar(2)%10000!=4
triggerall=sysvar(2)%10000!=5
triggerall=sysvar(2)%10000!=7
triggerall=sysvar(2)%10000!=10
triggerall=sysvar(2)%10000!=11
triggerall=sysvar(2)%10000!=14
triggerall=sysvar(2)%10000!=22
trigger1=ctrl
sysvar(2)=10000*floor(sysvar(2)/10000)+0
;僐儞儃乊乮徃弴張棟乯丅



[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype=a
triggerall=sysvar(2)%10000=14
trigger1=ctrl
sysvar(2)=10000*floor(sysvar(2)/10000)+15
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a
triggerall=sysvar(2)%10000>=4&&sysvar(2)%10000<=5
triggerall=floor((sysvar(2)%1000000)/10000)>=4
trigger1=ctrl
sysvar(2)=10000*floor(sysvar(2)/10000)+20
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a
triggerall=sysvar(2)%10000>=4&&sysvar(2)%10000<=5
triggerall=floor((sysvar(2)%1000000)/10000)>=3
trigger1=ctrl
sysvar(2)=10000*floor(sysvar(2)/10000)+18
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a
triggerall=sysvar(2)%10000>=4&&sysvar(2)%10000<=5
triggerall=floor((sysvar(2)%1000000)/10000)>=2
trigger1=ctrl
sysvar(2)=10000*floor(sysvar(2)/10000)+17
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a
triggerall=sysvar(2)%10000>=4&&sysvar(2)%10000<=5
trigger1=ctrl
sysvar(2)=10000*floor(sysvar(2)/10000)+14
;峌寕摉偨傫側偐偭偨偐傜丄摝偘傞乮徃弴張棟乯丅



[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a
triggerall=sysvar(2)%10000=5
trigger1=(stateno=200)&&moveguarded
sysvar(2)=10000*floor(sysvar(2)/10000)+13
;僈乕僪攋夡乮徃弴張棟乯丅



[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a
triggerall=sysvar(2)%10000=22
trigger1=ctrl
sysvar(2)=10000*floor(sysvar(2)/10000)+23
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype=a
triggerall=sysvar(2)%10000=11
trigger1=ctrl
sysvar(2)=10000*floor(sysvar(2)/10000)+12
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a
triggerall=sysvar(2)%10000=10
triggerall=floor((sysvar(2)%1000000)/10000)>=4
trigger1=ctrl
sysvar(2)=10000*floor(sysvar(2)/10000)+19
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a
triggerall=sysvar(2)%10000=10
triggerall=floor((sysvar(2)%1000000)/10000)>=2
trigger1=ctrl
sysvar(2)=10000*floor(sysvar(2)/10000)+16
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a
triggerall=sysvar(2)%10000=10
trigger1=ctrl
sysvar(2)=10000*floor(sysvar(2)/10000)+11
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype=a
triggerall=sysvar(2)%10000=9
trigger1=(stateno=620)&&(animelemtime(7)>=0)&&movecontact
sysvar(2)=10000*floor(sysvar(2)/10000)+10
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype=a
triggerall=sysvar(2)%10000=8
trigger1=(stateno=600)&&movecontact
sysvar(2)=10000*floor(sysvar(2)/10000)+9
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype=a
triggerall=sysvar(2)%10000=7
trigger1=ctrl
sysvar(2)=10000*floor(sysvar(2)/10000)+8
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a
triggerall=sysvar(2)%10000=6
trigger1=(stateno=230)&&animelemtime(3)=0
trigger2=(stateno=240)&&movecontact
sysvar(2)=10000*floor(sysvar(2)/10000)+7
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a
triggerall=sysvar(2)%10000=5
trigger1=(stateno=200)&&movehit
sysvar(2)=10000*floor(sysvar(2)/10000)+6
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a
triggerall=sysvar(2)%10000=4
trigger1=(stateno=210)&&animelemtime(8)=0
sysvar(2)=10000*floor(sysvar(2)/10000)+5
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a
triggerall=sysvar(2)%10000=3
trigger1=(stateno=200)&&animelemtime(4)=0
sysvar(2)=10000*floor(sysvar(2)/10000)+4
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a
triggerall=sysvar(2)%10000=2
trigger1=(stateno=210)&&animelemtime(8)=0
sysvar(2)=10000*floor(sysvar(2)/10000)+3
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a
triggerall=sysvar(2)%10000=1
trigger1=(stateno=400)&&animelemtime(3)=0
trigger2=(stateno=220)&&animelemtime(5)=0
trigger3=(stateno=200)&&animelemtime(4)=0
sysvar(2)=10000*floor(sysvar(2)/10000)+2
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a
triggerall=sysvar(2)%10000=0
triggerall=floor((sysvar(2)%1000000)/10000)>=6
trigger1=ctrl
trigger1=facing*(enemynear,screenpos x-screenpos x)<=90
trigger1=backedgedist>60
sysvar(2)=10000*floor(sysvar(2)/10000)+24
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a
triggerall=sysvar(2)%10000=0
triggerall=floor((sysvar(2)%1000000)/10000)>=6
trigger1=ctrl
trigger1=facing*(enemynear,screenpos x-screenpos x)<=90
trigger1=enemynear,statetype!=a
sysvar(2)=10000*floor(sysvar(2)/10000)+22
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a
triggerall=sysvar(2)%10000=0
triggerall=floor((sysvar(2)%1000000)/10000)>=6
trigger1=ctrl
trigger1=facing*(enemynear,screenpos x-screenpos x)<=90
sysvar(2)=10000*floor(sysvar(2)/10000)+21
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a
triggerall=sysvar(2)%10000=0
trigger1=ctrl
trigger1=facing*(enemynear,screenpos x-screenpos x)<=90
sysvar(2)=10000*floor(sysvar(2)/10000)+1
;僐儞儃恑峴乮徃弴張棟乯丅



;僐儞儃巒揰丅
[state ]
type=changestate
value=400
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&ctrl
triggerall=sysvar(2)%10000=1
triggerall=ctrl
trigger1=enemynear,statetype=a
trigger1=facing*(enemynear,screenpos x-screenpos x)<=65
trigger2=facing*(enemynear,screenpos x-screenpos x)>65
[state ]
type=changestate
value=220
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&(ctrl||(stateno=200)&&animelemtime(4)=0||(stateno=210)&&animelemtime(8)=0||(stateno=220)&&animelemtime(5)=0||(stateno=230)&&animelemtime(3)=0||(stateno=400)&&animelemtime(3)=0)
triggerall=sysvar(2)%10000=1
trigger1=enemynear,statetype=l
trigger1=facing*(enemynear,screenpos x-screenpos x)<=65
[state ]
type=changestate
value=200
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&(ctrl||(stateno=210)&&animelemtime(8)=0||(stateno=220)&&animelemtime(5)=0||(stateno=230)&&animelemtime(3)=0||(stateno=400)&&animelemtime(3)=0)
triggerall=sysvar(2)%10000=1
trigger1=facing*(enemynear,screenpos x-screenpos x)<=30

[state ]
type=changestate
value=13000
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&(ctrl||(stateno=200)&&animelemtime(4)=0||(stateno=210)&&animelemtime(8)=0||(stateno=220)&&animelemtime(5)=0||(stateno=230)&&animelemtime(3)=0||(stateno=400)&&animelemtime(3)=0)
triggerall=sysvar(2)%10000=21
trigger1=enemynear,statetype!=a
trigger1=random<=300

[state ]
type=changestate
value=1600
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&(ctrl||(stateno=200)&&animelemtime(4)=0||(stateno=210)&&animelemtime(8)=0||(stateno=220)&&animelemtime(5)=0||(stateno=230)&&animelemtime(3)=0||(stateno=400)&&animelemtime(3)=0)
triggerall=sysvar(2)%10000=22
trigger1=1

[state ]
type=changestate
value=1400
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&(ctrl||(stateno=200)&&animelemtime(4)=0||(stateno=210)&&animelemtime(8)=0||(stateno=220)&&animelemtime(5)=0||(stateno=230)&&animelemtime(3)=0||(stateno=400)&&animelemtime(3)=0)
triggerall=sysvar(2)%10000=24
trigger1=enemynear,statetype!=a
[state ]
type=changestate
value=1500
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&(ctrl||(stateno=200)&&animelemtime(4)=0||(stateno=210)&&animelemtime(8)=0||(stateno=220)&&animelemtime(5)=0||(stateno=230)&&animelemtime(3)=0||(stateno=400)&&animelemtime(3)=0)
triggerall=sysvar(2)%10000=24
trigger1=1



;僐儞儃懕偒丅
[state ]
type=changestate
value=210
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&(ctrl||(stateno=200)&&animelemtime(4)=0||(stateno=210)&&animelemtime(8)=0||(stateno=220)&&animelemtime(5)=0||(stateno=230)&&animelemtime(3)=0||(stateno=400)&&animelemtime(3)=0)
triggerall=sysvar(2)%10000=2
trigger1=1
[state ]
type=changestate
value=200
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&(ctrl||(stateno=210)&&animelemtime(8)=0||(stateno=220)&&animelemtime(5)=0||(stateno=230)&&animelemtime(3)=0||(stateno=400)&&animelemtime(3)=0)
triggerall=sysvar(2)%10000=3
trigger1=1
[state ]
type=changestate
value=210
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&(ctrl||(stateno=200)&&animelemtime(4)=0||(stateno=210)&&animelemtime(8)=0||(stateno=220)&&animelemtime(5)=0||(stateno=230)&&animelemtime(3)=0||(stateno=400)&&animelemtime(3)=0)
triggerall=sysvar(2)%10000=4
trigger1=1
[state ]
type=changestate
value=200
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&(ctrl||(stateno=210)&&animelemtime(8)=0||(stateno=220)&&animelemtime(5)=0||(stateno=230)&&animelemtime(3)=0||(stateno=400)&&animelemtime(3)=0)
triggerall=sysvar(2)%10000=5
trigger1=1
[state ]
type=changestate
value=230
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&(ctrl||(stateno=200)&&animelemtime(4)=0||(stateno=210)&&animelemtime(8)=0||(stateno=220)&&animelemtime(5)=0||(stateno=230)&&animelemtime(3)=0||(stateno=400)&&animelemtime(3)=0)
triggerall=sysvar(2)%10000=6
trigger1=facing*(enemynear,screenpos x-screenpos x)<=50
[state ]
type=changestate
value=240
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&(ctrl||(stateno=200)&&animelemtime(4)=0||(stateno=210)&&animelemtime(8)=0||(stateno=220)&&animelemtime(5)=0||(stateno=230)&&animelemtime(3)=0||(stateno=400)&&animelemtime(3)=0)
triggerall=sysvar(2)%10000=6
trigger1=facing*(enemynear,screenpos x-screenpos x)>50
[state ]
type=changestate
value=40
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&(ctrl||(stateno=230)&&animelemtime(3)=0||(stateno=240)&&movecontact)
triggerall=sysvar(2)%10000=7
trigger1=1
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=sysvar(2)%10000=7
trigger1=stateno=40
var(51)=1
[state ]
type=changestate
value=600
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype=a&&(ctrl||(stateno=600)&&movecontact||(stateno=620)&&(animelemtime(7)>=0)&&movecontact)
triggerall=sysvar(2)%10000=8
trigger1=1
[state ]
type=changestate
value=620
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype=a&&(ctrl||(stateno=600)&&movecontact||(stateno=620)&&(animelemtime(7)>=0)&&movecontact)
triggerall=sysvar(2)%10000=9
trigger1=1
[state ]
type=changestate
value=720
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype=a&&(ctrl||(stateno=600)&&movecontact||(stateno=620)&&(animelemtime(7)>=0)&&movecontact)
triggerall=sysvar(2)%10000=10
trigger1=1
[state ]
type=changestate
value=105
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&(ctrl||(stateno=200)&&animelemtime(4)=0||(stateno=210)&&animelemtime(8)=0||(stateno=220)&&animelemtime(5)=0||(stateno=230)&&animelemtime(3)=0||(stateno=400)&&animelemtime(3)=0)
triggerall=sysvar(2)%10000=11
trigger1=1
[state ]
type=changestate
value=700
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype=a&&(ctrl||(stateno=600)&&movecontact||(stateno=620)&&(animelemtime(7)>=0)&&movecontact)
triggerall=sysvar(2)%10000=12
trigger1=1
[state ]
type=changestate
value=800
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&facing*(enemynear,screenpos x-screenpos x)<=120&&(ctrl||(stateno=200)&&animelemtime(4)=0||(stateno=210)&&animelemtime(8)=0||(stateno=220)&&animelemtime(5)=0||(stateno=230)&&animelemtime(3)=0||(stateno=400)&&animelemtime(3)=0)
triggerall=sysvar(2)%10000=13
triggerall=floor((sysvar(2)%1000000)/10000)<5
trigger1=facing*(enemynear,screenpos x-screenpos x)>45
trigger1=enemynear,statetype!=a
trigger2=facing*(enemynear,screenpos x-screenpos x)>45
trigger2=enemynear,statetype=a
trigger2=enemynear,movetype=h
[state ]
type=changestate
value=13000
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&(ctrl||(stateno=200)&&animelemtime(4)=0||(stateno=210)&&animelemtime(8)=0||(stateno=220)&&animelemtime(5)=0||(stateno=230)&&animelemtime(3)=0||(stateno=400)&&animelemtime(3)=0)
triggerall=sysvar(2)%10000=13
trigger1=facing*(enemynear,screenpos x-screenpos x)>45
trigger1=enemynear,statetype!=a
trigger2=facing*(enemynear,screenpos x-screenpos x)>45
trigger2=enemynear,statetype=a
trigger2=enemynear,movetype=h
[state ]
type=changestate
value=220
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&(ctrl||(stateno=200)&&animelemtime(4)=0||(stateno=210)&&animelemtime(8)=0||(stateno=220)&&animelemtime(5)=0||(stateno=230)&&animelemtime(3)=0||(stateno=400)&&animelemtime(3)=0)
triggerall=sysvar(2)%10000=13
trigger1=1
[state ]
type=changestate
value=800
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&facing*(enemynear,screenpos x-screenpos x)<=120&&(ctrl||(stateno=200)&&animelemtime(4)=0||(stateno=210)&&animelemtime(8)=0||(stateno=220)&&animelemtime(5)=0||(stateno=230)&&animelemtime(3)=0||(stateno=400)&&animelemtime(3)=0)
triggerall=sysvar(2)%10000=14
trigger1=enemynear,statetype!=a
trigger2=enemynear,statetype=a
trigger2=enemynear,movetype=h
[state ]
type=changestate
value=105
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&(ctrl||(stateno=200)&&animelemtime(4)=0||(stateno=210)&&animelemtime(8)=0||(stateno=220)&&animelemtime(5)=0||(stateno=230)&&animelemtime(3)=0||(stateno=400)&&animelemtime(3)=0)
triggerall=sysvar(2)%10000=14
trigger1=1
[state ]
type=changestate
value=720
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype=a&&(ctrl||(stateno=600)&&movecontact||(stateno=620)&&(animelemtime(7)>=0)&&movecontact)
triggerall=sysvar(2)%10000=15
trigger1=1

[state ]
type=changestate
value=13100
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&(ctrl||(stateno=200)&&animelemtime(4)=0||(stateno=210)&&animelemtime(8)=0||(stateno=220)&&animelemtime(5)=0||(stateno=230)&&animelemtime(3)=0||(stateno=400)&&animelemtime(3)=0)
triggerall=sysvar(2)%10000=16
trigger1=1
[state ]
type=changestate
value=800
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&facing*(enemynear,screenpos x-screenpos x)<=120&&(ctrl||(stateno=200)&&animelemtime(4)=0||(stateno=210)&&animelemtime(8)=0||(stateno=220)&&animelemtime(5)=0||(stateno=230)&&animelemtime(3)=0||(stateno=400)&&animelemtime(3)=0)
triggerall=sysvar(2)%10000=17
trigger1=enemynear,statetype!=a
trigger2=enemynear,statetype=a
trigger2=enemynear,movetype=h
[state ]
type=changestate
value=1500
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&(ctrl||(stateno=200)&&animelemtime(4)=0||(stateno=210)&&animelemtime(8)=0||(stateno=220)&&animelemtime(5)=0||(stateno=230)&&animelemtime(3)=0||(stateno=400)&&animelemtime(3)=0)
triggerall=sysvar(2)%10000=17
trigger1=1

[state ]
type=changestate
value=13400
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&(ctrl||(stateno=200)&&animelemtime(4)=0||(stateno=210)&&animelemtime(8)=0||(stateno=220)&&animelemtime(5)=0||(stateno=230)&&animelemtime(3)=0||(stateno=400)&&animelemtime(3)=0)
triggerall=sysvar(2)%10000=18
trigger1=1

[state ]
type=changestate
value=13200
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&(ctrl||(stateno=200)&&animelemtime(4)=0||(stateno=210)&&animelemtime(8)=0||(stateno=220)&&animelemtime(5)=0||(stateno=230)&&animelemtime(3)=0||(stateno=400)&&animelemtime(3)=0)
triggerall=sysvar(2)%10000=19
trigger1=1
[state ]
type=changestate
value=13100
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&(ctrl||(stateno=200)&&animelemtime(4)=0||(stateno=210)&&animelemtime(8)=0||(stateno=220)&&animelemtime(5)=0||(stateno=230)&&animelemtime(3)=0||(stateno=400)&&animelemtime(3)=0)
triggerall=sysvar(2)%10000=20
trigger1=1

[state ]
type=changestate
value=1200
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&(ctrl||(stateno=200)&&animelemtime(4)=0||(stateno=210)&&animelemtime(8)=0||(stateno=220)&&animelemtime(5)=0||(stateno=230)&&animelemtime(3)=0||(stateno=400)&&animelemtime(3)=0)
triggerall=sysvar(2)%10000=23
trigger1=enemynear,statetype!=a
[state ]
type=changestate
value=1300
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=statetype!=a&&(ctrl||(stateno=200)&&animelemtime(4)=0||(stateno=210)&&animelemtime(8)=0||(stateno=220)&&animelemtime(5)=0||(stateno=230)&&animelemtime(3)=0||(stateno=400)&&animelemtime(3)=0)
triggerall=sysvar(2)%10000=23
trigger1=1



;僐儞儃乊乮媡弴張棟乯丅
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12&&roundstate=2)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&sysvar(4)>=7&&sysvar(4)<=12)
triggerall=sysvar(2)%10000>=1&&sysvar(2)%10000<=100
trigger1=ctrl
sysvar(2)=10000*floor(sysvar(2)/10000)+0