[Remap]
x = x
y = y
z = z
a = a
b = b
c = c
s = s

[Defaults]
command.time = 20
command.buffer.time = 1

;-| 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
;-| Special and Super |--------------------------------------------------------

[Command]
name = "world1"
command = ~D,DF,F,a
time = 25

[Command]
name = "world2"
command = ~D,DF,F,b
time = 25

[Command]
name = "world3"
command = ~D,DB,B,a
time = 25

[Command]
name = "world4"
command =  ~D,DB,B,b
time = 25

[Command]
name = "world5"
command =  ~D,DB,B,c
time = 25

[Command]
name = "world6"
command =  ~D,DB,B,z
time = 25

[Command]
name = "world7"
command =  ~F,B,z
time = 25

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

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

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

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

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

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

[Command]
name = "world14"
command = ~F,D,b

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

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

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

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

[Command]
name = "BR"
command = ~a,b,F,a

[Command]
name = "BR"
command = ~a,b,B,a

[Command]
name = "grab"
command = ~a+b

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

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

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

[Command]
name = "dead4"
command = ~F,D,b

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

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

[Command]
name = "dead7"
command = ~F,D,a

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

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

[Command]
name = "dead10"
command = ~F,B,a

[Command]
name = "dead11"
command = ~F,B,b

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

[Command]
name = "dead13"
command = ~F,B,z
;-| キー２回連続入力 |---------------------------------------------------------

[Command]
name = "FF"       ;必須コマンド名
command = F, F
time = 10

[Command]
name = "BB"       ;必須コマンド名
command = B, B
time = 10

;-| 同時押し |-----------------------------------------------------------------

[Command]
name = "recovery" ;必須コマンド名
command = x+y
time = 1

;-| 方向キー＋ボタン |---------------------------------------------------------

[Command]
name = "down_a"
command = /$D,a
time = 1

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

;-| ボタン単発 |---------------------------------------------------------------

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

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

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

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

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

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

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


[Command]
name = "holda"
command = /a
time = 1

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

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

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

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

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

[Command]
name = "holdstart"
command = /s
time = 1

[Command]
name = "holdfwd"
command = /$F
time = 1

[Command]
name = "holdback"
command = /$B
time = 1

[Command]
name = "holdup"
command = /$U
time = 1

[Command]
name = "holddown"
command = /$D
time = 1

[Command]
name = "a2"
command = a
time = 1

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

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

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

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

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

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

[Command]
name = "holdfwd2"
command = /$F
time = 1

[Command]
name = "holdback2"
command = /$B
time = 1

[Command]
name = "holdup2"
command = /$U
time = 1

[Command]
name = "holddown2"
command = /$D
time = 1

[Command]
name = "holda2"
command = /a
time = 1

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

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

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

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

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

[Command]
name = "holdstart2"
command = /s
time = 1

[Command]
name = "recovery2"
command = x+y
time = 1

;-| 方向キー |-----------------------------------------------------------------

[Command]
name = "holdfwd"   ;必須コマンド名
command = /$F
time = 1

[Command]
name = "holdback"  ;必須コマンド名
command = /$B
time = 1

[Command]
name = "holdup"    ;必須コマンド名
command = /$U
time = 1

[Command]
name = "holddown"  ;必須コマンド名
command = /$D
time = 1

;------------------------------------------------------------------------------
[Statedef -1]

[State -1]
type = null;ChangeState
trigger1 = IsHelper(9741)
value = 9741

[State -1]
type = null;ChangeState
trigger1 = IsHelper(9742)
value = 9742

[State -1]
type = ChangeState
value = 6060
triggerall = !var(59)
triggerall = command = "dead9"
triggerall = !numhelper(7009)
triggerall = power >= 1500 && (stateno != [6050,6099])
trigger1 = statetype != A && ctrl
trigger2 = ((stateno = [6053,6054]) || stateno = 6002) && movecontact
trigger3 = stateno = 200
trigger3 = movecontact
trigger4 = stateno = 210
trigger4 = movecontact
trigger5 = stateno = 220
trigger5 = movecontact
trigger6 = stateno = 230
trigger6 = movecontact
trigger7 = stateno = 240
trigger7 = movecontact

