;-| AI Motions |-----------------------------------------------------------
[Command]
name = "CPU 01"
command = F, F, F
time = 0

[Command]
name = "CPU 02"
command = F, F, F
time = 0

[Command]
name = "CPU 03"
command = F, F, F
time = 0

[Command]
name = "CPU 04"
command = F, F, F
time = 0

[Command]
name = "CPU 05"
command = F, F, F
time = 0

[Command]
name = "CPU 06"
command = F, F, F
time = 0

[Command]
name = "CPU 07"
command = F, F, F
time = 0

[Command]
name = "CPU 08"
command = F, F, F
time = 0

[Command]
name = "CPU 09"
command = F, F, F
time = 0

[Command]
name = "CPU 10"
command = F, F, F
time = 0

[Command]
name = "CPU 11"
command = F, F, F
time = 0

[Command]
name = "CPU 12"
command = F, F, F
time = 0

[Command]
name = "CPU 13"
command = F, F, F
time = 0

[Command]
name = "CPU 14"
command = F, F, F
time = 0

[Command]
name = "CPU 15"
command = F, F, F
time = 0

[Command]
name = "CPU 16"
command = F, F, F
time = 0

[Command]
name = "CPU 17"
command = F, F, F
time = 0

[Command]
name = "CPU 18"
command = F, F, F
time = 0

[Command]
name = "CPU 19"
command = F, F, F
time = 0

[Command]
name = "CPU 20"
command = F, F, F
time = 0

[Command]
name = "CPU 21"
command = F, F, F
time = 0

[Command]
name = "CPU 22"
command = F, F, F
time = 0

[Command]
name = "CPU 23"
command = F, F, F
time = 0

[Command]
name = "CPU 24"
command = F, F, F
time = 0

[Command]
name = "CPU 25"
command = F, F, F
time = 0

[Command]
name = "CPU 26"
command = F, F, F
time = 0

[Command]
name = "CPU 27"
command = F, F, F
time = 0

[Command]
name = "CPU 28"
command = F, F, F
time = 0

[Command]
name = "CPU 29"
command = F, F, F
time = 0

[Command]
name = "CPU 30"
command = F, F, F
time = 0

[Command]
name = "CPU 31"
command = F, F, F
time = 0

[Command]
name = "CPU 32"
command = F, F, F
time = 0

[Command]
name = "CPU 33"
command = F, F, F
time = 0

[Command]
name = "CPU 34"
command = F, F, F
time = 0

[Command]
name = "CPU 35"
command = F, F, F
time = 0

[Command]
name = "CPU 36"
command = F, F, F
time = 0

[Command]
name = "CPU 37"
command = F, F, F
time = 0

[Command]
name = "CPU 38"
command = F, F, F
time = 0

[Command]
name = "CPU 39"
command = F, F, F
time = 0

[Command]
name = "CPU 40"
command = F, F, F
time = 0

[Command]
name = "CPU 41"
command = F, F, F
time = 0

[Command]
name = "CPU 42"
command = F, F, F
time = 0

[Command]
name = "CPU 43"
command = F, F, F
time = 0

[Command]
name = "CPU 44"
command = F, F, F
time = 0

[Command]
name = "CPU 45"
command = F, F, F
time = 0

[Command]
name = "CPU 46"
command = F, F, F
time = 0

[Command]
name = "CPU 47"
command = F, F, F
time = 0

[Command]
name = "CPU 48"
command = F, F, F
time = 0

[Command]
name = "CPU 49"
command = F, F, F
time = 0

[Command]
name = "CPU 50"
command = F, F, F
time = 0

;-| Super Motions |--------------------------------------------------------

[Command];value=20700
name = "楖崠嬛庺亂棊瑕亃"
command = ~D, F, D, B, x
time = 20





[Command];value=20500
name = "儗僔儔儉偺傾儗"
command = ~D, B, D, B, y
time = 20

[Command];value=20600
name = "僕僃僲僒僀僪僽儗僀僶乕"
command = ~D, B, D, F, y
time = 20






[Command];value=2000
name = "僽儖乕僞儖僑僢僪僾儘僕僃僋僩"
command = ~D, F, D, B, x+y
time = 20
[Command];value=2000
name = "僽儖乕僞儖僑僢僪僾儘僕僃僋僩"
command = ~D, F, D, B, z
time = 20

[Command];;value=2300
name = "僄儞僪僆僽僈僀傾"
command = ~D, B, D, F, x
time = 20

[Command];value=2500
name = "檐儕傾儞僩仚僀僌僯僗仚僾儘僕僃僋僩"
command = ~D, F, D, F, D, F, x+y
time = 30
[Command];value=2500
name = "檐儕傾儞僩仚僀僌僯僗仚僾儘僕僃僋僩"
command = ~D, F, D, F, D, F, z
time = 30

[Command];value=20200
name = "僨傿僗僀儞僥僌儗僀僔儑僫儖儐僯僶乕僗"
command = ~D, D, x+y
time = 20

[Command];value=20300
name = "僨僗僥傿僯乕儔僢僔儏"
command = ~D, B, D, B, a
time = 20

[Command];value=20400
name = "儘傾乕儃儖僩"
command = ~D, B, D, B, b
time = 20






[Command];value=1140
name = "僽儗僀僘僔儏乕僩"
command = ~D, DF, F, b
time = 15

[Command];value=1070
name = "(_邅瓦)o渃亱働僀僆僗両僞僀僪両兛"
command = ~D, F, D, F, a
time = 20

[Command];value=1075
name = "(_邅瓦)o渃亱働僀僆僗両僞僀僪両兝"
command = ~D, F, D, F, b
time = 20

[Command];value=1080
name = "僀乕僨傿傾儞僽儗僀僪兛"
command = ~D, F, D, F, x
time = 20

[Command];value=1085
name = "僀乕僨傿傾儞僽儗僀僪兝"
command = ~D, F, D, F, y
time = 20

[Command];value=2100
name = "敀梾柵惛"
command = ~D, B, D, B, x
time = 20

[Command];value=20000
name = "僲傾僘僀儞僷乕僈僩儕傿"
command = ~D, B, D, F, a
time = 20

[Command];value=20100
name = "儂儔僀僝儞僞儖僷乕僈僩儕傿"
command = ~D, B, D, F, b
time = 20

;-| Special Motions |------------------------------------------------------

[Command];value=1000
name = "傆偀偄偊傞傫両忋抜"
command = ~D, DB, B, x
time = 15
[Command];value=1010
name = "傆偀偄偊傞傫両壓抜"
command = ~D, DB, B, y
time = 15
[Command];value=1020
name = "nega"
command = ~D, DB, B, a
time = 15
[Command];value=1020
name = "nega"
command = ~D, DB, B, b
time = 15

[Command];value=1030
name = "kusari"
command = ~D, DF, F, x
time = 15
[Command];value=1031
name = "kusari2"
command = ~D, DF, F, y
time = 15
[Command];value=1040
name = "償僅僀僪僽儗僀僘"
command = ~D, DF, F, a
time = 15

[Command];value=1050
name = "taiku"
command = ~F, D, DF, x
time = 15
[Command];value=1060
name = "taiku2"
command = ~F, D, DF, y
time = 15
[Command];value=1210
name = "抧柺偐傜墛偑僘價儍傽儞両"
command = ~F, D, DF, a
time = 15
[Command];value=1210
name = "抧柺偐傜墛偑僘價儍傽儞両"
command = ~F, D, DF, b
time = 15

[Command];value=1100
name = "怺暎偺楖崠兛"
command = ~B, F, x
time = 15
[Command];value=1110
name = "怺暎偺楖崠兝"
command = ~B, F, y
time = 15
[Command];value=1120
name = "怺暎偺楖崠兞"
command = ~B, F, a
time = 15
[Command];value=1130
name = "怺暎偺楖崠儮"
command = ~B, F, b
time = 15

[Command];value=1150
name = "僱僗僣幃懳惗惉兛"
command = ~F, B, x
time = 15
[Command];value=1160
name = "僱僗僣幃懳惗惉兝"
command = ~F, B, y
time = 15
[Command];value=1170
name = "楖崠僔僓乕兛"
command = ~F, B, a
time = 15
[Command];value=1180
name = "楖崠僔僓乕兝"
command = ~F, B, b
time = 15

[Command];value=1190
name = "娺嬶偺僫僀償僘兛"
command = ~D, D, x
time = 15
[Command];value=1200
name = "娺嬶偺僫僀償僘兝"
command = ~D, D, y
time = 15
[Command];value=1220
name = "僪僫僪僫兛"
command = ~D, D, a
time = 15
[Command];value=1230
name = "僪僫僪僫兝"
command = ~D, D, b
time = 15

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

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

[Command]
name = "Hjump"
command = $D, $U
time = 13

;-| 2/3 Button Combination |-----------------------------------------------
[Command]
name = "recovery";Required (do not remove)
command = x+a
time = 1

[Command]
name = "recovery";Required (do not remove)
command = z
time = 1

[Command]
name = "knock"
command = c
time = 1

[Command]
name = "knock"
command = y+b
time = 1

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

[Command]
name = "dodge"
command = z
time = 1


;-| Dir + Button |---------------------------------------------------------
[Command]
name = "down_a"
command = /$D,a
time = 1

[Command]
name = "down_b"
command = /$D,b
time = 1

;-| Single Button |---------------------------------------------------------
[Command]
name = "a"
command = a
time = 1

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

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

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

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

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

[Command]
name = "start"
command = s
time = 1

;-| Hold Dir |--------------------------------------------------------------

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

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

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

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

