; The CMD file.
;
; Two parts: 1. Command definition and  2. State entry
; (state entry is after the commands def section)
;
; 1. Command definition
; ---------------------
; Note: The commands are CASE-SENSITIVE, and so are the command names.
; The eight directions are:
;   B, DB, D, DF, F, UF, U, UB     (all CAPS)
;   corresponding to back, down-back, down, downforward, etc.
; The six buttons are:
;   a, b, c, x, y, z               (all lower case)
;   In default key config, abc are are the bottom, and xyz are on the
;   top row. For 2 button characters, we recommend you use a and b.
;   For 6 button characters, use abc for kicks and xyz for punches.
;
; Each [Command] section defines a command that you can use for
; state entry, as well as in the CNS file.
; The command section should look like:
;
;   [Command]
;   name = some_name
;   command = the_command
;   time = time (optional)
;   buffer.time = time (optional)
;
; - some_name
;   A name to give that command. You'll use this name to refer to
;   that command in the state entry, as well as the CNS. It is case-
;   sensitive (QCB_a is NOT the same as Qcb_a or QCB_A).
;
; - command
;   list of buttons or directions, separated by commas. Each of these
;   buttons or directions is referred to as a "symbol".
;   Directions and buttons can be preceded by special characters:
;   slash (/) - means the key must be held down
;          egs. command = /D       ;hold the down direction
;               command = /DB, a   ;hold down-back while you press a
;   tilde (~) - to detect key releases
;          egs. command = ~a       ;release the a button
;               command = ~D, F, a ;release down, press fwd, then a
;          If you want to detect "charge moves", you can specify
;          the time the key must be held down for (in game-ticks)
;          egs. command = ~30a     ;hold a for at least 30 ticks, then release
;   dollar ($) - Direction-only: detect as 4-way
;          egs. command = $D       ;will detect if D, DB or DF is held
;               command = $B       ;will detect if B, DB or UB is held
;   plus (+) - Buttons only: simultaneous press
;          egs. command = a+b      ;press a and b at the same time
;               command = x+y+z    ;press x, y and z at the same time
;   greater-than (>) - means there must be no other keys pressed or released
;                      between the previous and the current symbol.
;          egs. command = a, >~a   ;press a and release it without having hit
;                                  ;or released any other keys in between
;   You can combine the symbols:
;     eg. command = ~30$D, a+b     ;hold D, DB or DF for 30 ticks, release,
;                                  ;then press a and b together
;
;   Note: Successive direction symbols are always expanded in a manner similar
;         to this example:
;           command = F, F
;         is expanded when MUGEN reads it, to become equivalent to:
;           command = F, >~F, >F
;
;   It is recommended that for most "motion" commads, eg. quarter-circle-fwd,
;   you start off with a "release direction". This makes the command easier
;   to do.
;
; - time (optional)
;   Time allowed to do the command, given in game-ticks. The default
;   value for this is set in the [Defaults] section below. A typical
;   value is 15.
;
; - buffer.time (optional)
;   Time that the command will be buffered for. If the command is done
;   successfully, then it will be valid for this time. The simplest
;   case is to set this to 1. That means that the command is valid
;   only in the same tick it is performed. With a higher value, such
;   as 3 or 4, you can get a "looser" feel to the command. The result
;   is that combos can become easier to do because you can perform
;   the command early. Attacks just as you regain control (eg. from
;   getting up) also become easier to do. The side effect of this is
;   that the command is continuously asserted, so it will seem as if
;   you had performed the move rapidly in succession during the valid
;   time. To understand this, try setting buffer.time to 30 and hit
;   a fast attack, such as KFM's light punch.
;   The default value for this is set in the [Defaults] section below. 
;   This parameter does not affect hold-only commands (eg. /F). It
;   will be assumed to be 1 for those commands.
;
; If you have two or more commands with the same name, all of them will
; work. You can use it to allow multiple motions for the same move.
;
; Some common commands examples are given below.
;
; [Command] ;Quarter circle forward + x
; name = "QCF_x"
; command = ~D, DF, F, x
;
; [Command] ;Half circle back + a
; name = "HCB_a"
; command = ~F, DF, D, DB, B, a
;
; [Command] ;Two quarter circles forward + y
; name = "2QCF_y"
; command = ~D, DF, F, D, DF, F, y
;
; [Command] ;Tap b rapidly
; name = "5b"
; command = b, b, b, b, b
; time = 30
;
; [Command] ;Charge back, then forward + z
; name = "charge_B_F_z"
; command = ~60$B, F, z
; time = 10
;
; [Command] ;Charge down, then up + c
; name = "charge_D_U_c"
; command = ~60$D, U, c
; time = 10


;-| Button Remapping |-----------------------------------------------------
; This section lets you remap the player's buttons (to easily change the
; button configuration). The format is:
;   old_button = new_button
; If new_button is left blank, the button cannot be pressed.
[Remap]
x = x
y = y
z = z
a = a
b = b
c = c
s = s

;-| Default Values |-------------------------------------------------------
[Defaults]
; Default value for the "time" parameter of a Command. Minimum 1.
command.time = 15

; Default value for the "buffer.time" parameter of a Command. Minimum 1,
; maximum 30.
command.buffer.time = 1


;----------------------------------------AIコマンド
;---------------------------------------------------------------------------
;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
;-| 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 = "down_a"
command = /$D,a
time = 1

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

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

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

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

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

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

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

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

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

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

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

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

;---------------------------------------------------------------------------
; 2. State entry
; --------------
; This is where you define what commands bring you to what states.
;
; Each state entry block looks like:
;   [State -1, Label]           ;Change Label to any name you want to use to
;                               ;identify the state with.
;   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"
;
; Note: The order of state entry is important.
;   State entry with a certain command must come before another state
;   entry with a command that is the subset of the first.
;   For example, command "fwd_a" must be listed before "a", and
;   "fwd_ab" should come before both of the others.
;
; 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]
[state ]
type=ctrlset
trigger1=roundstate=2
trigger1=stateno=[0,12]
value=fvar(3)

[State ]
type = varset 
triggerall = !Ishelper
trigger1 = Command = "AI0" 
trigger2 = Command = "AI1" 
trigger3 = Command = "AI2" 
trigger4 = Command = "AI3" 
trigger5 = Command = "AI4" 
trigger6 = Command = "AI5" 
trigger7 = Command = "AI6" 
trigger8 = Command = "AI7" 
trigger9 = Command = "AI8" 
trigger10 = Command = "AI9" 
trigger11 = Command = "AI10" 
trigger12 = Command = "AI11" 
trigger13 = Command = "AI12" 
trigger14 = Command = "AI13" 
trigger15 = Command = "AI14" 
trigger16 = Command = "AI15" 
trigger17 = Command = "AI16" 
trigger18 = Command = "AI17" 
trigger19 = Command = "AI18" 
trigger20 = Command = "AI19" 
trigger21 = Command = "AI20" 
trigger22 = Command = "AI21" 
trigger23 = Command = "AI22" 
trigger24 = Command = "AI23" 
trigger25 = Command = "AI24" 
trigger26 = Command = "AI25" 
trigger27 = Command = "AI26" 
trigger28 = Command = "AI27" 
trigger29 = Command = "AI28" 
trigger30 = Command = "AI29" 
trigger31 = Command = "AI30"  
trigger32 = Command = "AI31" 
trigger33 = Command = "AI32" 
trigger34 = Command = "AI33" 
trigger35 = Command = "AI34" 
trigger36 = Command = "AI35" 
trigger37 = Command = "AI36" 
trigger38 = Command = "AI37" 
trigger39 = Command = "AI38" 
trigger40 = Command = "AI39" 
trigger41 = Command = "AI40"
trigger42 = Command = "AI41" 
trigger43 = Command = "AI42" 
trigger44 = Command = "AI43" 
trigger45 = Command = "AI44"
trigger46 = Command = "AI45" 
trigger47 = Command = "AI46" 
trigger48 = Command = "AI47" 
trigger49 = Command = "AI48" 
trigger50 = Command = "AI49" 
trigger51 = Command = "AI50" 
var(59) = 1

[State ]
type = varset 
triggerall = !Ishelper
trigger1 = 1 
var(11)=helper(1),var(10)+helper(2),var(10)+helper(3),var(10)+helper(4),var(10)+helper(5),var(10)+helper(6),var(10)+helper(7),var(10)+helper(8),var(10)+helper(9),var(10)+helper(10),var(10)+helper(11),var(10)+helper(12),var(10)+helper(13),var(10)
[State ]
type = varset 
triggerall = !Ishelper
trigger1 = 1 
var(11)=var(11)+helper(14),var(10)

;---------------------------------------------------------------------------
;キング攻撃
;---------------------------------------------------------------------------
[State -1];ステルスメイト
type = changestate
value = 1600
triggerall = statetype!=A
triggerall = ctrl
triggerall = power >=3000
trigger1 = helper(1),var(10)=1&&helper(1),stateno=5150
trigger1 = helper(2),var(10)=1&&helper(2),stateno=5150
trigger1 = helper(3),var(10)=1&&helper(3),stateno=5150
trigger1 = helper(4),var(10)=1&&helper(4),stateno=5150
trigger1 = helper(5),var(10)=1&&helper(5),stateno=5150
trigger1 = helper(6),var(10)=1&&helper(6),stateno=5150
trigger1 = helper(7),var(10)=1&&helper(7),stateno=5150
trigger1 = helper(8),var(10)=1&&helper(8),stateno=5150
trigger1 = helper(9),var(10)=1&&helper(9),stateno=5150
trigger1 = helper(10),var(10)=1&&helper(10),stateno=5150
trigger1 = helper(11),var(10)=1&&helper(11),stateno=5150
trigger1 = helper(12),var(10)=1&&helper(12),stateno=5150
trigger1 = helper(13),var(10)=1&&helper(13),stateno=5150
trigger1 = helper(14),var(10)=1&&helper(14),stateno=5150

;===========================================================================
;---------------------------------------------------------------------------
; Run Fwd
[State -1, Run Fwd]
type = ChangeState
value = 100
triggerall = var(59)=0
trigger1 = command = "FF"
trigger1 = statetype = S
trigger1 = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402

;---------------------------------------------------------------------------
; Run Back
[State -1, Run Back]
type = ChangeState
value = 103
triggerall = var(59)=0
trigger1 = command = "BB"
trigger1 = statetype = S
trigger1 = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402


[State -1];ギャンビット
type = changestate
value = 1700
triggerall = var(59)=0
triggerall = statetype!=A
triggerall = command = "start"
triggerall = power >=1000
trigger1 = ctrl
[State -1];ギャンビット
type = changestate
value = 1702
triggerall = var(59)=0
triggerall = statetype!=A
triggerall = stateno=1700
triggerall = var(3)>=18
trigger1 = var(0)=1
trigger1 = command = "a"
trigger1 = var(5):=1
trigger1 = helper(1),stateno=5150&&helper(1),var(10)=0
trigger2 = var(0)=1
trigger2 = command = "b"
trigger2 = var(5):=2
trigger2 = helper(2),stateno=5150&&helper(2),var(10)=0
trigger3 = var(0)=1
trigger3 = command = "x"
trigger3 = var(5):=3
trigger3 = helper(3),stateno=5150&&helper(3),var(10)=0
trigger4 = var(0)=1
trigger4 = command = "y"
trigger4 = var(5):=4
trigger4 = helper(4),stateno=5150&&helper(4),var(10)=0
trigger5 = var(0)=2
trigger5 = command = "a"
trigger5 = var(5):=5
trigger5 = helper(5),stateno=5150&&helper(5),var(10)=0
trigger6 = var(0)=2
trigger6 = command = "b"
trigger6 = var(5):=6
trigger6 = helper(6),stateno=5150&&helper(6),var(10)=0
trigger7 = var(0)=2
trigger7 = command = "x"
trigger7 = var(5):=7
trigger7 = helper(7),stateno=5150&&helper(7),var(10)=0
trigger8 = var(0)=2
trigger8 = command = "y"
trigger8 = var(5):=8
trigger8 = helper(8),stateno=5150&&helper(8),var(10)=0
trigger9 = var(0)=3
trigger9 = command = "a"
trigger9 = var(5):=9
trigger9 = helper(9),stateno=5150&&helper(9),var(10)=0
trigger10 = var(0)=3
trigger10 = command = "b"
trigger10 = var(5):=10
trigger10 = helper(10),stateno=5150&&helper(10),var(10)=0
trigger11 = var(0)=3
trigger11 = command = "x"
trigger11 = var(5):=11
trigger11 = helper(11),stateno=5150&&helper(11),var(10)=0
trigger12 = var(0)=3
trigger12 = command = "y"
trigger12 = var(5):=12
trigger12 = helper(12),stateno=5150&&helper(12),var(10)=0
trigger13 = var(0)=4
trigger13 = command = "a"
trigger13 = var(5):=13
trigger13 = helper(13),stateno=5150&&helper(13),var(10)=0
trigger14 = var(0)=4
trigger14 = command = "b"
trigger14 = var(5):=14
trigger14 = helper(14),stateno=5150&&helper(14),var(10)=0

[State -1];蹴り
type = changestate
value = 200
triggerall = var(59)=0
triggerall = var(0) = 4
triggerall = statetype!=A
triggerall = command != "holddown"
triggerall = command = "y"
triggerall = command != "holdfwd"
triggerall = command != "holdback"
trigger1 = ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402

[State -1];蹴り
type = changestate
value = 210
triggerall = var(59)=0
triggerall = var(0) = 4
triggerall = statetype!=A
triggerall = command != "holddown"
triggerall = command = "y"
trigger1 = command = "holdfwd"
trigger1 = ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger2 = var(1)=200
trigger2 = movecontact