[State -1]
type = ChangeState
value = 1002
triggerall = !var(59)
triggerall = command = "world14"
triggerall = power >= 1000
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 = movecontact
trigger3 = stateno = 210
trigger3 = movecontact
trigger4 = stateno = 220
trigger4 = movecontact
trigger5 = stateno = 230
trigger5 = movecontact
trigger6 = stateno = 240
trigger6 = movecontact

[State -1]
type = ChangeState
value = 10000
triggerall = !var(59)
triggerall = command = "world15"
triggerall = power >= 3000
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 = movecontact
trigger3 = stateno = 210
trigger3 = movecontact
trigger4 = stateno = 220
trigger4 = movecontact
trigger5 = stateno = 230
trigger5 = movecontact
trigger6 = stateno = 240
trigger6 = movecontact

[State -1]
type = ChangeState
value = 10000
triggerall = !var(59)
triggerall = command = "world16"
triggerall = power >= 3000
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 = movecontact
trigger3 = stateno = 210
trigger3 = movecontact
trigger4 = stateno = 220
trigger4 = movecontact
trigger5 = stateno = 230
trigger5 = movecontact
trigger6 = stateno = 240
trigger6 = movecontact

[State -1]
type = ChangeState
value = 220000
triggerall = !var(59)
triggerall = command = "world17"
triggerall = power >= 3000
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 = movecontact
trigger3 = stateno = 210
trigger3 = movecontact
trigger4 = stateno = 220
trigger4 = movecontact
trigger5 = stateno = 230
trigger5 = movecontact
trigger6 = stateno = 240
trigger6 = movecontact

[State -1]
type = ChangeState
value = 220000
triggerall = !var(59)
triggerall = command = "world18"
triggerall = power >= 3000
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 = movecontact
trigger3 = stateno = 210
trigger3 = movecontact
trigger4 = stateno = 220
trigger4 = movecontact
trigger5 = stateno = 230
trigger5 = movecontact
trigger6 = stateno = 240
trigger6 = movecontact

[State -1]
type = ChangeState
value = 9006
triggerall = !var(59)
triggerall = command = "BR"
triggerall = NumHelper(9007) = 0
triggerall = power >= 2000
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 = movecontact
trigger3 = stateno = 210
trigger3 = movecontact
trigger4 = stateno = 220
trigger4 = movecontact
trigger5 = stateno = 230
trigger5 = movecontact
trigger6 = stateno = 240
trigger6 = movecontact

[State -1]
type = ChangeState
value = 8500
triggerall = !var(59)
triggerall = command = "dead12"
triggerall = NumHelper(8501) = 0
triggerall = power >= 2000
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 = movecontact
trigger3 = stateno = 210
trigger3 = movecontact
trigger4 = stateno = 220
trigger4 = movecontact
trigger5 = stateno = 230
trigger5 = movecontact
trigger6 = stateno = 240
trigger6 = movecontact

[State -1]
type = ChangeState
value = 9000
triggerall = !var(59)
triggerall = command = "dead13"
triggerall = NumHelper(9001) = 0
triggerall = power >= 4000
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 = movecontact
trigger3 = stateno = 210
trigger3 = movecontact
trigger4 = stateno = 220
trigger4 = movecontact
trigger5 = stateno = 230
trigger5 = movecontact
trigger6 = stateno = 240
trigger6 = movecontact

[State -1]
type = ChangeState
value = 1000
triggerall = !var(59)
triggerall = command = "world1"
triggerall = statetype != A
triggerall = ctrl
trigger1 = EnemyNear,HitDefAttr = SCA,AA,AP,AT

[State -1]
type = ChangeState
value = 1010
triggerall = !var(59)
triggerall = command = "world2"
triggerall = ctrl && statetype != A
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 = movecontact
trigger3 = stateno = 210
trigger3 = movecontact
trigger4 = stateno = 220
trigger4 = movecontact
trigger5 = stateno = 230
trigger5 = movecontact
trigger6 = stateno = 240
trigger6 = movecontact

