;-| AI |--------------------------------------------------------
[Command]
name="AI0"
Command=a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a 
time=0
[Command]
name="AI1"
Command=b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b
time=0
[Command]
name="AI2"
Command=c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c
time=0
[Command]
name="AI3"
Command=x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x
time=0
[Command]
name="AI4"
Command=y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y
time=0
[Command]
name="AI5"
Command=z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z
time=0
[Command]
name="AI6"
Command=s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s
time=0
[Command]
name="AI7"
Command=F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F
time=0
[Command]
name="AI8"
Command=D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D
time=0
[Command]
name="AI9"
Command=B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B
time=0
[Command]
name="AI10"
Command=U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U
time=0
[Command]
name="AI11"
Command=a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a
time=0
[Command]
name="AI12"
Command=c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c
time=0
[Command]
name="AI13"
Command=x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x
time=0
[Command]
name="AI14"
Command=y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y
time=0
[Command]
name="AI15"
Command=z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z
time=0
[Command]
name="AI16"
Command=s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s
time=0
[Command]
name="AI17"
Command=a,B,c,x,y,z,s,B,D,F,U,a,b,c,x,y,z,s,s
time=0
[Command]
name="AI18"
Command=a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a
time=0
[Command]
name="AI19"
Command=b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b
time=0
[Command]
name="AI20"
Command=c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c
time=0
[Command]
name="AI21"
Command=x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x
time=0
[Command]
name="AI22"
Command=y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y
time=0
[Command]
name="AI23"
Command=z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z
time=0
[Command]
name="AI24"
Command=s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s
time=0
[Command]
name="AI25"
Command=F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F
time=0
[Command]
name="AI26"
Command=D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D
time=0
[Command]
name="AI27"
Command=B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B
time=0
[Command]
name="AI28"
Command=U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U
time=0
[Command]
name="AI29"
Command=a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a
time=0
[Command]
name="AI30"
Command=c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c
time=0
[Command]
name="AI31"
Command=x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x
time=0
[Command]
name="AI32"
Command=y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y
time=0
[Command]
name="AI33"
Command=z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z
time=0
[Command]
name="AI34"
Command=s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s
time=0
[Command]
name="AI35"
Command=z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z
time=0
[Command]
name="AI36"
Command=z,z,z,z,z,z,a,a,a,z,z,z,z,z,z,z,z,z,z
time=0
[Command]
name="AI37"
Command=z,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,z,z,z
time=0
[Command]
name="AI38"
Command=z,z,z,z,z,a,a,a,z,z,z,z,z,a,a,a,z,z,z
time=0
[Command]
name="AI39"
Command=z,z,z,z,z,a,a,a,z,z,z,z,z,z,a,a,z,z,z
time=0
[Command]
name="AI40"
Command=z,z,z,z,a,a,a,z,z,z,z,a,z,z,a,a,z,z,z
time=0
[Command]
name="AI41"
Command=z,z,z,a,z,z,z,z,z,z,z,z,z,a,a,z,z,z,z
time=0
[Command]
name="AI42"
Command=z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z
time=0
[Command]
name="AI43"
Command=z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,a,a,z
time=0
[Command]
name="AI44"
Command=z,z,a,a,a,a,z,z,z,z,z,z,z,z,z,a,a,a,z
time=0
[Command]
name="AI45"
Command=z,z,z,z,z,z,a,a,z,z,z,z,z,a,a,a,a,z,z
time=0
[Command]
name="AI46"
Command=z,z,z,z,z,z,z,z,a,a,a,a,a,a,z,z,z,z,z
time=0
[Command]
name="AI47"
Command=z,z,z,a,a,a,a,z,z,z,z,z,z,z,z,z,z,z,z
time=0
[Command]
name="AI48"
Command=z,z,z,z,z,a,a,a,z,z,z,a,a,a,z,z,a,z,a
time=0
[Command]
name="AI49"
Command=z,z,z,z,a,a,a,z,z,z,z,z,a,a,a,z,z,z,z
time=0
[Command]
name="AI50"
Command=z,z,z,a,a,z,z,z,z,z,z,z,z,z,a,a,z,z,z
time=0
;-| 挻昁嶦媄 |--------------------------------------------------------
[Command]
name="atem1"
command=~D, DF, F, D, DF, F, x
time=38
[Command]
name="atem2"
command=~D, DF, F, D, DF, F, y
time=38
[Command]
name="seele1"
command=~D, DF, F, D, DF, F, a
time=38
[Command]
name="seele2"
command=~D, DF, F, D, DF, F, b
time=38
;-| 昁嶦媄 |------------------------------------------------------
[Command]
name="unsou"
command=x+y
time=18
[Command]
name="arth"
command=a+b
time=18
[Command]
name="flame1"
command=~1$B, F, x
time=18
[Command]
name="flame2"
command=~8$B, F, y
time=18
[Command]
name="panzer1"
command=~8$B, F, a
time=18
[Command]
name="panzer2"
command=~8$B, F, b
time=18
[Command]
name="lanze1"
command=~8$D, $U, a
time=18
[Command]
name="lanze2"
command=~8$D, $U, b
time=18
[Command]
name="FF_ab"
command=F, F, a+b
time=15
[Command]
name="FF_a"
command=F, F, a
time=15
[Command]
name="FF_b"
command=F, F, b
time=15
[Command]
name="FF_c"
command=F, F, c
time=15
[Command]
name="BB_c"
command=B, B, c
time=15
[Command]
name="FF"     
command=F, F
time=10
[Command]
name="BB"     
command=B, B
time=10
[Command]
name="DD"     
command=D, D
time=10
[Command]
name="recovery"
command=x+y
time=1
[Command]
name="ab"
command=a+b
time=1
[Command]
name="ac"
command=a+c
time=1
[Command]
name="bc"
command=b+c
time=1
[Command]
name="ax"
command=a+x
time=1
[Command]
name="by"
command=b+y
time=1