[statedef -1]

[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,0)
trigger1=command="CPU 01"
trigger2=command="CPU 02"
trigger3=command="CPU 03"
trigger4=command="CPU 04"
trigger5=command="CPU 05"
trigger6=command="CPU 06"
trigger7=command="CPU 07"
trigger8=command="CPU 08"
trigger9=command="CPU 09"
trigger10=command="CPU 10"
trigger11=command="CPU 11"
trigger12=command="CPU 12"
trigger13=command="CPU 13"
trigger14=command="CPU 14"
trigger15=command="CPU 15"
trigger16=command="CPU 16"
trigger17=command="CPU 17"
trigger18=command="CPU 18"
trigger19=command="CPU 19"
trigger20=command="CPU 20"
trigger21=command="CPU 21"
trigger22=command="CPU 22"
trigger23=command="CPU 23"
trigger24=command="CPU 24"
trigger25=command="CPU 25"
trigger26=command="CPU 26"
trigger27=command="CPU 27"
trigger28=command="CPU 28"
trigger29=command="CPU 29"
trigger30=command="CPU 30"
trigger31=command="CPU 31"
trigger32=command="CPU 32"
trigger33=command="CPU 33"
trigger34=command="CPU 34"
trigger35=command="CPU 35"
trigger36=command="CPU 36"
trigger37=command="CPU 37"
trigger38=command="CPU 38"
trigger39=command="CPU 39"
trigger40=command="CPU 40"
trigger41=command="CPU 41"
trigger42=command="CPU 42"
trigger43=command="CPU 43"
trigger44=command="CPU 44"
trigger45=command="CPU 45"
trigger46=command="CPU 46"
trigger47=command="CPU 47"
trigger48=command="CPU 48"
trigger49=command="CPU 49"
trigger50=command="CPU 50"
sysvar(1)=1



;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;Lv4挻昁嶦媄
;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭

;楖崠嬛庺亂棊瑕亃
[state -1]
type=changestate
value=20700
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&root,palno>=7&&root,palno<=12&&roundstate=2)
triggerall=sysvar(2)>=8
triggerall=statetype!=a
triggerall=power>=4000
triggerall=ctrl||movecontact&&(stateno=200||stateno=210||stateno=230||stateno=240||(var(58)=1&&(stateno=1050||stateno=1060||stateno=1020&&animelem=12,>=0&&animelem=14,>=0||stateno=1030||stateno=1031||stateno=[1050,1062])))
trigger1=1



;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;Lv3挻昁嶦媄
;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭

;僕僃僲僒僀僪僽儗僀僶乕
[state -1]
type=changestate
value=20600
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&root,palno>=7&&root,palno<=12&&roundstate=2)
triggerall=sysvar(2)>=5&&sysvar(2)<=8
triggerall=statetype!=a
triggerall=power>=3000
triggerall=ctrl||movecontact&&(stateno=200||stateno=210||stateno=230||stateno=240||(var(58)=1&&(stateno=1050||stateno=1060||stateno=1020&&animelem=12,>=0&&animelem=14,>=0||stateno=1030||stateno=1031||stateno=[1050,1062])))
trigger1=random<700
;儗僔儔儉偺傾儗
[state -1]
type=changestate
value=20500
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&root,palno>=7&&root,palno<=12&&roundstate=2)
triggerall=sysvar(2)>=5&&sysvar(2)<=8
triggerall=statetype!=a
triggerall=power>=3000
triggerall=ctrl||movecontact&&(stateno=200||stateno=210||stateno=230||stateno=240||(var(58)=1&&(stateno=1050||stateno=1060||stateno=1020&&animelem=12,>=0&&animelem=14,>=0||stateno=1030||stateno=1031||stateno=[1050,1062])))
trigger1=1



;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;Lv2挻昁嶦媄
;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭

;仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧
;旕忢偵摿庩
;仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧

;儘傾乕儃儖僩
[state -1]
type=changestate
value=20400
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&root,palno>=7&&root,palno<=12&&roundstate=2)
triggerall=sysvar(2)>=2&&sysvar(2)<=5
triggerall=statetype!=a
triggerall=power>=2000
triggerall=ctrl||movecontact&&(stateno=200||stateno=210||stateno=230||stateno=240||(var(58)=1&&(stateno=1050||stateno=1060||stateno=1020&&animelem=12,>=0&&animelem=14,>=0||stateno=1030||stateno=1031||stateno=[1050,1062])))
trigger1=enemynear,ctrl=0
trigger1=abs(enemynear,pos x)>=0&&abs(enemynear,pos x)<=39

;仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧
;偦偺懠
;仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧

;僨傿僗僀儞僥僌儗僀僔儑僫儖儐僯僶乕僗
[state -1]
type=changestate
value=20200
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,0)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&root,palno>=7&&root,palno<=12&&roundstate=2)
triggerall=sysvar(2)>=2&&sysvar(2)<=5
triggerall=statetype!=a
triggerall=power>=2000
triggerall=ctrl||movecontact&&(stateno=200||stateno=210||stateno=230||stateno=240||(var(58)=1&&(stateno=1050||stateno=1060||stateno=1020&&animelem=12,>=0&&animelem=14,>=0||stateno=1030||stateno=1031||stateno=[1050,1062])))
trigger1=p2statetype!=a
trigger1=random<300
;僄儞僪僆僽僈僀傾
[state -1]
type=changestate
value=2300
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&root,palno>=7&&root,palno<=12&&roundstate=2)
triggerall=sysvar(2)>=2&&sysvar(2)<=5
triggerall=statetype!=a
triggerall=power>=2000
triggerall=ctrl||movecontact&&(stateno=200||stateno=210||stateno=230||stateno=240||(var(58)=1&&(stateno=1050||stateno=1060||stateno=1020&&animelem=12,>=0&&animelem=14,>=0||stateno=1030||stateno=1031||stateno=[1050,1062])))
trigger1=random<700
;僽儖乕僞儖僑僢僪僾儘僕僃僋僩
[state -1]
type=changestate
value=2000
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,0)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&root,palno>=7&&root,palno<=12&&roundstate=2)
triggerall=sysvar(2)>=2&&sysvar(2)<=5
triggerall=statetype!=a
triggerall=power>=2000
triggerall=ctrl||movecontact&&(stateno=200||stateno=210||stateno=230||stateno=240||(var(58)=1&&(stateno=1050||stateno=1060||stateno=1020&&animelem=12,>=0&&animelem=14,>=0||stateno=1030||stateno=1031||stateno=[1050,1062])))
trigger1=p2dist x<=100
trigger1=p2movetype=h
trigger1=p2statetype=a
trigger1=random<800
trigger2=p2dist x<=100
trigger2=p2movetype=h
trigger2=p2statetype=s
trigger2=random<600
trigger3=p2dist x<=100
trigger3=p2movetype=h
trigger3=p2statetype!=a
trigger3=p2statetype!=s
trigger3=random<400
trigger4=p2dist x<=100
trigger4=p2movetype!=h
trigger4=random<200
;僨僗僥傿僯乕儔僢僔儏
[state -1]
type=changestate
value=20300
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&root,palno>=7&&root,palno<=12&&roundstate=2)
triggerall=sysvar(2)>=2&&sysvar(2)<=5
triggerall=statetype!=a
triggerall=power>=2000
triggerall=ctrl||movecontact&&(stateno=200||stateno=210||stateno=230||stateno=240||(var(58)=1&&(stateno=1050||stateno=1060||stateno=1020&&animelem=12,>=0&&animelem=14,>=0||stateno=1030||stateno=1031||stateno=[1050,1062])))
trigger1=1



;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;Lv1挻昁嶦媄
;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭

;仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧
;抁嫍棧懳墳
;仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧

;敀梾柵惛
[state -1]
type=changestate
value=2100
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&root,palno>=7&&root,palno<=12&&roundstate=2)
triggerall=sysvar(2)>=0&&sysvar(2)<=4
triggerall=statetype!=a
triggerall=power>=1000
triggerall=ctrl||movecontact&&(stateno=200||stateno=210||stateno=230||stateno=240||(var(58)=1&&(stateno=1050||stateno=1060||stateno=1020&&animelem=12,>=0&&animelem=14,>=0||stateno=1030||stateno=1031||stateno=[1050,1062])))
trigger1=p2dist x<=120
trigger1=enemynear,vel x>0
trigger1=random<100
trigger2=p2dist x<=120
trigger2=enemynear,vel x<=0
trigger2=random<300
;僀乕僨傿傾儞僽儗僀僪兛
[state -1]
type=changestate
value=1080
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&root,palno>=7&&root,palno<=12&&roundstate=2)
triggerall=sysvar(2)>=0&&sysvar(2)<=4
triggerall=statetype!=a
triggerall=power>=1000
triggerall=ctrl||movecontact&&(stateno=200||stateno=210||stateno=230||stateno=240||(var(58)=1&&(stateno=1050||stateno=1060||stateno=1020&&animelem=12,>=0&&animelem=14,>=0||stateno=1030||stateno=1031||stateno=[1050,1062])))
trigger1=p2dist x<=120


;仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧
;挿嫍棧懳墳
;仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧

;僀乕僨傿傾儞僽儗僀僪兝
[state -1]
type=changestate
value=1085
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&root,palno>=7&&root,palno<=12&&roundstate=2)
triggerall=sysvar(2)>=0&&sysvar(2)<=4
triggerall=statetype!=a
triggerall=power>=1000
triggerall=ctrl||movecontact&&(stateno=200||stateno=210||stateno=230||stateno=240||(var(58)=1&&(stateno=1050||stateno=1060||stateno=1020&&animelem=12,>=0&&animelem=14,>=0||stateno=1030||stateno=1031||stateno=[1050,1062])))
trigger1=p2dist x>120
trigger1=enemynear,vel x<=0
trigger1=random<400
;(_邅瓦)o渃亱働僀僆僗両僞僀僪両兝
[state -1]
type=changestate
value=1075
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&root,palno>=7&&root,palno<=12&&roundstate=2)
triggerall=sysvar(2)>=0&&sysvar(2)<=4
triggerall=statetype!=a
triggerall=power>=1000
triggerall=ctrl||movecontact&&(stateno=200||stateno=210||stateno=230||stateno=240||(var(58)=1&&(stateno=1050||stateno=1060||stateno=1020&&animelem=12,>=0&&animelem=14,>=0||stateno=1030||stateno=1031||stateno=[1050,1062])))
trigger1=p2dist x>120
trigger1=enemynear,vel x<=0
trigger1=random<700
trigger2=p2dist x>120
trigger2=enemynear,vel x>0
trigger2=random<600
;(_邅瓦)o渃亱働僀僆僗両僞僀僪両兛
[state -1]
type=changestate
value=1070
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&root,palno>=7&&root,palno<=12&&roundstate=2)
triggerall=sysvar(2)>=0&&sysvar(2)<=4
triggerall=statetype!=a
triggerall=power>=1000
triggerall=ctrl||movecontact&&(stateno=200||stateno=210||stateno=230||stateno=240||(var(58)=1&&(stateno=1050||stateno=1060||stateno=1020&&animelem=12,>=0&&animelem=14,>=0||stateno=1030||stateno=1031||stateno=[1050,1062])))
trigger1=p2dist x>120
trigger1=enemynear,vel x>0
trigger1=random<250
;僽儗僀僘僔儏乕僩
[state -1]
type=changestate
value=1140
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&root,palno>=7&&root,palno<=12&&roundstate=2)
triggerall=sysvar(2)>=0&&sysvar(2)<=4
triggerall=statetype!=a
triggerall=power>=1000
triggerall=ctrl||movecontact&&(stateno=200||stateno=210||stateno=230||stateno=240||(var(58)=1&&(stateno=1050||stateno=1060||stateno=1020&&animelem=12,>=0&&animelem=14,>=0||stateno=1030||stateno=1031||stateno=[1050,1062])))
trigger1=p2dist x>120



;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;Lv1:搳偘媄
;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭

;儂儔僀僝儞僞儖僷乕僈僩儕傿
[state -1]
type=changestate
value=20100
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,0)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&root,palno>=7&&root,palno<=12&&roundstate=2)
triggerall=sysvar(2)>=0&&sysvar(2)<=4
triggerall=statetype!=a
triggerall=power>=1000
triggerall=ctrl||movecontact&&(stateno=200||stateno=210||stateno=230||stateno=240||(var(58)=1&&(stateno=1050||stateno=1060||stateno=1020&&animelem=12,>=0&&animelem=14,>=0||stateno=1030||stateno=1031||stateno=[1050,1062])))
trigger1=p2dist x<=30
trigger1=random<500
;僲傾僘僀儞僷乕僈僩儕傿
[state -1]
type=changestate
value=20000
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,0)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&root,palno>=7&&root,palno<=12&&roundstate=2)
triggerall=sysvar(2)>=0&&sysvar(2)<=4
triggerall=statetype!=a
triggerall=power>=1000
triggerall=ctrl||movecontact&&(stateno=200||stateno=210||stateno=230||stateno=240||(var(58)=1&&(stateno=1050||stateno=1060||stateno=1020&&animelem=12,>=0&&animelem=14,>=0||stateno=1030||stateno=1031||stateno=[1050,1062])))
trigger1=p2dist x<=30



;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;捠忢媄
;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭

;仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧
;堏摦
;仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧

;嬞媫夞旔慜
[state -1]
type=changestate
value=900
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&root,palno>=7&&root,palno<=12&&roundstate=2)
triggerall=statetype!=a
triggerall=ctrl=1
trigger1=p2dist x>100
trigger1=enemynear,vel x<=0
trigger1=random<200
trigger2=p2dist x>100
trigger2=enemynear,vel x>0
trigger2=random<100
;嬞媫夞旔屻
[state -1]
type=changestate
value=910
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&root,palno>=7&&root,palno<=12&&roundstate=2)
triggerall=statetype!=a
triggerall=ctrl=1
trigger1=p2dist x<=100
trigger1=enemynear,vel x>0
trigger1=random<200
trigger2=p2dist x<=100
trigger2=enemynear,vel x<=0
trigger2=random<100


;仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧
;拞崅僇儔乕梡僞僀儉戙梡曄悢儕僙僢僩
;仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧

;儕僙僢僩揑側
[state ]
type=varset
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=roundstate=2
trigger1=stateno=1000||stateno=1010||stateno=1040||stateno=1100&&anim=30290||stateno=1110&&anim=30290||stateno=1120&&anim=30290||stateno=1130&&anim=30290||stateno=1150||stateno=1170||stateno=1190||stateno=1200||stateno=1220||stateno=1230
trigger1=animtime=0
sysvar(1)=0


;仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧
;楢嵔帪怳傝岦偒張棟
;仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧

;僞僞僞僞乕儞両
[state ]
type=turn
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&root,palno>=7&&root,palno<=12&&roundstate=2)
triggerall=ifelse(facing=enemynear,facing,frontedgedist<enemynear,frontedgedist,frontedgedist<enemynear,backedgedist)
triggerall=animtime=0
trigger1=stateno=1000||stateno=1010||stateno=1150||stateno=1160||stateno=1190||stateno=1200
ignorehitpause=1


;仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧
;傆偀偄偊傞傫
;仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧

;仠仠仠仠仠仠仠仠仠仠僔乕僋僃儞僗侾仠仠仠仠仠仠仠仠仠仠

;傆偀偄偊傞傫両忋抜
[state -1]
type=changestate
value=1000
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&root,palno>=7&&root,palno<=12&&roundstate=2)
triggerall=statetype!=a
triggerall=ctrl||movecontact&&(stateno=200||stateno=210||stateno=230||stateno=240||(var(58)=1&&(stateno=1050||stateno=1060||stateno=1020&&animelem=12,>=0&&animelem=14,>=0||stateno=1030||stateno=1031||stateno=[1050,1062])))
trigger1=1

;仠仠仠仠仠仠仠仠仠仠僔乕僋僃儞僗俀仠仠仠仠仠仠仠仠仠仠

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

;仠仠仠仠仠仠仠仠仠仠僔乕僋僃儞僗俁仠仠仠仠仠仠仠仠仠仠

;僱僗僣幃懳惗惉兝
[state -1]
type=changestate
value=1160
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&root,palno>=7&&root,palno<=12&&roundstate=2)
triggerall=statetype!=a
triggerall=stateno=1000&&animtime=0||stateno=1010&&animtime=0
trigger1=random<100
;償僅僀僪僽儗僀僘
[state -1]
type=changestate
value=1040
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&root,palno>=7&&root,palno<=12&&roundstate=2)
triggerall=statetype!=a
triggerall=stateno=1000&&animtime=0||stateno=1010&&animtime=0
trigger1=random<600
;僱僗僣幃懳惗惉兛
[state -1]
type=changestate
value=1150
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&root,palno>=7&&root,palno<=12&&roundstate=2)
triggerall=statetype!=a
triggerall=stateno=1000&&animtime=0||stateno=1010&&animtime=0
trigger1=random<500
;僪僫僪僫兛
[state -1]
type=changestate
value=1220
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&root,palno>=7&&root,palno<=12&&roundstate=2)
triggerall=statetype!=a
triggerall=numhelper(1221)=0
triggerall=numhelper(1222)=0
triggerall=stateno=1000&&animtime=0||stateno=1010&&animtime=0
trigger1=random<500
;僪僫僪僫兝
[state -1]
type=changestate
value=1230
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&root,palno>=7&&root,palno<=12&&roundstate=2)
triggerall=statetype!=a
triggerall=numhelper(1231)=0
triggerall=numhelper(1232)=0
triggerall=stateno=1000&&animtime=0||stateno=1010&&animtime=0
trigger1=1


;仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧
;怺暎偺楖崠
;仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧

;仠仠仠仠仠仠仠仠仠仠僔乕僋僃儞僗侾仠仠仠仠仠仠仠仠仠仠