[State -1]
type = ChangeState
value = 1012
triggerall = !var(59)
triggerall = command = "world3"
triggerall = ctrl && statetype != A
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 = movecontact
trigger3 = stateno = 210
trigger3 = movecontact
trigger4 = stateno = 220
trigger4 = movecontact
trigger5 = stateno = 230
trigger5 = movecontact
trigger6 = stateno = 240
trigger6 = movecontact

[State -1]
type = ChangeState
value = 1100
triggerall = !var(59)
triggerall = command = "world4"
triggerall = Numprojid(1000) = 0
triggerall = p2stateno != 1105
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 = movecontact
trigger3 = stateno = 210
trigger3 = movecontact
trigger4 = stateno = 220
trigger4 = movecontact
trigger5 = stateno = 230
trigger5 = movecontact
trigger6 = stateno = 240
trigger6 = movecontact

[State -1]
type = ChangeState
value = 1113
triggerall = !var(59)
triggerall = command = "world5"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 = movecontact
trigger3 = stateno = 210
trigger3 = movecontact
trigger4 = stateno = 220
trigger4 = movecontact
trigger5 = stateno = 230
trigger5 = movecontact
trigger6 = stateno = 240
trigger6 = movecontact

[State -1]
type = ChangeState
value = 1005
triggerall = !var(59)
triggerall = command = "world6"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 = movecontact
trigger3 = stateno = 210
trigger3 = movecontact
trigger4 = stateno = 220
trigger4 = movecontact
trigger5 = stateno = 230
trigger5 = movecontact
trigger6 = stateno = 240
trigger6 = movecontact

[State -1]
type = ChangeState
value = 1085
triggerall = !var(59)
triggerall = command = "world7"
trigger1 = ctrl && statetype != A
trigger2 = stateno = 200
trigger2 = movecontact
trigger3 = stateno = 210
trigger3 = movecontact
trigger4 = stateno = 220
trigger4 = movecontact
trigger5 = stateno = 230
trigger5 = movecontact
trigger6 = stateno = 240
trigger6 = movecontact

[State -1]
type = ChangeState
value = 1200
triggerall = !var(59)
triggerall = command = "world9"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 = movecontact
trigger3 = stateno = 210
trigger3 = movecontact
trigger4 = stateno = 220
trigger4 = movecontact
trigger5 = stateno = 230
trigger5 = movecontact
trigger6 = stateno = 240
trigger6 = movecontact

[State -1]
type = ChangeState
value = 1300
triggerall = !var(59)
triggerall = command = "world10"
triggerall = power >= 500
triggerall = ctrl && statetype != A
triggerall = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 = movecontact
trigger3 = stateno = 210
trigger3 = movecontact
trigger4 = stateno = 220
trigger4 = movecontact
trigger5 = stateno = 230
trigger5 = movecontact
trigger6 = stateno = 240
trigger6 = movecontact

[State -1]
type = ChangeState
value = 6001
triggerall = !var(59)
triggerall = command = "world11"
triggerall = !numhelper(7002)
triggerall = (stateno != [6000,6099]) && (p2bodydist y <= -20) && !pos y
trigger1 = statetype != A && ctrl
;trigger2 = ((stateno = [230,240]) || stateno = 6002) && movecontact
trigger2 = stateno = 200
trigger2 = movecontact
trigger3 = stateno = 210
trigger3 = movecontact
trigger4 = stateno = 220
trigger4 = movecontact
trigger5 = stateno = 230
trigger5 = movecontact
trigger6 = stateno = 240
trigger6 = movecontact

[State -1]
type = ChangeState
value = 6002
triggerall = !var(59)
triggerall = command = "world12"
triggerall = numtarget && (stateno != [6000,6099])
trigger1 = statetype != A && ctrl
;trigger2 = (stateno = [230,240]) && movecontact
trigger2 = stateno = 200
trigger2 = movecontact
trigger3 = stateno = 210
trigger3 = movecontact
trigger4 = stateno = 220
trigger4 = movecontact
trigger5 = stateno = 230
trigger5 = movecontact
trigger6 = stateno = 240
trigger6 = movecontact

