[Command]
name = "THEENDISNEARBlack"
command = ~x, x, F, a, b
time = 70

[Command]
name = "THEENDISNEARWhite"
command = ~D,F,D,F, b+c
time = 40

[Command]
name = "WilsonAttacks"
command = ~D,F,D,F, y+z
time = 40

[Command]
name = "armageddon"
command = ~D,F,D,F, x+z
time = 40

[Command]
name = "Bus"
command = x+y
time = 40

[Command]
name = "WORLD"
command = y+z
time = 40

[Command]
name = "S.DIO"
command = a;x+z
time = 40

[Command]
name = "HOMER"
command = b;x+z
time = 40

[Command]
name = "CROW"
command = c
time = 40

[Command]
name = "Mind"
command = a+y
time = 20

[Command]
name = "NOT AGAIN"
command = a+b
time = 20

[Command]
name = "abomb"
command = c+z
time = 20

[Command]
name = "Hooch"
command = b+y

[Command]
name = "hcb2k"
command = a+x

[Command]
name = "LightSky"
command = a+c

[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 = "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 = "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, TEIN]
type = ChangeState
value = 1915
triggerall = command = "THEENDISNEARBlack"
triggerall = power >= 9000
trigger1 = statetype = S
trigger1 = ctrl

[State -1, TEIN]
type = ChangeState
value = 1900
triggerall = command = "THEENDISNEARWhite"
triggerall = power >= 6000
trigger1 = statetype = S
trigger1 = ctrl

[State -1, TEIN]
type = ChangeState
value = 1960
triggerall = command = "WilsonAttacks"
triggerall = numhelper(1966) = 0
triggerall = power >= 5000
trigger1 = statetype = S
trigger1 = ctrl

[State -1, TEIN]
type = ChangeState
value = 1100
triggerall = command = "armageddon"
triggerall = power >= 4000
triggerall = numhelper(1100) = 0
trigger1 = statetype = S
trigger1 = ctrl

[State -1, Hooch]
type = ChangeState
value = 1000
triggerall = command = "Hooch"
triggerall = power >= 2000
trigger1 = statetype = S
trigger1 = ctrl

[State -1, Run Fwd]
type = ChangeState
value = 100
trigger1 = command = "FF"
trigger1 = statetype = S
trigger1 = ctrl

[State -1, Run Back]
type = ChangeState
value = 105
trigger1 = command = "BB"
trigger1 = statetype = S
trigger1 = ctrl

[State -1, Big]
type = ChangeState
value = 200
triggerall = command = "x"
triggerall = NumHelper(201) < 1
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = statetype = C
trigger2 = ctrl

[State -1, Big Air]
type = ChangeState
value = 203
triggerall = command = "x"
triggerall = NumHelper(201) < 1
trigger1 = statetype = A
trigger1 = ctrl

[State -1, The Green Mile]
type = ChangeState
value = 205
triggerall = command = "y"
triggerall = NumHelper(206) < 1
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = statetype = C
trigger2 = ctrl

[State -1, The Green Mile Air]
type = ChangeState
value = 207
triggerall = command = "y"
triggerall = NumHelper(206) < 1
trigger1 = statetype = A
trigger1 = ctrl

[State -1, Forest Gump]
type = ChangeState
value = 210
triggerall = command = "z"
triggerall = NumHelper(211) < 1
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = statetype = C
trigger2 = ctrl

[State -1, Forest Gump Air]
type = ChangeState
value = 212
triggerall = command = "z"
triggerall = NumHelper(211) < 1
trigger1 = statetype = A
trigger1 = ctrl

[State -1, Sleepless in Seattle]
type = ChangeState
value = 215
triggerall = command = "a"
triggerall = command = "holddown"
triggerall = NumHelper(216) < 1
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = statetype = C
trigger2 = ctrl

[State -1, Sleepless in Seattle Air]
type = ChangeState
value = 217
triggerall = command = "a"
triggerall = command = "holddown"
triggerall = NumHelper(216) < 1
trigger1 = statetype = A
trigger1 = ctrl