;怺暎偺楖崠兛
[state -1]
type=changestate
value=1100
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&root,palno>=7&&root,palno<=12&&roundstate=2)
triggerall=statetype!=a
triggerall=ctrl||movecontact&&(stateno=200||stateno=210||stateno=230||stateno=240||(var(58)=1&&(stateno=1050||stateno=1060||stateno=1020&&animelem=12,>=0&&animelem=14,>=0||stateno=1030||stateno=1031||stateno=[1050,1062])))
trigger1=p2dist x>25&&p2dist x<=75
trigger1=random<300
;怺暎偺楖崠兝
[state -1]
type=changestate
value=1110
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&root,palno>=7&&root,palno<=12&&roundstate=2)
triggerall=statetype!=a
triggerall=ctrl||movecontact&&(stateno=200||stateno=210||stateno=230||stateno=240||(var(58)=1&&(stateno=1050||stateno=1060||stateno=1020&&animelem=12,>=0&&animelem=14,>=0||stateno=1030||stateno=1031||stateno=[1050,1062])))
trigger1=p2dist x>75&&p2dist x<=125
trigger1=random<300
;怺暎偺楖崠兞
[state -1]
type=changestate
value=1120
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&root,palno>=7&&root,palno<=12&&roundstate=2)
triggerall=statetype!=a
triggerall=ctrl||movecontact&&(stateno=200||stateno=210||stateno=230||stateno=240||(var(58)=1&&(stateno=1050||stateno=1060||stateno=1020&&animelem=12,>=0&&animelem=14,>=0||stateno=1030||stateno=1031||stateno=[1050,1062])))
trigger1=p2dist x>125&&p2dist x<=175
trigger1=random<300
;怺暎偺楖崠儮
[state -1]
type=changestate
value=1130
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&root,palno>=7&&root,palno<=12&&roundstate=2)
triggerall=statetype!=a
triggerall=ctrl||movecontact&&(stateno=200||stateno=210||stateno=230||stateno=240||(var(58)=1&&(stateno=1050||stateno=1060||stateno=1020&&animelem=12,>=0&&animelem=14,>=0||stateno=1030||stateno=1031||stateno=[1050,1062])))
trigger1=p2dist x>175&&p2dist x<=225
trigger1=random<300

;仠仠仠仠仠仠仠仠仠仠僔乕僋僃儞僗俀仠仠仠仠仠仠仠仠仠仠

;僱僗僣幃懳惗惉兝
[state -1]
type=changestate
value=1160
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&root,palno>=7&&root,palno<=12&&roundstate=2)
triggerall=statetype!=a
trigger1=stateno=1100&&anim=30290&&animtime=0||stateno=1110&&anim=30290&&animtime=0||stateno=1120&&anim=30290&&animtime=0||stateno=1130&&anim=30290&&animtime=0
trigger1=random<150
;僪僫僪僫兛
[state -1]
type=changestate
value=1220
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&root,palno>=7&&root,palno<=12&&roundstate=2)
triggerall=statetype!=a
triggerall=numhelper(1221)=0
triggerall=numhelper(1222)=0
trigger1=stateno=1100&&anim=30290&&animtime=0||stateno=1110&&anim=30290&&animtime=0||stateno=1120&&anim=30290&&animtime=0||stateno=1130&&anim=30290&&animtime=0
trigger1=random<300
;娺嬶偺僫僀償僘兛
[state -1]
type=changestate
value=1190
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&root,palno>=7&&root,palno<=12&&roundstate=2)
triggerall=statetype!=a
trigger1=stateno=1100&&anim=30290&&animtime=0||stateno=1110&&anim=30290&&animtime=0||stateno=1120&&anim=30290&&animtime=0||stateno=1130&&anim=30290&&animtime=0
trigger1=random<300
;楖崠僔僓乕兛
[state -1]
type=changestate
value=1170
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&root,palno>=7&&root,palno<=12&&roundstate=2)
triggerall=statetype!=a
trigger1=stateno=1100&&anim=30290&&animtime=0||stateno=1110&&anim=30290&&animtime=0||stateno=1120&&anim=30290&&animtime=0||stateno=1130&&anim=30290&&animtime=0
trigger2=stateno=1170&&animtime=0
trigger2=random<500
;楖崠僔僓乕兝
[state -1]
type=changestate
value=1180
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&root,palno>=7&&root,palno<=12&&roundstate=2)
triggerall=statetype!=a
triggerall=stateno=1170&&animtime=0
trigger1=1


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

;仠仠仠仠仠仠仠仠仠仠僔乕僋僃儞僗侾仠仠仠仠仠仠仠仠仠仠

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

;仠仠仠仠仠仠仠仠仠仠僔乕僋僃儞僗俀仠仠仠仠仠仠仠仠仠仠

;僱僗僣幃懳惗惉兝
[state -1]
type=changestate
value=1160
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&root,palno>=7&&root,palno<=12&&roundstate=2)
triggerall=statetype!=a
triggerall=stateno=1040&&animtime=0
trigger1=random<100
;娺嬶偺僫僀償僘兛
[state -1]
type=changestate
value=1190
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&root,palno>=7&&root,palno<=12&&roundstate=2)
triggerall=statetype!=a
triggerall=stateno=1040&&animtime=0
trigger1=random<350
;怺暎偺楖崠兛
[state -1]
type=changestate
value=1100
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&root,palno>=7&&root,palno<=12&&roundstate=2)
triggerall=statetype!=a
triggerall=stateno=1040&&animtime=0
trigger1=p2dist x<=75
;怺暎偺楖崠兝
[state -1]
type=changestate
value=1110
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&root,palno>=7&&root,palno<=12&&roundstate=2)
triggerall=statetype!=a
triggerall=stateno=1040&&animtime=0
trigger1=p2dist x>75&&p2dist x<=125
;怺暎偺楖崠兞
[state -1]
type=changestate
value=1120
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&root,palno>=7&&root,palno<=12&&roundstate=2)
triggerall=statetype!=a
triggerall=stateno=1040&&animtime=0
trigger1=p2dist x>125&&p2dist x<=175
;怺暎偺楖崠儮
[state -1]
type=changestate
value=1130
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&root,palno>=7&&root,palno<=12&&roundstate=2)
triggerall=statetype!=a
triggerall=stateno=1040&&animtime=0
trigger1=p2dist x>175


;仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧
;壩庬
;仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧

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


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

;僱僗僣幃懳惗惉兝
[state -1]
type=changestate
value=1160
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&root,palno>=7&&root,palno<=12&&roundstate=2)
triggerall=statetype!=a
triggerall=stateno=1150&&animtime=0
trigger1=random<350
;償僅僀僪僽儗僀僘
[state -1]
type=changestate
value=1040
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&root,palno>=7&&root,palno<=12&&roundstate=2)
triggerall=statetype!=a
triggerall=stateno=1150&&animtime=0
trigger1=1


;仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧
;僫僀僼
;仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧

;仠仠仠仠仠仠仠仠仠仠僔乕僋僃儞僗侾仠仠仠仠仠仠仠仠仠仠

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


;仠仠仠仠仠仠仠仠仠仠僔乕僋僃儞僗俀仠仠仠仠仠仠仠仠仠仠

;僱僗僣幃懳惗惉兛
[state -1]
type=changestate
value=1150
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&root,palno>=7&&root,palno<=12&&roundstate=2)
triggerall=statetype!=a
triggerall=stateno=1190&&animtime=0||stateno=1200&&animtime=0
trigger1=random<700
;僪僫僪僫兛
[state -1]
type=changestate
value=1220
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&root,palno>=7&&root,palno<=12&&roundstate=2)
triggerall=statetype!=a
triggerall=numhelper(1221)=0
triggerall=numhelper(1222)=0
triggerall=stateno=1190&&animtime=0||stateno=1200&&animtime=0
trigger1=random<500
;僪僫僪僫兝
[state -1]
type=changestate
value=1230
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&root,palno>=7&&root,palno<=12&&roundstate=2)
triggerall=statetype!=a
triggerall=numhelper(1231)=0
triggerall=numhelper(1232)=0
triggerall=stateno=1190&&animtime=0||stateno=1200&&animtime=0
trigger1=1


;仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧
;嬤愙AI
;仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧

;抧柺偐傜墛偑僘價儍傽儞両
[state -1]
type=changestate
value=1210
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&root,palno>=7&&root,palno<=12&&roundstate=2)
triggerall=statetype!=a
triggerall=ctrl||movecontact&&(stateno=200||stateno=210||stateno=230||stateno=240||(var(58)=1&&(stateno=1050||stateno=1060||stateno=1020&&animelem=12,>=0&&animelem=14,>=0||stateno=1030||stateno=1031||stateno=[1050,1062])))
trigger1=p2dist x<=50
trigger1=p2statetype=a
trigger1=random<700
trigger2=p2dist x<=50
trigger2=p2statetype!=a
trigger2=random<500


;仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧
;僪僫僪僫偼楢嵔偡傞
;仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧

;僪僫僪僫兝
[state -1]
type=changestate
value=1230
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&root,palno>=7&&root,palno<=12&&roundstate=2)
triggerall=statetype!=a
triggerall=numhelper(1231)=0
triggerall=numhelper(1232)=0
triggerall=stateno=1220&&animtime=0
trigger1=1
;娺嬶偺僫僀償僘兛
[state -1]
type=changestate
value=1190
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&root,palno>=7&&root,palno<=12&&roundstate=2)
triggerall=statetype!=a
triggerall=stateno=1230&&animtime=0
trigger1=p2dist x>100
trigger1=random<450
;僱僗僣幃懳惗惉兝
[state -1]
type=changestate
value=1160
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&root,palno>=7&&root,palno<=12&&roundstate=2)
triggerall=statetype!=a
triggerall=stateno=1230&&animtime=0
trigger1=1


;仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧
;屻懕
;仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧仧

;怺暎偺楖崠兛
[state -1]
type=changestate
value=1100
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&root,palno>=7&&root,palno<=12&&roundstate=2)
triggerall=statetype!=a
triggerall=ctrl||movecontact&&(stateno=200||stateno=210||stateno=230||stateno=240||(var(58)=1&&(stateno=1050||stateno=1060||stateno=1020&&animelem=12,>=0&&animelem=14,>=0||stateno=1030||stateno=1031||stateno=[1050,1062])))
trigger1=p2dist x<=75
;怺暎偺楖崠兝
[state -1]
type=changestate
value=1110
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&root,palno>=7&&root,palno<=12&&roundstate=2)
triggerall=statetype!=a
triggerall=ctrl||movecontact&&(stateno=200||stateno=210||stateno=230||stateno=240||(var(58)=1&&(stateno=1050||stateno=1060||stateno=1020&&animelem=12,>=0&&animelem=14,>=0||stateno=1030||stateno=1031||stateno=[1050,1062])))
trigger1=p2dist x>75&&p2dist x<=125
;怺暎偺楖崠兞
[state -1]
type=changestate
value=1120
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&root,palno>=7&&root,palno<=12&&roundstate=2)
triggerall=statetype!=a
triggerall=ctrl||movecontact&&(stateno=200||stateno=210||stateno=230||stateno=240||(var(58)=1&&(stateno=1050||stateno=1060||stateno=1020&&animelem=12,>=0&&animelem=14,>=0||stateno=1030||stateno=1031||stateno=[1050,1062])))
trigger1=p2dist x>125&&p2dist x<=175
;怺暎偺楖崠儮
[state -1]
type=changestate
value=1130
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=ifelse(!ishelper,palno>=1&&palno<=6&&sysvar(1)=1&&roundstate=2,ishelper(100000)&&root,palno>=7&&root,palno<=12&&roundstate=2)
triggerall=statetype!=a
triggerall=ctrl||movecontact&&(stateno=200||stateno=210||stateno=230||stateno=240||(var(58)=1&&(stateno=1050||stateno=1060||stateno=1020&&animelem=12,>=0&&animelem=14,>=0||stateno=1030||stateno=1031||stateno=[1050,1062])))
trigger1=p2dist x>175