[State -1]
type = ChangeState
value = 8300
triggerall = !var(59)
triggerall = command = "world8"
triggerall = numhelper(8400) = 0
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 = movecontact
trigger3 = stateno = 210
trigger3 = movecontact
trigger4 = stateno = 220
trigger4 = movecontact
trigger5 = stateno = 230
trigger5 = movecontact
trigger6 = stateno = 240
trigger6 = movecontact

[State -1]
type = ChangeState
value = 6003
triggerall = var(59) = 1
triggerall = time <= 1
triggerall = palno != [6,12]
trigger1 = stateno = 150 || stateno = 151 || stateno = 152 || stateno = 153 || stateno = 154 || stateno = 155 || stateno = 5000 || stateno = 5010 || stateno = 5020 || stateno = 5070
trigger2 = stateno = 8000
ignorehitpause = 1

[State -1]
type = ChangeState
value = 6004
triggerall = !var(59)
triggerall = command = "dead1"
triggerall = (stateno != [6000,6099])
trigger1 = statetype = A && ctrl
trigger2 = (stateno = [250,270]) && movecontact

[State -1]
type = ChangeState
value = 6005
triggerall = !var(59)
triggerall = command = "dead2"
triggerall = (stateno != [6000,6099])
trigger1 = ctrl
;trigger2 = (stateno = [200,230]) && movecontact
trigger2 = stateno = 200
trigger2 = movecontact
trigger3 = stateno = 210
trigger3 = movecontact
trigger4 = stateno = 220
trigger4 = movecontact
trigger5 = stateno = 230
trigger5 = movecontact
trigger6 = stateno = 240
trigger6 = movecontact

[State -1]
type = ChangeState
triggerall = !var(59)
value = ifelse(power >= 500,6009,6000)
triggerall = command = "dead4"
triggerall = !numhelper(7000)
triggerall = (stateno != [6000,6099]) && !pos y
trigger1 = statetype != A && ctrl
;trigger2 = (stateno = [230,240]) && movecontact
trigger2 = stateno = 200
trigger2 = movecontact
trigger3 = stateno = 210
trigger3 = movecontact
trigger4 = stateno = 220
trigger4 = movecontact
trigger5 = stateno = 230
trigger5 = movecontact
trigger6 = stateno = 240
trigger6 = movecontact

[State -1]
type = ChangeState
value = 6050
triggerall = !var(59)
triggerall = command = "dead3"
triggerall = !numhelper(7004)
triggerall = power >= 500 && !pos y && (stateno != [6050,6099])
trigger1 = statetype != A && ctrl
;trigger2 = ((stateno = [230,240]) || stateno = 6004) && movecontact
trigger2 = stateno = 200
trigger2 = movecontact
trigger3 = stateno = 210
trigger3 = movecontact
trigger4 = stateno = 220
trigger4 = movecontact
trigger5 = stateno = 230
trigger5 = movecontact
trigger6 = stateno = 240
trigger6 = movecontact

[State -1]
type = ChangeState
value = 6051
triggerall = !var(59)
triggerall = command = "dead5"
triggerall = !numhelper(7005)
triggerall = power >= 500 && !pos y && (stateno != [6050,6099])
trigger1 = statetype != A && ctrl
;trigger2 = ((stateno = [230,240]) || stateno = 6002) && movecontact
trigger2 = stateno = 200
trigger2 = movecontact
trigger3 = stateno = 210
trigger3 = movecontact
trigger4 = stateno = 220
trigger4 = movecontact
trigger5 = stateno = 230
trigger5 = movecontact
trigger6 = stateno = 240
trigger6 = movecontact

[State -1]
type = ChangeState
value = 6052
triggerall = !var(59)
triggerall = command = "dead6"
triggerall = !numhelper(7007)
triggerall = power >= 500
triggerall = ctrl && statetype != A
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 = movecontact
trigger3 = stateno = 210
trigger3 = movecontact
trigger4 = stateno = 220
trigger4 = movecontact
trigger5 = stateno = 230
trigger5 = movecontact
trigger6 = stateno = 240
trigger6 = movecontact