[State -1, Cast Away]
type = ChangeState
value = 220
triggerall = command = "b"
triggerall = command = "holddown"
triggerall = NumHelper(221) < 1
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = statetype = C
trigger2 = ctrl

[State -1, Cast Away Air]
type = ChangeState
value = 222
triggerall = command = "b"
triggerall = command = "holddown"
triggerall = NumHelper(221) < 1
trigger1 = statetype = A
trigger1 = ctrl

[State -1, Saving Private Ryan]
type = ChangeState
value = 225
triggerall = command = "c"
triggerall = command = "holddown"
triggerall = NumHelper(226) < 1
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = statetype = C
trigger2 = ctrl

[State -1, Saving Private Ryan Air]
type = ChangeState
value = 227
triggerall = command = "c"
triggerall = command = "holddown"
triggerall = NumHelper(226) < 1
trigger1 = statetype = A
trigger1 = ctrl

;---------------------------------------------------------------------------
;立ち弱パンチ
[State -1, Bus of doom]
type = ChangeState
value = 2000
triggerall = numhelper(2000) = 0
triggerall = power >= 1000
triggerall = command = "Bus"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 = movecontact
;---------------------------------------------------------------------------
;ローラーだッ！
[State -1]
type = ChangeState
value = 3100
triggerall = numhelper(3015) = 0
triggerall = numhelper(3000) = 0
triggerall = numhelper(3100) = 0
triggerall = command = "start"
triggerall = power >= 1000
trigger1 = statetype = S
trigger1 = ctrl
;---------------------------------------------------------------------------
;THE WORLD
[State -1]
type = ChangeState
value = 1400
triggerall = numhelper(250) = 0
triggerall = command = "WORLD"
triggerall = power >= 1000
trigger1 = statetype = S
trigger1 = ctrl

;S.DIO
[State -1]
type = ChangeState
value = 6000
triggerall = numhelper(6001) = 0
triggerall = command = "S.DIO"
;triggerall = power >= 1000
trigger1 = statetype = S
trigger1 = ctrl

;SmackSmack
[State -1, Stand Light Punch]
type = ChangeState
value = 2600
triggerall = command = "Mind"
triggerall = power >= 3000
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = [200,499]
trigger2 = movecontact
trigger3 = stateno = 800
trigger3 = movecontact
trigger4 = stateno = 840
trigger4 = time >= 14

;---------------------------------------------------------------------------
[State -1, Grenade]
type = ChangeState
value = 1789
triggerall = command = "abomb"
triggerall = power >= 1500
triggerall = numhelper(1401) = 0
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200 || stateno = 210
trigger2 = movecontact

[State -1, misogi]
type=changestate
value=4100
triggerall = command = "hcb2k"
triggerall = power >= 3000
triggerall = palno = 12
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200 || stateno = 210
trigger2 = movecontact

[State -1, LightSky]
type = ChangeState
value = 3500
triggerall = command = "LightSky"
triggerall = numhelper(3910) = 0
triggerall = power >= 7000
triggerall = palno = 12 ;Because this move is so OP, I changed it.
trigger1 = statetype = S
trigger1 = ctrl

[State -1, HERE WE GO]
type = ChangeState
value = 3400
triggerall = command = "NOT AGAIN"
triggerall = numhelper(3405) = 0
triggerall = power >= 2000
trigger1 = statetype = S
trigger1 = ctrl

[State -1, HOMER]
type = ChangeState
value = 6789
triggerall = command = "HOMER"
triggerall = numhelper(6789) = 0
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
; CROW Striker
[State -1]
type = ChangeState
value = 6010
triggerall = NumHelper(6011) = 0
triggerall = P2Name != "Crow"
triggerall = P4Name != "Crow"
trigger1 = command = "CROW"
trigger1 = statetype != A
trigger1 = ctrl = 1