[Command]
name="down_b"
command=/$D,b
time=1
[Command]
name="down_x"
command=/$D,x
time=1
[Command]
name="down_y"
command=/$D,y
time=1
[Command]
name="up_z"
command=/$U,z
time=1
[Command]
name="D_xy"
command=$D,x+y
time=10
[Command]
name="F_xy"
command=$F,x+y
time=10
[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
[command]
name="fwd"
command=F
time=1
[command]
name="back"
command=B
time=1
[command]
name="JD"
command=$B
time=1
[command]
name="up"
command=U
time=1
[command]
name="down"
command=D
time=1
[Command]
name="holdfwd"
command=/$F
time=1
[Command]
name="holdback"
command=/$B
time=1
[Command]
name="holdup" 
command=/$U
time=1
[Command]
name="holddown"
command=/$D
time=1
[Command]
name="holdx"
command=/$x
time=1
[Command]
name="holda"
command=/$a
time=1
[Command]
name="holdy"
command=/$y
time=1
[Command]
name="holdb"
command=/$b
time=1
[Command]
name="holdz"
command=/$z
time=1
[Command]
name="holdc"
command=/$c
time=1



;AI
;僐儅儞僪偩偗偳傕恖憖嶌峫偊偰側偄傫偱弌偣側偄媄懡偟
;偩偭偰柺搢側傫偩傕偺
;偳乕偣AI偲CNS偱柍棟栴棟摦偐偡偐傜彑庤偵攈惗偡傞偟乕

[Statedef -1]
;---------------------------------------------------------------------------
;愽嵼僸儉儕僢僔儏傾乕僥儉
[State -1]
type=ChangeState
value=3550
triggerall=!var(9)
;triggerall=command="atem2"
triggerall=command="a"
triggerall=power >= 2000
triggerall=statetype != A
trigger1=ctrl || stateno=57 || (stateno=[100,106]) || stateno=2520
trigger1=stateno != 105
trigger2=(stateno=[200,799]) && !var(10) && stateno != [650,699]
trigger3=(stateno=[150,153]) && var(17)=[1,9]
trigger4=(stateno=[200,225]) && stateno != 220 && movecontact=[1,10]
trigger5=var(13)=1 && stateno=220 && movecontact=[1,10]
trigger6=time <= 14 && stateno=650 && movecontact=[1,10]
trigger7=stateno=410 && movecontact=[1,10]
trigger8=stateno=710 && movehit=[1,10]
trigger9=(stateno=[2100,2200]) && time >= 10
trigger10=(stateno=[200,799]) && AnimTime=0

;---------------------------------------------------------------------------
;愽嵼僸儉儕僢僔儏僛乕儗
[State -1]
type=ChangeState
value=3100
triggerall=!var(9)
;triggerall=command="seele2"
triggerall=command="a"
triggerall=power >= 2000
triggerall=statetype != A
trigger1=ctrl || stateno=57 || (stateno=[100,106]) || stateno=2520
trigger1=stateno != 105
trigger2=(stateno=[200,799]) && !var(10) && stateno != [650,699]
trigger3=(stateno=[150,153]) && var(17)=[1,9]
trigger4=(stateno=[200,225]) && stateno != 220 && movecontact=[1,10]
trigger5=var(13)=1 && stateno=220 && movecontact=[1,10]
trigger6=time <= 14 && stateno=650 && movecontact=[1,10]
trigger7=stateno=410 && movecontact=[1,10]
trigger8=stateno=710 && movehit=[1,10]
trigger9=(stateno=[2100,2200]) && time >= 10
trigger10=(stateno=[200,799]) && AnimTime=0

;---------------------------------------------------------------------------
;僸儉儕僢僔儏傾乕僥儉
[State -1]
type=ChangeState
value=3600
triggerall=!var(9)
;triggerall=command="atem1"
triggerall=command="a"
triggerall=power >= 1000
triggerall=statetype != A
trigger1=ctrl || stateno=57 || (stateno=[100,106]) || stateno=2520
trigger1=stateno != 105
trigger2=(stateno=[200,799]) && !var(10) && stateno != [650,699]
trigger3=(stateno=[150,153]) && var(17)=[1,9]
trigger4=(stateno=[200,225]) && stateno != 220 && movecontact=[1,10]
trigger5=var(13)=1 && stateno=220 && movecontact=[1,10]
trigger6=time <= 14 && stateno=650 && movecontact=[1,10]
trigger7=stateno=410 && movecontact=[1,10]
trigger8=stateno=710 && movehit=[1,10]
trigger9=(stateno=[2100,2200]) && time >= 10
trigger10=(stateno=[200,799]) && AnimTime=0

;---------------------------------------------------------------------------
;僸儉儕僢僔儏僛乕儗
[State -1]
type=ChangeState
value=3600
triggerall=!var(9)
triggerall=command="z"
triggerall=power >= 1000
triggerall=statetype != A
trigger1=ctrl || stateno=57 || (stateno=[100,106]) || stateno=2520
trigger1=stateno != 105
trigger2=(stateno=[200,799]) && !var(10) && stateno != [650,699]
trigger3=(stateno=[150,153]) && var(17)=[1,9]
trigger4=(stateno=[200,225]) && stateno != 220 && movecontact=[1,10]
trigger5=var(13)=1 && stateno=220 && movecontact=[1,10]
trigger6=time <= 14 && stateno=650 && movecontact=[1,10]
trigger7=stateno=410 && movecontact=[1,10]
trigger8=stateno=710 && movehit=[1,10]
trigger9=(stateno=[2100,2200]) && time >= 10
trigger10=(stateno=[200,799]) && AnimTime=0

;---------------------------------------------------------------------------
;僔儏儚儖僣僼儗僀儉
[State -1]
type=ChangeState
value=1000
triggerall=!var(9)
triggerall=command="flame1"
triggerall=command != "holda"
triggerall=command != "holdb"
triggerall=command != "holdy"
triggerall=command != "holdc"
triggerall=command != "holdz"
triggerall=statetype != A
trigger1=ctrl || stateno=57 || (stateno=[100,106])
trigger2=(stateno=[200,799]) && !var(10) && stateno != [650,699]
trigger3=(stateno=[150,153])  && var(17)=[1,9]
trigger4=(stateno=[200,225]) && stateno != 220 && movecontact=[1,10]
trigger5=var(13)=1 && stateno=220 && movecontact=[1,10]
trigger6=stateno=410 && movecontact=[1,10]
trigger7=stateno=710 && movehit=[1,10]
trigger8=(stateno=[2100,2200]) && time >= 10
trigger9=(stateno=[200,799]) && AnimTime=0
trigger10=stateno=100
trigger11=stateno=105

;---------------------------------------------------------------------------
;僔儏儚儖僣儔儞僣僃
[State -1]
type=ChangeState
value=3000
triggerall=!var(9)
triggerall=command="c"
;triggerall=command="arth"
triggerall=statetype != A
trigger1=ctrl || stateno=57 || (stateno=[100,106]) || stateno=2520
trigger2=(stateno=[200,799]) &&stateno != [650,699]
trigger3=(stateno=[150,153]) && var(17)=[1,9]
trigger4=(stateno=[200,225]) && stateno != 220 && movecontact=[1,10]
trigger5=var(13)=1 && stateno=220 && movecontact=[1,10]
trigger6=time <= 14 && stateno=650 && movecontact=[1,10]
trigger7=stateno=410 && movecontact=[1,10]
trigger8=stateno=710 && movehit=[1,10]
trigger9=(stateno=[2100,2200]) && time >= 10
trigger10=(stateno=[200,799])&&movecontact=1
trigger11=stateno=1200

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

;僟僢僔儏
[State -1]
type=ChangeState
value=100
triggerall=!var(9)
triggerall=command="FF"
trigger1=statetype=S
trigger1=!numtarget

;---------------------------------------------------------------------------
;僶僢僋僗僥僢僾
[State -1]
type=ChangeState
value=105
triggerall=!var(9)
triggerall=command="BB"
trigger1=statetype=S
trigger1=!numtarget

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


[State -1]
type=ChangeState
value=196
triggerall=!var(9)
triggerall=win
triggerall=statetype=S
trigger1= command="holdfwd"
trigger1= command="start"

[State -1]
type=ChangeState
value=197
triggerall=!var(9)
triggerall=win
triggerall=statetype=S
trigger1= command="holdback"
trigger1= command="start"

;傾僔僗僩彚姭
[State -1]
type=ChangeState
value=195
triggerall=!var(9)
triggerall=stateno!=195
triggerall=statetype=S
trigger1=command!="holdfwd"
trigger1=command!="holdback"
trigger1=command="start"

;---------------------------------------------------------------------------
;僔儏儚儖僣儌乕儊儞僩
[State -1]
type=ChangeState
value=800
triggerall=!var(9)
triggerall=command="unsou"
triggerall=statetype=S
triggerall=p2statetype != A
trigger1=ctrl
trigger2=stateno=2100 && time >= 10
trigger3=movecontact=1
trigger3=stateno=200
trigger4=movecontact=1
trigger4=stateno=210
trigger5=movecontact=1
trigger5=stateno=220
trigger6=movecontact=1
trigger6=stateno=230

;---------------------------------------------------------------------------
;棫偪A
[State -1]
type=ChangeState
value=200
triggerall=!var(9)
triggerall=command="x"
triggerall=command != "ax"
triggerall=command != "by"
triggerall=statetype=S
trigger1=ctrl || stateno=[100,101]
trigger2=stateno=2100 && time >= 10
trigger3=stateno=200 && time >= 5
trigger4=(stateno=[200,799]) && AnimTime=0
trigger5=movecontact=1&&stateno=210
;---------------------------------------------------------------------------
;棫偪B
[State -1]
type=ChangeState
value=210
triggerall=command="a"
triggerall=command != "ax"
triggerall=command != "by"
triggerall=!var(9)
triggerall=statetype=S
trigger1=ctrl || stateno=[100,101]
trigger2=stateno=2100 && time >= 5
trigger3=(stateno=[200,799]) && AnimTime=0
trigger4=movecontact=1&&stateno=200
;---------------------------------------------------------------------------
;棫偪C
[State -1]
type=ChangeState
value=225
triggerall=command="y"
triggerall=!var(9)
triggerall=statetype=S
trigger1=ctrl || stateno=[100,101]
trigger2=stateno=2100 && time >= 5
trigger3=(stateno=[200,799]) && AnimTime=0
trigger4=movecontact=1&&stateno=200
;---------------------------------------------------------------------------
;棫偪D
[State -1]
type=ChangeState
value=230
triggerall=command="b"
triggerall=!var(9)
trigger1=statetype=S
trigger1=ctrl || stateno=[100,101]
trigger2=stateno=2100 && time >= 10
trigger3=(stateno=[200,799]) && AnimTime=0
trigger4=movecontact=1&&stateno=220
trigger5=movecontact=1&&stateno=225





;============================================================================
;============================================================================
;============================================================================
;-| 偙偙偐傜AI婰弎  |-
;暯惉嘺巵偺AI嫵壢彂偐傜偺僐僺儁懡偟
;傕偆偪傚偄婃挘偭偰嶌傞傋偒偩偲帺暘偱傕巚偆
;============================================================================
;============================================================================
;============================================================================


;劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒
;愗傝懼偊偟
;PrevStateNo = [120,159] PrevStateNo = [5000,5270] EnemyNear,HitDefAttr = SCA,AT;搳偘
;劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒


[State -1,挻斀墳偱抲偔摉恎偲偐嵟埆偠傖偹丠]
Type=SelfState
Value=3600
TriggerAll=var(9)
TriggerAll=StateType!=A
TriggerAll=RoundState=2
TriggerAll=P2BodyDist X=[-200,200]
TriggerAll=Power>=4000
TriggerAll=Ctrl||stateno=100
TriggerAll=EnemyNear,MoveType=A
TriggerAll=Random<=var(9)*200
TriggerAll=EnemyNear,AnimTime<=-1
TriggerAll=Enemynear,Time>=10||!Time&&var(9)>2
Trigger1=Enemynear,Time>=2||var(9)>2
Trigger2=(PrevStateNo=[5000,5270])
Trigger3=(PrevStateNo=[120,159])

[State -1,敀梾偭偰儕僞乕儞戝偒偄傛偹]
Type=SelfState
Value=3550
TriggerAll=var(9)
TriggerAll=StateType!=A
TriggerAll=RoundState=2
TriggerAll=P2BodyDist X=[-5,160]
TriggerAll=P2BodyDist Y>=0
TriggerAll=Power>=2000
TriggerAll=Ctrl||stateno=100
TriggerAll=EnemyNear,MoveType=A
TriggerAll=Random<=var(9)*200
TriggerAll=EnemyNear,AnimTime<=-1
TriggerAll=Enemynear,Time>=30||!Time&&var(9)>2
Trigger1=Enemynear,Time>=20||var(9)>2
Trigger2=(PrevStateNo=[5000,5270])
Trigger3=(PrevStateNo=[120,159])
Trigger4=movecontact
Trigger5=Life<500

[State -1,偲傝偁偊偢僛乕儗傪寕偮傋偒偱偁傞側]
Type=SelfState
Value=3100
TriggerAll=var(9)
TriggerAll=StateType!=A
TriggerAll=RoundState=2
TriggerAll=P2BodyDist X>100
TriggerAll=Power>=1000
TriggerAll=Ctrl
TriggerAll=Random<=var(9)*200
TriggerAll=EnemyNear,AnimTime<=-1
TriggerAll=Enemynear,Time>=30||!Time&&var(9)>2
TriggerAll=numhelper(31003100)<10
Trigger1=Enemynear,Time>=10||var(9)>2
Trigger2=Enemynear,MoveType=I
Trigger3=movecontact

[State -1,傇偭傁]
Type=null;SelfState
Value=3500
TriggerAll=var(9)
TriggerAll=StateType!=A
TriggerAll=RoundState=2
TriggerAll=P2BodyDist X=[-5,200]
TriggerAll=P2BodyDist Y>=-60
TriggerAll=Power>=6000
TriggerAll=Ctrl||stateno=100
TriggerAll=EnemyNear,MoveType=A
TriggerAll=Random<=var(9)*200
TriggerAll=EnemyNear,AnimTime<=-1
TriggerAll=Enemynear,Time>=30||!Time&&var(9)>2
Trigger1=Enemynear,Time>=50||var(9)>2
Trigger2=(PrevStateNo=[5000,5270])
Trigger3=(PrevStateNo=[120,159])

[State -1,嵁暽僲栆嬜]
Type=SelfState
Value=3400
TriggerAll=var(9)
TriggerAll=StateType!=A
TriggerAll=RoundState=2
TriggerAll=P2BodyDist X=[-5,80]
TriggerAll=Power>=4000
TriggerAll=Ctrl||stateno=100
TriggerAll=EnemyNear,MoveType=A
TriggerAll=Random<=var(9)*200
TriggerAll=EnemyNear,AnimTime<=-1
TriggerAll=Enemynear,Time>=30||!Time&&var(9)>2
Trigger1=Enemynear,Time>=50||var(9)>2
Trigger2=(PrevStateNo=[5000,5270])
Trigger3=(PrevStateNo=[120,159])
Trigger4=movecontact

[State -1,旘墠徃壺]
Type=SelfState
Value=1200
TriggerAll=var(9)!=0
TriggerAll=StateType!=A
TriggerAll=RoundState=2
TriggerAll=P2BodyDist X=[-5,200]
TriggerAll=P2BodyDist Y>=-60
TriggerAll=Ctrl||stateno=100
TriggerAll=EnemyNear,MoveType=A
TriggerAll=Random<=var(9)*200
TriggerAll=EnemyNear,AnimTime<=-1
TriggerAll=Enemynear,Time>=30||!Time&&var(9)>2
Trigger1=Enemynear,Time>=50||var(9)>2
Trigger2=(PrevStateNo=[5000,5270])
Trigger3=(PrevStateNo=[120,159])
Trigger4=Random>500&&Random>500

[State -3,僛乕儗僸僢僩妋擣偐傜捛寕僟僢僔儏]
Type=SelfState
Value=100
TriggerAll=var(9)
TriggerAll=StateType!=A
TriggerAll=numhelper(31003100)
TriggerAll=Ctrl||stateno=100
TriggerAll=P2BodyDist X>150
TriggerAll=Random<=var(9)*150
Trigger1=EnemyNear,MoveType=H
Trigger2=EnemyNear,Stateno=[120,155]

[State -3,僛乕儗僸僢僩妋擣僟僢僔儏偐傜偺捛寕2]
Type=SelfState
Value=ifelse(power>2000,3000,ifelse(P2Bodydist Y<-70,1291,1000))
TriggerAll=var(9)
TriggerAll=var(23)
TriggerAll=StateType!=A
TriggerAll=numhelper(31003100)
TriggerAll=Ctrl
TriggerAll=P2BodyDist X>60
TriggerAll=Random<=var(9)*150
Trigger1=EnemyNear,MoveType=H
Trigger2=EnemyNear,Stateno=[120,155]

[State -3,僛乕儗僸僢僩妋擣僟僢僔儏偐傜偺捛寕]
Type=SelfState
Value=ifelse(random>500,ifelse(random>400,1200,1280),ifelse(random>350,1288,1285))
TriggerAll=var(9)
TriggerAll=StateType!=A
TriggerAll=numhelper(31003100)
TriggerAll=Ctrl
TriggerAll=P2BodyDist X<70
TriggerAll=Random<=var(9)*150
Trigger1=EnemyNear,MoveType=H
Trigger2=EnemyNear,Stateno=[120,155]



;劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒
;斀墳
;劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒
;僕儍儞僾偲僶僢僋僗僥僢僾偲柍揋堏摦媄摍側偳傪偮偐偄傑偡
;旘傃摴嬶旔偗傞偲偐偵傕巊偄傑偡

[State -3,柍揋堏摦媄]
Type=SelfState
Value=100
TriggerAll=var(9)
TriggerAll=StateType!= A
TriggerAll=Ctrl||stateno=100
TriggerAll=P2BodyDist X>150||(EnemyNear,AnimTime<=-3&&!EnemyNear,Ctrl)
TriggerAll=EnemyNear,HitDefAttr=SCA
TriggerAll=InGuardDist
TriggerAll=Random<=var(9)*80||var(9)>9
TriggerAll=EnemyNear,Time>=30||(!Time&&var(9)>9)||var(9)>10||EnemyNear,Ctrl
Trigger1=EnemyNear,Time>=50||var(9)>9
Trigger2=(PrevStateNo=[5000,5270])
Trigger3=(PrevStateNo=[120,159])
Trigger4=EnemyNear,Ctrl
Trigger4=Random<600

[State -3,兽矫遌
Type=SelfState
Value=105
TriggerAll=var(9)
TriggerAll=StateType != A
TriggerAll=Ctrl||stateno=105
TriggerAll=(EnemyNear,StateNo=[200,699])||EnemyNear,HitDefAttr=SCA,AT
TriggerAll=P2BodyDist X=[-5,90]
TriggerAll=EnemyNear,vel x<3
TriggerAll=EnemyNear,MoveType=A
TriggerAll=Random<=var(9)*60||var(9)>9
TriggerAll=EnemyNear,Time>=30||!Time&&var(9)>9||var(9)>10
Trigger1=EnemyNear,Time>=50||var(9)>10
Trigger2=(PrevStateNo=[5000,5270])
Trigger3=(PrevStateNo=[120,159])


;劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒
;僈乕僪 
;inguarddist EnemyNear,HitDefAttr = SCA,AA;懪寕
;劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒

[State -3,棫偪僈乕僪]
Type=SelfState
Value=120
TriggerAll=var(9)
TriggerAll=StateNo!=[120,155]
TriggerAll=Ctrl
TriggerAll=Statetype!=A
TriggerAll=inguarddist
Trigger1=Random<=var(9)*160||var(9)>2
Trigger2=P2BodyDist X>70||EnemyNear,Time>50
Trigger2=Random<=var(9)*150

;劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒
;抧忋婲偒峌傔 
;EnemyNear,StateType = L EnemyNear,AnimTime P2bodyDist Y P2bodyDist X
;劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒

[State -3,]
Type=SelfState
value=3100
TriggerAll=var(9)
TriggerAll=StateType!=A
TriggerAll=EnemyNear,StateType=L
TriggerAll=Random<=var(9)*100
TriggerAll=Ctrl
TriggerAll=P2BodyDist X >100
TriggerAll=power>1500
TriggerAll=numhelper(31003100)<10
Trigger1=EnemyNear,StateNo=5120
Trigger1=EnemyNear,AnimTime=-4

[State -3,]
Type=SelfState
value=ifelse(random>500,196,195)
TriggerAll=var(9)
TriggerAll=var(21) 
TriggerAll=StateType!=A
TriggerAll=EnemyNear,StateType=L
TriggerAll=Random<=var(9)*100
TriggerAll=Ctrl
TriggerAll=P2BodyDist X <=180
Trigger1=EnemyNear,StateNo=5120
Trigger1=EnemyNear,AnimTime=-4

[State -3,]
Type=SelfState
value=1000
TriggerAll=var(9)
TriggerAll=!var(21) 
TriggerAll=StateType!=A
TriggerAll=EnemyNear,StateType=L
TriggerAll=Random<=var(9)*100
TriggerAll=Ctrl
TriggerAll=P2BodyDist X <=200
Trigger1=EnemyNear,StateNo=5120
Trigger1=EnemyNear,AnimTime=-4

;劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒
;抧忋栚墴偟 
;Prevstateno EnemyNear,Movetype = H EnemyNear,stateno = [120,159]
;劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒

[State -1,(媄柤)]
Type=ChangeState
value=1288
TriggerAll=(var(9)&&Random<=var(9)*100)
TriggerAll=StateType!=A
TriggerAll=EnemyNear,Alive
TriggerAll=EnemyNear,MoveType=H
TriggerAll=!InGuardDist
TriggerAll=P2BodyDist X=[-1,100]
TriggerAll=P2BodyDist Y>=-50
Trigger1=MoveContAct=1
Trigger1=Random<200

;劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒
;抧忋宷偓 
;Movecontact MoveHit MoveGuarded AnimElem = ,>0
;劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒

[State -1,(媄柤)]
Type=SelfState
value=800
TriggerAll=(var(9)&&Random<=var(9)*100)
TriggerAll=StateType!=A
TriggerAll=EnemyNear,Alive
TriggerAll=EnemyNear,MoveType=H
TriggerAll=!InGuardDist
TriggerAll=P2BodyDist X=[-1,80]
TriggerAll=P2BodyDist Y>=-60
TriggerAll=MoveContAct=1
Trigger1=StateNo=1280

[State -1,(媄柤)]
Type=SelfState
value=1200
TriggerAll=(var(9)&&Random<=var(9)*100)
TriggerAll=StateType!=A
TriggerAll=EnemyNear,Alive
TriggerAll=EnemyNear,MoveType=H
TriggerAll=!InGuardDist
TriggerAll=P2BodyDist X=[-1,80]
TriggerAll=P2BodyDist Y>=-120
TriggerAll=MoveContAct=1
Trigger1=StateNo=1000
Trigger2=StateNo=1284

[State -1,(媄柤)]
Type=SelfState
value=1000
TriggerAll=(var(9)&&Random<=var(9)*100)
TriggerAll=StateType != A
TriggerAll=EnemyNear,Alive
TriggerAll=EnemyNear,MoveType=H
TriggerAll=!InGuardDist
TriggerAll=P2BodyDist X=[-1,80]
TriggerAll=P2BodyDist Y>=-150
TriggerAll=MoveContAct=1
Trigger1=StateNo=1200

[State -1,(媄柤)]
Type=SelfState
value=210
TriggerAll=(var(9)&&Random<=var(9)*100)
TriggerAll=StateType != A
TriggerAll=EnemyNear,Alive
TriggerAll=EnemyNear,MoveType=H
TriggerAll=!InGuardDist
TriggerAll=P2BodyDist X=[-1,80]
TriggerAll=P2BodyDist Y>=-50
TriggerAll=MoveContAct=1
Trigger1=StateNo=200
Trigger1=random<500

[State -1,(媄柤)]
Type=SelfState
value=225
TriggerAll=(var(9)&&Random<=var(9)*100)
TriggerAll=StateType != A
TriggerAll=EnemyNear,Alive
TriggerAll=EnemyNear,MoveType=H
TriggerAll=!InGuardDist
TriggerAll=P2BodyDist X=[-1,80]
TriggerAll=P2BodyDist Y>=-50
TriggerAll=MoveContAct=1
Trigger1=StateNo=200
Trigger1=Random<500

[State -1,(媄柤)]
Type = ChangeState
value= 1284
TriggerAll=(var(9)&&Random<=var(9)*100)
TriggerAll=StateType != A
TriggerAll=EnemyNear,Alive
TriggerAll=EnemyNear,MoveType=H
TriggerAll=!InGuardDist
TriggerAll=P2BodyDist X=[-1,80]
TriggerAll=P2BodyDist Y>=-50
TriggerAll=MoveContAct=1
Trigger1 = StateNo=200
Trigger2 = StateNo=210
Trigger3 = StateNo=225
Trigger4 = StateNo=230

[State -1,(媄柤)]
Type  = ChangeState
value= 1280
TriggerAll=(var(9)&&Random<=var(9)*100)
TriggerAll=StateType != A
TriggerAll=EnemyNear,Alive
TriggerAll=EnemyNear,MoveType=H
TriggerAll=!InGuardDist
TriggerAll=P2BodyDist X=[0,20]
TriggerAll=P2BodyDist Y>=-30
TriggerAll=MoveContAct=1
Trigger1 = StateNo=200

;劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒
;寗晅偒
;EnemyNear,MoveType=I !EnemyNearCtrl EnemyNear,StateType=A
;劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒

[State -3,]
Type=SelfState
value=195
TriggerAll=var(9)
TriggerAll=var(21)
TriggerAll=StateType!=A
TriggerAll=EnemyNear,StateType=L
TriggerAll=Random<=var(9)*100
TriggerAll=Ctrl
TriggerAll=P2BodyDist X <=300
Trigger1=EnemyNear,StateNo=5120
Trigger1=EnemyNear,AnimTime=-6

[State -3,]
Type=SelfState
value=210
TriggerAll=var(9)
TriggerAll=!var(21)
TriggerAll=StateType!=A
TriggerAll=EnemyNear,StateType = L
TriggerAll=Random<=var(9)*100
TriggerAll=Ctrl
TriggerAll=P2BodyDist X <=300
Trigger1=EnemyNear,StateNo=5120
Trigger1=EnemyNear,AnimTime=-6

;劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒
;傇偭傁
;EnemyNear,Ctrl EnemyNear,MoveType=A P2BodyDist X
;劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒

[State -3,傇偭傁]
Type=SelfState
value=3100
TriggerAll=var(9)
TriggerAll=RoundState=2
TriggerAll=StateType!=A
TriggerAll=EnemyNear,StateType!=L
TriggerAll=EnemyNear,Ctrl
TriggerAll=P2BodyDist X > 60
TriggerAll=Ctrl
TriggerAll=Power>1000
TriggerAll=numhelper(31003100)<10
Trigger1=Random<=var(9)*120

[State -3,]
Type=SelfState
value=1291
TriggerAll=var(9)
TriggerAll=RoundState=2
TriggerAll=StateType!=A
TriggerAll=EnemyNear,StateType!=L
TriggerAll=!InGuardDist
TriggerAll=P2BodyDist X=[-5,140]
TriggerAll=P2BodyDist Y>=-120
TriggerAll=EnemyNear,Movetype=H
TriggerAll=EnemyNear,StateType=A
TriggerAll=Ctrl
Trigger1=Random<=var(9)*73

[State -3,傇偭傁]
Type = SelfState
value = 3550
TriggerAll=var(9)
TriggerAll=RoundState=2
TriggerAll=StateType!=A
TriggerAll=EnemyNear,StateType!=L
TriggerAll=EnemyNear,MoveType=A||EnemyNear,Ctrl
TriggerAll=P2BodyDist X > 5
TriggerAll=Ctrl
TriggerAll=Power>2000
Trigger1=Random<=var(9)*60

[State -3,傇偭傁]
Type = SelfState
value = 1000
TriggerAll=var(9)
TriggerAll=RoundState = 2
TriggerAll=StateType = A
TriggerAll=EnemyNear,StateType != L
TriggerAll=EnemyNear,MoveType != H
TriggerAll=EnemyNear,MoveType=A||EnemyNear,Ctrl
TriggerAll=P2BodyDist X > 80
TriggerAll=Ctrl
Trigger1 = var(9)<6
Trigger1 = Random<=var(9)*40
Trigger2 = var(9)=[5,9]
Trigger2 = Random<=(10-var(9))*20

[State -3,傇偭傁]
Type=SelfState
value=ifelse(random>500,ifelse(Enemynear,Movetype=A,1280,800),1284)
TriggerAll=var(9)
TriggerAll=RoundState = 2
TriggerAll=StateType != A
TriggerAll=EnemyNear,StateType != L
TriggerAll=EnemyNear,MoveType != H
TriggerAll=EnemyNear,MoveType=A||EnemyNear,Ctrl
TriggerAll=P2BodyDist X < 80
TriggerAll=Ctrl
Trigger1 = var(9)<6
Trigger1 = Random<=var(9)*40
Trigger2 = var(9)=[5,9]
Trigger2 = Random<=(10-var(9))*20

[State -3,傇偭傁]
Type=SelfState
value=ifelse(random>500,ifelse(Enemynear,Movetype=A,1284,810),1200)
TriggerAll=var(9)
TriggerAll=RoundState = 2
TriggerAll=StateType != A
TriggerAll=EnemyNear,StateType != L
TriggerAll=EnemyNear,MoveType != H
TriggerAll=EnemyNear,MoveType=A||EnemyNear,Ctrl
TriggerAll=P2BodyDist X=[-5,80]
TriggerAll=Ctrl
Trigger1=var(9)<3
Trigger1=Random<=var(9)*40
Trigger2=var(9)=[3,5]
Trigger2=Random<=(10-var(9))*20

;劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒
;抧忋堏摦 
;Ctrl Random P2bodyDist X
;劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒
[State -3,僟僢僔儏]
Type     = ChangeState
Value    = 100
Triggerall = var(9)
Triggerall = StateType != A
Triggerall = EnemyNear,StateType != L
Triggerall = EnemyNear,MoveType = I
Triggerall = !inguarddist
Triggerall = Ctrl 
trigger1 = Random <= var(9)*20
Trigger1 = P2BodyDist X >= 110

[State -3,兽矫遌
Type     = ChangeState
Value    = 105
Triggerall = var(9)
Triggerall = StateType != A
Triggerall = EnemyNear,StateType != L
Triggerall = EnemyNear,MoveType != H
Triggerall = EnemyNear,Stateno != [120,159]
Triggerall = Ctrl 
Triggerall = backedgebodydist > 62
Trigger1 = P2BodyDist X <= 140
trigger1 = Random <= var(9)*20

[State -3,曕偔]
Type     = ChangeState
Value    = 20
Triggerall = var(9)
Triggerall = StateType != A
Triggerall = EnemyNear,StateType != L
Triggerall = EnemyNear,MoveType = I
Triggerall = !inguarddist
Triggerall = Ctrl 
trigger1 = Random <= var(9)*20
Trigger1 = P2BodyDist X <60


;劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒
;抧忋棫偪夞傝媄怳傝 
;Ctrl Random EnemyNear,Movetype = I丂inguarddist  P2bodyDist Y P2bodyDist X
;劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒

[State -3,搳偘]
Type = ChangeState
value = ifelse(Enemynear,Movetype=A,ifelse(P2bodydist X>100,100,800),ifelse(Enemynear,Movetype=I,800,1280))
TriggerAll=var(9)
triggerAll=var(54)=0
TriggerAll=RoundState = 2
TriggerAll=StateType != A
TriggerAll=EnemyNear,StateType != L
TriggerAll=EnemyNear,MoveType != H
TriggerAll=P2BodyDist X=[-5,80]
TriggerAll=P2BodyDist Y>=-80
TriggerAll=Ctrl
Trigger1 = Random <= var(9)*31
Trigger2 = (EnemyNear,StateNo=[120,159])

[State -3,搳偘]
Type = ChangeState
value = ifelse(Enemynear,Movetype=A,ifelse(P2bodydist X>100,100,105),ifelse(Enemynear,Movetype=I,800,1280))
TriggerAll=var(9)
triggerAll=var(54)=1
TriggerAll=RoundState = 2
TriggerAll=StateType != A
TriggerAll=EnemyNear,StateType != L
TriggerAll=EnemyNear,MoveType != H
TriggerAll=P2BodyDist X=[-5,80]
TriggerAll=P2BodyDist Y>=-80
TriggerAll=Ctrl
Trigger1 = Random <= var(9)*31
Trigger2 = (EnemyNear,StateNo=[120,159])


;偱偒傞偩偗堦斣忋傊(棫偪夞傝媄怳傝撪偺)
;=======================婰弎椺懳嬻============================

[State -3,]
Type=SelfState
value=3000
TriggerAll=var(9)
TriggerAll=RoundState=2
TriggerAll=StateType!=A
TriggerAll=EnemyNear,StateType!=L
TriggerAll=!InGuardDist
TriggerAll=P2BodyDist X=[-5,200]
TriggerAll=P2BodyDist Y>=-60
TriggerAll=power>2500
TriggerAll=EnemyNear,StateType=A
TriggerAll=Ctrl
Trigger1=Random<=var(9)*73

[State -3,]
Type=SelfState
value=1291
TriggerAll=var(9)
TriggerAll=RoundState=2
TriggerAll=StateType!=A
TriggerAll=EnemyNear,StateType!=L
TriggerAll=!InGuardDist
TriggerAll=P2BodyDist X=[-5,200]
TriggerAll=P2BodyDist Y>=-60
TriggerAll=EnemyNear,StateType=A
TriggerAll=Ctrl
Trigger1=Random<=var(9)*73

[State -3,]
Type=SelfState
value=1000
TriggerAll=var(9)
TriggerAll=RoundState = 2
TriggerAll=StateType != A
TriggerAll=EnemyNear,StateType != L
TriggerAll=EnemyNear,MoveType != H
TriggerAll=!InGuardDist
TriggerAll=P2BodyDist X=[-5,300]
TriggerAll=P2BodyDist Y>=-100
TriggerAll=EnemyNear,StateType=A
TriggerAll=Ctrl
Trigger1 = Random <= var(9)*73

;=======================婰弎椺壓抜============================
[State -3,]
Type=SelfState
value=196
TriggerAll=var(9)
TriggerAll=var(21)
TriggerAll=RoundState = 2
TriggerAll=StateType != A
TriggerAll=EnemyNear,StateType != L
TriggerAll=EnemyNear,MoveType != H
TriggerAll=!InGuardDist
TriggerAll=P2BodyDist X=[0,200]
TriggerAll=EnemyNear,StateType=S
TriggerAll=Ctrl
Trigger1=Random<=var(9)*61

[State -3,]
Type=SelfState
value=1288
TriggerAll=var(9)
TriggerAll=!var(21)
TriggerAll=RoundState=2
TriggerAll=StateType!=A
TriggerAll=EnemyNear,StateType != L
TriggerAll=EnemyNear,MoveType != H
TriggerAll=!InGuardDist
TriggerAll=P2BodyDist X=[0,200]
TriggerAll=EnemyNear,StateType=S
TriggerAll=Ctrl
Trigger1=Random<=var(9)*61

;=======================婰弎椺尅惂============================
[State -3,尅惂]
Type = ChangeState
value = 1000
TriggerAll=var(9)
TriggerAll=RoundState = 2
TriggerAll=StateType != A
TriggerAll=EnemyNear,StateType != L
TriggerAll=EnemyNear,MoveType != H
TriggerAll=!InGuardDist
TriggerAll=P2BodyDist X = [0,300]
TriggerAll=P2BodyDist Y >= -60
TriggerAll=(EnemyNear,StateNo != [120,159])||EnemyNear,StateType=A
TriggerAll=Ctrl
Trigger1 = Random <= var(9)*60

;僈乕僪
[State -1]
type = ChangeState
value = 120
triggerall = var(9) > 2
triggerall = ctrl || stateno = 101 || stateno = 19 || stateno = 20 || stateno = 21 || stateno = 1101
triggerall = stateno != [121,159]
triggerall = statetype != A
triggerall =!enemynear,hitdefattr = ,NT,ST,HT
trigger1 = inguarddist && p2bodydist X > 60
trigger2 = inguarddist && p2bodydist X <= 60 && Random <= 130*var(9)

[State -1]
type = ChangeState
value = 130
triggerall = var(9) > 3
triggerall = ctrl || stateno = 101 || stateno = 19 || stateno = 20 || stateno = 21 || stateno = 13 || stateno = [120,131]
triggerall = !enemynear,hitdefattr = ,NT,ST,HT && statetype != A
trigger1 = !inguarddist && p2movetype = A && Random <= 180*var(9) && var(9) > 2
trigger1 = p2dist X < 0
trigger2 = !inguarddist && p2movetype = A && var(9) > 2
trigger2 = p2dist X < 60