[State -1];蹴り
type = changestate
value = 220
triggerall = var(59)=0
triggerall = var(0) = 4
triggerall = statetype!=A
triggerall = command != "holddown"
triggerall = command = "y"
trigger1 = command = "holdback"
trigger1 = ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger2 = var(1)=210
trigger2 = movecontact

[State -1];蹴り
type = changestate
value = 400
triggerall = var(59)=0
triggerall = var(0) = 4
triggerall = statetype!=A
triggerall = command = "holddown"
triggerall = command = "y"
trigger1 = ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402

[State -1];蹴り
type = changestate
value = 600
triggerall = var(59)=0
triggerall = var(0) = 4
triggerall = statetype=A
triggerall = command = "y"
trigger1 = ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402

;---------------------------------------------------------------------------
;クイーン攻撃
;---------------------------------------------------------------------------

[State -1];前突撃
type = changestate
value = 240
triggerall = var(59)=0
triggerall = var(0) = 4
triggerall = statetype!=A
triggerall = command != "holddown"
triggerall = command != "holdup"
triggerall = command = "x"
triggerall = command = "holdfwd"
trigger1 = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger2 = movecontact
[State -1];前突撃
type = changestate
value = 440
triggerall = var(59)=0
triggerall = var(0) = 4
triggerall = statetype!=A
triggerall = command != "holdup"
triggerall = command = "holddown"
triggerall = command = "x"
triggerall = command = "holdfwd"
trigger1 = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger2 = movecontact
[State -1];前突撃
type = changestate
value = 640
triggerall = var(59)=0
triggerall = var(0) = 4
triggerall = statetype=A
triggerall = command != "holddown"
triggerall = command != "holdup"
triggerall = command = "x"
triggerall = command = "holdfwd"
trigger1 = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger2 = movecontact

[State -1];上突撃
type = changestate
value = 250
triggerall = var(59)=0
triggerall = var(0) = 4
triggerall = statetype!=A
triggerall = command != "holddown"
triggerall = command = "holdup"
triggerall = command = "x"
triggerall = command != "holdfwd"
trigger1 = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger2 = movecontact
[State -1];下突撃
type = changestate
value = 650
triggerall = var(59)=0
triggerall = var(0) = 4
triggerall = statetype=A
triggerall = command = "holddown"
triggerall = command != "holdup"
triggerall = command = "x"
triggerall = command != "holdfwd"
trigger1 = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger2 = movecontact

[State -1];斜め上突撃
type = changestate
value = 260
triggerall = var(59)=0
triggerall = var(0) = 4
triggerall = statetype!=A
triggerall = command != "holddown"
triggerall = command = "holdup"
triggerall = command = "x"
triggerall = command = "holdfwd"
trigger1 = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger2 = movecontact
[State -1];斜め下突撃
type = changestate
value = 660
triggerall = var(59)=0
triggerall = var(0) = 4
triggerall = statetype=A
triggerall = command = "holddown"
triggerall = command != "holdup"
triggerall = command = "x"
triggerall = command = "holdfwd"
trigger1 = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger2 = movecontact

[State -1];クィーングライディング
type = changestate
value = 235
triggerall = var(6)=0
triggerall = var(59)=0
triggerall = var(0) = 4
triggerall = statetype!=A
triggerall = command != "holddown"
triggerall = command = "x"
trigger1 = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger2 = movecontact
[State -1];クィーングライディング
type = changestate
value = 435
triggerall = var(6)=0
triggerall = var(59)=0
triggerall = var(0) = 4
triggerall = statetype!=A
triggerall = command = "holddown"
triggerall = command = "x"
trigger1 = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger2 = movecontact
[State -1];クィーングライディング
type = changestate
value = 635
triggerall = var(6)=0
triggerall = var(59)=0
triggerall = var(0) = 4
triggerall = statetype=A
triggerall = command = "x"
trigger1 = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger2 = movecontact

;---------------------------------------------------------------------------
;グライディング攻撃
;---------------------------------------------------------------------------
[State -1];
type = changestate
value = 230
triggerall = var(59)=0
triggerall = var(0) != 0
triggerall = statetype!=A
triggerall = command != "holddown"
triggerall = command = "a"
triggerall = command != "holdfwd"
triggerall = command != "holdback"
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(1),stateno=5150&&helper(1),var(10)=0&&var(0) = 1
trigger2 = helper(5),stateno=5150&&helper(5),var(10)=0&&var(0) = 2
trigger3 = helper(9),stateno=5150&&helper(9),var(10)=0&&var(0) = 3
trigger4 = helper(13),stateno=5150&&helper(13),var(10)=0&&var(0) = 4
[State -1];
type = changestate
value = 231
triggerall = var(59)=0
triggerall = var(0) != 0
triggerall = statetype!=A
triggerall = command != "holddown"
triggerall = command = "b"
triggerall = command != "holdfwd"
triggerall = command != "holdback"
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(2),stateno=5150&&helper(1),var(10)=0&&var(0) = 1
trigger2 = helper(6),stateno=5150&&helper(5),var(10)=0&&var(0) = 2
trigger3 = helper(10),stateno=5150&&helper(9),var(10)=0&&var(0) = 3
trigger4 = helper(14),stateno=5150&&helper(13),var(10)=0&&var(0) = 4
[State -1];
type = changestate
value = 232
triggerall = var(59)=0
triggerall = var(0) = [1,3]
triggerall = statetype!=A
triggerall = command != "holddown"
triggerall = command = "x"
triggerall = command != "holdfwd"
triggerall = command != "holdback"
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(3),stateno=5150&&helper(1),var(10)=0&&var(0) = 1
trigger2 = helper(7),stateno=5150&&helper(5),var(10)=0&&var(0) = 2
trigger3 = helper(11),stateno=5150&&helper(9),var(10)=0&&var(0) = 3
[State -1];
type = changestate
value = 233
triggerall = var(59)=0
triggerall = var(0) = [1,3]
triggerall = statetype!=A
triggerall = command != "holddown"
triggerall = command = "y"
triggerall = command != "holdfwd"
triggerall = command != "holdback"
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(4),stateno=5150&&helper(1),var(10)=0&&var(0) = 1
trigger2 = helper(8),stateno=5150&&helper(5),var(10)=0&&var(0) = 2
trigger3 = helper(12),stateno=5150&&helper(9),var(10)=0&&var(0) = 3



[State -1];
type = changestate
value = 430
triggerall = var(59)=0
triggerall = var(0) != 0
triggerall = statetype!=A
triggerall = command = "holddown"
triggerall = command = "a"
triggerall = command != "holdfwd"
triggerall = command != "holdback"
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(1),stateno=5150&&helper(1),var(10)=0&&var(0) = 1
trigger2 = helper(5),stateno=5150&&helper(5),var(10)=0&&var(0) = 2
trigger3 = helper(9),stateno=5150&&helper(9),var(10)=0&&var(0) = 3
trigger4 = helper(13),stateno=5150&&helper(13),var(10)=0&&var(0) = 4
[State -1];
type = changestate
value = 431
triggerall = var(59)=0
triggerall = var(0) != 0
triggerall = statetype!=A
triggerall = command = "holddown"
triggerall = command = "b"
triggerall = command != "holdfwd"
triggerall = command != "holdback"
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(2),stateno=5150&&helper(1),var(10)=0&&var(0) = 1
trigger2 = helper(6),stateno=5150&&helper(5),var(10)=0&&var(0) = 2
trigger3 = helper(10),stateno=5150&&helper(9),var(10)=0&&var(0) = 3
trigger4 = helper(14),stateno=5150&&helper(13),var(10)=0&&var(0) = 4
[State -1];
type = changestate
value = 432
triggerall = var(59)=0
triggerall = var(0) = [1,3]
triggerall = statetype!=A
triggerall = command = "holddown"
triggerall = command = "x"
triggerall = command != "holdfwd"
triggerall = command != "holdback"
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(3),stateno=5150&&helper(1),var(10)=0&&var(0) = 1
trigger2 = helper(7),stateno=5150&&helper(5),var(10)=0&&var(0) = 2
trigger3 = helper(11),stateno=5150&&helper(9),var(10)=0&&var(0) = 3
[State -1];
type = changestate
value = 433
triggerall = var(59)=0
triggerall = var(0) = [1,3]
triggerall = statetype!=A
triggerall = command = "holddown"
triggerall = command = "y"
triggerall = command != "holdfwd"
triggerall = command != "holdback"
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(4),stateno=5150&&helper(1),var(10)=0&&var(0) = 1
trigger2 = helper(8),stateno=5150&&helper(5),var(10)=0&&var(0) = 2
trigger3 = helper(12),stateno=5150&&helper(9),var(10)=0&&var(0) = 3

[State -1];
type = changestate
value = 630
triggerall = var(59)=0
triggerall = var(0) != 0
triggerall = statetype=A
triggerall = command = "a"
triggerall = command != "holdfwd"
triggerall = command != "holdback"
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(1),stateno=5150&&helper(1),var(10)=0&&var(0) = 1
trigger2 = helper(5),stateno=5150&&helper(5),var(10)=0&&var(0) = 2
trigger3 = helper(9),stateno=5150&&helper(9),var(10)=0&&var(0) = 3
trigger4 = helper(13),stateno=5150&&helper(13),var(10)=0&&var(0) = 4
[State -1];
type = changestate
value = 631
triggerall = var(59)=0
triggerall = var(0) != 0
triggerall = statetype=A
triggerall = command = "b"
triggerall = command != "holdfwd"
triggerall = command != "holdback"
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(2),stateno=5150&&helper(1),var(10)=0&&var(0) = 1
trigger2 = helper(6),stateno=5150&&helper(5),var(10)=0&&var(0) = 2
trigger3 = helper(10),stateno=5150&&helper(9),var(10)=0&&var(0) = 3
trigger4 = helper(14),stateno=5150&&helper(13),var(10)=0&&var(0) = 4

[State -1];
type = changestate
value = 632
triggerall = var(59)=0
triggerall = var(0) = [1,3]
triggerall = statetype=A
triggerall = command = "x"
triggerall = command != "holdfwd"
triggerall = command != "holdback"
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(3),stateno=5150&&helper(1),var(10)=0&&var(0) = 1
trigger2 = helper(7),stateno=5150&&helper(5),var(10)=0&&var(0) = 2
trigger3 = helper(11),stateno=5150&&helper(9),var(10)=0&&var(0) = 3
[State -1];
type = changestate
value = 633
triggerall = var(59)=0
triggerall = var(0) = [1,3]
triggerall = statetype=A
triggerall = command = "y"
triggerall = command != "holdfwd"
triggerall = command != "holdback"
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(4),stateno=5150&&helper(1),var(10)=0&&var(0) = 1
trigger2 = helper(8),stateno=5150&&helper(5),var(10)=0&&var(0) = 2
trigger3 = helper(12),stateno=5150&&helper(9),var(10)=0&&var(0) = 3

;---------------------------------------------------------------------------
;ポーン攻撃
;---------------------------------------------------------------------------
[State -1];
type = changestate
value = 1000
triggerall = var(59)=0
triggerall = var(0) = 1
triggerall = statetype!=A
triggerall = command = "holdfwd" || command = "holdback"
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(1),stateno=5150&&helper(1),var(10)=0
trigger1 = command = "a"
trigger1 = helper(1),var(6)=0
trigger1 = var(5):=1
trigger2 = helper(2),stateno=5150&&helper(2),var(10)=0
trigger2 = command = "b"
trigger2 = helper(2),var(6)=0
trigger2 = var(5):=2
trigger3 = helper(3),stateno=5150&&helper(3),var(10)=0
trigger3 = command = "x"
trigger3 = helper(3),var(6)=0
trigger3 = var(5):=3
trigger4 = helper(4),stateno=5150&&helper(4),var(10)=0
trigger4 = command = "y"
trigger4 = helper(4),var(6)=0
trigger4 = var(5):=4
[State -1];
type = changestate
value = 1001
triggerall = var(59)=0
triggerall = var(0) = 2
triggerall = statetype!=A
triggerall = command = "holdfwd" || command = "holdback"
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(5),stateno=5150&&helper(5),var(10)=0
trigger1 = command = "a"
trigger1 = helper(5),var(6)=0
trigger1 = var(5):=1
trigger2 = helper(6),stateno=5150&&helper(6),var(10)=0
trigger2 = command = "b"
trigger2 = helper(6),var(6)=0
trigger2 = var(5):=2
trigger3 = helper(7),stateno=5150&&helper(7),var(10)=0
trigger3 = command = "x"
trigger3 = helper(7),var(6)=0
trigger3 = var(5):=3
trigger4 = helper(8),stateno=5150&&helper(8),var(10)=0
trigger4 = command = "y"
trigger4 = helper(8),var(6)=0
trigger4 = var(5):=4

[State -1];
type = changestate
value = 1200
triggerall = var(59)=0
triggerall = var(0) = 1
triggerall = statetype!=A
triggerall = command !="holdup"
triggerall = command !="holddown"
triggerall = command = "holdfwd"
triggerall = command != "holdback"
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(1),stateno=5150&&helper(1),var(10)=0
trigger1 = command = "a"
trigger1 = helper(1),var(6)=1||helper(1),var(6)=4
trigger1 = var(5):=11
trigger2 = helper(2),stateno=5150&&helper(2),var(10)=0
trigger2 = command = "b"
trigger2 = helper(2),var(6)=1||helper(2),var(6)=4
trigger2 = var(5):=12
trigger3 = helper(3),stateno=5150&&helper(3),var(10)=0
trigger3 = command = "x"
trigger3 = helper(3),var(6)=1||helper(3),var(6)=4
trigger3 = var(5):=13
trigger4 = helper(4),stateno=5150&&helper(4),var(10)=0
trigger4 = command = "y"
trigger4 = helper(4),var(6)=1||helper(4),var(6)=4
trigger4 = var(5):=14
[State -1];
type = changestate
value = 1201
triggerall = var(59)=0
triggerall = var(0) = 1
triggerall = statetype!=A
triggerall = command !="holdup"
triggerall = command !="holddown"
triggerall = command != "holdfwd"
triggerall = command = "holdback"
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(1),stateno=5150&&helper(1),var(10)=0
trigger1 = command = "a"
trigger1 = helper(1),var(6)=1||helper(1),var(6)=4
trigger1 = var(5):=11
trigger2 = helper(2),stateno=5150&&helper(2),var(10)=0
trigger2 = command = "b"
trigger2 = helper(2),var(6)=1||helper(2),var(6)=4
trigger2 = var(5):=12
trigger3 = helper(3),stateno=5150&&helper(3),var(10)=0
trigger3 = command = "x"
trigger3 = helper(3),var(6)=1||helper(3),var(6)=4
trigger3 = var(5):=13
trigger4 = helper(4),stateno=5150&&helper(4),var(10)=0
trigger4 = command = "y"
trigger4 = helper(4),var(6)=1||helper(4),var(6)=4
trigger4 = var(5):=14

