;-| 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,b
time = 0
[Command]
name = "AI12"
command = c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,b
time = 0
[Command]
name = "AI13"
command = x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,b
time = 0
[Command]
name = "AI14"
command = y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,b
time = 0
[Command]
name = "AI15"
command = z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,b
time = 0
[Command]
name = "AI16"
command = s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,b
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,c
time = 0
[Command]
name = "AI19"
command = b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,c
time = 0
[Command]
name = "AI20"
command = c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,a
time = 0
[Command]
name = "AI21"
command = x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,c
time = 0
[Command]
name = "AI22"
command = y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,c
time = 0
[Command]
name = "AI23"
command = z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,c
time = 0
[Command]
name = "AI24"
command = s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,c
time = 0
[Command]
name = "AI25"
command = F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,c
time = 0
[Command]
name = "AI26"
command = D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,c
time = 0
[Command]
name = "AI27"
command = B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,c
time = 0
[Command]
name = "AI28"
command = U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,c
time = 0
[Command]
name = "AI29"
command = a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,x
time = 0
[Command]
name = "AI30"
command = c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,x
time = 0
[Command]
name = "AI31"
command = x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,a
time = 0
[Command]
name = "AI32"
command = y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,x
time = 0
[Command]
name = "AI33"
command = z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,x
time = 0
[Command]
name = "AI34"
command = s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,x
time = 0
[Command]
name = "AI35"
command = z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,x
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,a
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 = "AI51"
command = a,z,z,a,z,z,z,z,z,z,z,z,z,a,a,z,z,z,z
time = 0
[Command]
name = "AI52"
command = a,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z
time = 0
[Command]
name = "AI53"
command = a,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,a,a,z
time = 0
[Command]
name = "AI54"
command = a,z,a,a,a,a,z,z,z,z,z,z,z,z,z,a,a,a,z
time = 0
[Command]
name = "AI55"
command = a,z,z,z,z,z,a,a,z,z,z,z,z,a,a,a,a,z,z
time = 0
[Command]
name = "AI56"
command = a,z,z,z,z,z,z,z,a,a,a,a,a,a,z,z,z,z,z
time = 0
[Command]
name = "AI57"
command = a,z,z,a,a,a,a,z,z,z,z,z,z,z,z,z,z,z,z
time = 0
[Command]
name = "AI58"
command = a,z,z,z,z,a,a,a,z,z,z,a,a,a,z,z,a,z,a
time = 0
[Command]
name = "AI59"
command = a,z,z,z,a,a,a,z,z,z,z,z,a,a,a,z,z,z,z
time = 0
[Command]
name = "AI60"
command = a,z,z,a,a,z,z,z,z,z,z,z,z,z,a,a,z,z,z
time = 0

;----------------------------------------------------------
[Statedef 10000]
ctrl=0

[State 10000]
type=selfstate
trigger1=!ishelper
value=0

[State 10000]
type = Varset
trigger1=command="a"&&root,command="a"
trigger2=command="b"&&root,command="b"
trigger3=command="c"&&root,command="c"
trigger4=command="x"&&root,command="x"
trigger5=command="y"&&root,command="y"
trigger6=command="z"&&root,command="z"
trigger7=command="fwd"&&root,command="fwd"
trigger8=command="back"&&root,command="back"
trigger9=command="up"&&root,command="up"
trigger10=command="down"&&root,command="down"
trigger11=command="start"&&root,command="start"
var(59)=-1

[State 10000]
type = DestroySelf
triggerall=isHelper
trigger1=root,var(59)||var(59)=-1
trigger2=command="a"&&root,command="a"
trigger3=command="b"&&root,command="b"
trigger4=command="c"&&root,command="c"
trigger5=command="x"&&root,command="x"
trigger6=command="y"&&root,command="y"
trigger7=command="z"&&root,command="z"
trigger8=command="fwd"&&root,command="fwd"
trigger9=command="back"&&root,command="back"
trigger10=command="up"&&root,command="up"
trigger11=command="down"&&root,command="down"
trigger12=command="start"&&root,command="start"

[State 10000]
type=Varset
triggerall=var(59)!=-1
trigger1=root,command="a"
trigger2=root,command="b"
trigger3=root,command="c"
trigger4=root,command="x"
trigger5=root,command="y"
trigger6=root,command="z"
trigger7=root,command="fwd"
trigger8=root,command="back"
trigger9=root,command="up"
trigger10=root,command="down"
trigger11=root,command="start"
trigger12=1
var(59)=1

;----------------------------------------------------------
[command]
name="a"
command=a
time=1
[command]
name="b"
command=b
time=1
[command]
name="fwd"
command=F
time=1
[command]
name="back"
command=B
time=1
[command]
name="up"
command=U
time=1
[command]
name="down"
command=D
time=1
[command]
name="start"
command=s
time=1

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

[Command]
name = "sp07x"
command = ~D, DF, F, D, DF, F, x
time = 30

[Command]
name = "sp07y"
command = ~D, DF, F, D, DF, F, y
time = 30

[Command]
name = "sp07z"
command = ~D, DF, F, D, DF, F, z
time = 30

[Command]
name = "sp07c"
command = ~D, DF, F, D, DF, F, c
time = 30

[Command]
name = "sp10x"
command = ~D, DB, B, D, DB, B, x
time = 30

[Command]
name = "sp10y"
command = ~D, DB, B, D, DB, B, y
time = 30

[Command]
name = "sp10z"
command = ~D, DB, B, D, DB, B, z
time = 30

[Command]
name = "sp10c"
command = ~D, DB, B, D, DB, B, c
time = 30

[Command]
name = "sp09x"
command = ~B, F, B, F, x
time = 30

[Command]
name = "sp09y"
command = ~B, F, B, F, y
time = 30

[Command]
name = "sp09z"
command = ~B, F, B, F, z
time = 30

[Command]
name = "sp09c"
command = ~B, F, B, F, c
time = 30

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

[Command]
name = "sp01x"
command = ~D, DF, F, x

[Command]
name = "sp01y"
command = ~D, DF, F, y

[Command]
name = "sp01z"
command = ~D, DF, F, z

[Command]
name = "sp02f"
command = ~D, DF, F, c

[Command]
name = "sp08x"
command = ~B, D, DB, x
time = 30

[Command]
name = "sp08y"
command = ~B, D, DB, y
time = 30

[Command]
name = "sp08z"
command = ~B, D, DB, z
time = 30

[Command]
name = "sp03x"
command = ~F, D, DF, x

[Command]
name = "sp03y"
command = ~F, D, DF, y

[Command]
name = "sp03z"
command = ~F, D, DF, z

[Command]
name = "sp05x"
command = ~D, DB, B, x

[Command]
name = "sp05y"
command = ~D, DB, B, y

[Command]
name = "sp05z"
command = ~D, DB, B, z

[Command]
name = "sp02b"
command = ~D, DB, B, c

[Command]
name = "sp06x"
command = ~B, F, x

[Command]
name = "sp06y"
command = ~B, F, y

[Command]
name = "sp06z"
command = ~B, F, z

[Command]
name = "counter1"
command = x+y

[Command]
name = "counter1a"
command = x+y

[Command]
name = "counter2"
command = y+z

[Command]
name = "counter3"
command = x+z

[Command]
name = "counter4"
command = x+c

[Command]
name = "counter5"
command = y+c

[Command]
name = "counter6"
command = z+c

[Command]
name = "3kick"
command = /$DF, c

[Command]
name = "2kick"
command = /$D, c

[Command]
name = "6kick"
command = /$F, c
time = 1

[Command]
name = "2900"
command = /F, x+y

[Command]
name = "bf0"
command = ~B, F, c

;-| 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


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

;-| Dir + Button |---------------------------------------------------------

[Command]
name = "fwd_x"
command = /F,x
time = 1

[Command]
name = "fwd_y"
command = /F,y
time = 1

[Command]
name = "fwd_z"
command = /F,z
time = 1

[Command]
name = "fwd_c"
command = /F,c
time = 1


;-| Single Button |---------------------------------------------------------