[State -1]
type = ChangeState
value = 6053
triggerall = !var(59)
triggerall = command = "dead7"
triggerall = !numhelper(7009)
triggerall = power >= 500 && (stateno != [6050,6099])
trigger1 = statetype != A && ctrl
;trigger2 = ((stateno = [230,240]) || stateno = 6002) && movecontact
trigger2 = stateno = 200
trigger2 = movecontact
trigger3 = stateno = 210
trigger3 = movecontact
trigger4 = stateno = 220
trigger4 = movecontact
trigger5 = stateno = 230
trigger5 = movecontact
trigger6 = stateno = 240
trigger6 = movecontact

[State -1]
type = ChangeState
value = 6054
triggerall = !var(59)
triggerall = command = "dead8"
triggerall = !numhelper(7010)
triggerall = power >= 500 && !pos y && (stateno != [6050,6099])
trigger1 = statetype != A && ctrl
;trigger2 = ((stateno = [230,240]) || stateno = 6002) && movecontact
trigger2 = stateno = 200
trigger2 = movecontact
trigger3 = stateno = 210
trigger3 = movecontact
trigger4 = stateno = 220
trigger4 = movecontact
trigger5 = stateno = 230
trigger5 = movecontact
trigger6 = stateno = 240
trigger6 = movecontact

[State -1]
type = ChangeState
value = 8001
triggerall = !var(59)
triggerall = command = "dead10"
triggerall = enemynear,alive != 0
trigger1 = statetype = S && ctrl
trigger2 = stateno = 200
trigger2 = movecontact
trigger3 = stateno = 210
trigger3 = movecontact
trigger4 = stateno = 220
trigger4 = movecontact
trigger5 = stateno = 230
trigger5 = movecontact
trigger6 = stateno = 240
trigger6 = movecontact

[State -1]
type = ChangeState
value = 8002
triggerall = !var(59)
triggerall = command = "dead11"
triggerall = stateno != 8002 && movecontact
trigger1 = statetype != A && ctrl
trigger2 = stateno = 200
trigger2 = movecontact
trigger3 = stateno = 210
trigger3 = movecontact
trigger4 = stateno = 220
trigger4 = movecontact
trigger5 = stateno = 230
trigger5 = movecontact
trigger6 = stateno = 240
trigger6 = movecontact

[State -1]
type = ChangeState
value = 100
triggerall = !var(59)
triggerall = command = "FF"
trigger1 = statetype = S && ctrl
trigger2 = stateno = 200
trigger2 = movecontact
trigger3 = stateno = 210
trigger3 = movecontact
trigger4 = stateno = 220
trigger4 = movecontact
trigger5 = stateno = 230
trigger5 = movecontact
trigger6 = stateno = 240
trigger6 = movecontact

[State -1]
type = ChangeState
value = 105
triggerall = !var(59)
triggerall = command = "BB"
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 = movecontact
trigger3 = stateno = 210
trigger3 = movecontact
trigger4 = stateno = 220
trigger4 = movecontact
trigger5 = stateno = 230
trigger5 = movecontact
trigger6 = stateno = 240
trigger6 = movecontact

[State -1]
type = ChangeState
value = 200
triggerall = !var(59)
triggerall = command = "x"
triggerall = p2movetype != A
trigger1 = statetype != A && ctrl
;trigger2 = (stateno = 210) && movecontact
trigger2 = stateno = 200
trigger2 = movecontact
trigger3 = stateno = 210
trigger3 = movecontact
trigger4 = stateno = 220
trigger4 = movecontact
trigger5 = stateno = 230
trigger5 = movecontact
trigger6 = stateno = 240
trigger6 = movecontact