[State -1];
type = changestate
value = 1200
triggerall = var(59)=0
triggerall = var(0) = 2
triggerall = statetype!=A
triggerall = command !="holdup"
triggerall = command !="holddown"
triggerall = command = "holdfwd"
triggerall = command != "holdback"
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(5),stateno=5150&&helper(5),var(10)=0
trigger1 = command = "a"
trigger1 = helper(5),var(6)=1||helper(5),var(6)=4
trigger1 = var(5):=15
trigger2 = helper(6),stateno=5150&&helper(6),var(10)=0
trigger2 = command = "b"
trigger2 = helper(6),var(6)=1||helper(6),var(6)=4
trigger2 = var(5):=16
trigger3 = helper(7),stateno=5150&&helper(7),var(10)=0
trigger3 = command = "x"
trigger3 = helper(7),var(6)=1||helper(7),var(6)=4
trigger3 = var(5):=17
trigger4 = helper(8),stateno=5150&&helper(8),var(10)=0
trigger4 = command = "y"
trigger4 = helper(8),var(6)=1||helper(8),var(6)=4
trigger4 = var(5):=18
[State -1];
type = changestate
value = 1201
triggerall = var(59)=0
triggerall = var(0) = 2
triggerall = statetype!=A
triggerall = command !="holdup"
triggerall = command !="holddown"
triggerall = command != "holdfwd"
triggerall = command = "holdback"
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(5),stateno=5150&&helper(5),var(10)=0
trigger1 = command = "a"
trigger1 = helper(5),var(6)=1||helper(5),var(6)=4
trigger1 = var(5):=15
trigger2 = helper(6),stateno=5150&&helper(6),var(10)=0
trigger2 = command = "b"
trigger2 = helper(6),var(6)=1||helper(6),var(6)=4
trigger2 = var(5):=16
trigger3 = helper(7),stateno=5150&&helper(7),var(10)=0
trigger3 = command = "x"
trigger3 = helper(7),var(6)=1||helper(7),var(6)=4
trigger3 = var(5):=17
trigger4 = helper(8),stateno=5150&&helper(8),var(10)=0
trigger4 = command = "y"
trigger4 = helper(8),var(6)=1||helper(8),var(6)=4
trigger4 = var(5):=18


[State -1];
type = changestate
value = 1300
triggerall = var(59)=0
triggerall = var(0) = 1
triggerall = statetype!=A
triggerall = command = "holdfwd"
triggerall = command != "holdback"
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(1),stateno=5150&&helper(1),var(10)=0
trigger1 = command = "a"
trigger1 = helper(1),var(6)=2
trigger1 = var(5):=11
trigger2 = helper(2),stateno=5150&&helper(2),var(10)=0
trigger2 = command = "b"
trigger2 = helper(2),var(6)=2
trigger2 = var(5):=12
trigger3 = helper(3),stateno=5150&&helper(3),var(10)=0
trigger3 = command = "x"
trigger3 = helper(3),var(6)=2
trigger3 = var(5):=13
trigger4 = helper(4),stateno=5150&&helper(4),var(10)=0
trigger4 = command = "y"
trigger4 = helper(4),var(6)=2
trigger4 = var(5):=14
[State -1];
type = changestate
value = 1301
triggerall = var(59)=0
triggerall = var(0) = 1
triggerall = statetype!=A
triggerall = command != "holdfwd"
triggerall = command = "holdback"
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(1),stateno=5150&&helper(1),var(10)=0
trigger1 = command = "a"
trigger1 = helper(1),var(6)=2
trigger1 = var(5):=11
trigger2 = helper(2),stateno=5150&&helper(2),var(10)=0
trigger2 = command = "b"
trigger2 = helper(2),var(6)=2
trigger2 = var(5):=12
trigger3 = helper(3),stateno=5150&&helper(3),var(10)=0
trigger3 = command = "x"
trigger3 = helper(3),var(6)=2
trigger3 = var(5):=13
trigger4 = helper(4),stateno=5150&&helper(4),var(10)=0
trigger4 = command = "y"
trigger4 = helper(4),var(6)=2
trigger4 = var(5):=14

[State -1];
type = changestate
value = 1300
triggerall = var(59)=0
triggerall = var(0) = 2
triggerall = statetype!=A
triggerall = command = "holdfwd"
triggerall = command != "holdback"
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(5),stateno=5150&&helper(5),var(10)=0
trigger1 = command = "a"
trigger1 = helper(5),var(6)=2
trigger1 = var(5):=15
trigger2 = helper(6),stateno=5150&&helper(6),var(10)=0
trigger2 = command = "b"
trigger2 = helper(6),var(6)=2
trigger2 = var(5):=16
trigger3 = helper(7),stateno=5150&&helper(7),var(10)=0
trigger3 = command = "x"
trigger3 = helper(7),var(6)=2
trigger3 = var(5):=17
trigger4 = helper(8),stateno=5150&&helper(8),var(10)=0
trigger4 = command = "y"
trigger4 = helper(8),var(6)=2
trigger4 = var(5):=18
[State -1];
type = changestate
value = 1301
triggerall = var(59)=0
triggerall = var(0) = 2
triggerall = statetype!=A
triggerall = command != "holdfwd"
triggerall = command = "holdback"
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(5),stateno=5150&&helper(5),var(10)=0
trigger1 = command = "a"
trigger1 = helper(5),var(6)=2
trigger1 = var(5):=15
trigger2 = helper(6),stateno=5150&&helper(6),var(10)=0
trigger2 = command = "b"
trigger2 = helper(6),var(6)=2
trigger2 = var(5):=16
trigger3 = helper(7),stateno=5150&&helper(7),var(10)=0
trigger3 = command = "x"
trigger3 = helper(7),var(6)=2
trigger3 = var(5):=17
trigger4 = helper(8),stateno=5150&&helper(8),var(10)=0
trigger4 = command = "y"
trigger4 = helper(8),var(6)=2
trigger4 = var(5):=18



[State -1];
type = changestate
value = 1400
triggerall = var(59)=0
triggerall = var(0) = 1
triggerall = statetype!=A
triggerall = command = "holdfwd"
triggerall = command != "holdback"
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(1),stateno=5150&&helper(1),var(10)=0
trigger1 = command = "a"
trigger1 = helper(1),var(6)=3||helper(1),var(6)=4
trigger1 = var(5):=11
trigger2 = helper(2),stateno=5150&&helper(2),var(10)=0
trigger2 = command = "b"
trigger2 = helper(2),var(6)=3||helper(2),var(6)=4
trigger2 = var(5):=12
trigger3 = helper(3),stateno=5150&&helper(3),var(10)=0
trigger3 = command = "x"
trigger3 = helper(3),var(6)=3||helper(3),var(6)=4
trigger3 = var(5):=13
trigger4 = helper(4),stateno=5150&&helper(4),var(10)=0
trigger4 = command = "y"
trigger4 = helper(4),var(6)=3||helper(4),var(6)=4
trigger4 = var(5):=14
[State -1];
type = changestate
value = 1401
triggerall = var(59)=0
triggerall = var(0) = 1
triggerall = statetype!=A
triggerall = command != "holdfwd"
triggerall = command = "holdback"
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(1),stateno=5150&&helper(1),var(10)=0
trigger1 = command = "a"
trigger1 = helper(1),var(6)=3||helper(1),var(6)=4
trigger1 = var(5):=11
trigger2 = helper(2),stateno=5150&&helper(2),var(10)=0
trigger2 = command = "b"
trigger2 = helper(2),var(6)=3||helper(2),var(6)=4
trigger2 = var(5):=12
trigger3 = helper(3),stateno=5150&&helper(3),var(10)=0
trigger3 = command = "x"
trigger3 = helper(3),var(6)=3||helper(3),var(6)=4
trigger3 = var(5):=13
trigger4 = helper(4),stateno=5150&&helper(4),var(10)=0
trigger4 = command = "y"
trigger4 = helper(4),var(6)=3||helper(4),var(6)=4
trigger4 = var(5):=14

[State -1];
type = changestate
value = 1400
triggerall = var(59)=0
triggerall = var(0) = 2
triggerall = statetype!=A
triggerall = command ="holdup"||command ="holddown"
triggerall = command = "holdfwd"
triggerall = command != "holdback"
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(5),stateno=5150&&helper(5),var(10)=0
trigger1 = command = "a"
trigger1 = helper(5),var(6)=3||helper(5),var(6)=4
trigger1 = var(5):=11
trigger2 = helper(6),stateno=5150&&helper(6),var(10)=0
trigger2 = command = "b"
trigger2 = helper(6),var(6)=3||helper(6),var(6)=4
trigger2 = var(5):=12
trigger3 = helper(7),stateno=5150&&helper(7),var(10)=0
trigger3 = command = "x"
trigger3 = helper(7),var(6)=3||helper(7),var(6)=4
trigger3 = var(5):=13
trigger4 = helper(8),stateno=5150&&helper(8),var(10)=0
trigger4 = command = "y"
trigger4 = helper(8),var(6)=3||helper(8),var(6)=4
trigger4 = var(5):=14
[State -1];
type = changestate
value = 1401
triggerall = var(59)=0
triggerall = var(0) = 2
triggerall = statetype!=A
triggerall = command ="holdup"||command ="holddown"
triggerall = command != "holdfwd"
triggerall = command = "holdback"
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(5),stateno=5150&&helper(5),var(10)=0
trigger1 = command = "a"
trigger1 = helper(5),var(6)=3||helper(5),var(6)=4
trigger1 = var(5):=15
trigger2 = helper(6),stateno=5150&&helper(6),var(10)=0
trigger2 = command = "b"
trigger2 = helper(6),var(6)=3||helper(6),var(6)=4
trigger2 = var(5):=16
trigger3 = helper(7),stateno=5150&&helper(7),var(10)=0
trigger3 = command = "x"
trigger3 = helper(7),var(6)=3||helper(7),var(6)=4
trigger3 = var(5):=17
trigger4 = helper(8),stateno=5150&&helper(8),var(10)=0
trigger4 = command = "y"
trigger4 = helper(8),var(6)=3||helper(8),var(6)=4
trigger4 = var(5):=18

;---------------------------------------------------------------------------
;ルーク攻撃
;---------------------------------------------------------------------------
[State -1];
type = changestate
value = 1200
triggerall = var(59)=0
triggerall = var(0) = 3
triggerall = statetype!=A
triggerall = command = "holdfwd"
triggerall = command != "holdback"
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(9),stateno=5150&&helper(9),var(10)=0
trigger1 = command = "a"
trigger1 = var(5):=1
trigger2 = helper(10),stateno=5150&&helper(10),var(10)=0
trigger2 = command = "b"
trigger2 = var(5):=2
[State -1];
type = changestate
value = 1201
triggerall = var(59)=0
triggerall = var(0) = 3
triggerall = statetype!=A
triggerall = command != "holdfwd"
triggerall = command = "holdback"
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(9),stateno=5150&&helper(9),var(10)=0
trigger1 = command = "a"
trigger1 = var(5):=1
trigger2 = helper(10),stateno=5150&&helper(10),var(10)=0
trigger2 = command = "b"
trigger2 = var(5):=2


[State -1];
type = changestate
value = 1250
triggerall = var(59)=0
triggerall = stateno=[1200,1201]
triggerall = command = "start"
trigger1 = helper(9),stateno=5150&&helper(9),var(10)=0
trigger1 = var(5)=1
trigger2 = helper(10),stateno=5150&&helper(10),var(10)=0
trigger2 = var(5)=2
trigger3 = helper(1),stateno=5150&&helper(1),var(10)=0
trigger3 = helper(1),var(6)=1
trigger3 = var(5)=11
trigger4 = helper(2),stateno=5150&&helper(2),var(10)=0
trigger4 = helper(2),var(6)=1
trigger4 = var(5)=12
trigger5 = helper(3),stateno=5150&&helper(3),var(10)=0
trigger5 = helper(3),var(6)=1
trigger5 = var(5)=13
trigger6 = helper(4),stateno=5150&&helper(4),var(10)=0
trigger6 = helper(4),var(6)=1
trigger6 = var(5)=14
trigger7 = helper(5),stateno=5150&&helper(5),var(10)=0
trigger7 = helper(5),var(6)=1
trigger7 = var(5)=15
trigger8 = helper(6),stateno=5150&&helper(6),var(10)=0
trigger8 = helper(6),var(6)=1
trigger8 = var(5)=16
trigger9 = helper(7),stateno=5150&&helper(7),var(10)=0
trigger9 = helper(7),var(6)=1
trigger9 = var(5)=17
trigger10 = helper(8),stateno=5150&&helper(8),var(10)=0
trigger10 = helper(8),var(6)=1
trigger10 = var(5)=18