[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 = "s"
command = s
time = 1

;-| Hold Button |-----------------------------------------------------------

;-| 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

;---------------------------------------------------------------------------
; 2. State entry
; --------------
; This is where you define what commands bring you to what states.
;
; Each state entry block looks like:
;   [State -1]                  ;Don't change this
;   type = ChangeState          ;Don't change this
;   value = new_state_number
;   trigger1 = command = command_name
;   . . .  (any additional triggers)
;
; - new_state_number is the number of the state to change to
; - command_name is the name of the command (from the section above)
; - Useful triggers to know:
;   - statetype
;       S, C or A : current state-type of player (stand, crouch, air)
;   - ctrl
;       0 or 1 : 1 if player has control. Unless "interrupting" another
;                move, you'll want ctrl = 1
;   - stateno
;       number of state player is in - useful for "move interrupts"
;   - movecontact
;       0 or 1 : 1 if player's last attack touched the opponent
;                useful for "move interrupts"
;
; For reference on triggers, see CNS documentation.
;
; Just for your information (skip if you're not interested):
; This part is an extension of the CNS. "State -1" is a special state
; that is executed once every game-tick, regardless of what other state
; you are in.


; Don't remove the following line. It's required by the CMD standard.
[Statedef -1]

;===========================================================================
;---------------------------------------------------------------------------


;counter1a
[State -1]
type = ChangeState
value = 2200
triggerall = !var(59)
triggerall = command = "counter1a"
triggerall = alive
triggerall = statetype != A
trigger1 = stateno = 5000
trigger2 = stateno = 5001
trigger3 = stateno = 5010
trigger4 = stateno = 5011

;counter2
[State -1]
type = ChangeState
value = 2200
triggerall = !var(59)
triggerall = command = "counter2"
triggerall = alive
triggerall = statetype != A
trigger1 = stateno = 5000
trigger2 = stateno = 5001
trigger3 = stateno = 5010
trigger4 = stateno = 5011

;counter3
[State -1]
type = ChangeState
value = 2200
triggerall = !var(59)
triggerall = command = "counter3"
triggerall = alive
triggerall = statetype != A
trigger1 = stateno = 5000
trigger2 = stateno = 5001
trigger3 = stateno = 5010
trigger4 = stateno = 5011

;counter4
[State -1]
type = ChangeState
value = 2200
triggerall = !var(59)
triggerall = command = "counter4"
triggerall = alive
triggerall = statetype != A
trigger1 = stateno = 5000
trigger2 = stateno = 5001
trigger3 = stateno = 5010
trigger4 = stateno = 5011

;counter5
[State -1]
type = ChangeState
value = 2200
triggerall = !var(59)
triggerall = command = "counter5"
triggerall = alive
triggerall = statetype != A
trigger1 = stateno = 5000
trigger2 = stateno = 5001
trigger3 = stateno = 5010
trigger4 = stateno = 5011

;counter6
[State -1]
type = ChangeState
value = 2200
triggerall = !var(59)
triggerall = command = "counter6"
triggerall = alive
triggerall = statetype != A
trigger1 = stateno = 5000
trigger2 = stateno = 5001
trigger3 = stateno = 5010
trigger4 = stateno = 5011


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

;air-counter1a
[State -1]
type = ChangeState
value = 2300
triggerall = !var(59)
triggerall = command = "counter1a"
triggerall = alive
trigger1 = statetype = A
trigger1 = stateno = 5020
trigger2 = stateno = 5030
trigger3 = stateno = 5035
trigger4 = stateno = 5070

;air-counter2
[State -1]
type = ChangeState
value = 2300
triggerall = !var(59)
triggerall = command = "counter2"
triggerall = alive
trigger1 = statetype = A
trigger1 = stateno = 5020
trigger2 = stateno = 5030
trigger3 = stateno = 5035
trigger4 = stateno = 5070

;air-counter3
[State -1]
type = ChangeState
value = 2300
triggerall = !var(59)
triggerall = command = "counter3"
triggerall = alive
trigger1 = statetype = A
trigger1 = stateno = 5020
trigger2 = stateno = 5030
trigger3 = stateno = 5035
trigger4 = stateno = 5070

;air-counter4
[State -1]
type = ChangeState
value = 2300
triggerall = !var(59)
triggerall = command = "counter4"
triggerall = alive
trigger1 = statetype = A
trigger1 = stateno = 5020
trigger2 = stateno = 5030
trigger3 = stateno = 5035
trigger4 = stateno = 5070

;air-counter5
[State -1]
type = ChangeState
value = 2300
triggerall = !var(59)
triggerall = command = "counter5"
triggerall = alive
trigger1 = statetype = A
trigger1 = stateno = 5020
trigger2 = stateno = 5030
trigger3 = stateno = 5035
trigger4 = stateno = 5070

;air-counter6
[State -1]
type = ChangeState
value = 2300
triggerall = !var(59)
triggerall = command = "counter6"
triggerall = alive
trigger1 = statetype = A
trigger1 = stateno = 5020
trigger2 = stateno = 5030
trigger3 = stateno = 5035
trigger4 = stateno = 5070

;---------------------------------------------
;sp07偨噡墳皚x
[State -1]
type = ChangeState
value = 1700
triggerall = !var(59)
triggerall = command = "sp07x"
triggerall = power >= 1000
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 220
trigger2 = movecontact
trigger3 = stateno = 230
trigger3 = movecontact
trigger4 = stateno = 240
trigger4 = movecontact
trigger5 = stateno = 320
trigger5 = movecontact
trigger6 = stateno = 330
trigger6 = movecontact
trigger7 = stateno = 340
trigger7 = movecontact
trigger8 = stateno = 420
trigger8 = movecontact
trigger9 = stateno = 430
trigger9 = movecontact
trigger10 = stateno = 440
trigger10 = movecontact
trigger11 = stateno = 520
trigger11 = movecontact
trigger12 = stateno = 530
trigger12 = movecontact
trigger13 = stateno = 540
trigger13 = movecontact
trigger14 = stateno = 550
trigger14 = movecontact
trigger15 = stateno = 560
trigger15 = movecontact
trigger16 = stateno = 250
trigger16 = movecontact
trigger17 = stateno = 350
trigger17 = movecontact
trigger18 = stateno = 450
trigger18 = movecontact

;sp07偨噡墳皚y
[State -1]
type = ChangeState
value = 1700
triggerall = !var(59)
triggerall = command = "sp07y"
triggerall = power >= 1000
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 220
trigger2 = movecontact
trigger3 = stateno = 230
trigger3 = movecontact
trigger4 = stateno = 240
trigger4 = movecontact
trigger5 = stateno = 320
trigger5 = movecontact
trigger6 = stateno = 330
trigger6 = movecontact
trigger7 = stateno = 340
trigger7 = movecontact
trigger8 = stateno = 420
trigger8 = movecontact
trigger9 = stateno = 430
trigger9 = movecontact
trigger10 = stateno = 440
trigger10 = movecontact
trigger11 = stateno = 520
trigger11 = movecontact
trigger12 = stateno = 530
trigger12 = movecontact
trigger13 = stateno = 540
trigger13 = movecontact
trigger14 = stateno = 550
trigger14 = movecontact
trigger15 = stateno = 560
trigger15 = movecontact
trigger16 = stateno = 250
trigger16 = movecontact
trigger17 = stateno = 350
trigger17 = movecontact
trigger18 = stateno = 450
trigger18 = movecontact

;sp07偨噡墳皚z
[State -1]
type = ChangeState
value = 1700
triggerall = !var(59)
triggerall = command = "sp07z"
triggerall = power >= 1000
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 220
trigger2 = movecontact
trigger3 = stateno = 230
trigger3 = movecontact
trigger4 = stateno = 240
trigger4 = movecontact
trigger5 = stateno = 320
trigger5 = movecontact
trigger6 = stateno = 330
trigger6 = movecontact
trigger7 = stateno = 340
trigger7 = movecontact
trigger8 = stateno = 420
trigger8 = movecontact
trigger9 = stateno = 430
trigger9 = movecontact
trigger10 = stateno = 440
trigger10 = movecontact
trigger11 = stateno = 520
trigger11 = movecontact
trigger12 = stateno = 530
trigger12 = movecontact
trigger13 = stateno = 540
trigger13 = movecontact
trigger14 = stateno = 550
trigger14 = movecontact
trigger15 = stateno = 560
trigger15 = movecontact
trigger16 = stateno = 250
trigger16 = movecontact
trigger17 = stateno = 350
trigger17 = movecontact
trigger18 = stateno = 450
trigger18 = movecontact

;sp07偨噡墳皚c
[State -1]
type = ChangeState
value = 1700
triggerall = !var(59)
triggerall = command = "sp07c"
triggerall = power >= 1000
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 220
trigger2 = movecontact
trigger3 = stateno = 230
trigger3 = movecontact
trigger4 = stateno = 240
trigger4 = movecontact
trigger5 = stateno = 320
trigger5 = movecontact
trigger6 = stateno = 330
trigger6 = movecontact
trigger7 = stateno = 340
trigger7 = movecontact
trigger8 = stateno = 420
trigger8 = movecontact
trigger9 = stateno = 430
trigger9 = movecontact
trigger10 = stateno = 440
trigger10 = movecontact
trigger11 = stateno = 520
trigger11 = movecontact
trigger12 = stateno = 530
trigger12 = movecontact
trigger13 = stateno = 540
trigger13 = movecontact
trigger14 = stateno = 550
trigger14 = movecontact
trigger15 = stateno = 560
trigger15 = movecontact
trigger16 = stateno = 250
trigger16 = movecontact
trigger17 = stateno = 350
trigger17 = movecontact
trigger18 = stateno = 450
trigger18 = movecontact

;-------------------------------------------
;sp10
[State -1]
type = ChangeState
value = 2000
triggerall = !var(59)
triggerall = command = "sp10x"
triggerall = power >= 1000
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 220
trigger2 = movecontact
trigger3 = stateno = 230
trigger3 = movecontact
trigger4 = stateno = 240
trigger4 = movecontact
trigger5 = stateno = 320
trigger5 = movecontact
trigger6 = stateno = 330
trigger6 = movecontact
trigger7 = stateno = 340
trigger7 = movecontact
trigger8 = stateno = 420
trigger8 = movecontact
trigger9 = stateno = 430
trigger9 = movecontact
trigger10 = stateno = 440
trigger10 = movecontact
trigger11 = stateno = 520
trigger11 = movecontact
trigger12 = stateno = 530
trigger12 = movecontact
trigger13 = stateno = 540
trigger13 = movecontact
trigger14 = stateno = 550
trigger14 = movecontact
trigger15 = stateno = 560
trigger15 = movecontact
trigger16 = stateno = 250
trigger16 = movecontact
trigger17 = stateno = 350
trigger17 = movecontact
trigger18 = stateno = 450
trigger18 = movecontact

[State -1]
type = ChangeState
value = 2000
triggerall = !var(59)
triggerall = command = "sp10y"
triggerall = power >= 1000
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 220
trigger2 = movecontact
trigger3 = stateno = 230
trigger3 = movecontact
trigger4 = stateno = 240
trigger4 = movecontact
trigger5 = stateno = 320
trigger5 = movecontact
trigger6 = stateno = 330
trigger6 = movecontact
trigger7 = stateno = 340
trigger7 = movecontact
trigger8 = stateno = 420
trigger8 = movecontact
trigger9 = stateno = 430
trigger9 = movecontact
trigger10 = stateno = 440
trigger10 = movecontact
trigger11 = stateno = 520
trigger11 = movecontact
trigger12 = stateno = 530
trigger12 = movecontact
trigger13 = stateno = 540
trigger13 = movecontact
trigger14 = stateno = 550
trigger14 = movecontact
trigger15 = stateno = 560
trigger15 = movecontact
trigger16 = stateno = 250
trigger16 = movecontact
trigger17 = stateno = 350
trigger17 = movecontact
trigger18 = stateno = 450
trigger18 = movecontact

[State -1]
type = ChangeState
value = 2000
triggerall = !var(59)
triggerall = command = "sp10z"
triggerall = power >= 1000
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 220
trigger2 = movecontact
trigger3 = stateno = 230
trigger3 = movecontact
trigger4 = stateno = 240
trigger4 = movecontact
trigger5 = stateno = 320
trigger5 = movecontact
trigger6 = stateno = 330
trigger6 = movecontact
trigger7 = stateno = 340
trigger7 = movecontact
trigger8 = stateno = 420
trigger8 = movecontact
trigger9 = stateno = 430
trigger9 = movecontact
trigger10 = stateno = 440
trigger10 = movecontact
trigger11 = stateno = 520
trigger11 = movecontact
trigger12 = stateno = 530
trigger12 = movecontact
trigger13 = stateno = 540
trigger13 = movecontact
trigger14 = stateno = 550
trigger14 = movecontact
trigger15 = stateno = 560
trigger15 = movecontact
trigger16 = stateno = 250
trigger16 = movecontact
trigger17 = stateno = 350
trigger17 = movecontact
trigger18 = stateno = 450
trigger18 = movecontact

[State -1]
type = ChangeState
value = 2000
triggerall = !var(59)
triggerall = command = "sp10c"
triggerall = power >= 1000
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 220
trigger2 = movecontact
trigger3 = stateno = 230
trigger3 = movecontact
trigger4 = stateno = 240
trigger4 = movecontact
trigger5 = stateno = 320
trigger5 = movecontact
trigger6 = stateno = 330
trigger6 = movecontact
trigger7 = stateno = 340
trigger7 = movecontact
trigger8 = stateno = 420
trigger8 = movecontact
trigger9 = stateno = 430
trigger9 = movecontact
trigger10 = stateno = 440
trigger10 = movecontact
trigger11 = stateno = 520
trigger11 = movecontact
trigger12 = stateno = 530
trigger12 = movecontact
trigger13 = stateno = 540
trigger13 = movecontact
trigger14 = stateno = 550
trigger14 = movecontact
trigger15 = stateno = 560
trigger15 = movecontact
trigger16 = stateno = 250
trigger16 = movecontact
trigger17 = stateno = 350
trigger17 = movecontact
trigger18 = stateno = 450
trigger18 = movecontact

;------------------------------------------------
;sp08x
[State -1]
type = ChangeState
value = 1800
triggerall = !var(59)
triggerall = command = "sp08x"
triggerall = numhelper(1800) = 0
triggerall = numhelper(1850) = 0
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 220
trigger2 = movecontact
trigger3 = stateno = 230
trigger3 = movecontact
trigger4 = stateno = 240
trigger4 = movecontact
trigger5 = stateno = 320
trigger5 = movecontact
trigger6 = stateno = 330
trigger6 = movecontact
trigger7 = stateno = 340
trigger7 = movecontact
trigger8 = stateno = 420
trigger8 = movecontact
trigger9 = stateno = 430
trigger9 = movecontact
trigger10 = stateno = 440
trigger10 = movecontact
trigger11 = stateno = 520
trigger11 = movecontact
trigger12 = stateno = 530
trigger12 = movecontact
trigger13 = stateno = 540
trigger13 = movecontact
trigger14 = stateno = 550
trigger14 = movecontact
trigger15 = stateno = 560
trigger15 = movecontact
trigger16 = stateno = 250
trigger16 = movecontact
trigger17 = stateno = 350
trigger17 = movecontact
trigger18 = stateno = 450
trigger18 = movecontact

;sp08y
[State -1]
type = ChangeState
value = 1800
triggerall = !var(59)
triggerall = command = "sp08y"
triggerall = numhelper(1800) = 0
triggerall = numhelper(1850) = 0
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 220
trigger2 = movecontact
trigger3 = stateno = 230
trigger3 = movecontact
trigger4 = stateno = 240
trigger4 = movecontact
trigger5 = stateno = 320
trigger5 = movecontact
trigger6 = stateno = 330
trigger6 = movecontact
trigger7 = stateno = 340
trigger7 = movecontact
trigger8 = stateno = 420
trigger8 = movecontact
trigger9 = stateno = 430
trigger9 = movecontact
trigger10 = stateno = 440
trigger10 = movecontact
trigger11 = stateno = 520
trigger11 = movecontact
trigger12 = stateno = 530
trigger12 = movecontact
trigger13 = stateno = 540
trigger13 = movecontact
trigger14 = stateno = 550
trigger14 = movecontact
trigger15 = stateno = 560
trigger15 = movecontact
trigger16 = stateno = 250
trigger16 = movecontact
trigger17 = stateno = 350
trigger17 = movecontact
trigger18 = stateno = 450
trigger18 = movecontact

;sp08z
[State -1]
type = ChangeState
value = 1800
triggerall = !var(59)
triggerall = command = "sp08z"
triggerall = numhelper(1800) = 0
triggerall = numhelper(1850) = 0
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 220
trigger2 = movecontact
trigger3 = stateno = 230
trigger3 = movecontact
trigger4 = stateno = 240
trigger4 = movecontact
trigger5 = stateno = 320
trigger5 = movecontact
trigger6 = stateno = 330
trigger6 = movecontact
trigger7 = stateno = 340
trigger7 = movecontact
trigger8 = stateno = 420
trigger8 = movecontact
trigger9 = stateno = 430
trigger9 = movecontact
trigger10 = stateno = 440
trigger10 = movecontact
trigger11 = stateno = 520
trigger11 = movecontact
trigger12 = stateno = 530
trigger12 = movecontact
trigger13 = stateno = 540
trigger13 = movecontact
trigger14 = stateno = 550
trigger14 = movecontact
trigger15 = stateno = 560
trigger15 = movecontact
trigger16 = stateno = 250
trigger16 = movecontact
trigger17 = stateno = 350
trigger17 = movecontact
trigger18 = stateno = 450
trigger18 = movecontact

;sp08x-air
[State -1]
type = ChangeState
value = 1850
triggerall = !var(59)
triggerall = command = "sp08x"
triggerall = numhelper(1850) = 0
triggerall = numhelper(1800) = 0
trigger1 = statetype = A
trigger1 = ctrl = 1
trigger2 = stateno = 210
trigger2 = movecontact
trigger3 = stateno = 310
trigger3 = movecontact
trigger4 = stateno = 410
trigger4 = movecontact
trigger5 = stateno = 510
trigger5 = movecontact

;sp08y-air
[State -1]
type = ChangeState
value = 1850
triggerall = !var(59)
triggerall = command = "sp08y"
triggerall = numhelper(1850) = 0
triggerall = numhelper(1800) = 0
trigger1 = statetype = A
trigger1 = ctrl = 1
trigger2 = stateno = 210
trigger2 = movecontact
trigger3 = stateno = 310
trigger3 = movecontact
trigger4 = stateno = 410
trigger4 = movecontact
trigger5 = stateno = 510
trigger5 = movecontact

;sp08y-air
[State -1]
type = ChangeState
value = 1850
triggerall = !var(59)
triggerall = command = "sp08z"
triggerall = numhelper(1850) = 0
triggerall = numhelper(1800) = 0
trigger1 = statetype = A
trigger1 = ctrl = 1
trigger2 = stateno = 210
trigger2 = movecontact
trigger3 = stateno = 310
trigger3 = movecontact
trigger4 = stateno = 410
trigger4 = movecontact
trigger5 = stateno = 510
trigger5 = movecontact

;-----------------------------------
;sp09儦喆x
[State -1]
type = ChangeState
value = 1900
triggerall = !var(59)
triggerall = command = "sp09x"
triggerall = power >= 1000
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 220
trigger2 = movecontact
trigger3 = stateno = 230
trigger3 = movecontact
trigger4 = stateno = 240
trigger4 = movecontact
trigger5 = stateno = 320
trigger5 = movecontact
trigger6 = stateno = 330
trigger6 = movecontact
trigger7 = stateno = 340
trigger7 = movecontact
trigger8 = stateno = 420
trigger8 = movecontact
trigger9 = stateno = 430
trigger9 = movecontact
trigger10 = stateno = 440
trigger10 = movecontact
trigger11 = stateno = 520
trigger11 = movecontact
trigger12 = stateno = 530
trigger12 = movecontact
trigger13 = stateno = 540
trigger13 = movecontact
trigger14 = stateno = 550
trigger14 = movecontact
trigger15 = stateno = 560
trigger15 = movecontact
trigger16 = stateno = 250
trigger16 = movecontact
trigger17 = stateno = 350
trigger17 = movecontact
trigger18 = stateno = 450
trigger18 = movecontact

;sp09儦喆y
[State -1]
type = ChangeState
value = 1900
triggerall = !var(59)
triggerall = command = "sp09y"
triggerall = power >= 1000
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 220
trigger2 = movecontact
trigger3 = stateno = 230
trigger3 = movecontact
trigger4 = stateno = 240
trigger4 = movecontact
trigger5 = stateno = 320
trigger5 = movecontact
trigger6 = stateno = 330
trigger6 = movecontact
trigger7 = stateno = 340
trigger7 = movecontact
trigger8 = stateno = 420
trigger8 = movecontact
trigger9 = stateno = 430
trigger9 = movecontact
trigger10 = stateno = 440
trigger10 = movecontact
trigger11 = stateno = 520
trigger11 = movecontact
trigger12 = stateno = 530
trigger12 = movecontact
trigger13 = stateno = 540
trigger13 = movecontact
trigger14 = stateno = 550
trigger14 = movecontact
trigger15 = stateno = 560
trigger15 = movecontact
trigger16 = stateno = 250
trigger16 = movecontact
trigger17 = stateno = 350
trigger17 = movecontact
trigger18 = stateno = 450
trigger18 = movecontact

;sp09儦喆z
[State -1]
type = ChangeState
value = 1900
triggerall = !var(59)
triggerall = command = "sp09z"
triggerall = power >= 1000
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 220
trigger2 = movecontact
trigger3 = stateno = 230
trigger3 = movecontact
trigger4 = stateno = 240
trigger4 = movecontact
trigger5 = stateno = 320
trigger5 = movecontact
trigger6 = stateno = 330
trigger6 = movecontact
trigger7 = stateno = 340
trigger7 = movecontact
trigger8 = stateno = 420
trigger8 = movecontact
trigger9 = stateno = 430
trigger9 = movecontact
trigger10 = stateno = 440
trigger10 = movecontact
trigger11 = stateno = 520
trigger11 = movecontact
trigger12 = stateno = 530
trigger12 = movecontact
trigger13 = stateno = 540
trigger13 = movecontact
trigger14 = stateno = 550
trigger14 = movecontact
trigger15 = stateno = 560
trigger15 = movecontact
trigger16 = stateno = 250
trigger16 = movecontact
trigger17 = stateno = 350
trigger17 = movecontact
trigger18 = stateno = 450
trigger18 = movecontact

;sp09儦喆c
[State -1]
type = ChangeState
value = 1900
triggerall = !var(59)
triggerall = command = "sp09c"
triggerall = power >= 1000
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 220
trigger2 = movecontact
trigger3 = stateno = 230
trigger3 = movecontact
trigger4 = stateno = 240
trigger4 = movecontact
trigger5 = stateno = 320
trigger5 = movecontact
trigger6 = stateno = 330
trigger6 = movecontact
trigger7 = stateno = 340
trigger7 = movecontact
trigger8 = stateno = 420
trigger8 = movecontact
trigger9 = stateno = 430
trigger9 = movecontact
trigger10 = stateno = 440
trigger10 = movecontact
trigger11 = stateno = 520
trigger11 = movecontact
trigger12 = stateno = 530
trigger12 = movecontact
trigger13 = stateno = 540
trigger13 = movecontact
trigger14 = stateno = 550
trigger14 = movecontact
trigger15 = stateno = 560
trigger15 = movecontact
trigger16 = stateno = 250
trigger16 = movecontact
trigger17 = stateno = 350
trigger17 = movecontact
trigger18 = stateno = 450
trigger18 = movecontact

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

;sp03x傁宺唅埪椧x
[State -1]
type = ChangeState
value = 1300
triggerall = !var(59)
triggerall = command = "sp03x"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 220
trigger2 = movecontact
trigger3 = stateno = 230
trigger3 = movecontact
trigger4 = stateno = 240
trigger4 = movecontact
trigger5 = stateno = 320
trigger5 = movecontact
trigger6 = stateno = 330
trigger6 = movecontact
trigger7 = stateno = 340
trigger7 = movecontact
trigger8 = stateno = 420
trigger8 = movecontact
trigger9 = stateno = 430
trigger9 = movecontact
trigger10 = stateno = 440
trigger10 = movecontact
trigger11 = stateno = 520
trigger11 = movecontact
trigger12 = stateno = 530
trigger12 = movecontact
trigger13 = stateno = 540
trigger13 = movecontact
trigger14 = stateno = 550
trigger14 = movecontact
trigger15 = stateno = 560
trigger15 = movecontact
trigger16 = stateno = 250
trigger16 = movecontact
trigger17 = stateno = 350
trigger17 = movecontact
trigger18 = stateno = 450
trigger18 = movecontact

;sp03y傁宺唅埪椧y
[State -1]
type = ChangeState
value = 1310
triggerall = !var(59)
triggerall = command = "sp03y"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 220
trigger2 = movecontact
trigger3 = stateno = 230
trigger3 = movecontact
trigger4 = stateno = 240
trigger4 = movecontact
trigger5 = stateno = 320
trigger5 = movecontact
trigger6 = stateno = 330
trigger6 = movecontact
trigger7 = stateno = 340
trigger7 = movecontact
trigger8 = stateno = 420
trigger8 = movecontact
trigger9 = stateno = 430
trigger9 = movecontact
trigger10 = stateno = 440
trigger10 = movecontact
trigger11 = stateno = 520
trigger11 = movecontact
trigger12 = stateno = 530
trigger12 = movecontact
trigger13 = stateno = 540
trigger13 = movecontact
trigger14 = stateno = 550
trigger14 = movecontact
trigger15 = stateno = 560
trigger15 = movecontact
trigger16 = stateno = 250
trigger16 = movecontact
trigger17 = stateno = 350
trigger17 = movecontact
trigger18 = stateno = 450
trigger18 = movecontact

;sp03z傁宺唅埪椧z
[State -1]
type = ChangeState
value = 1320
triggerall = !var(59)
triggerall = command = "sp03z"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 220
trigger2 = movecontact
trigger3 = stateno = 230
trigger3 = movecontact
trigger4 = stateno = 240
trigger4 = movecontact
trigger5 = stateno = 320
trigger5 = movecontact
trigger6 = stateno = 330
trigger6 = movecontact
trigger7 = stateno = 340
trigger7 = movecontact
trigger8 = stateno = 420
trigger8 = movecontact
trigger9 = stateno = 430
trigger9 = movecontact
trigger10 = stateno = 440
trigger10 = movecontact
trigger11 = stateno = 520
trigger11 = movecontact
trigger12 = stateno = 530
trigger12 = movecontact
trigger13 = stateno = 540
trigger13 = movecontact
trigger14 = stateno = 550
trigger14 = movecontact
trigger15 = stateno = 560
trigger15 = movecontact
trigger16 = stateno = 250
trigger16 = movecontact
trigger17 = stateno = 350
trigger17 = movecontact
trigger18 = stateno = 450
trigger18 = movecontact

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

;sp02f硔臸勬f
[State -1]
type = ChangeState
value = 1200
triggerall = !var(59)
triggerall = command = "sp02f"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 220
trigger2 = movecontact
trigger3 = stateno = 230
trigger3 = movecontact
trigger4 = stateno = 240
trigger4 = movecontact
trigger5 = stateno = 320
trigger5 = movecontact
trigger6 = stateno = 330
trigger6 = movecontact
trigger7 = stateno = 340
trigger7 = movecontact
trigger8 = stateno = 420
trigger8 = movecontact
trigger9 = stateno = 430
trigger9 = movecontact
trigger10 = stateno = 440
trigger10 = movecontact
trigger11 = stateno = 520
trigger11 = movecontact
trigger12 = stateno = 530
trigger12 = movecontact
trigger13 = stateno = 540
trigger13 = movecontact
trigger14 = stateno = 550
trigger14 = movecontact
trigger15 = stateno = 560
trigger15 = movecontact
trigger16 = stateno = 250
trigger16 = movecontact
trigger17 = stateno = 350
trigger17 = movecontact
trigger18 = stateno = 450
trigger18 = movecontact
trigger19 = stateno = 150
trigger20 = stateno = 151
trigger21 = stateno = 152
trigger22 = stateno = 153

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

;sp02b硔臸勬b
[State -1]
type = ChangeState
value = 1250
triggerall = !var(59)
triggerall = command = "sp02b"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 220
trigger2 = movecontact
trigger3 = stateno = 230
trigger3 = movecontact
trigger4 = stateno = 240
trigger4 = movecontact
trigger5 = stateno = 320
trigger5 = movecontact
trigger6 = stateno = 330
trigger6 = movecontact
trigger7 = stateno = 340
trigger7 = movecontact
trigger8 = stateno = 420
trigger8 = movecontact
trigger9 = stateno = 430
trigger9 = movecontact
trigger10 = stateno = 440
trigger10 = movecontact
trigger11 = stateno = 520
trigger11 = movecontact
trigger12 = stateno = 530
trigger12 = movecontact
trigger13 = stateno = 540
trigger13 = movecontact
trigger14 = stateno = 550
trigger14 = movecontact
trigger15 = stateno = 560
trigger15 = movecontact
trigger16 = stateno = 250
trigger16 = movecontact
trigger17 = stateno = 350
trigger17 = movecontact
trigger18 = stateno = 450
trigger18 = movecontact
trigger19 = stateno = 150
trigger20 = stateno = 151
trigger21 = stateno = 152
trigger22 = stateno = 153

;------------------------------------------------
;bf0
[State -1]
type = ChangeState
value = 1200
triggerall = !var(59)
triggerall = command = "bf0"
trigger1 = stateno >= 150
trigger1 = stateno <= 153

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

;sp05x嘜臸厇勓瘆x
[State -1]
type = ChangeState
value = 1500
triggerall = !var(59)
triggerall = command = "sp05x"
triggerall = numhelper(1500) = 0
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 220
trigger2 = movecontact
trigger3 = stateno = 230
trigger3 = movecontact
trigger4 = stateno = 240
trigger4 = movecontact
trigger5 = stateno = 320
trigger5 = movecontact
trigger6 = stateno = 330
trigger6 = movecontact
trigger7 = stateno = 340
trigger7 = movecontact
trigger8 = stateno = 420
trigger8 = movecontact
trigger9 = stateno = 430
trigger9 = movecontact
trigger10 = stateno = 440
trigger10 = movecontact
trigger11 = stateno = 520
trigger11 = movecontact
trigger12 = stateno = 530
trigger12 = movecontact
trigger13 = stateno = 540
trigger13 = movecontact
trigger14 = stateno = 550
trigger14 = movecontact
trigger15 = stateno = 560
trigger15 = movecontact
trigger16 = stateno = 250
trigger16 = movecontact
trigger17 = stateno = 350
trigger17 = movecontact
trigger18 = stateno = 450
trigger18 = movecontact

;sp05y嘜臸厇勓瘆y
[State -1]
type = ChangeState
value = 1501
triggerall = !var(59)
triggerall = command = "sp05y"
triggerall = numhelper(1500) = 0
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 220
trigger2 = movecontact
trigger3 = stateno = 230
trigger3 = movecontact
trigger4 = stateno = 240
trigger4 = movecontact
trigger5 = stateno = 320
trigger5 = movecontact
trigger6 = stateno = 330
trigger6 = movecontact
trigger7 = stateno = 340
trigger7 = movecontact
trigger8 = stateno = 420
trigger8 = movecontact
trigger9 = stateno = 430
trigger9 = movecontact
trigger10 = stateno = 440
trigger10 = movecontact
trigger11 = stateno = 520
trigger11 = movecontact
trigger12 = stateno = 530
trigger12 = movecontact
trigger13 = stateno = 540
trigger13 = movecontact
trigger14 = stateno = 550
trigger14 = movecontact
trigger15 = stateno = 560
trigger15 = movecontact
trigger16 = stateno = 250
trigger16 = movecontact
trigger17 = stateno = 350
trigger17 = movecontact
trigger18 = stateno = 450
trigger18 = movecontact

;sp05z嘜臸厇勓瘆z
[State -1]
type = ChangeState
value = 1502
triggerall = !var(59)
triggerall = command = "sp05z"
triggerall = numhelper(1500) = 0
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 220
trigger2 = movecontact
trigger3 = stateno = 230
trigger3 = movecontact
trigger4 = stateno = 240
trigger4 = movecontact
trigger5 = stateno = 320
trigger5 = movecontact
trigger6 = stateno = 330
trigger6 = movecontact
trigger7 = stateno = 340
trigger7 = movecontact
trigger8 = stateno = 420
trigger8 = movecontact
trigger9 = stateno = 430
trigger9 = movecontact
trigger10 = stateno = 440
trigger10 = movecontact
trigger11 = stateno = 520
trigger11 = movecontact
trigger12 = stateno = 530
trigger12 = movecontact
trigger13 = stateno = 540
trigger13 = movecontact
trigger14 = stateno = 550
trigger14 = movecontact
trigger15 = stateno = 560
trigger15 = movecontact
trigger16 = stateno = 250
trigger16 = movecontact
trigger17 = stateno = 350
trigger17 = movecontact
trigger18 = stateno = 450
trigger18 = movecontact

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

;sp06x兏艶x
[State -1]
type = ChangeState
value = 1600
triggerall = !var(59)
triggerall = command = "sp06x"
triggerall = numhelper(1600) = 0
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 220
trigger2 = movecontact
trigger3 = stateno = 230
trigger3 = movecontact
trigger4 = stateno = 240
trigger4 = movecontact
trigger5 = stateno = 320
trigger5 = movecontact
trigger6 = stateno = 330
trigger6 = movecontact
trigger7 = stateno = 340
trigger7 = movecontact
trigger8 = stateno = 420
trigger8 = movecontact
trigger9 = stateno = 430
trigger9 = movecontact
trigger10 = stateno = 440
trigger10 = movecontact
trigger11 = stateno = 520
trigger11 = movecontact
trigger12 = stateno = 530
trigger12 = movecontact
trigger13 = stateno = 540
trigger13 = movecontact
trigger14 = stateno = 550
trigger14 = movecontact
trigger15 = stateno = 560
trigger15 = movecontact
trigger16 = stateno = 250
trigger16 = movecontact
trigger17 = stateno = 350
trigger17 = movecontact
trigger18 = stateno = 450
trigger18 = movecontact

;sp06y兏艶y
[State -1]
type = ChangeState
value = 1600
triggerall = !var(59)
triggerall = command = "sp06y"
triggerall = numhelper(1600) = 0
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 220
trigger2 = movecontact
trigger3 = stateno = 230
trigger3 = movecontact
trigger4 = stateno = 240
trigger4 = movecontact
trigger5 = stateno = 320
trigger5 = movecontact
trigger6 = stateno = 330
trigger6 = movecontact
trigger7 = stateno = 340
trigger7 = movecontact
trigger8 = stateno = 420
trigger8 = movecontact
trigger9 = stateno = 430
trigger9 = movecontact
trigger10 = stateno = 440
trigger10 = movecontact
trigger11 = stateno = 520
trigger11 = movecontact
trigger12 = stateno = 530
trigger12 = movecontact
trigger13 = stateno = 540
trigger13 = movecontact
trigger14 = stateno = 550
trigger14 = movecontact
trigger15 = stateno = 560
trigger15 = movecontact
trigger16 = stateno = 250
trigger16 = movecontact
trigger17 = stateno = 350
trigger17 = movecontact
trigger18 = stateno = 450
trigger18 = movecontact

;sp06z兏艶z
[State -1]
type = ChangeState
value = 1600
triggerall = !var(59)
triggerall = command = "sp06z"
triggerall = numhelper(1600) = 0
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 220
trigger2 = movecontact
trigger3 = stateno = 230
trigger3 = movecontact
trigger4 = stateno = 240
trigger4 = movecontact
trigger5 = stateno = 320
trigger5 = movecontact
trigger6 = stateno = 330
trigger6 = movecontact
trigger7 = stateno = 340
trigger7 = movecontact
trigger8 = stateno = 420
trigger8 = movecontact
trigger9 = stateno = 430
trigger9 = movecontact
trigger10 = stateno = 440
trigger10 = movecontact
trigger11 = stateno = 520
trigger11 = movecontact
trigger12 = stateno = 530
trigger12 = movecontact
trigger13 = stateno = 540
trigger13 = movecontact
trigger14 = stateno = 550
trigger14 = movecontact
trigger15 = stateno = 560
trigger15 = movecontact
trigger16 = stateno = 250
trigger16 = movecontact
trigger17 = stateno = 350
trigger17 = movecontact
trigger18 = stateno = 450
trigger18 = movecontact
;------------------------------------------------

;sp04x兒.穞戅宊荁莖x
[State -1]
type = ChangeState
value = 1400
triggerall = !var(59)
triggerall = command = "sp01x"
trigger1 = statetype = A
trigger1 = ctrl = 1
trigger2 = stateno = 210
trigger2 = movecontact
trigger3 = stateno = 310
trigger3 = movecontact
trigger4 = stateno = 410
trigger4 = movecontact
trigger5 = stateno = 510
trigger5 = movecontact

;sp04y兒.穞戅宊荁莖y
[State -1]
type = ChangeState
value = 1410
triggerall = !var(59)
triggerall = command = "sp01y"
trigger1 = statetype = A
trigger1 = ctrl = 1
trigger2 = stateno = 210
trigger2 = movecontact
trigger3 = stateno = 310
trigger3 = movecontact
trigger4 = stateno = 410
trigger4 = movecontact
trigger5 = stateno = 510
trigger5 = movecontact

;sp04z兒.穞戅宊荁莖z
[State -1]
type = ChangeState
value = 1420
triggerall = !var(59)
triggerall = command = "sp01z"
trigger1 = statetype = A
trigger1 = ctrl = 1
trigger2 = stateno = 210
trigger2 = movecontact
trigger3 = stateno = 310
trigger3 = movecontact
trigger4 = stateno = 410
trigger4 = movecontact
trigger5 = stateno = 510
trigger5 = movecontact


;-----------------------------------------------
;sp01x噡匭臸巟紆x
[State -1]
type = ChangeState
value = 1100
triggerall = !var(59)
triggerall = command = "sp01x"
triggerall = numhelper(1100) = 0
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 220
trigger2 = movecontact
trigger3 = stateno = 230
trigger3 = movecontact
trigger4 = stateno = 240
trigger4 = movecontact
trigger5 = stateno = 320
trigger5 = movecontact
trigger6 = stateno = 330
trigger6 = movecontact
trigger7 = stateno = 340
trigger7 = movecontact
trigger8 = stateno = 420
trigger8 = movecontact
trigger9 = stateno = 430
trigger9 = movecontact
trigger10 = stateno = 440
trigger10 = movecontact
trigger11 = stateno = 520
trigger11 = movecontact
trigger12 = stateno = 530
trigger12 = movecontact
trigger13 = stateno = 540
trigger13 = movecontact
trigger14 = stateno = 550
trigger14 = movecontact
trigger15 = stateno = 560
trigger15 = movecontact
trigger16 = stateno = 250
trigger16 = movecontact
trigger17 = stateno = 350
trigger17 = movecontact
trigger18 = stateno = 450
trigger18 = movecontact

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

;sp01y噡匭臸巟紆y
[State -1]
type = ChangeState
value = 1101
triggerall = !var(59)
triggerall = command = "sp01y"
triggerall = numhelper(1100) = 0
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 220
trigger2 = movecontact
trigger3 = stateno = 230
trigger3 = movecontact
trigger4 = stateno = 240
trigger4 = movecontact
trigger5 = stateno = 320
trigger5 = movecontact
trigger6 = stateno = 330
trigger6 = movecontact
trigger7 = stateno = 340
trigger7 = movecontact
trigger8 = stateno = 420
trigger8 = movecontact
trigger9 = stateno = 430
trigger9 = movecontact
trigger10 = stateno = 440
trigger10 = movecontact
trigger11 = stateno = 520
trigger11 = movecontact
trigger12 = stateno = 530
trigger12 = movecontact
trigger13 = stateno = 540
trigger13 = movecontact
trigger14 = stateno = 550
trigger14 = movecontact
trigger15 = stateno = 560
trigger15 = movecontact
trigger16 = stateno = 250
trigger16 = movecontact
trigger17 = stateno = 350
trigger17 = movecontact
trigger18 = stateno = 450
trigger18 = movecontact

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

;sp01z噡匭臸巟紆z
[State -1]
type = ChangeState
value = 1102
triggerall = !var(59)
triggerall = command = "sp01z"
triggerall = numhelper(1100) = 0
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 220
trigger2 = movecontact
trigger3 = stateno = 230
trigger3 = movecontact
trigger4 = stateno = 240
trigger4 = movecontact
trigger5 = stateno = 320
trigger5 = movecontact
trigger6 = stateno = 330
trigger6 = movecontact
trigger7 = stateno = 340
trigger7 = movecontact
trigger8 = stateno = 420
trigger8 = movecontact
trigger9 = stateno = 430
trigger9 = movecontact
trigger10 = stateno = 440
trigger10 = movecontact
trigger11 = stateno = 520
trigger11 = movecontact
trigger12 = stateno = 530
trigger12 = movecontact
trigger13 = stateno = 540
trigger13 = movecontact
trigger14 = stateno = 550
trigger14 = movecontact
trigger15 = stateno = 560
trigger15 = movecontact
trigger16 = stateno = 250
trigger16 = movecontact
trigger17 = stateno = 350
trigger17 = movecontact
trigger18 = stateno = 450
trigger18 = movecontact

;-----------------------------------------------------------
;---------------------------------------------
;莙莊   
[State -1]
type = ChangeState
value = 2900
triggerall = !var(59)
triggerall = command = "2900"
triggerall = p2bodydist x <= 30
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 220
trigger2 = movecontact
trigger3 = stateno = 230
trigger3 = movecontact
trigger4 = stateno = 240
trigger4 = movecontact
trigger5 = stateno = 320
trigger5 = movecontact
trigger6 = stateno = 330
trigger6 = movecontact
trigger7 = stateno = 340
trigger7 = movecontact
trigger8 = stateno = 420
trigger8 = movecontact
trigger9 = stateno = 430
trigger9 = movecontact
trigger10 = stateno = 440
trigger10 = movecontact
trigger11 = stateno = 250
trigger11 = movecontact
trigger12 = stateno = 350
trigger12 = movecontact
trigger13 = stateno = 520
trigger13 = movecontact
trigger14 = stateno = 530
trigger14 = movecontact
trigger15 = stateno = 540
trigger15 = movecontact
trigger16 = stateno = 550
trigger16 = movecontact
trigger17 = stateno = 450
trigger17 = movecontact
trigger18 = stateno = 560
trigger18 = movecontact

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

;憊苼E
[State -1]
type = ChangeState
value = 2800
triggerall = !var(59)
triggerall = command = "counter1"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger1 = !command = "holddown"
trigger2 = stateno = 220
trigger2 = movecontact
trigger3 = stateno = 230
trigger3 = movecontact
trigger4 = stateno = 240
trigger4 = movecontact
trigger5 = stateno = 320
trigger5 = movecontact
trigger6 = stateno = 330
trigger6 = movecontact
trigger7 = stateno = 340
trigger7 = movecontact
trigger8 = stateno = 420
trigger8 = movecontact
trigger9 = stateno = 430
trigger9 = movecontact
trigger10 = stateno = 440
trigger10 = movecontact
trigger11 = stateno = 250
trigger11 = movecontact
trigger12 = stateno = 350
trigger12 = movecontact
trigger13 = stateno = 520
trigger13 = movecontact
trigger14 = stateno = 530
trigger14 = movecontact
trigger15 = stateno = 540
trigger15 = movecontact
trigger16 = stateno = 550
trigger16 = movecontact
trigger17 = stateno = 450
trigger17 = movecontact
trigger18 = stateno = 560
trigger18 = movecontact

;憊擋皗僑
[State -1]
type = ChangeState
value = 240
triggerall = !var(59)
triggerall = stateno = 2800
triggerall = time >= 0
trigger1 = command = "x"

[State -1]
type = ChangeState
value = 340
triggerall = !var(59)
triggerall = stateno = 2800
triggerall = time >= 0
trigger1 = command = "y"

[State -1]
type = ChangeState
value = 430
triggerall = !var(59)
triggerall = stateno = 2800
triggerall = time >= 0
trigger1 = command = "z"

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

;===========================================================================
;---------------------------------------------------------------------------
;RunFwd
[State -1]
type = ChangeState
value = 100
triggerall = !var(59)
trigger1 = command = "FF"
trigger1 = statetype = S
trigger1 = ctrl = 1

;---------------------------------------------------------------------------
;RunBack
[State -1]
type = ChangeState
value = 105
triggerall = !var(59)
trigger1 = command = "BB"
trigger1 = statetype = S
trigger1 = ctrl = 1

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



;---------------------------------------------------------------------------
;===========================================================================
;---------------------------------------------------------------------------

;--------------------------------------------------
;dashx
[State -1]
type = ChangeState
value = 250
triggerall = !var(59)
triggerall = command = "fwd_x"
triggerall = command != "holddown"
trigger1 = stateno = 100
trigger1 = ctrl = 1

;dashy
[State -1]
type = ChangeState
value = 350
triggerall = !var(59)
triggerall = command = "fwd_y"
triggerall = command != "holddown"
trigger1 = stateno = 100
trigger1 = ctrl = 1

;dashz
[State -1]
type = ChangeState
value = 450
triggerall = !var(59)
triggerall = command = "fwd_z"
triggerall = command != "holddown"
trigger1 = stateno = 100
trigger1 = ctrl = 1

;dashc
[State -1]
type = ChangeState
value = 560
triggerall = !var(59)
triggerall = command = "fwd_c"
triggerall = command != "holddown"
trigger1 = stateno = 100
trigger1 = ctrl = 1

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

; Standing light punch (near)
[State -1]
type = ChangeState
value = 240
triggerall = !var(59)
triggerall = command = "x"
triggerall = p2bodydist x <= 25
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 220
trigger2 = movecontact
trigger3 = stateno = 240
trigger3 = movecontact
trigger4 = stateno = 230
trigger4 = movecontact
trigger5 = stateno = 250
trigger5 = movecontact
trigger6 = stateno = 350
trigger6 = movecontact
trigger7 = stateno = 450
trigger7 = movecontact
trigger8 = stateno = 560
trigger8 = movecontact

; Standing light punch (far)
[State -1]
type = ChangeState
value = 230
triggerall = !var(59)
triggerall = command = "x"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 230
trigger2 = movecontact
trigger3 = stateno = 240
trigger3 = movecontact
trigger4 = stateno = 250
trigger4 = movecontact
trigger5 = stateno = 350
trigger5 = movecontact
trigger6 = stateno = 450
trigger6 = movecontact
trigger7 = stateno = 560
trigger7 = movecontact

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

; Standing middle punch (near)
[State -1]
type = ChangeState
value = 340
triggerall = !var(59)
triggerall = command = "y"
triggerall = p2bodydist x <= 25
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 220
trigger2 = movecontact
trigger3 = stateno = 240
trigger3 = movecontact
trigger4 = stateno = 230
trigger4 = movecontact
trigger5 = stateno = 250
trigger5 = movecontact
trigger6 = stateno = 350
trigger6 = movecontact
trigger7 = stateno = 450
trigger7 = movecontact
trigger8 = stateno = 560
trigger8 = movecontact

; Standing middle punch (far)
[State -1]
type = ChangeState
value = 330
triggerall = !var(59)
triggerall = command = "y"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 230
trigger2 = movecontact
trigger3 = stateno = 240
trigger3 = movecontact
trigger4 = stateno = 250
trigger4 = movecontact
trigger5 = stateno = 350
trigger5 = movecontact
trigger6 = stateno = 450
trigger6 = movecontact
trigger7 = stateno = 560
trigger7 = movecontact

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

; Standing stong punch (near)
[State -1]
type = ChangeState
value = 440
triggerall = !var(59)
triggerall = command = "z"
triggerall = p2bodydist x <= 65
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 220
trigger2 = movecontact
trigger3 = stateno = 240
trigger3 = movecontact
trigger4 = stateno = 320
trigger4 = movecontact
trigger5 = stateno = 340
trigger5 = movecontact
trigger6 = stateno = 230
trigger6 = movecontact
trigger7 = stateno = 330
trigger7 = movecontact
trigger8 = stateno = 250
trigger8 = movecontact
trigger9 = stateno = 350
trigger9 = movecontact
trigger10 = stateno = 450
trigger10 = movecontact
trigger11 = stateno = 560
trigger11 = movecontact

; Standing stong punch (far)
[State -1]
type = ChangeState
value = 430
triggerall = !var(59)
triggerall = command = "z"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 240
trigger2= movecontact
trigger3 = stateno = 340
trigger3 = movecontact
trigger4 = stateno = 230
trigger4 = movecontact
trigger5 = stateno = 330
trigger5 = movecontact
trigger6 = stateno = 250
trigger6 = movecontact
trigger7 = stateno = 350
trigger7 = movecontact
trigger8 = stateno = 450
trigger8 = movecontact
trigger9 = stateno = 560
trigger9 = movecontact

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

;Crouch light punch
[State -1]
type = ChangeState
value = 220
triggerall = !var(59)
triggerall = command = "x"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl = 1
trigger2 = stateno = 220
trigger2 = movecontact
trigger3 = stateno = 240
trigger3 = movecontact
trigger4 = stateno = 230
trigger4 = movecontact
trigger5 = stateno = 250
trigger5 = movecontact
trigger6 = stateno = 350
trigger6 = movecontact
trigger7 = stateno = 450
trigger7 = movecontact
trigger8 = stateno = 560
trigger8 = movecontact

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

;Crouch middle punch
[State -1]
type = ChangeState
value = 320
triggerall = !var(59)
triggerall = command = "y"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl = 1
trigger2 = stateno = 220
trigger2 = movecontact
trigger3 = stateno = 240
trigger3 = movecontact
trigger4 = stateno = 230
trigger4 = movecontact
trigger5 = stateno = 250
trigger5 = movecontact
trigger6 = stateno = 350
trigger6 = movecontact
trigger7 = stateno = 450
trigger7 = movecontact
trigger8 = stateno = 560
trigger8 = movecontact

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

;Crouch stong punch
[State -1]
type = ChangeState
value = 420
triggerall = !var(59)
triggerall = command = "z"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl = 1
trigger2 = stateno = 220
trigger2 = movecontact
trigger3 = stateno = 240
trigger3 = movecontact
trigger4 = stateno = 320
trigger4 = movecontact
trigger5 = stateno = 340
trigger5 = movecontact
trigger6 = stateno = 230
trigger6 = movecontact
trigger7 = stateno = 330
trigger7 = movecontact
trigger8 = stateno = 250
trigger8 = movecontact
trigger9 = stateno = 350
trigger9 = movecontact
trigger10 = stateno = 450
trigger10 = movecontact
trigger11 = stateno = 560
trigger11 = movecontact

;---------------------------------------------------------------------------
;Jump light punch
[State -1]
type = ChangeState
value = 210
triggerall = !var(59)
trigger1 = command = "x"
trigger1 = statetype = A
trigger1 = ctrl = 1

;---------------------------------------------------------------------------
;Jump middle punch
[State -1]
type = ChangeState
value = 310
triggerall = !var(59)
trigger1 = command = "y"
trigger1 = statetype = A
trigger1 = ctrl = 1

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

;Jump stong punch
[State -1]
type = ChangeState
value = 410
triggerall = !var(59)
trigger1 = command = "z"
trigger1 = statetype = A
trigger1 = ctrl = 1

;-----------------------------------------------------------
; Jump kick
[State -1]
type = ChangeState
value = 510
triggerall = !var(59)
triggerall = command = "c"
trigger1 = statetype = A
trigger1 = ctrl = 1

; 3 kick
[State -1]
type = ChangeState
value = 520
triggerall = !var(59)
triggerall = command = "3kick"
trigger1 = statetype = C
trigger1 = ctrl = 1
trigger2 = stateno = 220
trigger2 = movecontact
trigger3 = stateno = 240
trigger3 = movecontact
trigger4 = stateno = 320
trigger4 = movecontact
trigger5 = stateno = 340
trigger5 = movecontact
trigger6 = stateno = 230
trigger6 = movecontact
trigger7 = stateno = 330
trigger7 = movecontact
trigger8 = stateno = 250
trigger8 = movecontact
trigger9 = stateno = 350
trigger9 = movecontact
trigger10 = stateno = 450
trigger10 = movecontact
trigger11 = stateno = 560
trigger11 = movecontact

; 2kick
[State -1]
type = ChangeState
value = 530
triggerall = !var(59)
triggerall = command = "2kick"
trigger1 = statetype = C
trigger1 = ctrl = 1
trigger2 = stateno = 220
trigger2 = movecontact
trigger3 = stateno = 240
trigger3 = movecontact
trigger4 = stateno = 320
trigger4 = movecontact
trigger5 = stateno = 340
trigger5 = movecontact
trigger6 = stateno = 230
trigger6 = movecontact
trigger7 = stateno = 330
trigger7 = movecontact
trigger8 = stateno = 530
trigger8 = movecontact
trigger9 = stateno = 250
trigger9 = movecontact
trigger10 = stateno = 350
trigger10 = movecontact
trigger11 = stateno = 450
trigger11 = movecontact
trigger12 = stateno = 560
trigger12 = movecontact

; 6kick
[State -1]
type = ChangeState
value = 550
triggerall = !var(59)
triggerall = command = "6kick"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 220
trigger2 = movecontact
trigger3 = stateno = 240
trigger3 = movecontact
trigger4 = stateno = 320
trigger4 = movecontact
trigger5 = stateno = 340
trigger5 = movecontact
trigger6 = stateno = 230
trigger6 = movecontact
trigger7 = stateno = 330
trigger7 = movecontact
trigger8 = stateno = 550
trigger8 = movecontact
trigger9 = stateno = 250
trigger9 = movecontact
trigger10 = stateno = 350
trigger10 = movecontact
trigger11 = stateno = 450
trigger11 = movecontact
trigger12 = stateno = 560
trigger12 = movecontact

;5 kick
[State -1]
type = ChangeState
value = 540
triggerall = !var(59)
triggerall = command = "c"
triggerall = !command = "holddown"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 220
trigger2 = movecontact
trigger3 = stateno = 240
trigger3 = movecontact
trigger4 = stateno = 320
trigger4 = movecontact
trigger5 = stateno = 340
trigger5 = movecontact
trigger6 = stateno = 230
trigger6 = movecontact
trigger7 = stateno = 330
trigger7 = movecontact
trigger8 = stateno = 250
trigger8 = movecontact
trigger9 = stateno = 350
trigger9 = movecontact
trigger10 = stateno = 450
trigger10 = movecontact
trigger11 = stateno = 560
trigger11 = movecontact

;-----------------------------------------------------------------
;AI婰弎
;-----------------------------------------------------------------
[Statedef -3]
[State -3]
type = VarSet
trigger1 = Var(59) >= 1 && roundstate = 2
var(50) = 0 + (NumEnemy = 2 && EnemyNear(0),life <= 0)
ignorehitpause = 1

[State -3]
type = AssertSpecial
trigger1 = Var(59) >= 1
flag = nowalk
flag2 = nostandguard
flag3 = nocrouchguard

;------------------------------------------------
;搟傝敋敪
[State -3]
type = ChangeState
value = 2200
triggerall = roundstate = [2,3]
triggerall = alive
triggerall = statetype != A
trigger1 = Var(59) = 2
trigger1 = random < 1
trigger1 = stateno = 5000 || stateno = 5001 || stateno = 5010 || stateno = 5011
trigger2 = Var(59) = 3
trigger2 = random < 6
trigger2 = stateno = 5000 || stateno = 5001 || stateno = 5010 || stateno = 5011
trigger3 = Var(59) = 4
trigger3 = random < 30
trigger3 = stateno = 5000 || stateno = 5001 || stateno = 5010 || stateno = 5011
trigger4 = Var(59) = 5
trigger4 = stateno = 5000 || stateno = 5001 || stateno = 5010 || stateno = 5011

;------------------------------------------------
;搟傝敋敪(嬻拞)
[State -3]
type = ChangeState
value = 2300
triggerall = roundstate = [2,3]
triggerall = alive
trigger1 = Var(59) = 2
trigger1 = statetype = A
trigger1 = random < 1
trigger1 = stateno = 5020
trigger2 = Var(59) = 2
trigger2 = random < 1
trigger2 = stateno = 5030 || stateno = 5035 || stateno = 5070
trigger3 = Var(59) = 3
trigger3 = statetype = A
trigger3 = random < 6
trigger3 = stateno = 5020
trigger4 = Var(59) = 3
trigger4 = random < 6
trigger4 = stateno = 5030 || stateno = 5035 || stateno = 5070
trigger5 = Var(59) = 4
trigger5 = statetype = A
trigger5 = random < 30
trigger5 = stateno = 5020
trigger6 = Var(59) = 4
trigger6 = random < 30
trigger6 = stateno = 5030 || stateno = 5035 || stateno = 5070
trigger7 = Var(59) = 5
trigger7 = statetype = A
trigger7 = stateno = 5020
trigger8 = Var(59) = 5
trigger8 = stateno = 5030 || stateno = 5035 || stateno = 5070

;------------------------------------------------
;埀杺崗(屻)
[State -3]
type = ChangeState
value = 1250
triggerall = Var(59) >= 1
triggerall = ctrl && statetype != A
trigger1 = roundstate = 2 && random = [0,250]
trigger2 = EnemyNear(Var(50)),StateType = A && EnemyNear(Var(50)),Movetype = H
trigger2 = roundstate = 3 && random < 200

;------------------------------------------------
;埀杺崗(慜)
[State -3]
type = ChangeState
value = 1200
triggerall = Var(59) >= 1
triggerall = ctrl && statetype != A
trigger1 = roundstate = 2
trigger2 = EnemyNear(Var(50)),StateType = A && EnemyNear(Var(50)),Movetype = H
trigger2 = roundstate = 3
trigger3 = stateno = 5

;---------------------------------------------------------------------------
[State -3, AI婲摦梡僿儖僷乕]
type=helper
triggerall = roundstate = [1,2]
trigger1 = !var(59)
trigger1 = !NumHelper(10000+id)
trigger1 = alive
helpertype=normal
name="AI"
stateno=10000
ID=10000+id
pos=9999,9999
keyctrl=1
pausemovetime=2147483647
supermovetime=2147483647
persistent = 0

[State -3]
type = ChangeState
trigger1= ishelper
trigger1= ishelper(10000+root,id)
trigger1= stateno!=10000
value=10000

;-----------------------------------------------------------------------------------------------------------
[State -3]
type = Varset
triggerall = var(59) <= 0
triggerall = roundstate = [1,2]
trigger1 = Command = "AI0" || Command = "AI1" || Command = "AI2" || Command = "AI3" || Command = "AI4" 
trigger2 = Command = "AI5" || Command = "AI6" || Command = "AI7" || Command = "AI8" || Command = "AI9" 
trigger3 = Command = "AI10" || Command = "AI11" || Command = "AI12" || Command = "AI13" || Command = "AI14"
trigger4 = Command = "AI15" || Command = "AI16" || Command = "AI17" || Command = "AI18" || Command = "AI19"
trigger5 = Command = "AI20" || Command = "AI21" || Command = "AI22" || Command = "AI23" || Command = "AI24"
trigger6 = Command = "AI25" || Command = "AI26" || Command = "AI27" || Command = "AI28" || Command = "AI29"
trigger7 = Command = "AI30" || Command = "AI31" || Command = "AI32" || Command = "AI33" || Command = "AI34"
trigger8 = Command = "AI35" || Command = "AI36" || Command = "AI37" || Command = "AI38" || Command = "AI39"
trigger9 = Command = "AI40" || Command = "AI41" || Command = "AI42" || Command = "AI43" || Command = "AI44"
trigger10 = Command = "AI45" || Command = "AI46"|| Command = "AI47" || Command = "AI48" || Command = "AI49"
trigger11 = Command = "AI50" || Command = "AI51"|| Command = "AI52" || Command = "AI53" || Command = "AI54"
trigger12 = Command = "AI55" || Command = "AI56"|| Command = "AI57" || Command = "AI58" || Command = "AI59"
trigger13 = Command = "AI60"
trigger14 = !var(59)
trigger14 = NumHelper(10000+id)
trigger14 = Helper(10000+id),var(59)>0
trigger15 = !ishelper
var(59) = 4;乽搟Lv乿仼偙偺悢抣傪1乣5偺娫偱曄偊傞
ignorehitpause = 1

;-----------------------------------------------------------------------------------------------------------
[State -3]
type = VarSet
triggerall = Var(59) >= 1
trigger1 = roundstate = 4
V = 59
Value = -Var(59)

[State -3]
type = VarSet
triggerall = Var(59) <= -1
trigger1 = roundstate = [1,2]
V = 59
Value = -Var(59)