[State -1]
type = ChangeState
value = 210
triggerall = !var(59)
triggerall = command = "y"
triggerall = p2movetype != A
trigger1 = statetype != A && ctrl
;trigger2 = (stateno = 220) && movecontact
trigger2 = stateno = 200
trigger2 = movecontact
trigger3 = stateno = 210
trigger3 = movecontact
trigger4 = stateno = 220
trigger4 = movecontact
trigger5 = stateno = 230
trigger5 = movecontact
trigger6 = stateno = 240
trigger6 = movecontact

[State -1]
type = ChangeState
value = 220
triggerall = !var(59)
triggerall = command = "z"
triggerall = p2movetype != A
trigger1 = statetype != A && ctrl
;trigger2 = (stateno = 230) && movecontact
trigger2 = stateno = 200
trigger2 = movecontact
trigger3 = stateno = 210
trigger3 = movecontact
trigger4 = stateno = 220
trigger4 = movecontact
trigger5 = stateno = 230
trigger5 = movecontact
trigger6 = stateno = 240
trigger6 = movecontact

[State -1]
type = ChangeState
value = 230
triggerall = !var(59)
triggerall = command = "a"
triggerall = p2movetype != A
trigger1 = statetype != A && ctrl
;trigger2 = (stateno = 220 && !animtime && p2statetype != A)
trigger2 = stateno = 200
trigger2 = movecontact
trigger3 = stateno = 210
trigger3 = movecontact
trigger4 = stateno = 220
trigger4 = movecontact
trigger5 = stateno = 230
trigger5 = movecontact
trigger6 = stateno = 240
trigger6 = movecontact

[State -1]
type = ChangeState
value = 240
triggerall = !var(59)
triggerall = command = "b"
trigger1 = statetype != A && ctrl
;trigger2 = (stateno = [220,230]) &&  p2bodydist X <= 45
trigger2 = stateno = 200
trigger2 = movecontact
trigger3 = stateno = 210
trigger3 = movecontact
trigger4 = stateno = 220
trigger4 = movecontact
trigger5 = stateno = 230
trigger5 = movecontact
trigger6 = stateno = 240
trigger6 = movecontact

[State -1]
type = ChangeState
value = 250
triggerall = !var(59)
triggerall = command = "x"
trigger1 = statetype = A && ctrl
trigger2 = stateno = 100
trigger3 = (stateno = [250,270]) && movecontact

[State -1]
type = ChangeState
value = 260
triggerall = !var(59)
triggerall = command = "y"
trigger1 = statetype = A && ctrl
trigger2 = stateno = 250 && movecontact
trigger3 = (stateno = [250,270]) && movecontact

[State -1]
type = ChangeState
value = 270
triggerall = !var(59)
triggerall = command = "a"
trigger1 = statetype = A && ctrl
trigger2 = (stateno = 280) && movecontact 
trigger3 = (stateno = [250,270]) && movecontact

[State -1]
type = ChangeState
value = 280
triggerall = !var(59)
triggerall = command = "b"
trigger1 = statetype = A && ctrl
trigger2 = stateno = 260 && movecontact
trigger3 = (stateno = [250,270]) && movecontact

[State -1,]
type = ChangeState
value = 800
triggerall = !var(59)
triggerall = command = "grab"
triggerall = statetype = S
triggerall = ctrl
triggerall = stateno != 100
trigger1 = command = "holdfwd"
trigger1 = p2bodydist X < 10
trigger1 = (p2statetype = S) || (p2statetype = C)
trigger1 = p2movetype != H
trigger2 = command = "holdback"
trigger2 = p2bodydist X < 10
trigger2 = (p2statetype = S) || (p2statetype = C)
trigger2 = p2movetype != H

[State -1]
type = ChangeState
value = 20000
triggerall = !var(59)
triggerall = !numhelper(2000)
triggerall = command = "c"
trigger1 = statetype != A && ctrl
;trigger2 = (stateno = [220,230]) &&  p2bodydist X <= 45
trigger2 = stateno = 200
trigger2 = movecontact
trigger3 = stateno = 210
trigger3 = movecontact
trigger4 = stateno = 220
trigger4 = movecontact
trigger5 = stateno = 230
trigger5 = movecontact
trigger6 = stateno = 240
trigger6 = movecontact