;---------------------------------------------------------------------------
;ナイト攻撃
;---------------------------------------------------------------------------
[State -1];
type = changestate
value = 1300
triggerall = var(59)=0
triggerall = var(0) = 3
triggerall = statetype!=A
triggerall = command = "holdfwd"
triggerall = command != "holdback"
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(11),stateno=5150&&helper(11),var(10)=0
trigger1 = command = "x"
trigger1 = var(5):=1
trigger2 = helper(12),stateno=5150&&helper(12),var(10)=0
trigger2 = command = "y"
trigger2 = var(5):=2
[State -1];
type = changestate
value = 1301
triggerall = var(59)=0
triggerall = var(0) = 3
triggerall = statetype!=A
triggerall = command != "holdfwd"
triggerall = command = "holdback"
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(11),stateno=5150&&helper(11),var(10)=0
trigger1 = command = "x"
trigger1 = var(5):=1
trigger2 = helper(12),stateno=5150&&helper(12),var(10)=0
trigger2 = command = "y"
trigger2 = var(5):=2

;---------------------------------------------------------------------------
;ビショップ攻撃
;---------------------------------------------------------------------------
[State -1];
type = changestate
value = 1400
triggerall = var(59)=0
triggerall = var(0) = 4
triggerall = statetype!=A
triggerall = command = "holdfwd"
triggerall = command != "holdback"
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(13),stateno=5150&&helper(13),var(10)=0
trigger1 = command = "a"
trigger1 = var(5):=1
trigger2 = helper(14),stateno=5150&&helper(14),var(10)=0
trigger2 = command = "b"
trigger2 = var(5):=2
[State -1];
type = changestate
value = 1401
triggerall = var(59)=0
triggerall = var(0) = 4
triggerall = statetype!=A
triggerall = command != "holdfwd"
triggerall = command = "holdback"
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(13),stateno=5150&&helper(13),var(10)=0
trigger1 = command = "a"
trigger1 = var(5):=1
trigger2 = helper(14),stateno=5150&&helper(14),var(10)=0
trigger2 = command = "b"
trigger2 = var(5):=2

[State -1];
type = changestate
value = 1100
triggerall = var(59)=0
triggerall = stateno=1400
triggerall = command = "start"
trigger1 = helper(13),stateno=5150&&helper(13),var(10)=0
trigger1 = var(5)=1
trigger2 = helper(14),stateno=5150&&helper(14),var(10)=0
trigger2 = var(5)=2
trigger3 = helper(1),stateno=5150&&helper(1),var(10)=0
trigger3 = helper(1),var(6)=3||helper(1),var(6)=4
trigger3 = var(5)=11
trigger4 = helper(2),stateno=5150&&helper(2),var(10)=0
trigger4 = helper(2),var(6)=3||helper(1),var(6)=4
trigger4 = var(5)=12
trigger5 = helper(3),stateno=5150&&helper(3),var(10)=0
trigger5 = helper(3),var(6)=3||helper(1),var(6)=4
trigger5 = var(5)=13
trigger6 = helper(4),stateno=5150&&helper(4),var(10)=0
trigger6 = helper(4),var(6)=3||helper(1),var(6)=4
trigger6 = var(5)=14
trigger7 = helper(5),stateno=5150&&helper(5),var(10)=0
trigger7 = helper(5),var(6)=3||helper(1),var(6)=4
trigger7 = var(5)=15
trigger8 = helper(6),stateno=5150&&helper(6),var(10)=0
trigger8 = helper(6),var(6)=3||helper(1),var(6)=4
trigger8 = var(5)=16
trigger9 = helper(7),stateno=5150&&helper(7),var(10)=0
trigger9 = helper(7),var(6)=3||helper(1),var(6)=4
trigger9 = var(5)=17
trigger10 = helper(8),stateno=5150&&helper(8),var(10)=0
trigger10 = helper(8),var(6)=3||helper(1),var(6)=4
trigger10 = var(5)=18
[State -1];
type = changestate
value = 1101
triggerall = var(59)=0
triggerall = stateno=1401
triggerall = command = "start"
trigger1 = helper(13),stateno=5150&&helper(13),var(10)=0
trigger1 = var(5)=1
trigger2 = helper(14),stateno=5150&&helper(14),var(10)=0
trigger2 = var(5)=2
trigger3 = helper(1),stateno=5150&&helper(1),var(10)=0
trigger3 = helper(1),var(6)=3||helper(1),var(6)=4
trigger3 = var(5)=11
trigger4 = helper(2),stateno=5150&&helper(2),var(10)=0
trigger4 = helper(2),var(6)=3||helper(1),var(6)=4
trigger4 = var(5)=12
trigger5 = helper(3),stateno=5150&&helper(3),var(10)=0
trigger5 = helper(3),var(6)=3||helper(1),var(6)=4
trigger5 = var(5)=13
trigger6 = helper(4),stateno=5150&&helper(4),var(10)=0
trigger6 = helper(4),var(6)=3||helper(1),var(6)=4
trigger6 = var(5)=14
trigger7 = helper(5),stateno=5150&&helper(5),var(10)=0
trigger7 = helper(5),var(6)=3||helper(1),var(6)=4
trigger7 = var(5)=15
trigger8 = helper(6),stateno=5150&&helper(6),var(10)=0
trigger8 = helper(6),var(6)=3||helper(1),var(6)=4
trigger8 = var(5)=16
trigger9 = helper(7),stateno=5150&&helper(7),var(10)=0
trigger9 = helper(7),var(6)=3||helper(1),var(6)=4
trigger9 = var(5)=17
trigger10 = helper(8),stateno=5150&&helper(8),var(10)=0
trigger10 = helper(8),var(6)=3||helper(1),var(6)=4
trigger10 = var(5)=18

;---------------------------------------------------------------------------
;攻撃準備
;---------------------------------------------------------------------------
[State ];ポーンA
type = VarSet
triggerall = var(59)=0
trigger1 = command = "a"
var(0) = 1
ignorehitpause=1

[State ];ポーンB
type = VarSet
triggerall = var(59)=0
trigger1 = command = "b"
var(0) = 2
ignorehitpause=1

[State ];ルークナイト
type = VarSet
triggerall = var(59)=0
trigger1 = command = "x"
var(0) = 3
ignorehitpause=1

[State ];ビショップクイーン
type = VarSet
triggerall = var(59)=0
trigger1 = command = "y"
var(0) = 4
ignorehitpause=1



;;-----------------------------------------------------------------------------------AI
;;-----------------------------------------------------------------------------------AI
;;-----------------------------------------------------------------------------------AI
;;-----------------------------------------------------------------------------------AI

[State ];
type = VarSet
triggerall =!Ishelper
triggerall = var(59)=1
trigger1 = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
var(58) = 0
ignorehitpause=1

[State ];
type = VarSet
triggerall =!Ishelper
triggerall = var(59)=1
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = random<1000/2
trigger1 = helper(1),var(59)=2
trigger1 = helper(1),var(10)=0
var(58) = 1
ignorehitpause=1
[State ];
type = VarSet
triggerall =!Ishelper
triggerall = var(59)=1
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = random<1000/(3-(helper(1),var(10)))
trigger1 = helper(2),var(59)=2
trigger1 = helper(2),var(10)=0
var(58) = 2
ignorehitpause=1
[State ];
type = VarSet
triggerall =!Ishelper
triggerall = var(59)=1
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = random<1000/(3-(helper(1),var(10)+helper(2),var(10)))
trigger1 = helper(3),var(59)=2
trigger1 = helper(3),var(10)=0
var(58) = 3
ignorehitpause=1
[State ];
type = VarSet
triggerall =!Ishelper
triggerall = var(59)=1
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = random<1000/(4-(helper(1),var(10)+helper(2),var(10)+helper(3),var(10)))
trigger1 = helper(4),var(59)=2
trigger1 = helper(4),var(10)=0
var(58) = 4
ignorehitpause=1
[State ];
type = VarSet
triggerall =!Ishelper
triggerall = var(59)=1
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = random<1000/(5-(helper(1),var(10)+helper(2),var(10)+helper(3),var(10)+helper(4),var(10)))
trigger1 = helper(5),var(59)=2
trigger1 = helper(5),var(10)=0
var(58) = 5
ignorehitpause=1
[State ];
type = VarSet
triggerall =!Ishelper
triggerall = var(59)=1
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = random<1000/(6-(helper(1),var(10)+helper(2),var(10)+helper(3),var(10)+helper(4),var(10)+helper(5),var(10)))
trigger1 = helper(6),var(59)=2
trigger1 = helper(6),var(10)=0
var(58) = 6
ignorehitpause=1
[State ];
type = VarSet
triggerall =!Ishelper
triggerall = var(59)=1
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = random<1000/(7-(helper(1),var(10)+helper(2),var(10)+helper(3),var(10)+helper(4),var(10)+helper(5),var(10)+helper(6),var(10)))
trigger1 = helper(7),var(59)=2
trigger1 = helper(7),var(10)=0
var(58) = 7
ignorehitpause=1
[State ];
type = VarSet
triggerall =!Ishelper
triggerall = var(59)=1
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = random<1000/(8-(helper(1),var(10)+helper(2),var(10)+helper(3),var(10)+helper(4),var(10)+helper(5),var(10)+helper(6),var(10)+helper(7),var(10)))
trigger1 = helper(8),var(59)=2
trigger1 = helper(8),var(10)=0
var(58) = 8
ignorehitpause=1
[State ];
type = VarSet
triggerall =!Ishelper
triggerall = var(59)=1
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = random<1000/(9-(helper(1),var(10)+helper(2),var(10)+helper(3),var(10)+helper(4),var(10)+helper(5),var(10)+helper(6),var(10)+helper(7),var(10)+helper(8),var(10)))
trigger1 = helper(9),var(59)=2
trigger1 = helper(9),var(10)=0
var(58) = 9
ignorehitpause=1
[State ];
type = VarSet
triggerall =!Ishelper
triggerall = var(59)=1
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = random<1000/(10-(helper(1),var(10)+helper(2),var(10)+helper(3),var(10)+helper(4),var(10)+helper(5),var(10)+helper(6),var(10)+helper(7),var(10)+helper(8),var(10)+helper(9),var(10)))
trigger1 = helper(10),var(59)=2
trigger1 = helper(10),var(10)=0
var(58) = 10
ignorehitpause=1
[State ];
type = VarSet
triggerall =!Ishelper
triggerall = var(59)=1
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = random<1000/(11-(helper(1),var(10)+helper(2),var(10)+helper(3),var(10)+helper(4),var(10)+helper(5),var(10)+helper(6),var(10)+helper(7),var(10)+helper(8),var(10)+helper(9),var(10)+helper(10),var(10)))
trigger1 = helper(11),var(59)=2
trigger1 = helper(11),var(10)=0
var(58) = 11
ignorehitpause=1
[State ];
type = VarSet
triggerall =!Ishelper
triggerall = var(59)=1
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = random<1000/(12-(helper(1),var(10)+helper(2),var(10)+helper(3),var(10)+helper(4),var(10)+helper(5),var(10)+helper(6),var(10)+helper(7),var(10)+helper(8),var(10)+helper(9),var(10)+helper(10),var(10)+helper(11),var(10)))
trigger1 = helper(12),var(59)=2
trigger1 = helper(12),var(10)=0
var(58) = 12
ignorehitpause=1
[State ];
type = VarSet
triggerall =!Ishelper
triggerall = var(59)=1
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = random<1000/(13-(helper(1),var(10)+helper(2),var(10)+helper(3),var(10)+helper(4),var(10)+helper(5),var(10)+helper(6),var(10)+helper(7),var(10)+helper(8),var(10)+helper(9),var(10)+helper(10),var(10)+helper(11),var(10)+helper(12),var(10)))
trigger1 = helper(13),var(59)=2
trigger1 = helper(13),var(10)=0
var(58) = 13
ignorehitpause=1
[State ];
type = VarSet
triggerall =!Ishelper
triggerall = var(59)=1
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = random<1000/(8-(helper(1),var(10)+helper(2),var(10)+helper(3),var(10)+helper(4),var(10)+helper(5),var(10)+helper(6),var(10)+helper(7),var(10)))
trigger1 = random<1000/(7-(helper(8),var(10)+helper(9),var(10)+helper(10),var(10)+helper(11),var(10)+helper(12),var(10)+helper(13),var(10)))
trigger1 = helper(14),var(59)=2
trigger1 = helper(14),var(10)=0
var(58) = 14
ignorehitpause=1