;==============================================================================
;---------------------------------------------------------------------------
;楖崠嬛庺亂棊瑕亃
[state -1]
type=changestate
value=20700
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=ifelse(!ishelper,0,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=command="楖崠嬛庺亂棊瑕亃"
triggerall=statetype!=a
triggerall=power>=3000
trigger1=ctrl
trigger2=stateno=200
trigger2=movecontact
trigger3=stateno=210
trigger3=movecontact
trigger4=stateno=230
trigger4=movecontact
trigger5=stateno=240
trigger5=movecontact

trigger6=var(58)=1
trigger6=movecontact
trigger6=stateno=1050||stateno=1060
trigger7=var(58)=1
trigger7=movecontact
trigger7=stateno=1020
trigger7=animelem=12,>=0
trigger7=animelem=15,<=0
trigger8=var(58)=1
trigger8=movecontact
trigger8=stateno=1030||stateno=1031
trigger9=var(58)=1
trigger9=movecontact
trigger9=stateno=[1050,1062]

;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;僕僃僲僒僀僪僽儗僀僶乕
[state -1]
type=changestate
value=20600
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=command="僕僃僲僒僀僪僽儗僀僶乕"
triggerall=statetype!=a
triggerall=power>=3000
trigger1=ctrl
trigger2=stateno=200
trigger2=movecontact
trigger3=stateno=210
trigger3=movecontact
trigger4=stateno=230
trigger4=movecontact
trigger5=stateno=240
trigger5=movecontact

trigger6=var(58)=1
trigger6=movecontact
trigger6=stateno=1050||stateno=1060
trigger7=var(58)=1
trigger7=movecontact
trigger7=stateno=1020
trigger7=animelem=12,>=0
trigger7=animelem=15,<=0
trigger8=var(58)=1
trigger8=movecontact
trigger8=stateno=1030||stateno=1031
trigger9=var(58)=1
trigger9=movecontact
trigger9=stateno=[1050,1062]

;---------------------------------------------------------------------------
;儗僔儔儉偺傾儗
[state -1]
type=changestate
value=20500
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=command="儗僔儔儉偺傾儗"
triggerall=statetype!=a
triggerall=power>=3000
trigger1=ctrl
trigger2=stateno=200
trigger2=movecontact
trigger3=stateno=210
trigger3=movecontact
trigger4=stateno=230
trigger4=movecontact
trigger5=stateno=240
trigger5=movecontact

trigger6=var(58)=1
trigger6=movecontact
trigger6=stateno=1050||stateno=1060
trigger7=var(58)=1
trigger7=movecontact
trigger7=stateno=1020
trigger7=animelem=12,>=0
trigger7=animelem=15,<=0
trigger8=var(58)=1
trigger8=movecontact
trigger8=stateno=1030||stateno=1031
trigger9=var(58)=1
trigger9=movecontact
trigger9=stateno=[1050,1062]

;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;儘傾乕儃儖僩
[state -1]
type=changestate
value=20400
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=command="儘傾乕儃儖僩"
triggerall=statetype!=a
triggerall=power>=2000
trigger1=ctrl
trigger2=stateno=200
trigger2=movecontact
trigger3=stateno=210
trigger3=movecontact
trigger4=stateno=230
trigger4=movecontact
trigger5=stateno=240
trigger5=movecontact

trigger6=var(58)=1
trigger6=movecontact
trigger6=stateno=1050||stateno=1060
trigger7=var(58)=1
trigger7=movecontact
trigger7=stateno=1020
trigger7=animelem=12,>=0
trigger7=animelem=15,<=0
trigger8=var(58)=1
trigger8=movecontact
trigger8=stateno=1030||stateno=1031
trigger9=var(58)=1
trigger9=movecontact
trigger9=stateno=[1050,1062]

;---------------------------------------------------------------------------
;僨僗僥傿僯乕儔僢僔儏
[state -1]
type=changestate
value=20300
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=command="僨僗僥傿僯乕儔僢僔儏"
triggerall=statetype!=a
triggerall=power>=2000
trigger1=ctrl
trigger2=stateno=200
trigger2=movecontact
trigger3=stateno=210
trigger3=movecontact
trigger4=stateno=230
trigger4=movecontact
trigger5=stateno=240
trigger5=movecontact

trigger6=var(58)=1
trigger6=movecontact
trigger6=stateno=1050||stateno=1060
trigger7=var(58)=1
trigger7=movecontact
trigger7=stateno=1020
trigger7=animelem=12,>=0
trigger7=animelem=15,<=0
trigger8=var(58)=1
trigger8=movecontact
trigger8=stateno=1030||stateno=1031
trigger9=var(58)=1
trigger9=movecontact
trigger9=stateno=[1050,1062]

;---------------------------------------------------------------------------
;僨傿僗僀儞僥僌儗僀僔儑僫儖儐僯僶乕僗
[state -1]
type=changestate
value=20200
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=command="僨傿僗僀儞僥僌儗僀僔儑僫儖儐僯僶乕僗"
triggerall=statetype!=a
triggerall=power>=2000
trigger1=ctrl
trigger2=stateno=200
trigger2=movecontact
trigger3=stateno=210
trigger3=movecontact
trigger4=stateno=230
trigger4=movecontact
trigger5=stateno=240
trigger5=movecontact

trigger6=var(58)=1
trigger6=movecontact
trigger6=stateno=1050||stateno=1060
trigger7=var(58)=1
trigger7=movecontact
trigger7=stateno=1020
trigger7=animelem=12,>=0
trigger7=animelem=15,<=0
trigger8=var(58)=1
trigger8=movecontact
trigger8=stateno=1030||stateno=1031
trigger9=var(58)=1
trigger9=movecontact
trigger9=stateno=[1050,1062]

;---------------------------------------------------------------------------
;檐儕傾儞僩仚僀僌僯僗仚僾儘僕僃僋僩
[state -1]
type=changestate
value=2500
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=command="檐儕傾儞僩仚僀僌僯僗仚僾儘僕僃僋僩"
triggerall=statetype!=a
triggerall=power>=3000
triggerall=var(59)=0
trigger1=ctrl
trigger2=stateno=200
trigger2=movecontact
trigger3=stateno=210
trigger3=movecontact
trigger4=stateno=230
trigger4=movecontact
trigger5=stateno=240
trigger5=movecontact

trigger6=var(58)=1
trigger6=movecontact
trigger6=stateno=1050||stateno=1060
trigger7=var(58)=1
trigger7=movecontact
trigger7=stateno=1020
trigger7=animelem=12,>=0
trigger7=animelem=14,<=0
trigger8=var(58)=1
trigger8=movecontact
trigger8=stateno=1030||stateno=1031
trigger9=var(58)=1
trigger9=movecontact
trigger9=stateno=[1050,1062]

;---------------------------------------------------------------------------
;僄儞僪僆僽僈僀傾
[state -1]
type=changestate
value=2300
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=command="僄儞僪僆僽僈僀傾"
triggerall=statetype!=a
triggerall=power>=2000
triggerall=var(59)=0
trigger1=ctrl
trigger2=stateno=200
trigger2=movecontact
trigger3=stateno=210
trigger3=movecontact
trigger4=stateno=230
trigger4=movecontact
trigger5=stateno=240
trigger5=movecontact

trigger6=var(58)=1
trigger6=movecontact
trigger6=stateno=1050||stateno=1060
trigger7=var(58)=1
trigger7=movecontact
trigger7=stateno=1020
trigger7=animelem=12,>=0
trigger7=animelem=14,<=0
trigger8=var(58)=1
trigger8=movecontact
trigger8=stateno=1030||stateno=1031
trigger9=var(58)=1
trigger9=movecontact
trigger9=stateno=[1050,1062]

;---------------------------------------------------------------------------
;僽儖乕僞儖僑僢僪僾儘僕僃僋僩
[state -1]
type=changestate
value=2000
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=command="僽儖乕僞儖僑僢僪僾儘僕僃僋僩"
triggerall=statetype!=a
triggerall=power>=2000
triggerall=var(59)=0
trigger1=ctrl
trigger2=stateno=200
trigger2=movecontact
trigger3=stateno=210
trigger3=movecontact
trigger4=stateno=230
trigger4=movecontact
trigger5=stateno=240
trigger5=movecontact

trigger6=var(58)=1
trigger6=movecontact
trigger6=stateno=1050||stateno=1060
trigger7=var(58)=1
trigger7=movecontact
trigger7=stateno=1020
trigger7=animelem=12,>=0
trigger7=animelem=14,<=0
trigger8=var(58)=1
trigger8=movecontact
trigger8=stateno=1030||stateno=1031
trigger9=var(58)=1
trigger9=movecontact
trigger9=stateno=[1050,1062]

;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;儂儔僀僝儞僞儖僷乕僈僩儕傿
[state -1]
type=changestate
value=20100
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=command="儂儔僀僝儞僞儖僷乕僈僩儕傿"
triggerall=statetype!=a
triggerall=power>=1000
trigger1=ctrl
trigger2=stateno=200
trigger2=movecontact
trigger3=stateno=210
trigger3=movecontact
trigger4=stateno=230
trigger4=movecontact
trigger5=stateno=240
trigger5=movecontact

trigger6=var(58)=1
trigger6=movecontact
trigger6=stateno=1050||stateno=1060
trigger7=var(58)=1
trigger7=movecontact
trigger7=stateno=1020
trigger7=animelem=12,>=0
trigger7=animelem=15,<=0
trigger8=var(58)=1
trigger8=movecontact
trigger8=stateno=1030||stateno=1031
trigger9=var(58)=1
trigger9=movecontact
trigger9=stateno=[1050,1062]

;---------------------------------------------------------------------------
;僲傾僘僀儞僷乕僈僩儕傿
[state -1]
type=changestate
value=20000
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=command="僲傾僘僀儞僷乕僈僩儕傿"
triggerall=statetype!=a
triggerall=power>=1000
trigger1=ctrl
trigger2=stateno=200
trigger2=movecontact
trigger3=stateno=210
trigger3=movecontact
trigger4=stateno=230
trigger4=movecontact
trigger5=stateno=240
trigger5=movecontact

trigger6=var(58)=1
trigger6=movecontact
trigger6=stateno=1050||stateno=1060
trigger7=var(58)=1
trigger7=movecontact
trigger7=stateno=1020
trigger7=animelem=12,>=0
trigger7=animelem=15,<=0
trigger8=var(58)=1
trigger8=movecontact
trigger8=stateno=1030||stateno=1031
trigger9=var(58)=1
trigger9=movecontact
trigger9=stateno=[1050,1062]

;---------------------------------------------------------------------------
;敀梾柵惛
[state -1]
type=changestate
value=2100
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=command="敀梾柵惛"
triggerall=statetype!=a
triggerall=power>=1000
triggerall=var(59)=0
trigger1=ctrl
trigger2=stateno=200
trigger2=movecontact
trigger3=stateno=210
trigger3=movecontact
trigger4=stateno=230
trigger4=movecontact
trigger5=stateno=240
trigger5=movecontact

trigger6=var(58)=1
trigger6=movecontact
trigger6=stateno=1050||stateno=1060
trigger7=var(58)=1
trigger7=movecontact
trigger7=stateno=1020
trigger7=animelem=12,>=0
trigger7=animelem=14,<=0
trigger8=var(58)=1
trigger8=movecontact
trigger8=stateno=1030||stateno=1031
trigger9=var(58)=1
trigger9=movecontact
trigger9=stateno=[1050,1062]

;---------------------------------------------------------------------------
;僀乕僨傿傾儞僽儗僀僪兝
[state -1]
type=changestate
value=1085
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=command="僀乕僨傿傾儞僽儗僀僪兝"
triggerall=numhelper(1080)=0
triggerall=statetype!=a
triggerall=power>=1000
trigger1=ctrl
trigger2=stateno=200
trigger2=movecontact
trigger3=stateno=210
trigger3=movecontact
trigger4=stateno=230
trigger4=movecontact
trigger5=stateno=240
trigger5=movecontact

trigger6=var(58)=1
trigger6=movecontact
trigger6=stateno=1050||stateno=1060
trigger7=var(58)=1
trigger7=movecontact
trigger7=stateno=1020
trigger7=animelem=12,>=0
trigger7=animelem=14,<=0
trigger8=var(58)=1
trigger8=movecontact
trigger8=stateno=1030||stateno=1031
trigger9=var(58)=1
trigger9=movecontact
trigger9=stateno=[1050,1062]

;---------------------------------------------------------------------------
;僀乕僨傿傾儞僽儗僀僪兛
[state -1]
type=changestate
value=1080
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=command="僀乕僨傿傾儞僽儗僀僪兛"
triggerall=numhelper(1080)=0
triggerall=statetype!=a
triggerall=power>=1000
trigger1=ctrl
trigger2=stateno=200
trigger2=movecontact
trigger3=stateno=210
trigger3=movecontact
trigger4=stateno=230
trigger4=movecontact
trigger5=stateno=240
trigger5=movecontact

trigger6=var(58)=1
trigger6=movecontact
trigger6=stateno=1050||stateno=1060
trigger7=var(58)=1
trigger7=movecontact
trigger7=stateno=1020
trigger7=animelem=12,>=0
trigger7=animelem=14,<=0
trigger8=var(58)=1
trigger8=movecontact
trigger8=stateno=1030||stateno=1031
trigger9=var(58)=1
trigger9=movecontact
trigger9=stateno=[1050,1062]

;---------------------------------------------------------------------------
;(_邅瓦)o渃亱働僀僆僗両僞僀僪両兝
[state -1]
type=changestate
value=1075
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=command="(_邅瓦)o渃亱働僀僆僗両僞僀僪両兝"
triggerall=statetype!=a
triggerall=power>=1000
trigger1=ctrl
trigger2=stateno=200
trigger2=movecontact
trigger3=stateno=210
trigger3=movecontact
trigger4=stateno=230
trigger4=movecontact
trigger5=stateno=240
trigger5=movecontact

trigger6=var(58)=1
trigger6=movecontact
trigger6=stateno=1050||stateno=1060
trigger7=var(58)=1
trigger7=movecontact
trigger7=stateno=1020
trigger7=animelem=12,>=0
trigger7=animelem=15,<=0
trigger8=var(58)=1
trigger8=movecontact
trigger8=stateno=1030||stateno=1031
trigger9=var(58)=1
trigger9=movecontact
trigger9=stateno=[1050,1062]

;---------------------------------------------------------------------------
;(_邅瓦)o渃亱働僀僆僗両僞僀僪両兛
[state -1]
type=changestate
value=1070
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=command="(_邅瓦)o渃亱働僀僆僗両僞僀僪両兛"
triggerall=statetype!=a
triggerall=power>=1000
trigger1=ctrl
trigger2=stateno=200
trigger2=movecontact
trigger3=stateno=210
trigger3=movecontact
trigger4=stateno=230
trigger4=movecontact
trigger5=stateno=240
trigger5=movecontact

trigger6=var(58)=1
trigger6=movecontact
trigger6=stateno=1050||stateno=1060
trigger7=var(58)=1
trigger7=movecontact
trigger7=stateno=1020
trigger7=animelem=12,>=0
trigger7=animelem=15,<=0
trigger8=var(58)=1
trigger8=movecontact
trigger8=stateno=1030||stateno=1031
trigger9=var(58)=1
trigger9=movecontact
trigger9=stateno=[1050,1062]

;---------------------------------------------------------------------------
;僽儗僀僘僔儏乕僩
[state -1]
type=changestate
value=1140
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=command="僽儗僀僘僔儏乕僩"
triggerall=statetype!=a
triggerall=power>=1000
trigger1=ctrl
trigger2=stateno=200
trigger2=movecontact
trigger3=stateno=210
trigger3=movecontact
trigger4=stateno=230
trigger4=movecontact
trigger5=stateno=240
trigger5=movecontact

trigger6=var(58)=1
trigger6=movecontact
trigger6=stateno=1050||stateno=1060
trigger7=var(58)=1
trigger7=movecontact
trigger7=stateno=1020
trigger7=animelem=12,>=0
trigger7=animelem=15,<=0
trigger8=var(58)=1
trigger8=movecontact
trigger8=stateno=1030||stateno=1031
trigger9=var(58)=1
trigger9=movecontact
trigger9=stateno=[1050,1062]

;---------------------------------------------------------------------------
;傆偀偄偊傞傫両忋抜
[state -1]
type=changestate
value=1000
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=command="傆偀偄偊傞傫両忋抜"
triggerall=statetype!=a
triggerall=numprojid(1000)=0
triggerall=numprojid(1025)=0
trigger1=ctrl
trigger2=stateno=200
trigger2=movecontact
trigger3=stateno=210
trigger3=movecontact
trigger4=stateno=230
trigger4=movecontact
trigger5=stateno=240
trigger5=movecontact

trigger6=var(58)=1
trigger6=movecontact
trigger6=stateno=1050||stateno=1060
trigger7=var(58)=1
trigger7=movecontact
trigger7=stateno=1020
trigger7=animelem=12,>=0
trigger7=animelem=14,<=0
trigger8=var(58)=1
trigger8=movecontact
trigger8=stateno=1030||stateno=1031
trigger9=var(58)=1
trigger9=movecontact
trigger9=stateno=[1050,1062]

;---------------------------------------------------------------------------
;傆偀偄偊傞傫両壓抜
[state -1]
type=changestate
value=1010
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=command="傆偀偄偊傞傫両壓抜"
triggerall=statetype!=a
triggerall=numprojid(1000)=0
triggerall=numprojid(1025)=0
trigger1=ctrl
trigger2=stateno=200
trigger2=movecontact
trigger3=stateno=210
trigger3=movecontact
trigger4=stateno=230
trigger4=movecontact
trigger5=stateno=240
trigger5=movecontact

trigger6=var(58)=1
trigger6=movecontact
trigger6=stateno=1050||stateno=1060
trigger7=var(58)=1
trigger7=movecontact
trigger7=stateno=1020
trigger7=animelem=12,>=0
trigger7=animelem=14,<=0
trigger8=var(58)=1
trigger8=movecontact
trigger8=stateno=1030||stateno=1031


;---------------------------------------------------------------------------
;僱僈丂僕僃僱僔僗
[state -1]
type=changestate
value=1020
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=command="nega"
triggerall=statetype!=a
trigger1=ctrl
trigger2=stateno=200
trigger2=movecontact
trigger3=stateno=210
trigger3=movecontact
trigger4=stateno=230
trigger4=movecontact
trigger5=stateno=240
trigger5=movecontact

trigger6=var(58)=1
trigger6=movecontact
trigger6=stateno=1050||stateno=1060
trigger7=var(58)=1
trigger7=movecontact
trigger7=stateno=1030||stateno=1031

;---------------------------------------------------------------------------
;僠僃乕儞僽儗僀僪丂僩儔儞僗傾僉僔儍儖丂僗儔僀僗
[state -1]
type=changestate
value=1030
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=command="kusari"
triggerall=statetype!=a
trigger1=ctrl
trigger2=stateno=200
trigger2=movecontact
trigger3=stateno=210
trigger3=movecontact
trigger4=stateno=230
trigger4=movecontact
trigger5=stateno=240
trigger5=movecontact

trigger6=var(58)=1
trigger6=movecontact
trigger6=stateno=1020
trigger6=animelem=12,>=0
trigger6=animelem=14,<=0
trigger7=var(58)=1
trigger7=movecontact
trigger7=stateno=[1050,1062]

;---------------------------------------------------------------------------
;僠僃乕儞僽儗僀僪丂僩儔儞僗傾僉僔儍儖丂僗儔僀僗
[state -1]
type=changestate
value=1031
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=command="kusari2"
triggerall=statetype!=a
trigger1=ctrl
trigger2=stateno=200
trigger2=movecontact
trigger3=stateno=210
trigger3=movecontact
trigger4=stateno=230
trigger4=movecontact
trigger5=stateno=240
trigger5=movecontact

trigger6=var(58)=1
trigger6=movecontact
trigger6=stateno=1020
trigger6=animelem=12,>=0
trigger6=animelem=14,<=0
trigger7=var(58)=1
trigger7=movecontact
trigger7=stateno=[1050,1062]

;---------------------------------------------------------------------------
;償僅僀僪僽儗僀僘
[state -1]
type=changestate
value=1040
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=command="償僅僀僪僽儗僀僘"
triggerall=statetype!=a
trigger1=ctrl
trigger2=stateno=200
trigger2=movecontact
trigger3=stateno=210
trigger3=movecontact
trigger4=stateno=230
trigger4=movecontact
trigger5=stateno=240
trigger5=movecontact

trigger6=var(58)=1
trigger6=movecontact
trigger6=stateno=1020
trigger6=animelem=12,>=0
trigger6=animelem=14,<=0
trigger7=var(58)=1
trigger7=movecontact
trigger7=stateno=1030||stateno=1031

;---------------------------------------------------------------------------
;僠僃乕儞僽儗僀僪丂僒僕僞儖僄僢僕丂僗儔僀僗庛
[state -1]
type=changestate
value=1050
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=command="taiku"
triggerall=statetype!=a
trigger1=ctrl
trigger2=stateno=200
trigger2=movecontact
trigger3=stateno=210
trigger3=movecontact
trigger4=stateno=230
trigger4=movecontact
trigger5=stateno=240
trigger5=movecontact

trigger6=var(58)=1
trigger6=movecontact
trigger6=stateno=1020
trigger6=animelem=12,>=0
trigger6=animelem=14,<=0
trigger7=var(58)=1
trigger7=movecontact
trigger7=stateno=1030||stateno=1031

;---------------------------------------------------------------------------
;僠僃乕儞僽儗僀僪丂僒僕僞儖僄僢僕丂僗儔僀僗嫮
[state -1]
type=changestate
value=1060
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=command="taiku2"
triggerall=statetype!=a
trigger1=ctrl
trigger2=stateno=200
trigger2=movecontact
trigger3=stateno=210
trigger3=movecontact
trigger4=stateno=230
trigger4=movecontact
trigger5=stateno=240
trigger5=movecontact

trigger6=var(58)=1
trigger6=movecontact
trigger6=stateno=1020
trigger6=animelem=12,>=0
trigger6=animelem=14,<=0
trigger7=var(58)=1
trigger7=movecontact
trigger7=stateno=1030||stateno=1031

;---------------------------------------------------------------------------
;怺暎偺楖崠兛
[state -1]
type=changestate
value=1100
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=command="怺暎偺楖崠兛"
triggerall=statetype!=a
trigger1=ctrl
trigger2=stateno=200
trigger2=movecontact
trigger3=stateno=210
trigger3=movecontact
trigger4=stateno=230
trigger4=movecontact
trigger5=stateno=240
trigger5=movecontact

trigger6=var(58)=1
trigger6=movecontact
trigger6=stateno=1020
trigger6=animelem=12,>=0
trigger6=animelem=14,<=0
trigger7=var(58)=1
trigger7=movecontact
trigger7=stateno=1030||stateno=1031

;---------------------------------------------------------------------------
;怺暎偺楖崠兝
[state -1]
type=changestate
value=1110
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=command="怺暎偺楖崠兝"
triggerall=statetype!=a
trigger1=ctrl
trigger2=stateno=200
trigger2=movecontact
trigger3=stateno=210
trigger3=movecontact
trigger4=stateno=230
trigger4=movecontact
trigger5=stateno=240
trigger5=movecontact

trigger6=var(58)=1
trigger6=movecontact
trigger6=stateno=1020
trigger6=animelem=12,>=0
trigger6=animelem=14,<=0
trigger7=var(58)=1
trigger7=movecontact
trigger7=stateno=1030||stateno=1031

;---------------------------------------------------------------------------
;怺暎偺楖崠兞
[state -1]
type=changestate
value=1120
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=command="怺暎偺楖崠兞"
triggerall=statetype!=a
trigger1=ctrl
trigger2=stateno=200
trigger2=movecontact
trigger3=stateno=210
trigger3=movecontact
trigger4=stateno=230
trigger4=movecontact
trigger5=stateno=240
trigger5=movecontact

trigger6=var(58)=1
trigger6=movecontact
trigger6=stateno=1020
trigger6=animelem=12,>=0
trigger6=animelem=14,<=0
trigger7=var(58)=1
trigger7=movecontact
trigger7=stateno=1030||stateno=1031

;---------------------------------------------------------------------------
;怺暎偺楖崠儮
[state -1]
type=changestate
value=1130
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=command="怺暎偺楖崠儮"
triggerall=statetype!=a
trigger1=ctrl
trigger2=stateno=200
trigger2=movecontact
trigger3=stateno=210
trigger3=movecontact
trigger4=stateno=230
trigger4=movecontact
trigger5=stateno=240
trigger5=movecontact

trigger6=var(58)=1
trigger6=movecontact
trigger6=stateno=1020
trigger6=animelem=12,>=0
trigger6=animelem=14,<=0
trigger7=var(58)=1
trigger7=movecontact
trigger7=stateno=1030||stateno=1031

;---------------------------------------------------------------------------
;僱僗僣幃懳惗惉兛
[state -1]
type=changestate
value=1150
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=command="僱僗僣幃懳惗惉兛"
triggerall=statetype!=a
trigger1=ctrl
trigger2=stateno=200
trigger2=movecontact
trigger3=stateno=210
trigger3=movecontact
trigger4=stateno=230
trigger4=movecontact
trigger5=stateno=240
trigger5=movecontact

trigger6=var(58)=1
trigger6=movecontact
trigger6=stateno=1020
trigger6=animelem=12,>=0
trigger6=animelem=14,<=0
trigger7=var(58)=1
trigger7=movecontact
trigger7=stateno=1030||stateno=1031

;---------------------------------------------------------------------------
;僱僗僣幃懳惗惉兝
[state -1]
type=changestate
value=1160
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=command="僱僗僣幃懳惗惉兝"
triggerall=statetype!=a
trigger1=ctrl
trigger2=stateno=200
trigger2=movecontact
trigger3=stateno=210
trigger3=movecontact
trigger4=stateno=230
trigger4=movecontact
trigger5=stateno=240
trigger5=movecontact

trigger6=var(58)=1
trigger6=movecontact
trigger6=stateno=1020
trigger6=animelem=12,>=0
trigger6=animelem=14,<=0
trigger7=var(58)=1
trigger7=movecontact
trigger7=stateno=1030||stateno=1031

;---------------------------------------------------------------------------
;楖崠僔僓乕兛
[state -1]
type=changestate
value=1170
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=command="楖崠僔僓乕兛"
triggerall=statetype!=a
trigger1=ctrl
trigger2=stateno=200
trigger2=movecontact
trigger3=stateno=210
trigger3=movecontact
trigger4=stateno=230
trigger4=movecontact
trigger5=stateno=240
trigger5=movecontact

trigger6=var(58)=1
trigger6=movecontact
trigger6=stateno=1020
trigger6=animelem=12,>=0
trigger6=animelem=14,<=0
trigger7=var(58)=1
trigger7=movecontact
trigger7=stateno=1030||stateno=1031

;---------------------------------------------------------------------------
;楖崠僔僓乕兝
[state -1]
type=changestate
value=1180
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=command="楖崠僔僓乕兝"
triggerall=statetype!=a
trigger1=ctrl
trigger2=stateno=200
trigger2=movecontact
trigger3=stateno=210
trigger3=movecontact
trigger4=stateno=230
trigger4=movecontact
trigger5=stateno=240
trigger5=movecontact

trigger6=var(58)=1
trigger6=movecontact
trigger6=stateno=1020
trigger6=animelem=12,>=0
trigger6=animelem=14,<=0
trigger7=var(58)=1
trigger7=movecontact
trigger7=stateno=1030||stateno=1031

;---------------------------------------------------------------------------
;娺嬶偺僫僀償僘兛
[state -1]
type=changestate
value=1190
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=command="娺嬶偺僫僀償僘兛"
triggerall=statetype!=a
trigger1=ctrl
trigger2=stateno=200
trigger2=movecontact
trigger3=stateno=210
trigger3=movecontact
trigger4=stateno=230
trigger4=movecontact
trigger5=stateno=240
trigger5=movecontact

trigger6=var(58)=1
trigger6=movecontact
trigger6=stateno=1020
trigger6=animelem=12,>=0
trigger6=animelem=14,<=0
trigger7=var(58)=1
trigger7=movecontact
trigger7=stateno=1030||stateno=1031

;---------------------------------------------------------------------------
;娺嬶偺僫僀償僘兝
[state -1]
type=changestate
value=1200
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=command="娺嬶偺僫僀償僘兝"
triggerall=statetype!=a
trigger1=ctrl
trigger2=stateno=200
trigger2=movecontact
trigger3=stateno=210
trigger3=movecontact
trigger4=stateno=230
trigger4=movecontact
trigger5=stateno=240
trigger5=movecontact

trigger6=var(58)=1
trigger6=movecontact
trigger6=stateno=1020
trigger6=animelem=12,>=0
trigger6=animelem=14,<=0
trigger7=var(58)=1
trigger7=movecontact
trigger7=stateno=1030||stateno=1031

;---------------------------------------------------------------------------
;抧柺偐傜墛偑僘價儍傽儞両
[state -1]
type=changestate
value=1210
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=command="抧柺偐傜墛偑僘價儍傽儞両"
triggerall=statetype!=a
trigger1=ctrl
trigger2=stateno=200
trigger2=movecontact
trigger3=stateno=210
trigger3=movecontact
trigger4=stateno=230
trigger4=movecontact
trigger5=stateno=240
trigger5=movecontact

trigger6=var(58)=1
trigger6=movecontact
trigger6=stateno=1020
trigger6=animelem=12,>=0
trigger6=animelem=14,<=0
trigger7=var(58)=1
trigger7=movecontact
trigger7=stateno=1030||stateno=1031

;---------------------------------------------------------------------------
;僪僫僪僫兛
[state -1]
type=changestate
value=1220
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=command="僪僫僪僫兛"
triggerall=statetype!=a
triggerall=numhelper(1221)=0
triggerall=numhelper(1222)=0
trigger1=ctrl
trigger2=stateno=200
trigger2=movecontact
trigger3=stateno=210
trigger3=movecontact
trigger4=stateno=230
trigger4=movecontact
trigger5=stateno=240
trigger5=movecontact

trigger6=var(58)=1
trigger6=movecontact
trigger6=stateno=1020
trigger6=animelem=12,>=0
trigger6=animelem=14,<=0
trigger7=var(58)=1
trigger7=movecontact
trigger7=stateno=1030||stateno=1031

;---------------------------------------------------------------------------
;僪僫僪僫兝
[state -1]
type=changestate
value=1230
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=command="僪僫僪僫兝"
triggerall=statetype!=a
triggerall=numhelper(1231)=0
triggerall=numhelper(1232)=0
trigger1=ctrl
trigger2=stateno=200
trigger2=movecontact
trigger3=stateno=210
trigger3=movecontact
trigger4=stateno=230
trigger4=movecontact
trigger5=stateno=240
trigger5=movecontact

trigger6=var(58)=1
trigger6=movecontact
trigger6=stateno=1020
trigger6=animelem=12,>=0
trigger6=animelem=14,<=0
trigger7=var(58)=1
trigger7=movecontact
trigger7=stateno=1030||stateno=1031

;===========================================================================
;---------------------------------------------------------------------------
;runfwd
;僟僢僔儏
[state -1,runfwd]
type=changestate
value=10
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
trigger1=command="FF"
trigger1=statetype=s
trigger1=ctrl

;---------------------------------------------------------------------------
;runback
;屻戅僟僢僔儏
[state -1,runback]
type=changestate
value=105
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
trigger1=command="BB"
trigger1=statetype=s
trigger1=ctrl

;---------------------------------------------------------------------------
;kungfuthrow
;d搳偘
[state -1,kungfuthrow]
type=changestate
value=800
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=command="b"
triggerall=statetype=s
triggerall=ctrl
triggerall=stateno!=100
triggerall=enemynear,stateno!=[120,153]
trigger1=command="holdfwd"
trigger1=p2bodydist x<3
trigger1=(p2statetype=s)||(p2statetype=c)
trigger1=p2movetype!=h
trigger2=command="holdback"
trigger2=p2bodydist x<5
trigger2=(p2statetype=s)||(p2statetype=c)
trigger2=p2movetype!=h

;---------------------------------------------------------------------------
;kungfuthrow
;c搳偘
[state -1,kungfuthrow]
type=changestate
value=810
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=command="y"
triggerall=statetype=s
triggerall=ctrl
triggerall=stateno!=100
triggerall=enemynear,stateno!=[120,153]
trigger1=command="holdfwd"
trigger1=p2bodydist x<3
trigger1=(p2statetype=s)||(p2statetype=c)
trigger1=p2movetype!=h
trigger2=command="holdback"
trigger2=p2bodydist x<5
trigger2=(p2statetype=s)||(p2statetype=c)
trigger2=p2movetype!=h

;===========================================================================
;---------------------------------------------------------------------------
;傆偭旘偽偟
[state -1,standlightpunch]
type=changestate
value=500
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=command="knock"
trigger1=statetype!=a
trigger1=var(59)=0
trigger1=ctrl
trigger2=(stateno=150||stateno=151)&&power>=500

;---------------------------------------------------------------------------
;air傆偭旘偽偟
[state -1,]
type=changestate
value=510
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=command="knock"
trigger1=var(59)=0
trigger1=statetype=a
trigger1=ctrl

;---------------------------------------------------------------------------
;嬞媫夞旔慜
[state -1]
type=changestate
value=900
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
trigger1=var(59)=0
triggerall=command="dodge"
triggerall=command!="holdback"
trigger1=statetype!=a&&(ctrl||stateno=100)
trigger2=(stateno=150||stateno=151)&&power>=500

[state -1]
type=changestate
value=910
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
trigger1=var(59)=0
triggerall=command="dodge"&&command="holdback"
trigger1=statetype!=a&&(ctrl||stateno=100)
trigger2=(stateno=150||stateno=151)&&power>=500

;---------------------------------------------------------------------------
;standlightpunch
;棫偪庛僷儞僠
[state -1,standlightpunch]
type=changestate
value=200
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=command="x"||command="holddown"&&command="x"
trigger1=statetype!=a
trigger1=ctrl

;---------------------------------------------------------------------------
;standstrongpunch
;棫偪嫮僷儞僠
[state -1,standstrongpunch]
type=changestate
value=210
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=command="y"
trigger1=statetype!=a
trigger1=ctrl

;---------------------------------------------------------------------------
;standlightkick
;棫偪庛僉僢僋
[state -1,standlightkick]
type=changestate
value=230
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=command="a"
trigger1=statetype!=a
trigger1=ctrl

;---------------------------------------------------------------------------
;standingstrongkick
;棫偪嫮僉僢僋
[state -1,standingstrongkick]
type=changestate
value=240
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=command="b"
trigger1=statetype!=a
trigger1=ctrl

;---------------------------------------------------------------------------
;taunt
;挧敪
[state -1,taunt]
type=changestate
value=195
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=command="start"
trigger1=statetype!=a
trigger1=ctrl

;---------------------------------------------------------------------------
;jumplightpunch
;嬻拞庛僷儞僠
[state -1,jumplightpunch]
type=changestate
value=600
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=command="x"
trigger1=statetype=a
trigger1=ctrl

;---------------------------------------------------------------------------
;jumpstrongpunch
[state -1,jumpstrongpunch]
type=changestate
value=610
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=command="y"
trigger1=statetype=a
trigger1=ctrl

;---------------------------------------------------------------------------
;jumplightkick
[state -1,jumplightkick]
type=changestate
value=630
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=command="a"
trigger1=statetype=a
trigger1=ctrl

;---------------------------------------------------------------------------
;jumpstrongkick
;嬻拞嫮僉僢僋
[state -1,jumpstrongkick]
type=changestate
value=640
triggerall=ifelse(!ishelper,palno>=1&&palno<=6,ishelper(100000)&&root,palno>=7&&root,palno<=12)
triggerall=command="b"
trigger1=statetype=a
trigger1=ctrl