[State ];
type = VarSet
triggerall =!Ishelper
triggerall = var(59)=1
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(9),stateno=5150
trigger1 = helper(9),var(59)=1
trigger1 = helper(9),var(10)=0
var(58) = 9
ignorehitpause=1
[State ];
type = VarSet
triggerall =!Ishelper
triggerall = var(59)=1
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(10),stateno=5150
trigger1 = helper(10),var(59)=1
trigger1 = helper(10),var(10)=0
var(58) = 10
ignorehitpause=1
[State ];
type = VarSet
triggerall =!Ishelper
triggerall = var(59)=1
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(11),stateno=5150
trigger1 = helper(11),var(59)=1
trigger1 = helper(11),var(10)=0
var(58) = 11
ignorehitpause=1
[State ];
type = VarSet
triggerall =!Ishelper
triggerall = var(59)=1
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(12),stateno=5150
trigger1 = helper(12),var(59)=1
trigger1 = helper(12),var(10)=0
var(58) = 12
ignorehitpause=1
[State ];
type = VarSet
triggerall =!Ishelper
triggerall = var(59)=1
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(13),stateno=5150
trigger1 = helper(13),var(59)=1
trigger1 = helper(13),var(10)=0
var(58) = 13
ignorehitpause=1
[State ];
type = VarSet
triggerall =!Ishelper
triggerall = var(59)=1
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(14),stateno=5150
trigger1 = helper(14),var(59)=1
trigger1 = helper(14),var(10)=0
var(58) = 14
ignorehitpause=1
[State ];
type = VarSet
triggerall =!Ishelper
triggerall = var(59)=1
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(1),stateno=5150
trigger1 = helper(1),var(59)=1
trigger1 = helper(1),var(10)=0
var(58) = 1
ignorehitpause=1
[State ];
type = VarSet
triggerall =!Ishelper
triggerall = var(59)=1
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(2),stateno=5150
trigger1 = helper(2),var(59)=1
trigger1 = helper(2),var(10)=0
var(58) = 2
ignorehitpause=1
[State ];
type = VarSet
triggerall =!Ishelper
triggerall = var(59)=1
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(3),stateno=5150
trigger1 = helper(3),var(59)=1
trigger1 = helper(3),var(10)=0
var(58) = 3
ignorehitpause=1
[State ];
type = VarSet
triggerall =!Ishelper
triggerall = var(59)=1
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(4),stateno=5150
trigger1 = helper(4),var(59)=1
trigger1 = helper(4),var(10)=0
var(58) = 4
ignorehitpause=1
[State ];
type = VarSet
triggerall =!Ishelper
triggerall = var(59)=1
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(5),stateno=5150
trigger1 = helper(5),var(59)=1
trigger1 = helper(5),var(10)=0
var(58) = 5
ignorehitpause=1
[State ];
type = VarSet
triggerall =!Ishelper
triggerall = var(59)=1
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(6),stateno=5150
trigger1 = helper(6),var(59)=1
trigger1 = helper(6),var(10)=0
var(58) = 6
ignorehitpause=1
[State ];
type = VarSet
triggerall =!Ishelper
triggerall = var(59)=1
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(7),stateno=5150
trigger1 = helper(7),var(59)=1
trigger1 = helper(7),var(10)=0
var(58) = 7
ignorehitpause=1
[State ];
type = VarSet
triggerall =!Ishelper
triggerall = var(59)=1
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(8),stateno=5150
trigger1 = helper(8),var(59)=1
trigger1 = helper(8),var(10)=0
var(58) = 8
ignorehitpause=1


[State ]
type = DisplayToClipboard
trigger1 = !Ishelper
text = "%d"
params = var(58)

[State ];ポーンA
type = VarSet
triggerall = var(59)=1
trigger1 = var(58)=1
trigger2 = var(58)=2
trigger3 = var(58)=3
trigger4 = var(58)=4
var(0) = 1
ignorehitpause=1

[State ];ポーンB
type = VarSet
triggerall = var(59)=1
trigger1 = var(58)=5
trigger2 = var(58)=6
trigger3 = var(58)=7
trigger4 = var(58)=8
var(0) = 2
ignorehitpause=1

[State ];ルークナイト
type = VarSet
triggerall = var(59)=1
trigger1 = var(58)=9
trigger2 = var(58)=10
trigger3 = var(58)=11
trigger4 = var(58)=12
var(0) = 3
ignorehitpause=1

[State ];ビショップクイーン
type = VarSet
triggerall = var(59)=1
trigger1 = var(58)=13
trigger2 = var(58)=14
trigger3 = var(58)=0
var(0) = 4
ignorehitpause=1

[State ];
type = VarSet
triggerall =!Ishelper
triggerall = var(59)=1
trigger1 = 1
var(55) = 0
ignorehitpause=1
[State ];
type = VarSet
triggerall =!Ishelper
triggerall = var(59)=1
triggerall = var(58)!=0
trigger1 = helper(var(58)),var(59)=2
var(55) = 1
ignorehitpause=1

[State ];上下
type = VarSet
triggerall =!Ishelper
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
triggerall = var(59)=1
trigger1 = 1
var(56) = 0
ignorehitpause=1
[State ];上下
type = VarSet
triggerall =!Ishelper
triggerall = var(59)=1
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(var(58)),P2bodydist y>60
var(56) = -1
ignorehitpause=1
[State ];上下
type = VarSet
triggerall =!Ishelper
triggerall = var(59)=1
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(var(58)),P2bodydist y<-20
var(56) = 1
ignorehitpause=1

[State ];前後
type = VarSet
triggerall =!Ishelper
triggerall = var(59)=1
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = 1
var(57) = 0
ignorehitpause=1
[State ];前後
type = VarSet
triggerall =!Ishelper
triggerall = var(59)=1
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(var(58)),P2dist x*helper(var(58)),facing*facing<0
var(57) = -1
ignorehitpause=1
[State ];前後
type = VarSet
triggerall =!Ishelper
triggerall = var(59)=1
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(var(58)),P2dist x*helper(var(58)),facing*facing>=0
var(57) = 1
ignorehitpause=1

[State ];上下
type = VarSet
triggerall =!Ishelper
triggerall = var(59)=1
trigger1 = !ctrl
trigger1 = helper(var(58)),var(59)=0
var(56) = 0
ignorehitpause=1
[State ];前後
type = VarSet
triggerall =!Ishelper
triggerall = var(59)=1
trigger1 = !ctrl
trigger1 = helper(var(58)),var(59)=0
trigger2 = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger2 = helper(var(58)),P2bodyDist x =[0,40]
trigger2 = helper(var(58)),P2Dist y =[-40,40]
trigger2 = helper(var(58)),var(59)!=2
var(57) = 0
ignorehitpause=1

;===========================================================================
;---------------------------------------------------------------------------
ダッシュ
; Run Fwd
[State -1, Run Fwd]
type = ChangeState
value = 100
triggerall = var(59)=1 && roundstate=2
triggerall = statetype = S
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
triggerall = stateno!=[100,101]
triggerall = helper(1),var(10)=1 || pos x!=[helper(1),var(57)-40,helper(1),var(57)+40]
triggerall = helper(2),var(10)=1 || pos x!=[helper(2),var(57)-40,helper(2),var(57)+40]
triggerall = helper(3),var(10)=1 || pos x!=[helper(3),var(57)-40,helper(3),var(57)+40]
triggerall = helper(4),var(10)=1 || pos x!=[helper(4),var(57)-40,helper(4),var(57)+40]
triggerall = helper(5),var(10)=1 || pos x!=[helper(5),var(57)-40,helper(5),var(57)+40]
triggerall = helper(6),var(10)=1 || pos x!=[helper(6),var(57)-40,helper(6),var(57)+40]
triggerall = helper(7),var(10)=1 || pos x!=[helper(7),var(57)-40,helper(7),var(57)+40]
triggerall = helper(8),var(10)=1 || pos x!=[helper(8),var(57)-40,helper(8),var(57)+40]
triggerall = helper(9),var(10)=1 || pos x!=[helper(9),var(57)-40,helper(9),var(57)+40]
triggerall = helper(10),var(10)=1 || pos x!=[helper(10),var(57)-40,helper(10),var(57)+40]
triggerall = helper(11),var(10)=1 || pos x!=[helper(11),var(57)-40,helper(11),var(57)+40]
triggerall = helper(12),var(10)=1 || pos x!=[helper(12),var(57)-40,helper(12),var(57)+40]
triggerall = helper(13),var(10)=1 || pos x!=[helper(13),var(57)-40,helper(13),var(57)+40]
triggerall = helper(14),var(10)=1 || pos x!=[helper(14),var(57)-40,helper(14),var(57)+40]
trigger1 = (helper(1),pos x - pos x)*facing >0 && helper(1),var(10)=0
trigger2 = (helper(2),pos x - pos x)*facing >0 && helper(2),var(10)=0
trigger3 = (helper(3),pos x - pos x)*facing >0 && helper(3),var(10)=0
trigger4 = (helper(4),pos x - pos x)*facing >0 && helper(4),var(10)=0
trigger5 = (helper(5),pos x - pos x)*facing >0 && helper(5),var(10)=0
trigger6 = (helper(6),pos x - pos x)*facing >0 && helper(6),var(10)=0
trigger7 = (helper(7),pos x - pos x)*facing >0 && helper(7),var(10)=0
trigger8 = (helper(8),pos x - pos x)*facing >0 && helper(8),var(10)=0
trigger9 = (helper(9),pos x - pos x)*facing >0 && helper(9),var(10)=0
trigger10 = (helper(10),pos x - pos x)*facing >0 && helper(10),var(10)=0
trigger11 = (helper(11),pos x - pos x)*facing >0 && helper(11),var(10)=0
trigger12 = (helper(12),pos x - pos x)*facing >0 && helper(12),var(10)=0
trigger13 = (helper(13),pos x - pos x)*facing >0 && helper(13),var(10)=0
trigger14 = (helper(14),pos x - pos x)*facing >0 && helper(14),var(10)=0


;---------------------------------------------------------------------------
; Run Back
[State -1, Run Back]
type = ChangeState
value = 103
triggerall = var(59)=1 && roundstate=2
triggerall = statetype = S
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
triggerall = helper(1),var(10)=1 || pos x!=[helper(1),var(57)-40,helper(1),var(57)+40]
triggerall = helper(2),var(10)=1 || pos x!=[helper(2),var(57)-40,helper(2),var(57)+40]
triggerall = helper(3),var(10)=1 || pos x!=[helper(3),var(57)-40,helper(3),var(57)+40]
triggerall = helper(4),var(10)=1 || pos x!=[helper(4),var(57)-40,helper(4),var(57)+40]
triggerall = helper(5),var(10)=1 || pos x!=[helper(5),var(57)-40,helper(5),var(57)+40]
triggerall = helper(6),var(10)=1 || pos x!=[helper(6),var(57)-40,helper(6),var(57)+40]
triggerall = helper(7),var(10)=1 || pos x!=[helper(7),var(57)-40,helper(7),var(57)+40]
triggerall = helper(8),var(10)=1 || pos x!=[helper(8),var(57)-40,helper(8),var(57)+40]
triggerall = helper(9),var(10)=1 || pos x!=[helper(9),var(57)-40,helper(9),var(57)+40]
triggerall = helper(10),var(10)=1 || pos x!=[helper(10),var(57)-40,helper(10),var(57)+40]
triggerall = helper(11),var(10)=1 || pos x!=[helper(11),var(57)-40,helper(11),var(57)+40]
triggerall = helper(12),var(10)=1 || pos x!=[helper(12),var(57)-40,helper(12),var(57)+40]
triggerall = helper(13),var(10)=1 || pos x!=[helper(13),var(57)-40,helper(13),var(57)+40]
triggerall = helper(14),var(10)=1 || pos x!=[helper(14),var(57)-40,helper(14),var(57)+40]
trigger1 = (helper(1),pos x - pos x)*facing <0 && helper(1),var(10)=0
trigger2 = (helper(2),pos x - pos x)*facing <0 && helper(2),var(10)=0
trigger3 = (helper(3),pos x - pos x)*facing <0 && helper(3),var(10)=0
trigger4 = (helper(4),pos x - pos x)*facing <0 && helper(4),var(10)=0
trigger5 = (helper(5),pos x - pos x)*facing <0 && helper(5),var(10)=0
trigger6 = (helper(6),pos x - pos x)*facing <0 && helper(6),var(10)=0
trigger7 = (helper(7),pos x - pos x)*facing <0 && helper(7),var(10)=0
trigger8 = (helper(8),pos x - pos x)*facing <0 && helper(8),var(10)=0
trigger9 = (helper(9),pos x - pos x)*facing <0 && helper(9),var(10)=0
trigger10 = (helper(10),pos x - pos x)*facing <0 && helper(10),var(10)=0
trigger11 = (helper(11),pos x - pos x)*facing <0 && helper(11),var(10)=0
trigger12 = (helper(12),pos x - pos x)*facing <0 && helper(12),var(10)=0
trigger13 = (helper(13),pos x - pos x)*facing <0 && helper(13),var(10)=0
trigger14 = (helper(14),pos x - pos x)*facing <0 && helper(14),var(10)=0


[State -1];ギャンビット
type = changestate
value = 1700
triggerall = var(59)=1 && roundstate=2
triggerall = statetype!=A
triggerall=random%8>var(11)
triggerall = power >=1000
triggerall = ctrl
trigger1 = helper(1),stateno=5150&&helper(1),var(10)=0
trigger1 = helper(1),var(9)*0.2>random
trigger2 = helper(2),stateno=5150&&helper(2),var(10)=0
trigger2 = helper(2),var(9)*0.2>random
trigger3 = helper(3),stateno=5150&&helper(3),var(10)=0
trigger3 = helper(3),var(9)*0.2>random
trigger4 = helper(4),stateno=5150&&helper(4),var(10)=0
trigger4 = helper(4),var(9)*0.2>random
trigger5 = helper(5),stateno=5150&&helper(5),var(10)=0
trigger5 = helper(5),var(9)*0.2>random
trigger6 = helper(6),stateno=5150&&helper(6),var(10)=0
trigger6 = helper(6),var(9)*0.2>random
trigger7 = helper(7),stateno=5150&&helper(7),var(10)=0
trigger7 = helper(7),var(9)*0.2>random
trigger8 = helper(8),stateno=5150&&helper(8),var(10)=0
trigger8 = helper(8),var(9)*0.2>random
trigger9 = helper(9),stateno=5150&&helper(9),var(10)=0
trigger9 = helper(9),var(9)*0.2>random
trigger10 = helper(10),stateno=5150&&helper(10),var(10)=0
trigger10 = helper(10),var(9)*0.2>random
trigger11 = helper(11),stateno=5150&&helper(11),var(10)=0
trigger11 = helper(11),var(9)*0.2>random
trigger12 = helper(12),stateno=5150&&helper(12),var(10)=0
trigger12 = helper(12),var(9)*0.2>random
trigger13 = helper(13),stateno=5150&&helper(13),var(10)=0
trigger13 = helper(13),var(9)*0.2>random
trigger14 = helper(14),stateno=5150&&helper(14),var(10)=0
trigger14 = helper(14),var(9)*0.2>random
[State -1];ギャンビット
type = changestate
value = 1702
triggerall = var(59)=1 && roundstate=2
triggerall = statetype!=A
triggerall = stateno=1700
triggerall = var(3)>=18
trigger1 = helper(1),P2Dist x=[-150,150]
trigger1 = helper(1),P2Dist y=[-150,150]
trigger1 = helper(1),var(9)*0.2>random
trigger1 = var(5):=1
trigger1 = helper(1),stateno=5150&&helper(1),var(10)=0
trigger2 = helper(2),P2Dist x=[-150,150]
trigger2 = helper(2),P2Dist y=[-150,150]
trigger2 = helper(2),var(9)*0.2>random
trigger2 = var(5):=2
trigger2 = helper(2),stateno=5150&&helper(2),var(10)=0
trigger3 = helper(3),P2Dist x=[-150,150]
trigger3 = helper(3),P2Dist y=[-150,150]
trigger3 = helper(3),var(9)*0.2>random
trigger3 = var(5):=3
trigger3 = helper(3),stateno=5150&&helper(3),var(10)=0
trigger4 = helper(4),P2Dist x=[-150,150]
trigger4 = helper(4),P2Dist y=[-150,150]
trigger4 = helper(4),var(9)*0.2>random
trigger4 = var(5):=4
trigger4 = helper(4),stateno=5150&&helper(4),var(10)=0
trigger5 = helper(5),P2Dist x=[-150,150]
trigger5 = helper(5),P2Dist y=[-150,150]
trigger5 = helper(5),var(9)*0.2>random
trigger5 = var(5):=5
trigger5 = helper(5),stateno=5150&&helper(5),var(10)=0
trigger6 = helper(6),P2Dist x=[-150,150]
trigger6 = helper(6),P2Dist y=[-150,150]
trigger6 = helper(6),var(9)*0.2>random
trigger6 = var(5):=6
trigger6 = helper(6),stateno=5150&&helper(6),var(10)=0
trigger7 = helper(7),P2Dist x=[-150,150]
trigger7 = helper(7),P2Dist y=[-150,150]
trigger7 = helper(7),var(9)*0.2>random
trigger7 = var(5):=7
trigger7 = helper(7),stateno=5150&&helper(7),var(10)=0
trigger8 = helper(8),P2Dist x=[-150,150]
trigger8 = helper(8),P2Dist y=[-150,150]
trigger8 = helper(8),var(9)*0.2>random
trigger8 = var(5):=8
trigger8 = helper(8),stateno=5150&&helper(8),var(10)=0
trigger9 = helper(9),P2Dist x=[-150,150]
trigger9 = helper(9),P2Dist y=[-150,150]
trigger9 = helper(9),var(9)*0.2>random
trigger9 = var(5):=9
trigger9 = helper(9),stateno=5150&&helper(9),var(10)=0
trigger10 = helper(10),P2Dist x=[-150,150]
trigger10 = helper(10),P2Dist y=[-150,150]
trigger10 = helper(10),var(9)*0.2>random
trigger10 = var(5):=10
trigger10 = helper(10),stateno=5150&&helper(10),var(10)=0
trigger11 = helper(11),P2Dist x=[-150,150]
trigger11 = helper(11),P2Dist y=[-150,150]
trigger11 = helper(11),var(9)*0.2>random
trigger11 = var(5):=11
trigger11 = helper(11),stateno=5150&&helper(11),var(10)=0
trigger12 = helper(12),P2Dist x=[-150,150]
trigger12 = helper(12),P2Dist y=[-150,150]
trigger12 = helper(12),var(9)*0.2>random
trigger12 = var(5):=12
trigger12 = helper(12),stateno=5150&&helper(12),var(10)=0
trigger13 = helper(13),P2Dist x=[-150,150]
trigger13 = helper(13),P2Dist y=[-150,150]
trigger13 = helper(13),var(9)*0.2>random
trigger13 = var(5):=13
trigger13 = helper(13),stateno=5150&&helper(13),var(10)=0
trigger14 = helper(14),P2Dist x=[-150,150]
trigger14 = helper(14),P2Dist y=[-150,150]
trigger14 = helper(14),var(9)*0.2>random
trigger14 = var(5):=14
trigger14 = helper(14),stateno=5150&&helper(14),var(10)=0


[State -1];蹴り
type = changestate
value = 200
triggerall = var(59)=1 && roundstate=2
triggerall = var(0) = 4
triggerall = statetype!=A
triggerall = var(56) != -1
triggerall = P2dist y =[-40,10]
triggerall = P2dist X =[0,40]
trigger1 = ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402

[State -1];蹴り
type = changestate
value = 210
triggerall = var(59)=1 && roundstate=2
triggerall = var(0) = 4
triggerall = statetype!=A
triggerall = var(56) != -1
trigger1 = var(1)=200
trigger1 = movecontact

[State -1];蹴り
type = changestate
value = 220
triggerall = var(59)=1 && roundstate=2
triggerall = var(0) = 4
triggerall = statetype!=A
triggerall = var(56) != -1
trigger1 = var(1)=210
trigger1 = movecontact

[State -1];蹴り
type = changestate
value = 400
triggerall = var(59)=1 && roundstate=2
triggerall = var(0) = 4
triggerall = statetype!=A
triggerall = var(56) = -1
triggerall = P2dist y =[-30,10]
triggerall = P2dist X =[0,50]
trigger1 = ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402

[State -1];蹴り
type = changestate
value = 600
triggerall = var(59)=1 && roundstate=2
triggerall = var(0) = 4
triggerall = statetype=A
triggerall = P2dist y =[-40,40]
triggerall = P2dist X =[0,40]
trigger1 = ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402

;---------------------------------------------------------------------------
;クイーン攻撃
;---------------------------------------------------------------------------

[State -1];クィーングライディング
type = changestate
value = 235
triggerall = var(6)=0
triggerall = var(59)=1 && roundstate=2
triggerall = var(0) = 4
triggerall = statetype!=A
triggerall = var(56) != -1
triggerall = P2Dist x =[30,100]
triggerall = P2Dist y =[-100,10]
trigger1 = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger2 = movecontact
[State -1];クィーングライディング
type = changestate
value = 435
triggerall = var(6)=0
triggerall = var(59)=1 && roundstate=2
triggerall = var(0) = 4
triggerall = statetype!=A
triggerall = var(56) = -1
triggerall = P2Dist x =[30,100]
triggerall = P2Dist y =[-100,10]
trigger1 = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger2 = movecontact
[State -1];クィーングライディング
type = changestate
value = 635
triggerall = var(6)=0
triggerall = var(59)=1 && roundstate=2
triggerall = var(0) = 4
triggerall = statetype=A
triggerall = P2Dist x =[30,100]
triggerall = P2Dist y =[-100,10]
trigger1 = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger2 = movecontact

[State -1];前突撃
type = changestate
value = 240
triggerall = var(59)=1 && roundstate=2
triggerall = var(0) = 4
triggerall = statetype!=A
triggerall = var(56) != -1
triggerall = var(56) != 1
triggerall = p2bodydist y =[-70,0]
triggerall = p2bodydist x >=50
triggerall = var(57) = 1
trigger1 = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger2 = movecontact
[State -1];前突撃
type = changestate
value = 440
triggerall = var(59)=1 && roundstate=2
triggerall = var(0) = 4
triggerall = statetype!=A
triggerall = var(56) != 1
triggerall = var(56) = -1
triggerall = p2bodydist y =[-70,0]
triggerall = p2bodydist x >=50
triggerall = var(57) = 1
trigger1 = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger2 = movecontact
[State -1];前突撃
type = changestate
value = 640
triggerall = var(59)=1 && roundstate=2
triggerall = var(0) = 4
triggerall = statetype=A
triggerall = var(56) != -1
triggerall = var(56) != 1
triggerall = p2bodydist y =[-70,0]
triggerall = p2bodydist x >=50
triggerall = var(57) = 1
trigger1 = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger2 = movecontact

[State -1];上突撃
type = changestate
value = 250
triggerall = var(59)=1 && roundstate=2
triggerall = var(0) = 4
triggerall = statetype!=A
triggerall = var(56) != -1
triggerall = var(56) = 1
triggerall = p2bodydist y <0
triggerall = p2bodydist x =[-10,10]
triggerall = var(57) != 1
trigger1 = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger2 = movecontact
[State -1];下突撃
type = changestate
value = 650
triggerall = var(59)=1 && roundstate=2
triggerall = var(0) = 4
triggerall = statetype=A
triggerall = var(56) = -1
triggerall = var(56) != 1
triggerall = p2bodydist y >0
triggerall = p2bodydist x =[-10,10]
triggerall = var(57) != 1
trigger1 = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger2 = movecontact

[State -1];斜め上突撃
type = changestate
value = 260
triggerall = var(59)=1 && roundstate=2
triggerall = var(0) = 4
triggerall = statetype!=A
triggerall = var(56) != -1
triggerall = var(56) = 1
triggerall = -p2bodydist y =[p2bodydist x-20,p2bodydist x+20]
triggerall = var(57) = 1
trigger1 = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger2 = movecontact
[State -1];斜め下突撃
type = changestate
value = 660
triggerall = var(59)=1 && roundstate=2
triggerall = var(0) = 4
triggerall = statetype=A
triggerall = var(56) = -1
triggerall = var(56) != 1
triggerall = p2bodydist y =[p2bodydist x-20,p2bodydist x+20]
triggerall = var(57) = 1
trigger1 = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger2 = movecontact

;---------------------------------------------------------------------------
;グライディング攻撃
;---------------------------------------------------------------------------
[State -1];
type = changestate
value = 230
triggerall = var(59)=1 && roundstate=2
triggerall = var(0) != 0
triggerall = statetype!=A
triggerall = var(56) != -1
triggerall = helper(var(58)),P2bodyDist x =[0,40]
triggerall = helper(var(58)),P2Dist y =[-40,40]
triggerall = var(57) != 1
triggerall = var(57) != -1
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(1),stateno=5150&&helper(1),var(10)=0&&var(0) = 1
trigger2 = helper(5),stateno=5150&&helper(5),var(10)=0&&var(0) = 2
trigger3 = helper(9),stateno=5150&&helper(9),var(10)=0&&var(0) = 3
trigger4 = helper(13),stateno=5150&&helper(13),var(10)=0&&var(0) = 4
[State -1];
type = changestate
value = 231
triggerall = var(59)=1 && roundstate=2
triggerall = var(0) != 0
triggerall = statetype!=A
triggerall = var(56) != -1
triggerall = helper(var(58)),P2bodyDist x =[0,40]
triggerall = helper(var(58)),P2Dist y =[-40,40]
triggerall = var(57) != 1
triggerall = var(57) != -1
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(2),stateno=5150&&helper(1),var(10)=0&&var(0) = 1
trigger2 = helper(6),stateno=5150&&helper(5),var(10)=0&&var(0) = 2
trigger3 = helper(10),stateno=5150&&helper(9),var(10)=0&&var(0) = 3
trigger4 = helper(14),stateno=5150&&helper(13),var(10)=0&&var(0) = 4
[State -1];
type = changestate
value = 232
triggerall = var(59)=1 && roundstate=2
triggerall = var(0) = [1,3]
triggerall = statetype!=A
triggerall = var(56) != -1
triggerall = helper(var(58)),P2bodyDist x =[0,40]
triggerall = helper(var(58)),P2Dist y =[-40,40]
triggerall = var(57) != 1
triggerall = var(57) != -1
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(3),stateno=5150&&helper(1),var(10)=0&&var(0) = 1
trigger2 = helper(7),stateno=5150&&helper(5),var(10)=0&&var(0) = 2
trigger3 = helper(11),stateno=5150&&helper(9),var(10)=0&&var(0) = 3
[State -1];
type = changestate
value = 233
triggerall = var(59)=1 && roundstate=2
triggerall = var(0) = [1,3]
triggerall = statetype!=A
triggerall = var(56) != -1
triggerall = helper(var(58)),P2bodyDist x =[0,40]
triggerall = helper(var(58)),P2Dist y =[-40,40]
triggerall = var(57) != 1
triggerall = var(57) != -1
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(4),stateno=5150&&helper(1),var(10)=0&&var(0) = 1
trigger2 = helper(8),stateno=5150&&helper(5),var(10)=0&&var(0) = 2
trigger3 = helper(12),stateno=5150&&helper(9),var(10)=0&&var(0) = 3



[State -1];
type = changestate
value = 430
triggerall = var(59)=1 && roundstate=2
triggerall = var(0) != 0
triggerall = statetype!=A
triggerall = var(56) = -1
triggerall = helper(var(58)),P2bodyDist x =[0,40]
triggerall = helper(var(58)),P2Dist y =[-40,40]
triggerall = var(57) != 1
triggerall = var(57) != -1
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(1),stateno=5150&&helper(1),var(10)=0&&var(0) = 1
trigger2 = helper(5),stateno=5150&&helper(5),var(10)=0&&var(0) = 2
trigger3 = helper(9),stateno=5150&&helper(9),var(10)=0&&var(0) = 3
trigger4 = helper(13),stateno=5150&&helper(13),var(10)=0&&var(0) = 4
[State -1];
type = changestate
value = 431
triggerall = var(59)=1 && roundstate=2
triggerall = var(0) != 0
triggerall = statetype!=A
triggerall = var(56) = -1
triggerall = helper(var(58)),P2bodyDist x =[0,40]
triggerall = helper(var(58)),P2Dist y =[-40,40]
triggerall = var(57) != 1
triggerall = var(57) != -1
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(2),stateno=5150&&helper(1),var(10)=0&&var(0) = 1
trigger2 = helper(6),stateno=5150&&helper(5),var(10)=0&&var(0) = 2
trigger3 = helper(10),stateno=5150&&helper(9),var(10)=0&&var(0) = 3
trigger4 = helper(14),stateno=5150&&helper(13),var(10)=0&&var(0) = 4
[State -1];
type = changestate
value = 432
triggerall = var(59)=1 && roundstate=2
triggerall = var(0) = [1,3]
triggerall = statetype!=A
triggerall = var(56) = -1
triggerall = helper(var(58)),P2bodyDist x =[0,40]
triggerall = helper(var(58)),P2Dist y =[-40,40]
triggerall = var(57) != 1
triggerall = var(57) != -1
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(3),stateno=5150&&helper(1),var(10)=0&&var(0) = 1
trigger2 = helper(7),stateno=5150&&helper(5),var(10)=0&&var(0) = 2
trigger3 = helper(11),stateno=5150&&helper(9),var(10)=0&&var(0) = 3
[State -1];
type = changestate
value = 433
triggerall = var(59)=1 && roundstate=2
triggerall = var(0) = [1,3]
triggerall = statetype!=A
triggerall = var(56) = -1
triggerall = helper(var(58)),P2bodyDist x =[0,40]
triggerall = helper(var(58)),P2Dist y =[-40,40]
triggerall = var(57) != 1
triggerall = var(57) != -1
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(4),stateno=5150&&helper(1),var(10)=0&&var(0) = 1
trigger2 = helper(8),stateno=5150&&helper(5),var(10)=0&&var(0) = 2
trigger3 = helper(12),stateno=5150&&helper(9),var(10)=0&&var(0) = 3

[State -1];
type = changestate
value = 630
triggerall = var(59)=1 && roundstate=2
triggerall = var(0) != 0
triggerall = statetype=A
triggerall = helper(var(58)),P2bodyDist x =[0,40]
triggerall = helper(var(58)),P2Dist y =[-40,40]
triggerall = var(57) != 1
triggerall = var(57) != -1
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(1),stateno=5150&&helper(1),var(10)=0&&var(0) = 1
trigger2 = helper(5),stateno=5150&&helper(5),var(10)=0&&var(0) = 2
trigger3 = helper(9),stateno=5150&&helper(9),var(10)=0&&var(0) = 3
trigger4 = helper(13),stateno=5150&&helper(13),var(10)=0&&var(0) = 4
[State -1];
type = changestate
value = 631
triggerall = var(59)=1 && roundstate=2
triggerall = var(0) != 0
triggerall = statetype=A
triggerall = helper(var(58)),P2bodyDist x =[0,40]
triggerall = helper(var(58)),P2Dist y =[-40,40]
triggerall = var(57) != 1
triggerall = var(57) != -1
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(2),stateno=5150&&helper(1),var(10)=0&&var(0) = 1
trigger2 = helper(6),stateno=5150&&helper(5),var(10)=0&&var(0) = 2
trigger3 = helper(10),stateno=5150&&helper(9),var(10)=0&&var(0) = 3
trigger4 = helper(14),stateno=5150&&helper(13),var(10)=0&&var(0) = 4
[State -1];
type = changestate
value = 632
triggerall = var(59)=1 && roundstate=2
triggerall = var(0) = [1,3]
triggerall = statetype=A
triggerall = helper(var(58)),P2bodyDist x =[0,40]
triggerall = helper(var(58)),P2Dist y =[-40,40]
triggerall = var(57) != 1
triggerall = var(57) != -1
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(3),stateno=5150&&helper(1),var(10)=0&&var(0) = 1
trigger2 = helper(7),stateno=5150&&helper(5),var(10)=0&&var(0) = 2
trigger3 = helper(11),stateno=5150&&helper(9),var(10)=0&&var(0) = 3
[State -1];
type = changestate
value = 633
triggerall = var(59)=1 && roundstate=2
triggerall = var(0) = [1,3]
triggerall = statetype=A
triggerall = helper(var(58)),P2bodyDist x =[0,40]
triggerall = helper(var(58)),P2Dist y =[-40,40]
triggerall = var(57) != 1
triggerall = var(57) != -1
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(4),stateno=5150&&helper(1),var(10)=0&&var(0) = 1
trigger2 = helper(8),stateno=5150&&helper(5),var(10)=0&&var(0) = 2
trigger3 = helper(12),stateno=5150&&helper(9),var(10)=0&&var(0) = 3



;---------------------------------------------------------------------------
;ポーン攻撃
;---------------------------------------------------------------------------
[State -1];
type = changestate
value = 1000
triggerall = var(59)=1 && roundstate=2
triggerall = var(0) = 1
triggerall = statetype!=A
triggerall = var(57) = 1 || var(57) = -1
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(1),stateno=5150&&helper(1),var(10)=0
trigger1 = var(58)=1
trigger1 = helper(1),var(6)=0
trigger1 = var(5):=1
trigger2 = helper(2),stateno=5150&&helper(2),var(10)=0
trigger2 = var(58)=2
trigger2 = helper(2),var(6)=0
trigger2 = var(5):=2
trigger3 = helper(3),stateno=5150&&helper(3),var(10)=0
trigger3 = var(58)=3
trigger3 = helper(3),var(6)=0
trigger3 = var(5):=3
trigger4 = helper(4),stateno=5150&&helper(4),var(10)=0
trigger4 = var(58)=4
trigger4 = helper(4),var(6)=0
trigger4 = var(5):=4
[State -1];
type = changestate
value = 1001
triggerall = var(59)=1 && roundstate=2
triggerall = var(0) = 2
triggerall = statetype!=A
triggerall = var(57) = 1 || var(57) = -1
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(5),stateno=5150&&helper(5),var(10)=0
trigger1 = var(58)=5
trigger1 = helper(5),var(6)=0
trigger1 = var(5):=1
trigger2 = helper(6),stateno=5150&&helper(6),var(10)=0
trigger2 = var(58)=6
trigger2 = helper(6),var(6)=0
trigger2 = var(5):=2
trigger3 = helper(7),stateno=5150&&helper(7),var(10)=0
trigger3 = var(58)=7
trigger3 = helper(7),var(6)=0
trigger3 = var(5):=3
trigger4 = helper(8),stateno=5150&&helper(8),var(10)=0
trigger4 = var(58)=8
trigger4 = helper(8),var(6)=0
trigger4 = var(5):=4

[State -1];
type = changestate
value = 1200
triggerall = var(59)=1 && roundstate=2
triggerall = var(0) = 1
triggerall = statetype!=A
triggerall = var(56) != 1
triggerall = var(56) != -1
triggerall = var(57) = 1
triggerall = var(57) != -1
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(1),stateno=5150&&helper(1),var(10)=0
trigger1 = var(58)=1
trigger1 = helper(1),var(6)=1||helper(1),var(6)=4
trigger1 = var(5):=11
trigger2 = helper(2),stateno=5150&&helper(2),var(10)=0
trigger2 = var(58)=2
trigger2 = helper(2),var(6)=1||helper(2),var(6)=4
trigger2 = var(5):=12
trigger3 = helper(3),stateno=5150&&helper(3),var(10)=0
trigger3 = var(58)=3
trigger3 = helper(3),var(6)=1||helper(3),var(6)=4
trigger3 = var(5):=13
trigger4 = helper(4),stateno=5150&&helper(4),var(10)=0
trigger4 = var(58)=4
trigger4 = helper(4),var(6)=1||helper(4),var(6)=4
trigger4 = var(5):=14
[State -1];
type = changestate
value = 1201
triggerall = var(59)=1 && roundstate=2
triggerall = var(0) = 1
triggerall = statetype!=A
triggerall = var(56) != 1
triggerall = var(56) != -1
triggerall = var(57) != 1
triggerall = var(57) = -1
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(1),stateno=5150&&helper(1),var(10)=0
trigger1 = var(58)=1
trigger1 = helper(1),var(6)=1||helper(1),var(6)=4
trigger1 = var(5):=11
trigger2 = helper(2),stateno=5150&&helper(2),var(10)=0
trigger2 = var(58)=2
trigger2 = helper(2),var(6)=1||helper(2),var(6)=4
trigger2 = var(5):=12
trigger3 = helper(3),stateno=5150&&helper(3),var(10)=0
trigger3 = var(58)=3
trigger3 = helper(3),var(6)=1||helper(3),var(6)=4
trigger3 = var(5):=13
trigger4 = helper(4),stateno=5150&&helper(4),var(10)=0
trigger4 = var(58)=4
trigger4 = helper(4),var(6)=1||helper(4),var(6)=4
trigger4 = var(5):=14

[State -1];
type = changestate
value = 1200
triggerall = var(59)=1 && roundstate=2
triggerall = var(0) = 2
triggerall = statetype!=A
triggerall = var(56) != 1
triggerall = var(56) != -1
triggerall = var(57) = 1
triggerall = var(57) != -1
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(5),stateno=5150&&helper(5),var(10)=0
trigger1 = var(58)=5
trigger1 = helper(5),var(6)=1||helper(5),var(6)=4
trigger1 = var(5):=15
trigger2 = helper(6),stateno=5150&&helper(6),var(10)=0
trigger2 = var(58)=6
trigger2 = helper(6),var(6)=1||helper(6),var(6)=4
trigger2 = var(5):=16
trigger3 = helper(7),stateno=5150&&helper(7),var(10)=0
trigger3 = var(58)=7
trigger3 = helper(7),var(6)=1||helper(7),var(6)=4
trigger3 = var(5):=17
trigger4 = helper(8),stateno=5150&&helper(8),var(10)=0
trigger4 = var(58)=8
trigger4 = helper(8),var(6)=1||helper(8),var(6)=4
trigger4 = var(5):=18
[State -1];
type = changestate
value = 1201
triggerall = var(59)=1 && roundstate=2
triggerall = var(0) = 2
triggerall = statetype!=A
triggerall = var(56) != 1
triggerall = var(56) != -1
triggerall = var(57) != 1
triggerall = var(57) = -1
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(5),stateno=5150&&helper(5),var(10)=0
trigger1 = var(58)=5
trigger1 = helper(5),var(6)=1||helper(5),var(6)=4
trigger1 = var(5):=15
trigger2 = helper(6),stateno=5150&&helper(6),var(10)=0
trigger2 = var(58)=6
trigger2 = helper(6),var(6)=1||helper(6),var(6)=4
trigger2 = var(5):=16
trigger3 = helper(7),stateno=5150&&helper(7),var(10)=0
trigger3 = var(58)=7
trigger3 = helper(7),var(6)=1||helper(7),var(6)=4
trigger3 = var(5):=17
trigger4 = helper(8),stateno=5150&&helper(8),var(10)=0
trigger4 = var(58)=8
trigger4 = helper(8),var(6)=1||helper(8),var(6)=4
trigger4 = var(5):=18


[State -1];
type = changestate
value = 1300
triggerall = var(59)=1 && roundstate=2
triggerall = var(0) = 1
triggerall = statetype!=A
triggerall = var(57) = 1
triggerall = var(57) != -1
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(1),stateno=5150&&helper(1),var(10)=0
trigger1 = var(58)=1
trigger1 = helper(1),var(6)=2
trigger1 = var(5):=11
trigger2 = helper(2),stateno=5150&&helper(2),var(10)=0
trigger2 = var(58)=2
trigger2 = helper(2),var(6)=2
trigger2 = var(5):=12
trigger3 = helper(3),stateno=5150&&helper(3),var(10)=0
trigger3 = var(58)=3
trigger3 = helper(3),var(6)=2
trigger3 = var(5):=13
trigger4 = helper(4),stateno=5150&&helper(4),var(10)=0
trigger4 = var(58)=4
trigger4 = helper(4),var(6)=2
trigger4 = var(5):=14
[State -1];
type = changestate
value = 1301
triggerall = var(59)=1 && roundstate=2
triggerall = var(0) = 1
triggerall = statetype!=A
triggerall = var(57) != 1
triggerall = var(57) = -1
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(1),stateno=5150&&helper(1),var(10)=0
trigger1 = var(58)=1
trigger1 = helper(1),var(6)=2
trigger1 = var(5):=11
trigger2 = helper(2),stateno=5150&&helper(2),var(10)=0
trigger2 = var(58)=2
trigger2 = helper(2),var(6)=2
trigger2 = var(5):=12
trigger3 = helper(3),stateno=5150&&helper(3),var(10)=0
trigger3 = var(58)=3
trigger3 = helper(3),var(6)=2
trigger3 = var(5):=13
trigger4 = helper(4),stateno=5150&&helper(4),var(10)=0
trigger4 = var(58)=4
trigger4 = helper(4),var(6)=2
trigger4 = var(5):=14

[State -1];
type = changestate
value = 1300
triggerall = var(59)=1 && roundstate=2
triggerall = var(0) = 2
triggerall = statetype!=A
triggerall = var(57) = 1
triggerall = var(57) != -1
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(5),stateno=5150&&helper(5),var(10)=0
trigger1 = var(58)=5
trigger1 = helper(5),var(6)=2
trigger1 = var(5):=15
trigger2 = helper(6),stateno=5150&&helper(6),var(10)=0
trigger2 = var(58)=6
trigger2 = helper(6),var(6)=2
trigger2 = var(5):=16
trigger3 = helper(7),stateno=5150&&helper(7),var(10)=0
trigger3 = var(58)=7
trigger3 = helper(7),var(6)=2
trigger3 = var(5):=17
trigger4 = helper(8),stateno=5150&&helper(8),var(10)=0
trigger4 = var(58)=8
trigger4 = helper(8),var(6)=2
trigger4 = var(5):=18
[State -1];
type = changestate
value = 1301
triggerall = var(59)=1 && roundstate=2
triggerall = var(0) = 2
triggerall = statetype!=A
triggerall = var(57) != 1
triggerall = var(57) = -1
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(5),stateno=5150&&helper(5),var(10)=0
trigger1 = var(58)=5
trigger1 = helper(5),var(6)=2
trigger1 = var(5):=15
trigger2 = helper(6),stateno=5150&&helper(6),var(10)=0
trigger2 = var(58)=6
trigger2 = helper(6),var(6)=2
trigger2 = var(5):=16
trigger3 = helper(7),stateno=5150&&helper(7),var(10)=0
trigger3 = var(58)=7
trigger3 = helper(7),var(6)=2
trigger3 = var(5):=17
trigger4 = helper(8),stateno=5150&&helper(8),var(10)=0
trigger4 = var(58)=8
trigger4 = helper(8),var(6)=2
trigger4 = var(5):=18



[State -1];
type = changestate
value = 1400
triggerall = var(59)=1 && roundstate=2
triggerall = var(0) = 1
triggerall = statetype!=A
triggerall = var(57) = 1
triggerall = var(57) != -1
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(1),stateno=5150&&helper(1),var(10)=0
trigger1 = var(58)=1
trigger1 = helper(1),var(6)=3||helper(1),var(6)=4
trigger1 = var(5):=11
trigger2 = helper(2),stateno=5150&&helper(2),var(10)=0
trigger2 = var(58)=2
trigger2 = helper(2),var(6)=3||helper(2),var(6)=4
trigger2 = var(5):=12
trigger3 = helper(3),stateno=5150&&helper(3),var(10)=0
trigger3 = var(58)=3
trigger3 = helper(3),var(6)=3||helper(3),var(6)=4
trigger3 = var(5):=13
trigger4 = helper(4),stateno=5150&&helper(4),var(10)=0
trigger4 = var(58)=4
trigger4 = helper(4),var(6)=3||helper(4),var(6)=4
trigger4 = var(5):=14
[State -1];
type = changestate
value = 1401
triggerall = var(59)=1 && roundstate=2
triggerall = var(0) = 1
triggerall = statetype!=A
triggerall = var(57) != 1
triggerall = var(57) = -1
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(1),stateno=5150&&helper(1),var(10)=0
trigger1 = var(58)=1
trigger1 = helper(1),var(6)=3||helper(1),var(6)=4
trigger1 = var(5):=11
trigger2 = helper(2),stateno=5150&&helper(2),var(10)=0
trigger2 = var(58)=2
trigger2 = helper(2),var(6)=3||helper(2),var(6)=4
trigger2 = var(5):=12
trigger3 = helper(3),stateno=5150&&helper(3),var(10)=0
trigger3 = var(58)=3
trigger3 = helper(3),var(6)=3||helper(3),var(6)=4
trigger3 = var(5):=13
trigger4 = helper(4),stateno=5150&&helper(4),var(10)=0
trigger4 = var(58)=4
trigger4 = helper(4),var(6)=3||helper(4),var(6)=4
trigger4 = var(5):=14

[State -1];
type = changestate
value = 1400
triggerall = var(59)=1 && roundstate=2
triggerall = var(0) = 2
triggerall = statetype!=A
triggerall = var(56) = 1||var(56) = -1
triggerall = var(57) = 1
triggerall = var(57) != -1
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(5),stateno=5150&&helper(5),var(10)=0
trigger1 = var(58)=5
trigger1 = helper(5),var(6)=3||helper(5),var(6)=4
trigger1 = var(5):=15
trigger2 = helper(6),stateno=5150&&helper(6),var(10)=0
trigger2 = var(58)=6
trigger2 = helper(6),var(6)=3||helper(6),var(6)=4
trigger2 = var(5):=16
trigger3 = helper(7),stateno=5150&&helper(7),var(10)=0
trigger3 = var(58)=7
trigger3 = helper(7),var(6)=3||helper(7),var(6)=4
trigger3 = var(5):=17
trigger4 = helper(8),stateno=5150&&helper(8),var(10)=0
trigger4 = var(58)=8
trigger4 = helper(8),var(6)=3||helper(8),var(6)=4
trigger4 = var(5):=18
[State -1];
type = changestate
value = 1401
triggerall = var(59)=1 && roundstate=2
triggerall = var(0) = 2
triggerall = statetype!=A
triggerall = var(56) = 1||var(56) = -1
triggerall = var(57) != 1
triggerall = var(57) = -1
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(5),stateno=5150&&helper(5),var(10)=0
trigger1 = var(58)=5
trigger1 = helper(5),var(6)=3||helper(5),var(6)=4
trigger1 = var(5):=15
trigger2 = helper(6),stateno=5150&&helper(6),var(10)=0
trigger2 = var(58)=6
trigger2 = helper(6),var(6)=3||helper(6),var(6)=4
trigger2 = var(5):=16
trigger3 = helper(7),stateno=5150&&helper(7),var(10)=0
trigger3 = var(58)=7
trigger3 = helper(7),var(6)=3||helper(7),var(6)=4
trigger3 = var(5):=17
trigger4 = helper(8),stateno=5150&&helper(8),var(10)=0
trigger4 = var(58)=8
trigger4 = helper(8),var(6)=3||helper(8),var(6)=4
trigger4 = var(5):=18



;---------------------------------------------------------------------------
;ルーク攻撃
;---------------------------------------------------------------------------
[State -1];
type = changestate
value = 1200
triggerall = var(59)=1 && roundstate=2
triggerall = var(0) = 3
triggerall = statetype!=A
triggerall = var(57) = 1
triggerall = var(57) != -1
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(9),stateno=5150&&helper(9),var(10)=0
trigger1 = var(58)=9
trigger1 = var(5):=1
trigger2 = helper(10),stateno=5150&&helper(10),var(10)=0
trigger2 = var(58)=10
trigger2 = var(5):=2
[State -1];
type = changestate
value = 1201
triggerall = var(59)=1 && roundstate=2
triggerall = var(0) = 3
triggerall = statetype!=A
triggerall = var(57) != 1
triggerall = var(57) = -1
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(9),stateno=5150&&helper(9),var(10)=0
trigger1 = var(58)=9
trigger1 = var(5):=1
trigger2 = helper(10),stateno=5150&&helper(10),var(10)=0
trigger2 = var(58)=10
trigger2 = var(5):=2


[State -1];
type = changestate
value = 1250
triggerall = var(59)=1 && roundstate=2
triggerall = stateno=[1200,1201]
triggerall = P2dist x = [0,100]
triggerall = helper(var(58)),pos Y <-80
trigger1 = helper(9),stateno=5150&&helper(9),var(10)=0
trigger1 = var(5)=1
trigger2 = helper(10),stateno=5150&&helper(10),var(10)=0
trigger2 = var(5)=2
trigger3 = helper(1),stateno=5150&&helper(1),var(10)=0
trigger3 = helper(1),var(6)=1
trigger3 = var(5)=11
trigger4 = helper(2),stateno=5150&&helper(2),var(10)=0
trigger4 = helper(2),var(6)=1
trigger4 = var(5)=12
trigger5 = helper(3),stateno=5150&&helper(3),var(10)=0
trigger5 = helper(3),var(6)=1
trigger5 = var(5)=13
trigger6 = helper(4),stateno=5150&&helper(4),var(10)=0
trigger6 = helper(4),var(6)=1
trigger6 = var(5)=14
trigger7 = helper(5),stateno=5150&&helper(5),var(10)=0
trigger7 = helper(5),var(6)=1
trigger7 = var(5)=15
trigger8 = helper(6),stateno=5150&&helper(6),var(10)=0
trigger8 = helper(6),var(6)=1
trigger8 = var(5)=16
trigger9 = helper(7),stateno=5150&&helper(7),var(10)=0
trigger9 = helper(7),var(6)=1
trigger9 = var(5)=17
trigger10 = helper(8),stateno=5150&&helper(8),var(10)=0
trigger10 = helper(8),var(6)=1
trigger10 = var(5)=18

;---------------------------------------------------------------------------
;ナイト攻撃
;---------------------------------------------------------------------------
[State -1];
type = changestate
value = 1300
triggerall = var(59)=1 && roundstate=2
triggerall = var(0) = 3
triggerall = statetype!=A
triggerall = var(57) = 1
triggerall = var(57) != -1
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(11),stateno=5150&&helper(11),var(10)=0
trigger1 = var(58)=11
trigger1 = var(5):=1
trigger2 = helper(12),stateno=5150&&helper(12),var(10)=0
trigger2 = var(58)=12
trigger2 = var(5):=2
[State -1];
type = changestate
value = 1301
triggerall = var(59)=1 && roundstate=2
triggerall = var(0) = 3
triggerall = statetype!=A
triggerall = var(57) != 1
triggerall = var(57) = -1
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(11),stateno=5150&&helper(11),var(10)=0
trigger1 = var(58)=11
trigger1 = var(5):=1
trigger2 = helper(12),stateno=5150&&helper(12),var(10)=0
trigger2 = var(58)=12
trigger2 = var(5):=2

;---------------------------------------------------------------------------
;ビショップ攻撃
;---------------------------------------------------------------------------
[State -1];
type = changestate
value = 1400
triggerall = var(59)=1 && roundstate=2
triggerall = var(0) = 4
triggerall = statetype!=A
triggerall = var(57) = 1
triggerall = var(57) != -1
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(13),stateno=5150&&helper(13),var(10)=0
trigger1 = var(58)=13
trigger1 = var(5):=1
trigger2 = helper(14),stateno=5150&&helper(14),var(10)=0
trigger2 = var(58)=14
trigger2 = var(5):=2
[State -1];
type = changestate
value = 1401
triggerall = var(59)=1 && roundstate=2
triggerall = var(0) = 4
triggerall = statetype!=A
triggerall = var(57) != 1
triggerall = var(57) = -1
triggerall = movecontact||ctrl||stateno=234||stateno=434||stateno=634||stateno=1202||stateno=1302||stateno=1402
trigger1 = helper(13),stateno=5150&&helper(13),var(10)=0
trigger1 = var(58)=13
trigger1 = var(5):=1
trigger2 = helper(14),stateno=5150&&helper(14),var(10)=0
trigger2 = var(58)=14
trigger2 = var(5):=2

[State -1];
type = changestate
value = 1100
triggerall = var(59)=1 && roundstate=2
triggerall = stateno=1400
triggerall = helper(var(58)),ParentDist X =[-60,60]
triggerall = helper(var(58)),ParentDist Y =[-60,60]
trigger1 = helper(13),stateno=5150&&helper(13),var(10)=0
trigger1 = var(5)=1
trigger2 = helper(14),stateno=5150&&helper(14),var(10)=0
trigger2 = var(5)=2
trigger3 = helper(1),stateno=5150&&helper(1),var(10)=0
trigger3 = helper(1),var(6)=3||helper(1),var(6)=4
trigger3 = var(5)=11
trigger4 = helper(2),stateno=5150&&helper(2),var(10)=0
trigger4 = helper(2),var(6)=3||helper(1),var(6)=4
trigger4 = var(5)=12
trigger5 = helper(3),stateno=5150&&helper(3),var(10)=0
trigger5 = helper(3),var(6)=3||helper(1),var(6)=4
trigger5 = var(5)=13
trigger6 = helper(4),stateno=5150&&helper(4),var(10)=0
trigger6 = helper(4),var(6)=3||helper(1),var(6)=4
trigger6 = var(5)=14
trigger7 = helper(5),stateno=5150&&helper(5),var(10)=0
trigger7 = helper(5),var(6)=3||helper(1),var(6)=4
trigger7 = var(5)=15
trigger8 = helper(6),stateno=5150&&helper(6),var(10)=0
trigger8 = helper(6),var(6)=3||helper(1),var(6)=4
trigger8 = var(5)=16
trigger9 = helper(7),stateno=5150&&helper(7),var(10)=0
trigger9 = helper(7),var(6)=3||helper(1),var(6)=4
trigger9 = var(5)=17
trigger10 = helper(8),stateno=5150&&helper(8),var(10)=0
trigger10 = helper(8),var(6)=3||helper(1),var(6)=4
trigger10 = var(5)=18
[State -1];
type = changestate
value = 1101
triggerall = var(59)=1 && roundstate=2
triggerall = stateno=1401
triggerall = helper(var(58)),ParentDist X =[-60,60]
triggerall = helper(var(58)),ParentDist Y =[-60,60]
trigger1 = helper(13),stateno=5150&&helper(13),var(10)=0
trigger1 = var(5)=1
trigger2 = helper(14),stateno=5150&&helper(14),var(10)=0
trigger2 = var(5)=2
trigger3 = helper(1),stateno=5150&&helper(1),var(10)=0
trigger3 = helper(1),var(6)=3||helper(1),var(6)=4
trigger3 = var(5)=11
trigger4 = helper(2),stateno=5150&&helper(2),var(10)=0
trigger4 = helper(2),var(6)=3||helper(1),var(6)=4
trigger4 = var(5)=12
trigger5 = helper(3),stateno=5150&&helper(3),var(10)=0
trigger5 = helper(3),var(6)=3||helper(1),var(6)=4
trigger5 = var(5)=13
trigger6 = helper(4),stateno=5150&&helper(4),var(10)=0
trigger6 = helper(4),var(6)=3||helper(1),var(6)=4
trigger6 = var(5)=14
trigger7 = helper(5),stateno=5150&&helper(5),var(10)=0
trigger7 = helper(5),var(6)=3||helper(1),var(6)=4
trigger7 = var(5)=15
trigger8 = helper(6),stateno=5150&&helper(6),var(10)=0
trigger8 = helper(6),var(6)=3||helper(1),var(6)=4
trigger8 = var(5)=16
trigger9 = helper(7),stateno=5150&&helper(7),var(10)=0
trigger9 = helper(7),var(6)=3||helper(1),var(6)=4
trigger9 = var(5)=17
trigger10 = helper(8),stateno=5150&&helper(8),var(10)=0
trigger10 = helper(8),var(6)=3||helper(1),var(6)=4
trigger10 = var(5)=18


[State ];コントロール
type = VarSet
triggerall =!Ishelper
trigger1 = var(0)<0
var(0) = 0
ignorehitpause=1
[State ];コントロール
type = VarSet
triggerall =!Ishelper
trigger1 = var(0)>4
var(0) = 0
ignorehitpause=1
