;==========[Helpers for Trial Mode]==============================
;Initiate
[Statedef 20000]
type = S
movetype = I
anim = 9997
sprpriority = 5

[State 3510, 4]
type = explod
trigger1 = time%20=0
anim = 20000
pos = 10,50
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 10
ID = 20000
ontop = 1
scale = .5,.5

[State 0, 1]
type = RemoveExplod
trigger1 = roundstate = 2 || parent, command = "start"
ID = 20000

[State 7001, 2]
type = DestroySelf
trigger1 = roundstate = 2 

[State 7001, 2]
type = ChangeState
trigger1 = parent, command = "start"
value = 20001

[State 181, 1]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1

;Skill Select
[Statedef 20001]
type = S
movetype = I
sprpriority = 5

[State 5900, 3] ;Change palette
type = RemapPal
trigger1 = 1
source = 6,1
dest = 6, 1+var(0)

[State NO OVERSOUL FOR YOU]
type = ParentVarSet
trigger1 = !time
var(55) = 0


[State 0, 1]
type = VarSet
trigger1 = !time
var(0) = 0

[State 0, 1]
type = VarSet
trigger1 = !time
var(5) = 0

[State 0, 1]
type = AssertSpecial
trigger1 = 1
flag = Intro
flag2 = NoBarDisplay

[State 0, ]
type = SuperPause
trigger1 = roundstate = 2
time = 2
movetime = 2
anim = -1
darken = 0
ignorehitpause = 0
persistent = 1

[State 3510, 4]
type = explod
trigger1 = !time
anim = 20001
pos = 10,30
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = -1
ID = 8000
ontop = 1
scale = .5,.5

[State 3510, 4]
type = explod
trigger1 = 1
anim = 20002+var(0)
pos = 160,ifelse(parent, var(18),70,100)
postype = left
sprpriority = -10
supermove = 1
bindtime = 50
removetime = 1
vel = 0,0
ID = 9994
ontop = 1
scale = .5,.5

[State 3510, 4]
type = explod
trigger1 = 1
anim = 20015
pos = 160,ifelse(parent, var(18),144,204)
postype = left
sprpriority = 3
supermove = 1
bindtime = 50
removetime = 1
vel = 0,0
ID = 9994
ontop = 1
scale = .5,.5

[State 3510, 4]
type = explod
trigger1 = 1
anim = 20006+var(0)
pos = 160,ifelse(parent, var(18),144,204)
postype = left
sprpriority = -10
supermove = 1
bindtime = 50
removetime = 1
vel = 0,0
ID = 9994
ontop = 1
scale = .5,.5

[State -2, Reset]
type = VarSet
trigger1 = parent, command = "down"
v = 0
value = ifelse(Var(0)=3,0,var(0)+1)

[State -2, Reset]
type = VarSet
trigger1 = parent, command = "up"
v = 0
value = ifelse(Var(0)=0,3,var(0)-1)

[State -2, Groove Select]
type = PlaySnd
trigger1 = parent, Command = "up"
trigger2 = parent, Command = "down"
value = 60,0
channel = 7


[State -2, Groove Select]
type = PlaySnd
triggerall = time > 60
trigger1 = time = 400 || parent, command = "start"
value = 60,1
channel = 7

[State 0, 1]
type = RemoveExplod
triggerall = time > 60
trigger1 = time = 400 || parent, command = "start"
ID = 8000

[State 7001, 2]
type = ChangeState
triggerall = time > 60
trigger1 = time > 400 || parent, command = "start"
value = 20100+(var(0)*100)

[State 181, 1]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1

;Success!
[Statedef 20005]
type    = A
movetype= I
physics = N
anim = 9997
velset = 0,0
ctrl = 0

[State -2, Groove Select]
type = PlaySnd
trigger1 = !time 
value = 65,3
channel = 7

[State 0, 1]
type = BGPalFX
trigger1 = !time
time = 20
sinadd = -150,-150,-150,80
ignorehitpause = 1

[State 0, 1]
type = BGPalFX
trigger1 = time = [20,47]
time = 3
add = -150,-150,-150
ignorehitpause = 1

[State 0, 1]
type = BGPalFX
trigger1 = time = 48
time = 20
add = -150,-150,-150
sinadd = 150,150,150,80
ignorehitpause = 1

[State 0, 1]
type = PalFX
trigger1 = !time
time = 1
add = 0,0,0

[State 3510, 4]
type = explod
trigger1 = !time && !(root, fvar(19))
anim = 20010
pos = 160,ifelse(root, var(18),90,120)
postype = left
sprpriority = 7
ontop = 1
supermove = 1
bindtime = 9999
ID = 9131
ignorehitpause = 1
ownpal = 0

[State adjust 2 ]
type = ModifyExplod
trigger1 = time >= 0
ID = 9131
scale = .75-(.01*time), .755-(.01*time)
;sprpriority = 0
;ontop = 0
;shadow = 0,0,0
;ownpal = 0
;removeongethit = 0
;ignorehitpause = 0
;persistent = 1

[State 1150, ChangeState]
type = DestroySelf
trigger1 = time = 50

; All Clear
[Statedef 20006]
type = S
ctrl = 0
anim = 9997
velset = 0,0
sprpriority = 4

[State Finish By Fairy Gift]
type = VarSet
trigger1 = !time
var(2) = 135

[State 0, ]
type = PlaySnd
trigger1 = !time
value = 65,2
pan = 0
abspan = 0

[State 0, 1]
type = AssertSpecial
trigger1 = 1
ignorehitpause = 1
flag = NoFG
flag2 = NoBarDisplay
flag3 = NoMusic

[State 0, 1]
type = BGPalFX
trigger1 = !time
time = 10
sinadd = -128,-128,-128,40
ignorehitpause = 1

[State 0, 1]
type = AllPalFX
trigger1 = time = [10,390]
time = 3
mul = 128,128,128
ignorehitpause = 1
color = 0

[State 0, 1]
type = PalFX
trigger1 = time = [10,380]
time = 1
mul = 512,512,512
ignorehitpause = 1

[State 0, 1]
type = BGPalFX
trigger1 = time = 491
time = 10
add = -128,-128,-128
sinadd =128,128,128,40
ignorehitpause = 1


[State 0, ]
type = SuperPause
trigger1 = !time
time = 400
movetime = 400
anim = -1
darken = 0
ignorehitpause = 0
persistent = 1


[State 3510, 4]
type = explod
trigger1 = time = 15
anim = 20012
pos = 160,ifelse(parent, var(18),90,120)
postype = left
sprpriority = 7
ontop = 1
supermove = 1
bindtime = 9999
ID = 9995
ignorehitpause = 1
ownpal = 0

[State 3510, 4]
type = explod
trigger1 = time = var(2)-10
anim = 20011
pos = 160,ifelse(parent, var(18),90,120)
postype = left
sprpriority = 7
ontop = 1
supermove = 1
bindtime = 9999
ID = 9996
ignorehitpause = 1
ownpal = 0

[State adjust 1 ]
type = ModifyExplod
trigger1 = time >=15
ID = 9995
scale = 3-(.2*(time%15)), 3-(.2*(time%15))

[State adjust 2 ]
type = ModifyExplod
trigger1 = time >= var(2)-10
ID = 9996
scale = .425+(.001*(time-(var(2)-10))), .425+(.001*(time-(var(2)-10)))
;sprpriority = 0
;ontop = 0
;shadow = 0,0,0
;ownpal = 0
;removeongethit = 0
;ignorehitpause = 0
;persistent = 1

[State 0, ]
type = RemoveExplod
trigger1 = time > 400
ID = 9995

[State 0, ]
type = RemoveExplod
trigger1 = time > 400
ID = 9996
;ignorehitpause = 0
;persistent = 1

[State 7001, 2]
type = ChangeState
trigger1 = time > 400
value = 20001


[State Course Level]
type = explod
trigger1 = 1
anim = ifelse(prevstateno=20215,20062,ifelse(prevstateno=20309,20063,20061))
pos = 10,ifelse(parent, var(18),180,240)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5


[State Your Time]
type = explod
trigger1 = 1
anim = 20059
pos = 240,ifelse(parent, var(18),180,240)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5


;====== [Time Display]==================================
[State Convert to Seconds]
type = VarSet
trigger1 = 1
var(6) = Floor(var(5)/ 60 )

[State Convert to Milliseconds]
type = VarSet
trigger1 = 1
var(7) = Floor((var(5)-(Var(6)*60))*1.66)

[State .01]
type = explod
trigger1 = var(6) < 1000
anim = 20030+ Var(7) - (Floor(Var(7)/10)*10)
pos = 309,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5


[State .1]
type = explod
trigger1 = var(6) < 1000
anim = 20030+ Floor(Var(7)/10)
pos = 300,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5


[State 1]
type = explod
trigger1 = var(6) < 1000
anim = 20020+ Var(6)-(Floor(Var(6)/10)*10)
pos = 284,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5


[State 10]
type = explod
trigger1 = var(6) >= 10 && var(6) < 1000
anim = 20020+Floor((Var(6)-(Floor(Var(6)/100)*100))/10)
pos = 268,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State 100]
type = explod
trigger1 = var(6) >=100 && var(6) < 1000
anim = 20020+ Floor(Var(6)/100)
pos = 252,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5


[State OVERTIME]
type = explod
trigger1 =  var(6) >= 1000
anim = 20058
pos = 247,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5


[State 181, 1]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1

;=======================[Beginner Trials]=======================
;1 - Shoot upper
[Statedef 20100]
type = S
movetype = I
anim = 9997
sprpriority = 5

[State NO INPUTS]
type = VarSet
trigger1 = !time
var(1) = 0

[State DELAY]
type = VarSet
trigger1 = !var(1)
var(10) = 60

[State DELAY]
type = VarAdd
trigger1 = var(1)
var(10) = -1

[State DELAY]
type = ParentVarSet
trigger1 = !var(1)
fvar(10) = 0

[State DISPLAY]
type = explod
trigger1 = 1
anim = 8000+floor(parent,fvar(10))
pos = 160,ifelse(parent, var(18),168,228)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,128

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20100+(var(1))
pos = 10,40
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DETECTION]
type = Null
trigger1 = (parent, stateno = 1030 || parent, stateno = 1031 || parent, stateno = 1032 || parent, stateno = 1035) && (parent, movehit=1)
trigger1 = (var(1) :=1)

[State SUCCESS]
type=helper
trigger1 =var(1) && var(10) = 60
helpertype=normal
stateno=20005
ID=20005
name="Excel Charge"
postype=p1
pos=-0,0
supermovetime=255
size.xscale=1
size.yscale=1
ownpal=1

;Challenge
[State Challenge Number]
type = explod
trigger1 = 1
anim = 20040
pos = 23,ifelse(parent, var(18),180,240)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State Challenge Number]
type = explod
trigger1 = 1
anim = 20057
pos = 23,ifelse(parent, var(18),180,240)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

;====== [Time Display]==================================
[State Timer]
type = VarAdd
trigger1 = roundstate =2 && !var(9)
var(5) = 1

[State Convert to Seconds]
type = VarSet
trigger1 = 1
var(6) = Floor(var(5)/ 60 )

[State Convert to Milliseconds]
type = VarSet
trigger1 = 1
var(7) = Floor((var(5)-(Var(6)*60))*1.66)

[State .01]
type = explod
trigger1 = var(6) < 1000
anim = 20030+ Var(7) - (Floor(Var(7)/10)*10)
pos = 309,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State .1]
type = explod
trigger1 = var(6) < 1000
anim = 20030+ Floor(Var(7)/10)
pos = 300,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State 1]
type = explod
trigger1 = var(6) < 1000
anim = 20020+ Var(6)-(Floor(Var(6)/10)*10)
pos = 284,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State 10]
type = explod
trigger1 = var(6) >= 10 && var(6) < 1000
anim = 20020+Floor((Var(6)-(Floor(Var(6)/100)*100))/10)
pos = 268,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128, 256

[State 100]
type = explod
trigger1 = var(6) >=100 && var(6) < 1000
anim = 20020+ Floor(Var(6)/100)
pos = 252,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State OVERTIME]
type = explod
trigger1 =  var(6) >= 1000
anim = 20058
pos = 247,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256



[State NEXT TRIAL]
type = ChangeState
trigger1 = var(1) && !Var(10)
value = ifelse(var(9),20400,20101)


[State 181, 1]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1

;2 - Lightning knee
[Statedef 20101]
type = S
movetype = I
anim = 9997
sprpriority = 5

[State SET GROOVE]
type = ParentVarSet
trigger1 = !var(1)
fvar(10) = 0

[State DISPLAY GROOVE]
type = explod
trigger1 = 1
anim = 8000+floor(parent,fvar(10))
pos = 160,ifelse(parent, var(18),168,228)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,128
[State NO INPUTS]
type = VarSet
trigger1 = !time
var(1) = 0

[State DELAY]
type = VarSet
trigger1 = !var(1)
var(10) = 60

[State DELAY]
type = VarAdd
trigger1 = var(1)
var(10) = -1


[State DISPLAY]
type = explod
trigger1 = 1
anim = 20102+(var(1))
pos = 10,40
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DETECTION]
type = Null
trigger1 = (parent, stateno = 1010 || parent, stateno = 1011 || parent, stateno = 1012) && (parent,movehit =1)
trigger1 = (var(1) :=1)

[State SUCCESS]
type=helper
trigger1 =var(1) && var(10) = 60
helpertype=normal
stateno=20005
ID=20005
name="Excel Charge"
postype=p1
pos=-0,0
supermovetime=255
size.xscale=1
size.yscale=1
ownpal=1

;Challenge
[State Challenge Number]
type = explod
trigger1 = 1
anim = 20041
pos = 23,ifelse(parent, var(18),180,240)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State Challenge Number]
type = explod
trigger1 = 1
anim = 20057
pos = 23,ifelse(parent, var(18),180,240)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

;====== [Time Display]==================================
[State Timer]
type = VarAdd
trigger1 = roundstate =2 && !var(9)
var(5) = 1

[State Convert to Seconds]
type = VarSet
trigger1 = 1
var(6) = Floor(var(5)/ 60 )

[State Convert to Milliseconds]
type = VarSet
trigger1 = 1
var(7) = Floor((var(5)-(Var(6)*60))*1.66)

[State .01]
type = explod
trigger1 = var(6) < 1000
anim = 20030+ Var(7) - (Floor(Var(7)/10)*10)
pos = 309,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State .1]
type = explod
trigger1 = var(6) < 1000
anim = 20030+ Floor(Var(7)/10)
pos = 300,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State 1]
type = explod
trigger1 = var(6) < 1000
anim = 20020+ Var(6)-(Floor(Var(6)/10)*10)
pos = 284,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State 10]
type = explod
trigger1 = var(6) >= 10 && var(6) < 1000
anim = 20020+Floor((Var(6)-(Floor(Var(6)/100)*100))/10)
pos = 268,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128, 256

[State 100]
type = explod
trigger1 = var(6) >=100 && var(6) < 1000
anim = 20020+ Floor(Var(6)/100)
pos = 252,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State OVERTIME]
type = explod
trigger1 =  var(6) >= 1000
anim = 20058
pos = 247,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State NEXT TRIAL]
type = ChangeState
trigger1 = var(1) && !Var(10)
value = ifelse(var(9),20400,20102)


[State 181, 1]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1

;3 - Sliding arrow
[Statedef 20102]
type = S
movetype = I
anim = 9997
sprpriority = 5

[State SET GROOVE]
type = ParentVarSet
trigger1 = !var(1)
fvar(10) = 0

[State DISPLAY GROOVE]
type = explod
trigger1 = 1
anim = 8000+floor(parent,fvar(10))
pos = 160,ifelse(parent, var(18),168,228)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,128

[State NO INPUTS]
type = VarSet
trigger1 = !time
var(1) = 0

[State DELAY]
type = VarSet
trigger1 = !var(1)
var(10) = 60

[State DELAY]
type = VarAdd
trigger1 = var(1)
var(10) = -1


[State DISPLAY]
type = explod
trigger1 = 1
anim = 20104+(var(1))
pos = 10,40
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DETECTION]
type = Null
trigger1 = (parent, stateno = 1029 && (parent, movehit = 1)) || parent, stateno = 1024
trigger1 = (var(1) :=1)


[State SUCCESS]
type=helper
trigger1 =var(1) && var(10) = 60
helpertype=normal
stateno=20005
ID=20005
name="Excel Charge"
postype=p1
pos=-0,0
supermovetime=255
size.xscale=1
size.yscale=1
ownpal=1

;Challenge
[State Challenge Number]
type = explod
trigger1 = 1
anim = 20042
pos = 23,ifelse(parent, var(18),180,240)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State Challenge Number]
type = explod
trigger1 = 1
anim = 20057
pos = 23,ifelse(parent, var(18),180,240)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

;====== [Time Display]==================================
[State Timer]
type = VarAdd
trigger1 = roundstate =2 && !var(9)
var(5) = 1

[State Convert to Seconds]
type = VarSet
trigger1 = 1
var(6) = Floor(var(5)/ 60 )

[State Convert to Milliseconds]
type = VarSet
trigger1 = 1
var(7) = Floor((var(5)-(Var(6)*60))*1.66)

[State .01]
type = explod
trigger1 = var(6) < 1000
anim = 20030+ Var(7) - (Floor(Var(7)/10)*10)
pos = 309,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State .1]
type = explod
trigger1 = var(6) < 1000
anim = 20030+ Floor(Var(7)/10)
pos = 300,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State 1]
type = explod
trigger1 = var(6) < 1000
anim = 20020+ Var(6)-(Floor(Var(6)/10)*10)
pos = 284,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State 10]
type = explod
trigger1 = var(6) >= 10 && var(6) < 1000
anim = 20020+Floor((Var(6)-(Floor(Var(6)/100)*100))/10)
pos = 268,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128, 256

[State 100]
type = explod
trigger1 = var(6) >=100 && var(6) < 1000
anim = 20020+ Floor(Var(6)/100)
pos = 252,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State OVERTIME]
type = explod
trigger1 =  var(6) >= 1000
anim = 20058
pos = 247,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State NEXT TRIAL]
type = ChangeState
trigger1 = var(1) && !Var(10)
value = ifelse(var(9),20400,20103)


[State 181, 1]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1

;4 - Shoot kick - 2nd Shoot - Straight Shoot/Sky Shoot
[Statedef 20103]
type = S
movetype = I
anim = 9997
sprpriority = 5

[State SET GROOVE]
type = ParentVarSet
trigger1 = !var(1)
fvar(10) = 0

[State DISPLAY GROOVE]
type = explod
trigger1 = 1
anim = 8000+floor(parent,fvar(10))
pos = 160,ifelse(parent, var(18),168,228)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,128

[State NO INPUTS]
type = VarSet
trigger1 = !time
var(1) = 0

[State DELAY]
type = VarSet
trigger1 = !var(1)
var(10) = 60

[State DELAY]
type = VarAdd
trigger1 = var(1) = 3
var(10) = -1


[State DISPLAY]
type = explod
trigger1 = 1
anim = 20108+(var(1)>0)
pos = 10,40
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20110+(var(1)>1)
pos = 10,50
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20112+(var(1)>2)
pos = 10,60
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DETECTION]
type = Null
trigger1 = (parent, stateno = 1000 && (parent, movehit = 1))
trigger1 = (var(1) :=1)
trigger2 = (parent, stateno = 1001 && (parent, movehit = 1)) && parent, var(50) && var(1) =1
trigger2 = (var(1) :=2)
trigger3 = ((parent, stateno = [1003,1004]) && (parent, movehit = 1)) && parent, var(50) && var(1) =2
trigger3 = (var(1) :=3)
trigger4 = (parent,var(50) = 0) && (var(1) < 3)
trigger4 = (var(1) :=0)


[State SUCCESS]
type=helper
trigger1 =var(1) = 3 && var(10) = 60
helpertype=normal
stateno=20005
ID=20005
name="Excel Charge"
postype=p1
pos=-0,0
supermovetime=255
size.xscale=1
size.yscale=1
ownpal=1

;Challenge
[State Challenge Number]
type = explod
trigger1 = 1
anim = 20043
pos = 23,ifelse(parent, var(18),180,240)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State Challenge Number]
type = explod
trigger1 = 1
anim = 20057
pos = 23,ifelse(parent, var(18),180,240)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

;====== [Time Display]==================================
[State Timer]
type = VarAdd
trigger1 = roundstate =2 && !var(9)
var(5) = 1

[State Convert to Seconds]
type = VarSet
trigger1 = 1
var(6) = Floor(var(5)/ 60 )

[State Convert to Milliseconds]
type = VarSet
trigger1 = 1
var(7) = Floor((var(5)-(Var(6)*60))*1.66)

[State .01]
type = explod
trigger1 = var(6) < 1000
anim = 20030+ Var(7) - (Floor(Var(7)/10)*10)
pos = 309,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State .1]
type = explod
trigger1 = var(6) < 1000
anim = 20030+ Floor(Var(7)/10)
pos = 300,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State 1]
type = explod
trigger1 = var(6) < 1000
anim = 20020+ Var(6)-(Floor(Var(6)/10)*10)
pos = 284,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State 10]
type = explod
trigger1 = var(6) >= 10 && var(6) < 1000
anim = 20020+Floor((Var(6)-(Floor(Var(6)/100)*100))/10)
pos = 268,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128, 256

[State 100]
type = explod
trigger1 = var(6) >=100 && var(6) < 1000
anim = 20020+ Floor(Var(6)/100)
pos = 252,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State OVERTIME]
type = explod
trigger1 =  var(6) >= 1000
anim = 20058
pos = 247,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State NEXT TRIAL]
type = ChangeState
trigger1 = var(1) && !Var(10)
value = ifelse(var(9),20400,20104)


[State 181, 1]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1

;5 - Crescent Wrench Kick
[Statedef 20104]
type = S
movetype = I
anim = 9997
sprpriority = 5

[State SET GROOVE]
type = ParentVarSet
trigger1 = !var(1)
fvar(10) = 0

[State DISPLAY GROOVE]
type = explod
trigger1 = 1
anim = 8000+floor(parent,fvar(10))
pos = 160,ifelse(parent, var(18),168,228)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,128

[State NO INPUTS]
type = VarSet
trigger1 = !time
var(1) = 0

[State DELAY]
type = VarSet
trigger1 = !var(1)
var(10) = 60

[State DELAY]
type = VarAdd
trigger1 = var(1)
var(10) = -1


[State DISPLAY]
type = explod
trigger1 = 1
anim = 20114+(var(1))
pos = 10,40
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DETECTION]
type = Null
trigger1 = (parent, stateno = 1040 && (parent, movehit = 1))
trigger1 = (var(1) :=1)


[State SUCCESS]
type=helper
trigger1 =var(1) && var(10) = 60
helpertype=normal
stateno=20005
ID=20005
name="Excel Charge"
postype=p1
pos=-0,0
supermovetime=255
size.xscale=1
size.yscale=1
ownpal=1

;Challenge
[State Challenge Number]
type = explod
trigger1 = 1
anim = 20044
pos = 23,ifelse(parent, var(18),180,240)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State Challenge Number]
type = explod
trigger1 = 1
anim = 20057
pos = 23,ifelse(parent, var(18),180,240)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

;====== [Time Display]==================================
[State Timer]
type = VarAdd
trigger1 = roundstate =2 && !var(9)
var(5) = 1

[State Convert to Seconds]
type = VarSet
trigger1 = 1
var(6) = Floor(var(5)/ 60 )

[State Convert to Milliseconds]
type = VarSet
trigger1 = 1
var(7) = Floor((var(5)-(Var(6)*60))*1.66)

[State .01]
type = explod
trigger1 = var(6) < 1000
anim = 20030+ Var(7) - (Floor(Var(7)/10)*10)
pos = 309,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State .1]
type = explod
trigger1 = var(6) < 1000
anim = 20030+ Floor(Var(7)/10)
pos = 300,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State 1]
type = explod
trigger1 = var(6) < 1000
anim = 20020+ Var(6)-(Floor(Var(6)/10)*10)
pos = 284,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State 10]
type = explod
trigger1 = var(6) >= 10 && var(6) < 1000
anim = 20020+Floor((Var(6)-(Floor(Var(6)/100)*100))/10)
pos = 268,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128, 256

[State 100]
type = explod
trigger1 = var(6) >=100 && var(6) < 1000
anim = 20020+ Floor(Var(6)/100)
pos = 252,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State OVERTIME]
type = explod
trigger1 =  var(6) >= 1000
anim = 20058
pos = 247,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State NEXT TRIAL]
type = ChangeState
trigger1 = var(1) && !Var(10)
value = ifelse(var(9),20400,20105)


[State 181, 1]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1

;6 - Mirage combo kick
[Statedef 20105]
type = S
movetype = I
anim = 9997
sprpriority = 5

[State SET GROOVE]
type = ParentVarSet
trigger1 = !var(1)
fvar(10) = 0

[State DISPLAY GROOVE]
type = explod
trigger1 = 1
anim = 8000+floor(parent,fvar(10))
pos = 160,ifelse(parent, var(18),168,228)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,128

[State NO INPUTS]
type = VarSet
trigger1 = !time
var(1) = 0

[State DELAY]
type = VarSet
trigger1 = !var(1)
var(10) = 60

[State DELAY]
type = VarAdd
trigger1 = var(1)
var(10) = -1


[State DISPLAY]
type = explod
trigger1 = 1
anim = 20116+(var(1))
pos = 10,40
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DETECTION]
type = Null
trigger1 = (parent, stateno = 3000 || parent, stateno = 3002) && (parent, movehit = 1)
trigger1 = (var(1) :=1)


[State SUCCESS]
type=helper
trigger1 =var(1) && var(10) = 60
helpertype=normal
stateno=20005
ID=20005
name="Excel Charge"
postype=p1
pos=-0,0
supermovetime=255
size.xscale=1
size.yscale=1
ownpal=1

;Challenge
[State Challenge Number]
type = explod
trigger1 = 1
anim = 20045
pos = 23,ifelse(parent, var(18),180,240)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State Challenge Number]
type = explod
trigger1 = 1
anim = 20057
pos = 23,ifelse(parent, var(18),180,240)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

;====== [Time Display]==================================
[State Timer]
type = VarAdd
trigger1 = roundstate =2 && !var(9)
var(5) = 1

[State Convert to Seconds]
type = VarSet
trigger1 = 1
var(6) = Floor(var(5)/ 60 )

[State Convert to Milliseconds]
type = VarSet
trigger1 = 1
var(7) = Floor((var(5)-(Var(6)*60))*1.66)

[State .01]
type = explod
trigger1 = var(6) < 1000
anim = 20030+ Var(7) - (Floor(Var(7)/10)*10)
pos = 309,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State .1]
type = explod
trigger1 = var(6) < 1000
anim = 20030+ Floor(Var(7)/10)
pos = 300,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State 1]
type = explod
trigger1 = var(6) < 1000
anim = 20020+ Var(6)-(Floor(Var(6)/10)*10)
pos = 284,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State 10]
type = explod
trigger1 = var(6) >= 10 && var(6) < 1000
anim = 20020+Floor((Var(6)-(Floor(Var(6)/100)*100))/10)
pos = 268,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128, 256

[State 100]
type = explod
trigger1 = var(6) >=100 && var(6) < 1000
anim = 20020+ Floor(Var(6)/100)
pos = 252,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State OVERTIME]
type = explod
trigger1 =  var(6) >= 1000
anim = 20058
pos = 247,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State NEXT TRIAL]
type = ChangeState
trigger1 = var(1) && !Var(10)
value = ifelse(var(9),20400,20106)


[State 181, 1]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1

;7 - Spin side shoot
[Statedef 20106]
type = S
movetype = I
anim = 9997
sprpriority = 5

[State SET GROOVE]
type = ParentVarSet
trigger1 = !var(1)
fvar(10) = 0

[State DISPLAY GROOVE]
type = explod
trigger1 = 1
anim = 8000+floor(parent,fvar(10))
pos = 160,ifelse(parent, var(18),168,228)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,128

[State NO INPUTS]
type = VarSet
trigger1 = !time
var(1) = 0

[State DELAY]
type = VarSet
trigger1 = !var(1)
var(10) = 60

[State DELAY]
type = VarAdd
trigger1 = var(1)
var(10) = -1


[State DISPLAY]
type = explod
trigger1 = 1
anim = 20118+(var(1))
pos = 10,40
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5


[State DETECTION]
type = Null
trigger1 = ((parent, stateno = [3010,3011]) || (parent, stateno = [3030,3031])) && (parent, movehit = 1)
trigger1 = (var(1) :=1)


[State SUCCESS]
type=helper
trigger1 =var(1) && var(10) = 60
helpertype=normal
stateno=20005
ID=20005
name="Excel Charge"
postype=p1
pos=-0,0
supermovetime=255
size.xscale=1
size.yscale=1
ownpal=1

;Challenge
[State Challenge Number]
type = explod
trigger1 = 1
anim = 20046
pos = 23,ifelse(parent, var(18),180,240)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State Challenge Number]
type = explod
trigger1 = 1
anim = 20057
pos = 23,ifelse(parent, var(18),180,240)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

;====== [Time Display]==================================
[State Timer]
type = VarAdd
trigger1 = roundstate =2 && !var(9)
var(5) = 1

[State Convert to Seconds]
type = VarSet
trigger1 = 1
var(6) = Floor(var(5)/ 60 )

[State Convert to Milliseconds]
type = VarSet
trigger1 = 1
var(7) = Floor((var(5)-(Var(6)*60))*1.66)

[State .01]
type = explod
trigger1 = var(6) < 1000
anim = 20030+ Var(7) - (Floor(Var(7)/10)*10)
pos = 309,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State .1]
type = explod
trigger1 = var(6) < 1000
anim = 20030+ Floor(Var(7)/10)
pos = 300,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State 1]
type = explod
trigger1 = var(6) < 1000
anim = 20020+ Var(6)-(Floor(Var(6)/10)*10)
pos = 284,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State 10]
type = explod
trigger1 = var(6) >= 10 && var(6) < 1000
anim = 20020+Floor((Var(6)-(Floor(Var(6)/100)*100))/10)
pos = 268,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128, 256

[State 100]
type = explod
trigger1 = var(6) >=100 && var(6) < 1000
anim = 20020+ Floor(Var(6)/100)
pos = 252,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State OVERTIME]
type = explod
trigger1 =  var(6) >= 1000
anim = 20058
pos = 247,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State NEXT TRIAL]
type = ChangeState
trigger1 = var(1) && !Var(10)
value = ifelse(var(9),20400,20107)


[State 181, 1]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1

;8 - Dame Special
[Statedef 20107]
type = S
movetype = I
anim = 9997
sprpriority = 5

[State SET GROOVE]
type = ParentVarSet
trigger1 = !var(1)
fvar(10) = 2

[State DISPLAY GROOVE]
type = explod
trigger1 = 1
anim = 8000+floor(parent,fvar(10))
pos = 160,ifelse(parent, var(18),168,228)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,128

[State NO INPUTS]
type = VarSet
trigger1 = !time
var(1) = 0

[State DELAY]
type = VarSet
trigger1 = !var(1)
var(10) = 60

[State DELAY]
type = VarAdd
trigger1 = var(1)
var(10) = -1


[State DISPLAY]
type = explod
trigger1 = 1
anim = 20120+(var(1))
pos = 10,40
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DETECTION]
type = Null
trigger1 = (parent, stateno = [3040,3041]) && (parent, movehit = 1)
trigger1 = (var(1) :=1)


[State SUCCESS]
type=helper
trigger1 =var(1) && var(10) = 60
helpertype=normal
stateno=20005
ID=20005
name="Excel Charge"
postype=p1
pos=-0,0
supermovetime=255
size.xscale=1
size.yscale=1
ownpal=1

;Challenge
[State Challenge Number]
type = explod
trigger1 = 1
anim = 20047
pos = 23,ifelse(parent, var(18),180,240)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State Challenge Number]
type = explod
trigger1 = 1
anim = 20057
pos = 23,ifelse(parent, var(18),180,240)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

;====== [Time Display]==================================
[State Timer]
type = VarAdd
trigger1 = roundstate =2 && !var(9)
var(5) = 1

[State Convert to Seconds]
type = VarSet
trigger1 = 1
var(6) = Floor(var(5)/ 60 )

[State Convert to Milliseconds]
type = VarSet
trigger1 = 1
var(7) = Floor((var(5)-(Var(6)*60))*1.66)

[State .01]
type = explod
trigger1 = var(6) < 1000
anim = 20030+ Var(7) - (Floor(Var(7)/10)*10)
pos = 309,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State .1]
type = explod
trigger1 = var(6) < 1000
anim = 20030+ Floor(Var(7)/10)
pos = 300,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State 1]
type = explod
trigger1 = var(6) < 1000
anim = 20020+ Var(6)-(Floor(Var(6)/10)*10)
pos = 284,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State 10]
type = explod
trigger1 = var(6) >= 10 && var(6) < 1000
anim = 20020+Floor((Var(6)-(Floor(Var(6)/100)*100))/10)
pos = 268,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128, 256

[State 100]
type = explod
trigger1 = var(6) >=100 && var(6) < 1000
anim = 20020+ Floor(Var(6)/100)
pos = 252,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State OVERTIME]
type = explod
trigger1 =  var(6) >= 1000
anim = 20058
pos = 247,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State NEXT TRIAL]
type = ChangeState
trigger1 = var(1) && !Var(10)
value = ifelse(var(9),20400,20108)


[State 181, 1]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1

;9 - Fairy Gift
[Statedef 20108]
type = S
movetype = I
anim = 9997
sprpriority = 5

[State SET GROOVE]
type = ParentVarSet
trigger1 = !var(1)
fvar(10) = 0

[State DISPLAY GROOVE]
type = explod
trigger1 = 1
anim = 8000+floor(parent,fvar(10))
pos = 160,ifelse(parent, var(18),168,228)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,128

[State NO INPUTS]
type = VarSet
trigger1 = !time
var(1) = 0

[State DELAY]
type = VarSet
trigger1 = !var(1)
var(10) = 60

[State DELAY]
type = VarAdd
trigger1 = var(1)
var(10) = -1


[State DISPLAY]
type = explod
trigger1 = 1
anim = 20122+(var(1))
pos = 10,40
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DETECTION]
type = Null
trigger1 = (parent, stateno = [3050,3051]) && (parent, movehit = 1)
trigger1 = (var(1) :=1)


[State SUCCESS]
type=helper
trigger1 =var(1) && var(10) = 60
helpertype=normal
stateno=20005
ID=20005
name="Excel Charge"
postype=p1
pos=-0,0
supermovetime=255
size.xscale=1
size.yscale=1
ownpal=1

;Challenge
[State Challenge Number]
type = explod
trigger1 = 1
anim = 20048
pos = 23,ifelse(parent, var(18),180,240)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State Challenge Number]
type = explod
trigger1 = 1
anim = 20057
pos = 23,ifelse(parent, var(18),180,240)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

;====== [Time Display]==================================
[State Timer]
type = VarAdd
trigger1 = roundstate =2 && !var(9)
var(5) = 1

[State Convert to Seconds]
type = VarSet
trigger1 = 1
var(6) = Floor(var(5)/ 60 )

[State Convert to Milliseconds]
type = VarSet
trigger1 = 1
var(7) = Floor((var(5)-(Var(6)*60))*1.66)

[State .01]
type = explod
trigger1 = var(6) < 1000
anim = 20030+ Var(7) - (Floor(Var(7)/10)*10)
pos = 309,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State .1]
type = explod
trigger1 = var(6) < 1000
anim = 20030+ Floor(Var(7)/10)
pos = 300,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State 1]
type = explod
trigger1 = var(6) < 1000
anim = 20020+ Var(6)-(Floor(Var(6)/10)*10)
pos = 284,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State 10]
type = explod
trigger1 = var(6) >= 10 && var(6) < 1000
anim = 20020+Floor((Var(6)-(Floor(Var(6)/100)*100))/10)
pos = 268,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128, 256

[State 100]
type = explod
trigger1 = var(6) >=100 && var(6) < 1000
anim = 20020+ Floor(Var(6)/100)
pos = 252,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State OVERTIME]
type = explod
trigger1 =  var(6) >= 1000
anim = 20058
pos = 247,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State NEXT TRIAL]
type = ChangeState
trigger1 = var(1) && !Var(10)
value = ifelse(var(9),20400,20109)


[State 181, 1]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1

;10 - Shuttle Combination
[Statedef 20109]
type = S
movetype = I
anim = 9997
sprpriority = 5

[State SET GROOVE]
type = ParentVarSet
trigger1 = !var(1)
fvar(10) = 2

[State DISPLAY GROOVE]
type = explod
trigger1 = 1
anim = 8000+floor(parent,fvar(10))
pos = 160,ifelse(parent, var(18),168,228)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,128

[State NO INPUTS]
type = VarSet
trigger1 = !time
var(1) = 0

[State DELAY]
type = VarSet
trigger1 = !var(1)
var(10) = 60

[State DELAY]
type = VarAdd
trigger1 = var(1)
var(10) = -1


[State DISPLAY]
type = explod
trigger1 = 1
anim = 20124+(var(1))
pos = 10,40
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DETECTION]
type = Null
trigger1 = (parent, stateno = [3070,3071]) && (parent, movehit = 1)
trigger1 = (var(1) :=1)


[State SUCCESS]
type=helper
trigger1 =var(1) && var(10) = 60
helpertype=normal
stateno=20005
ID=20005
name="Excel Charge"
postype=p1
pos=-0,0
supermovetime=255
size.xscale=1
size.yscale=1
ownpal=1

;Challenge
[State Challenge Number]
type = explod
trigger1 = 1
anim = 20049
pos = 23,ifelse(parent, var(18),180,240)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State Challenge Number]
type = explod
trigger1 = 1
anim = 20057
pos = 23,ifelse(parent, var(18),180,240)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

;====== [Time Display]==================================
[State Timer]
type = VarAdd
trigger1 = roundstate =2 && !var(9)
var(5) = 1

[State Convert to Seconds]
type = VarSet
trigger1 = 1
var(6) = Floor(var(5)/ 60 )

[State Convert to Milliseconds]
type = VarSet
trigger1 = 1
var(7) = Floor((var(5)-(Var(6)*60))*1.66)

[State .01]
type = explod
trigger1 = var(6) < 1000
anim = 20030+ Var(7) - (Floor(Var(7)/10)*10)
pos = 309,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State .1]
type = explod
trigger1 = var(6) < 1000
anim = 20030+ Floor(Var(7)/10)
pos = 300,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State 1]
type = explod
trigger1 = var(6) < 1000
anim = 20020+ Var(6)-(Floor(Var(6)/10)*10)
pos = 284,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State 10]
type = explod
trigger1 = var(6) >= 10 && var(6) < 1000
anim = 20020+Floor((Var(6)-(Floor(Var(6)/100)*100))/10)
pos = 268,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128, 256

[State 100]
type = explod
trigger1 = var(6) >=100 && var(6) < 1000
anim = 20020+ Floor(Var(6)/100)
pos = 252,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State OVERTIME]
type = explod
trigger1 =  var(6) >= 1000
anim = 20058
pos = 247,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State NEXT TRIAL]
type = ChangeState
trigger1 = var(1) && !Var(10)
value = ifelse(var(9),20400,20110)


[State 181, 1]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1


;11 - C. WK, C. WK, Shoot kick, 2nd Shoot, Straight Shoot
[Statedef 20110]
type = S
movetype = I
anim = 9997
sprpriority = 5

[State SET GROOVE]
type = ParentVarSet
trigger1 = !var(1)
fvar(10) = 0

[State DISPLAY GROOVE]
type = explod
trigger1 = 1
anim = 8000+floor(parent,fvar(10))
pos = 160,ifelse(parent, var(18),168,228)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,128

[State NO INPUTS]
type = VarSet
trigger1 = !time
var(1) = 0

[State DELAY]
type = VarSet
trigger1 = !var(1)
var(10) = 60

[State DELAY]
type = VarAdd
trigger1 = var(1) = 5
var(10) = -1

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20126+(var(1)>0)
pos = 10,40
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20126+(var(1)>1)
pos = 10,50
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20108+(var(1)>2)
pos = 10,60
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20110+(var(1)>3)
pos = 10,70
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20128+(var(1)>4)
pos = 10,80
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DETECTION]
type = Null
trigger1 = (parent, stateno = 430 && (parent, movehit = 1)) && parent, var(50) && !var(1)
trigger1 = (var(1) :=1) && (var(2) := 1)
trigger2 = (parent, stateno = 430 && (parent, movehit = 1)) && parent, var(50) && var(1) =1 && !var(2)
trigger2 = (var(1) :=2)
trigger3 = (parent, stateno = 1000 && (parent, movehit = 1)) && parent, var(50) && var(1) =2
trigger3 = (var(1) :=3)
trigger4 = (parent, stateno = 1001 && (parent, movehit = 1)) && parent, var(50) && var(1) =3
trigger4 = (var(1) :=4)
trigger5 = (parent, stateno = 1003 && (parent, movehit = 1)) && parent, var(50) && var(1) =4
trigger5 = (var(1) :=5)
trigger6 = (parent,var(50) = 0) && (var(1) < 5)
trigger6 = (var(1) :=0)
trigger7 = (parent, stateno = 430 && parent, time  <2)
trigger7 = (var(2) :=0)

[State SUCCESS]
type=helper
trigger1 =var(1) = 5 && var(10) = 60
helpertype=normal
stateno=20005
ID=20005
name="Excel Charge"
postype=p1
pos=-0,0
supermovetime=255
size.xscale=1
size.yscale=1
ownpal=1

;Challenge
[State Challenge Number]
type = explod
trigger1 = 1
anim = 20050
pos = 23,ifelse(parent, var(18),180,240)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State Challenge Number]
type = explod
trigger1 = 1
anim = 20057
pos = 23,ifelse(parent, var(18),180,240)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

;====== [Time Display]==================================
[State Timer]
type = VarAdd
trigger1 = roundstate =2 && !var(9)
var(5) = 1

[State Convert to Seconds]
type = VarSet
trigger1 = 1
var(6) = Floor(var(5)/ 60 )

[State Convert to Milliseconds]
type = VarSet
trigger1 = 1
var(7) = Floor((var(5)-(Var(6)*60))*1.66)

[State .01]
type = explod
trigger1 = var(6) < 1000
anim = 20030+ Var(7) - (Floor(Var(7)/10)*10)
pos = 309,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State .1]
type = explod
trigger1 = var(6) < 1000
anim = 20030+ Floor(Var(7)/10)
pos = 300,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State 1]
type = explod
trigger1 = var(6) < 1000
anim = 20020+ Var(6)-(Floor(Var(6)/10)*10)
pos = 284,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State 10]
type = explod
trigger1 = var(6) >= 10 && var(6) < 1000
anim = 20020+Floor((Var(6)-(Floor(Var(6)/100)*100))/10)
pos = 268,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128, 256

[State 100]
type = explod
trigger1 = var(6) >=100 && var(6) < 1000
anim = 20020+ Floor(Var(6)/100)
pos = 252,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State OVERTIME]
type = explod
trigger1 =  var(6) >= 1000
anim = 20058
pos = 247,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State NEXT TRIAL]
type = ChangeState
trigger1 = var(1) && !Var(10)
value = ifelse(var(9),20400,20111)


[State 181, 1]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1

;12 - C. MP, C. MK, Sliding arrow
[Statedef 20111]
type = S
movetype = I
anim = 9997
sprpriority = 5

[State SET GROOVE]
type = ParentVarSet
trigger1 = !var(1)
fvar(10) = 2

[State DISPLAY GROOVE]
type = explod
trigger1 = 1
anim = 8000+floor(parent,fvar(10))
pos = 160,ifelse(parent, var(18),168,228)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,128

[State NO INPUTS]
type = VarSet
trigger1 = !time
var(1) = 0

[State DELAY]
type = VarSet
trigger1 = !var(1)
var(10) = 60

[State DELAY]
type = VarAdd
trigger1 = var(1) = 3
var(10) = -1

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20130+(var(1)>0)
pos = 10,40
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20132+(var(1)>1)
pos = 10,50
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20104+(var(1)>2)
pos = 10,60
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5



[State DETECTION]
type = Null
trigger1 = (parent, stateno = 410 && (parent, movehit = 1))
trigger1 = (var(1) :=1)
trigger2 = (parent, stateno = 440 && (parent, movehit = 1)) && parent, var(50) && var(1) = 1
trigger2 = (var(1) :=2)
trigger3 = ((parent, stateno = 1029 && (parent, movehit = 1)) || parent, stateno = 1024) && parent, var(50) && var(1) = 2
trigger3 = (var(1) :=3)
trigger4 = (parent,var(50) = 0) && (var(1) < 3)
trigger4 = (var(1) :=0)


[State SUCCESS]
type=helper
trigger1 =var(1) = 3 && var(10) = 60
helpertype=normal
stateno=20005
ID=20005
name="Excel Charge"
postype=p1
pos=-0,0
supermovetime=255
size.xscale=1
size.yscale=1
ownpal=1

;Challenge
[State Challenge Number]
type = explod
trigger1 = 1
anim = 20051
pos = 23,ifelse(parent, var(18),180,240)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State Challenge Number]
type = explod
trigger1 = 1
anim = 20057
pos = 23,ifelse(parent, var(18),180,240)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

;====== [Time Display]==================================
[State Timer]
type = VarAdd
trigger1 = roundstate =2 && !var(9)
var(5) = 1

[State Convert to Seconds]
type = VarSet
trigger1 = 1
var(6) = Floor(var(5)/ 60 )

[State Convert to Milliseconds]
type = VarSet
trigger1 = 1
var(7) = Floor((var(5)-(Var(6)*60))*1.66)

[State .01]
type = explod
trigger1 = var(6) < 1000
anim = 20030+ Var(7) - (Floor(Var(7)/10)*10)
pos = 309,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State .1]
type = explod
trigger1 = var(6) < 1000
anim = 20030+ Floor(Var(7)/10)
pos = 300,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State 1]
type = explod
trigger1 = var(6) < 1000
anim = 20020+ Var(6)-(Floor(Var(6)/10)*10)
pos = 284,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State 10]
type = explod
trigger1 = var(6) >= 10 && var(6) < 1000
anim = 20020+Floor((Var(6)-(Floor(Var(6)/100)*100))/10)
pos = 268,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128, 256

[State 100]
type = explod
trigger1 = var(6) >=100 && var(6) < 1000
anim = 20020+ Floor(Var(6)/100)
pos = 252,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State OVERTIME]
type = explod
trigger1 =  var(6) >= 1000
anim = 20058
pos = 247,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State NEXT TRIAL]
type = ChangeState
trigger1 = var(1) && !Var(10)
value = ifelse(var(9),20400,20112)


[State 181, 1]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1

;13 -  J. HK, C. MK, Lightning knee
[Statedef 20112]
type = S
movetype = I
anim = 9997
sprpriority = 5

[State SET GROOVE]
type = ParentVarSet
trigger1 = !var(1)
fvar(10) = 0

[State DISPLAY GROOVE]
type = explod
trigger1 = 1
anim = 8000+floor(parent,fvar(10))
pos = 160,ifelse(parent, var(18),168,228)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,128

[State NO INPUTS]
type = VarSet
trigger1 = !time
var(1) = 0

[State DELAY]
type = VarSet
trigger1 = !var(1)
var(10) = 60

[State DELAY]
type = VarAdd
trigger1 = var(1) = 3
var(10) = -1

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20134+(var(1)>0)
pos = 10,40
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20132+(var(1)>1)
pos = 10,50
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20102+(var(1)>2)
pos = 10,60
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5



[State DETECTION]
type = Null
trigger1 = (parent, stateno = 650 && (parent, movehit = 1))
trigger1 = (var(1) :=1)
trigger2 = (parent, stateno = 440 && (parent, movehit = 1)) && parent, var(50) && var(1) = 1
trigger2 = (var(1) :=2)
trigger3 = ((parent, stateno = 1010 || parent, stateno = 1011 || parent, stateno = 1012) && (parent,movehit =1)) && parent, var(50) && var(1) = 2
trigger3 = (var(1) :=3)
trigger4 = (parent,var(50) = 0) && (var(1) < 3)
trigger4 = (var(1) :=0)


[State SUCCESS]
type=helper
trigger1 =var(1) = 3 && var(10) = 60
helpertype=normal
stateno=20005
ID=20005
name="Excel Charge"
postype=p1
pos=-0,0
supermovetime=255
size.xscale=1
size.yscale=1
ownpal=1

;Challenge
[State Challenge Number]
type = explod
trigger1 = 1
anim = 20052
pos = 23,ifelse(parent, var(18),180,240)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State Challenge Number]
type = explod
trigger1 = 1
anim = 20057
pos = 23,ifelse(parent, var(18),180,240)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

;====== [Time Display]==================================
[State Timer]
type = VarAdd
trigger1 = roundstate =2 && !var(9)
var(5) = 1

[State Convert to Seconds]
type = VarSet
trigger1 = 1
var(6) = Floor(var(5)/ 60 )

[State Convert to Milliseconds]
type = VarSet
trigger1 = 1
var(7) = Floor((var(5)-(Var(6)*60))*1.66)

[State .01]
type = explod
trigger1 = var(6) < 1000
anim = 20030+ Var(7) - (Floor(Var(7)/10)*10)
pos = 309,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State .1]
type = explod
trigger1 = var(6) < 1000
anim = 20030+ Floor(Var(7)/10)
pos = 300,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State 1]
type = explod
trigger1 = var(6) < 1000
anim = 20020+ Var(6)-(Floor(Var(6)/10)*10)
pos = 284,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State 10]
type = explod
trigger1 = var(6) >= 10 && var(6) < 1000
anim = 20020+Floor((Var(6)-(Floor(Var(6)/100)*100))/10)
pos = 268,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128, 256

[State 100]
type = explod
trigger1 = var(6) >=100 && var(6) < 1000
anim = 20020+ Floor(Var(6)/100)
pos = 252,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State OVERTIME]
type = explod
trigger1 =  var(6) >= 1000
anim = 20058
pos = 247,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State NEXT TRIAL]
type = ChangeState
trigger1 = var(1) && !Var(10)
value = ifelse(var(9),20400,20113)


[State 181, 1]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1

;14 - J. HP, C. HP, Shoot upper
[Statedef 20113]
type = S
movetype = I
anim = 9997
sprpriority = 5

[State SET GROOVE]
type = ParentVarSet
trigger1 = !var(1)
fvar(10) = 0

[State DISPLAY GROOVE]
type = explod
trigger1 = 1
anim = 8000+floor(parent,fvar(10))
pos = 160,ifelse(parent, var(18),168,228)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,128

[State NO INPUTS]
type = VarSet
trigger1 = !time
var(1) = 0

[State DELAY]
type = VarSet
trigger1 = !var(1)
var(10) = 60

[State DELAY]
type = VarAdd
trigger1 = var(1) = 3
var(10) = -1

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20136+(var(1)>0)
pos = 10,40
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20138+(var(1)>1)
pos = 10,50
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20100+(var(1)>2)
pos = 10,60
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5



[State DETECTION]
type = Null
trigger1 = (parent, stateno = 620 && (parent, movehit = 1))
trigger1 = (var(1) :=1)
trigger2 = (parent, stateno = 420 && (parent, movehit = 1)) && parent, var(50) && var(1) = 1
trigger2 = (var(1) :=2)
trigger3 = (parent, stateno = 1030 || parent, stateno = 1031 || parent, stateno = 1032 || parent, stateno = 1035) && (parent, movehit=1) && parent, var(50) && var(1) = 2
trigger3 = (var(1) :=3)
trigger4 = (parent,var(50) = 0) && (var(1) < 3)
trigger4 = (var(1) :=0)


[State SUCCESS]
type=helper
trigger1 =var(1) = 3 && var(10) = 60
helpertype=normal
stateno=20005
ID=20005
name="Excel Charge"
postype=p1
pos=-0,0
supermovetime=255
size.xscale=1
size.yscale=1
ownpal=1

;Challenge
[State Challenge Number]
type = explod
trigger1 = 1
anim = 20053
pos = 23,ifelse(parent, var(18),180,240)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State Challenge Number]
type = explod
trigger1 = 1
anim = 20057
pos = 23,ifelse(parent, var(18),180,240)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

;====== [Time Display]==================================
[State Timer]
type = VarAdd
trigger1 = roundstate =2 && !var(9)
var(5) = 1

[State Convert to Seconds]
type = VarSet
trigger1 = 1
var(6) = Floor(var(5)/ 60 )

[State Convert to Milliseconds]
type = VarSet
trigger1 = 1
var(7) = Floor((var(5)-(Var(6)*60))*1.66)

[State .01]
type = explod
trigger1 = var(6) < 1000
anim = 20030+ Var(7) - (Floor(Var(7)/10)*10)
pos = 309,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State .1]
type = explod
trigger1 = var(6) < 1000
anim = 20030+ Floor(Var(7)/10)
pos = 300,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State 1]
type = explod
trigger1 = var(6) < 1000
anim = 20020+ Var(6)-(Floor(Var(6)/10)*10)
pos = 284,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State 10]
type = explod
trigger1 = var(6) >= 10 && var(6) < 1000
anim = 20020+Floor((Var(6)-(Floor(Var(6)/100)*100))/10)
pos = 268,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128, 256

[State 100]
type = explod
trigger1 = var(6) >=100 && var(6) < 1000
anim = 20020+ Floor(Var(6)/100)
pos = 252,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State OVERTIME]
type = explod
trigger1 =  var(6) >= 1000
anim = 20058
pos = 247,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State NEXT TRIAL]
type = ChangeState
trigger1 = var(1) && !Var(10)
value = ifelse(var(9),20400,20114)


[State 181, 1]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1

;15 - J. HK, HP, Mirage Combo Kick
[Statedef 20114]
type = S
movetype = I
anim = 9997
sprpriority = 5

[State SET GROOVE]
type = ParentVarSet
trigger1 = !var(1)
fvar(10) = 0

[State DISPLAY GROOVE]
type = explod
trigger1 = 1
anim = 8000+floor(parent,fvar(10))
pos = 160,ifelse(parent, var(18),168,228)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,128

[State NO INPUTS]
type = VarSet
trigger1 = !time
var(1) = 0

[State DELAY]
type = VarSet
trigger1 = !var(1)
var(10) = 60

[State DELAY]
type = VarAdd
trigger1 = var(1) = 3
var(10) = -1

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20134+(var(1)>0)
pos = 10,40
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20144+(var(1)>1)
pos = 10,50
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20116+(var(1)>2)
pos = 10,60
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5



[State DETECTION]
type = Null
trigger1 = (parent, stateno = 650 && (parent, movehit = 1))
trigger1 = (var(1) :=1)
trigger2 = (parent, stateno = 220 && (parent, movehit = 1)) && parent, var(50) && var(1) = 1
trigger2 = (var(1) :=2)
trigger3 = (parent, stateno = 3000 || parent, stateno = 3002) && (parent, movehit=1) && parent, var(50) && var(1) = 2
trigger3 = (var(1) :=3)
trigger4 = (parent,var(50) = 0) && (var(1) < 3)
trigger4 = (var(1) :=0)


[State SUCCESS]
type=helper
trigger1 =var(1) = 3 && var(10) = 60
helpertype=normal
stateno=20005
ID=20005
name="Excel Charge"
postype=p1
pos=-0,0
supermovetime=255
size.xscale=1
size.yscale=1
ownpal=1

;Challenge
[State Challenge Number]
type = explod
trigger1 = 1
anim = 20054
pos = 23,ifelse(parent, var(18),180,240)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State Challenge Number]
type = explod
trigger1 = 1
anim = 20057
pos = 23,ifelse(parent, var(18),180,240)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

;====== [Time Display]==================================
[State Timer]
type = VarAdd
trigger1 = roundstate =2 && !var(9)
var(5) = 1

[State Convert to Seconds]
type = VarSet
trigger1 = 1
var(6) = Floor(var(5)/ 60 )

[State Convert to Milliseconds]
type = VarSet
trigger1 = 1
var(7) = Floor((var(5)-(Var(6)*60))*1.66)

[State .01]
type = explod
trigger1 = var(6) < 1000
anim = 20030+ Var(7) - (Floor(Var(7)/10)*10)
pos = 309,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State .1]
type = explod
trigger1 = var(6) < 1000
anim = 20030+ Floor(Var(7)/10)
pos = 300,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State 1]
type = explod
trigger1 = var(6) < 1000
anim = 20020+ Var(6)-(Floor(Var(6)/10)*10)
pos = 284,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State 10]
type = explod
trigger1 = var(6) >= 10 && var(6) < 1000
anim = 20020+Floor((Var(6)-(Floor(Var(6)/100)*100))/10)
pos = 268,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128, 256

[State 100]
type = explod
trigger1 = var(6) >=100 && var(6) < 1000
anim = 20020+ Floor(Var(6)/100)
pos = 252,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State OVERTIME]
type = explod
trigger1 =  var(6) >= 1000
anim = 20058
pos = 247,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State NEXT TRIAL]
type = ChangeState
trigger1 = var(1) && !Var(10)
value = ifelse(var(9),20400,20115)


[State 181, 1]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1

;16 - J. HP, C. MP, C. LK, Shoot kick, 2nd Shoot, Sky Shoot, HK
[Statedef 20115]
type = S
movetype = I
anim = 9997
sprpriority = 5

[State SET GROOVE]
type = ParentVarSet
trigger1 = !var(1)
fvar(10) = 2

[State DISPLAY GROOVE]
type = explod
trigger1 = 1
anim = 8000+floor(parent,fvar(10))
pos = 160,ifelse(parent, var(18),168,228)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,128

[State NO INPUTS]
type = VarSet
trigger1 = !time
var(1) = 0

[State DELAY]
type = VarSet
trigger1 = !var(1)
var(10) = 60

[State DELAY]
type = VarAdd
trigger1 = var(1) = 7
var(10) = -1

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20136+(var(1)>0)
pos = 10,40
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20130+(var(1)>1)
pos = 10,50
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20126+(var(1)>2)
pos = 10,60
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20108+(var(1)>3)
pos = 10,70
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20110+(var(1)>4)
pos = 10,80
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20140+(var(1)>5)
pos = 10,90
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20142+(var(1)>6)
pos = 10,100
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DETECTION]
type = Null
trigger1 = (parent, stateno = 620 && (parent, movehit = 1)) && parent, var(50) 
trigger1 = (var(1) :=1) 
trigger2 = (parent, stateno = 410 && (parent, movehit = 1)) && parent, var(50) && var(1) =1 
trigger2 = (var(1) :=2)
trigger3 = (parent, stateno = 430 && (parent, movehit = 1)) && parent, var(50) && var(1) =2
trigger3 = (var(1) :=3)
trigger4 = (parent, stateno = 1000 && (parent, movehit = 1)) && parent, var(50) && var(1) =3
trigger4 = (var(1) :=4)
trigger5 = (parent, stateno = 1001 && (parent, movehit = 1)) && parent, var(50) && var(1) =4
trigger5 = (var(1) :=5)
trigger6 = (parent, stateno = 1004 && (parent, movehit = 1)) && parent, var(50) && var(1) =5
trigger6 = (var(1) :=6)
trigger7 = (parent, stateno = 250 && (parent, movehit = 1)) && parent, var(50) && var(1) =6
trigger7 = (var(1) :=7)
trigger8 = (parent,var(50) = 0) && (var(1) < 7)
trigger8 = (var(1) :=0)


[State SUCCESS]
type=helper
trigger1 = var(1) = 7 && var(10) = 60
helpertype=normal
stateno=20005
ID=20005
name="Excel Charge"
postype=p1
pos=-0,0
supermovetime=255
size.xscale=1
size.yscale=1
ownpal=1

;Challenge
[State Challenge Number]
type = explod
trigger1 = 1
anim = 20055
pos = 23,ifelse(parent, var(18),180,240)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State Challenge Number]
type = explod
trigger1 = 1
anim = 20057
pos = 23,ifelse(parent, var(18),180,240)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

;====== [Time Display]==================================
[State Timer]
type = VarAdd
trigger1 = var(1) < 7 && !var(9)
var(5) = 1

[State Convert to Seconds]
type = VarSet
trigger1 = 1
var(6) = Floor(var(5)/ 60 )

[State Convert to Milliseconds]
type = VarSet
trigger1 = 1
var(7) = Floor((var(5)-(Var(6)*60))*1.66)

[State .01]
type = explod
trigger1 = var(6) < 1000
anim = 20030+ Var(7) - (Floor(Var(7)/10)*10)
pos = 309,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State .1]
type = explod
trigger1 = var(6) < 1000
anim = 20030+ Floor(Var(7)/10)
pos = 300,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State 1]
type = explod
trigger1 = var(6) < 1000
anim = 20020+ Var(6)-(Floor(Var(6)/10)*10)
pos = 284,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State 10]
type = explod
trigger1 = var(6) >= 10 && var(6) < 1000
anim = 20020+Floor((Var(6)-(Floor(Var(6)/100)*100))/10)
pos = 268,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128, 256

[State 100]
type = explod
trigger1 = var(6) >=100 && var(6) < 1000
anim = 20020+ Floor(Var(6)/100)
pos = 252,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State OVERTIME]
type = explod
trigger1 =  var(6) >= 1000
anim = 20058
pos = 247,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State ALL CLEAR]
type = ChangeState
trigger1 = var(1) && !Var(10)
value = ifelse(var(9),20400,20006)


[State 181, 1]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1


;=======================[Intermediate Trials]=======================        
;1 - Shoot Kick, 2nd Step, H.Final Step, J. HK, Crescent Wrench Kick
[Statedef 20200]
type = S
movetype = I
anim = 9997
sprpriority = 5



[State SET GROOVE]
type = ParentVarSet
trigger1 = !var(1)
fvar(10) = 0

[State DISPLAY GROOVE]
type = explod
trigger1 = 1
anim = 8000+floor(parent,fvar(10))
pos = 160,ifelse(parent, var(18),168,228)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,128

[State NO INPUTS]
type = VarSet
trigger1 = !time
var(1) = 0

[State DELAY]
type = VarSet
trigger1 = !var(1)
var(10) = 60

[State DELAY]
type = VarAdd
trigger1 = var(1) = 5
var(10) = -1

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20108+(var(1)>0)
pos = 10,40
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20110+(var(1)>1)
pos = 10,50
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20140+(var(1)>2)
pos = 10,60
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20148+(var(1)>3)
pos = 10,70
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20114+(var(1)>4)
pos = 10,80
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5



[State DETECTION]
type = Null
trigger1 = (parent, stateno = 1000 && (parent, movehit = 1)) && parent, var(50)
trigger1 = (var(1) :=1)
trigger2 = (parent, stateno = 1001 && (parent, movehit = 1)) && parent, var(50) && var(1) =1
trigger2 = (var(1) :=2)
trigger3 = (parent, stateno = 1004 && (parent, movehit = 1)) && parent, var(50) && var(1) =2
trigger3 = (var(1) :=3)
trigger4 = (parent, stateno = 640 && (parent, movehit = 1)) && parent, var(50) && var(1) =3
trigger4 = (var(1) :=4)
trigger5 = (parent, stateno = 1040 && (parent, movehit = 1)) && parent, var(50) && var(1) =4
trigger5 = (var(1) :=5)
trigger6 = (parent,var(50) = 0) && (var(1) < 5)
trigger6 = (var(1) :=0)


[State SUCCESS]
type=helper
trigger1 = var(1) = 5 && var(10) = 60
helpertype=normal
stateno=20005
ID=20005
name="Excel Charge"
postype=p1
pos=-0,0
supermovetime=255
size.xscale=1
size.yscale=1
ownpal=1

;Challenge
[State Challenge Number]
type = explod
trigger1 = 1
anim = 20040
pos = 23,ifelse(parent, var(18),180,240)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State Challenge Number]
type = explod
trigger1 = 1
anim = 20057
pos = 23,ifelse(parent, var(18),180,240)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

;====== [Time Display]==================================
[State Timer]
type = VarAdd
trigger1 = roundstate =2 && !var(9)
var(5) = 1

[State Convert to Seconds]
type = VarSet
trigger1 = 1
var(6) = Floor(var(5)/ 60 )

[State Convert to Milliseconds]
type = VarSet
trigger1 = 1
var(7) = Floor((var(5)-(Var(6)*60))*1.66)

[State .01]
type = explod
trigger1 = var(6) < 1000
anim = 20030+ Var(7) - (Floor(Var(7)/10)*10)
pos = 309,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State .1]
type = explod
trigger1 = var(6) < 1000
anim = 20030+ Floor(Var(7)/10)
pos = 300,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State 1]
type = explod
trigger1 = var(6) < 1000
anim = 20020+ Var(6)-(Floor(Var(6)/10)*10)
pos = 284,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State 10]
type = explod
trigger1 = var(6) >= 10 && var(6) < 1000
anim = 20020+Floor((Var(6)-(Floor(Var(6)/100)*100))/10)
pos = 268,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128, 256

[State 100]
type = explod
trigger1 = var(6) >=100 && var(6) < 1000
anim = 20020+ Floor(Var(6)/100)
pos = 252,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State OVERTIME]
type = explod
trigger1 =  var(6) >= 1000
anim = 20058
pos = 247,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State ALL CLEAR]
type = ChangeState
trigger1 = var(1) && !Var(10)
value = ifelse(var(9),20400,20201)


[State 181, 1]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1
;2 - J. HP, c. MP, EX Lightning Knee, c. MK, Shoot Upper
[Statedef 20201]
type = S
movetype = I
anim = 9997
sprpriority = 5



[State SET GROOVE]
type = ParentVarSet
trigger1 = !var(1)
fvar(10) = 2

[State DISPLAY GROOVE]
type = explod
trigger1 = 1
anim = 8000+floor(parent,fvar(10))
pos = 160,ifelse(parent, var(18),168,228)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,128

[State NO INPUTS]
type = VarSet
trigger1 = !time
var(1) = 0

[State DELAY]
type = VarSet
trigger1 = !var(1)
var(10) = 60

[State DELAY]
type = VarAdd
trigger1 = var(1) = 5
var(10) = -1

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20136+(var(1)>0)
pos = 10,40
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20130+(var(1)>1)
pos = 10,50
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20106+(var(1)>2)
pos = 10,60
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20132+(var(1)>3)
pos = 10,70
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20100+(var(1)>4)
pos = 10,80
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5



[State DETECTION]
type = Null
trigger1 = (parent, stateno = 620 && (parent, movehit = 1)) && parent, var(50)
trigger1 = (var(1) :=1)
trigger2 = (parent, stateno = 410 && (parent, movehit = 1)) && parent, var(50) && var(1) =1
trigger2 = (var(1) :=2)
trigger3 = (parent, stateno = 2010 && (parent, movehit = 1)) && parent, var(50) && var(1) =2
trigger3 = (var(1) :=3)
trigger4 = (parent, stateno = 440 && (parent, movehit = 1)) && parent, var(50) && var(1) =3
trigger4 = (var(1) :=4)
trigger5 = ((parent, stateno = [1030,1034]) && (parent, movehit = 1)) && parent, var(50) && var(1) =4
trigger5 = (var(1) :=5)
trigger6 = (parent,var(50) = 0) && (var(1) < 5)
trigger6 = (var(1) :=0)


[State SUCCESS]
type=helper
trigger1 = var(1) = 5 && var(10) = 60
helpertype=normal
stateno=20005
ID=20005
name="Excel Charge"
postype=p1
pos=-0,0
supermovetime=255
size.xscale=1
size.yscale=1
ownpal=1

;Challenge
[State Challenge Number]
type = explod
trigger1 = 1
anim = 20041
pos = 23,ifelse(parent, var(18),180,240)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State Challenge Number]
type = explod
trigger1 = 1
anim = 20057
pos = 23,ifelse(parent, var(18),180,240)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

;====== [Time Display]==================================
[State Timer]
type = VarAdd
trigger1 = roundstate =2 && !var(9)
var(5) = 1

[State Convert to Seconds]
type = VarSet
trigger1 = 1
var(6) = Floor(var(5)/ 60 )

[State Convert to Milliseconds]
type = VarSet
trigger1 = 1
var(7) = Floor((var(5)-(Var(6)*60))*1.66)

[State .01]
type = explod
trigger1 = var(6) < 1000
anim = 20030+ Var(7) - (Floor(Var(7)/10)*10)
pos = 309,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State .1]
type = explod
trigger1 = var(6) < 1000
anim = 20030+ Floor(Var(7)/10)
pos = 300,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State 1]
type = explod
trigger1 = var(6) < 1000
anim = 20020+ Var(6)-(Floor(Var(6)/10)*10)
pos = 284,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State 10]
type = explod
trigger1 = var(6) >= 10 && var(6) < 1000
anim = 20020+Floor((Var(6)-(Floor(Var(6)/100)*100))/10)
pos = 268,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128, 256

[State 100]
type = explod
trigger1 = var(6) >=100 && var(6) < 1000
anim = 20020+ Floor(Var(6)/100)
pos = 252,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State OVERTIME]
type = explod
trigger1 =  var(6) >= 1000
anim = 20058
pos = 247,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State ALL CLEAR]
type = ChangeState
trigger1 = var(1) && !Var(10)
value = ifelse(var(9),20400,20202)


[State 181, 1]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1
;3 - J. HK, c. MK, Shoot Kick, 2nd Step, Mirage Combo Kick, Spin Side Shoot
[Statedef 20202]
type = S
movetype = I
anim = 9997
sprpriority = 5

[State SET GROOVE]
type = ParentVarSet
trigger1 = !var(1)
fvar(10) = 2

[State DISPLAY GROOVE]
type = explod
trigger1 = 1
anim = 8000+floor(parent,fvar(10))
pos = 160,ifelse(parent, var(18),168,228)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,128

[State NO INPUTS]
type = VarSet
trigger1 = !time
var(1) = 0

[State DELAY]
type = VarSet
trigger1 = !var(1)
var(10) = 60

[State DELAY]
type = VarAdd
trigger1 = var(1) = 6
var(10) = -1

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20134+(var(1)>0)
pos = 10,40
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20132+(var(1)>1)
pos = 10,50
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20108+(var(1)>2)
pos = 10,60
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20110+(var(1)>3)
pos = 10,70
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20116+(var(1)>4)
pos = 10,80
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20118+(var(1)>5)
pos = 10,90
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DETECTION]
type = Null
trigger1 = (parent, stateno = 650 && (parent, movehit = 1)) && parent, var(50)
trigger1 = (var(1) :=1)
trigger2 = (parent, stateno = 440 && (parent, movehit = 1)) && parent, var(50) && var(1) =1
trigger2 = (var(1) :=2)
trigger3 = (parent, stateno = 1000 && (parent, movehit = 1)) && parent, var(50) && var(1) =2
trigger3 = (var(1) :=3)
trigger4 = (parent, stateno = 1001 && (parent, movehit = 1)) && parent, var(50) && var(1) =3
trigger4 = (var(1) :=4)
trigger5 = (parent, stateno = 3000 && (parent, movehit = 1)) && parent, var(50) && var(1) =4
trigger5 = (var(1) :=5)
trigger6 = ((parent, stateno = [3010,3011]) && (parent, movehit = 1)) && parent, var(50) && var(1) =5
trigger6 = (var(1) :=6)
trigger7 = (parent,var(50) = 0) && (var(1) < 6)
trigger7 = (var(1) :=0)


[State SUCCESS]
type=helper
trigger1 = var(1) = 6 && var(10) = 60
helpertype=normal
stateno=20005
ID=20005
name="Excel Charge"
postype=p1
pos=-0,0
supermovetime=255
size.xscale=1
size.yscale=1
ownpal=1

;Challenge
[State Challenge Number]
type = explod
trigger1 = 1
anim = 20042
pos = 23,ifelse(parent, var(18),180,240)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State Challenge Number]
type = explod
trigger1 = 1
anim = 20057
pos = 23,ifelse(parent, var(18),180,240)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

;====== [Time Display]==================================
[State Timer]
type = VarAdd
trigger1 = roundstate =2 && !var(9)
var(5) = 1

[State Convert to Seconds]
type = VarSet
trigger1 = 1
var(6) = Floor(var(5)/ 60 )

[State Convert to Milliseconds]
type = VarSet
trigger1 = 1
var(7) = Floor((var(5)-(Var(6)*60))*1.66)

[State .01]
type = explod
trigger1 = var(6) < 1000
anim = 20030+ Var(7) - (Floor(Var(7)/10)*10)
pos = 309,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State .1]
type = explod
trigger1 = var(6) < 1000
anim = 20030+ Floor(Var(7)/10)
pos = 300,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State 1]
type = explod
trigger1 = var(6) < 1000
anim = 20020+ Var(6)-(Floor(Var(6)/10)*10)
pos = 284,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State 10]
type = explod
trigger1 = var(6) >= 10 && var(6) < 1000
anim = 20020+Floor((Var(6)-(Floor(Var(6)/100)*100))/10)
pos = 268,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128, 256

[State 100]
type = explod
trigger1 = var(6) >=100 && var(6) < 1000
anim = 20020+ Floor(Var(6)/100)
pos = 252,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State OVERTIME]
type = explod
trigger1 =  var(6) >= 1000
anim = 20058
pos = 247,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State ALL CLEAR]
type = ChangeState
trigger1 = var(1) && !Var(10)
value = ifelse(var(9),20400,20203)


[State 181, 1]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1

;4 - Shoot Kick, 2nd Step, Spin Side Shoot, Mirage Combo Kick, Spin Side Shoot
[Statedef 20203]
type = S
movetype = I
anim = 9997
sprpriority = 5



[State SET GROOVE]
type = ParentVarSet
trigger1 = !var(1)
fvar(10) = 2

[State DISPLAY GROOVE]
type = explod
trigger1 = 1
anim = 8000+floor(parent,fvar(10))
pos = 160,ifelse(parent, var(18),168,228)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,128

[State NO INPUTS]
type = VarSet
trigger1 = !time
var(1) = 0

[State DELAY]
type = VarSet
trigger1 = !var(1)
var(10) = 60

[State DELAY]
type = VarAdd
trigger1 = var(1) = 5
var(10) = -1

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20108+(var(1)>0)
pos = 10,40
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20110+(var(1)>1)
pos = 10,50
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20118+(var(1)>2)
pos = 10,60
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20116+(var(1)>3)
pos = 10,70
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20118+(var(1)>4)
pos = 10,80
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5



[State DETECTION]
type = Null
trigger1 = (parent, stateno = 1000 && (parent, movehit = 1)) && parent, var(50)
trigger1 = (var(1) :=1)
trigger2 = (parent, stateno = 1001 && (parent, movehit = 1)) && parent, var(50) && var(1) =1
trigger2 = (var(1) :=2)
trigger3 = (parent, stateno = 3010 && (parent, movehit = 1)) && parent, var(50) && var(1) =2
trigger3 = (var(1) :=3)
trigger4 = (parent, stateno = 3000 && (parent, movehit = 1)) && parent, var(50) && var(1) =3
trigger4 = (var(1) :=4)
trigger5 = (parent, stateno = 3010 && (parent, movehit = 1)) && parent, var(50) && var(1) =4
trigger5 = (var(1) :=5)
trigger6 = (parent,var(50) = 0) && (var(1) < 5)
trigger6 = (var(1) :=0)


[State SUCCESS]
type=helper
trigger1 = var(1) = 5 && var(10) = 60
helpertype=normal
stateno=20005
ID=20005
name="Excel Charge"
postype=p1
pos=-0,0
supermovetime=255
size.xscale=1
size.yscale=1
ownpal=1

;Challenge
[State Challenge Number]
type = explod
trigger1 = 1
anim = 20043
pos = 23,ifelse(parent, var(18),180,240)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State Challenge Number]
type = explod
trigger1 = 1
anim = 20057
pos = 23,ifelse(parent, var(18),180,240)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

;====== [Time Display]==================================
[State Timer]
type = VarAdd
trigger1 = roundstate =2 && !var(9)
var(5) = 1

[State Convert to Seconds]
type = VarSet
trigger1 = 1
var(6) = Floor(var(5)/ 60 )

[State Convert to Milliseconds]
type = VarSet
trigger1 = 1
var(7) = Floor((var(5)-(Var(6)*60))*1.66)

[State .01]
type = explod
trigger1 = var(6) < 1000
anim = 20030+ Var(7) - (Floor(Var(7)/10)*10)
pos = 309,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State .1]
type = explod
trigger1 = var(6) < 1000
anim = 20030+ Floor(Var(7)/10)
pos = 300,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State 1]
type = explod
trigger1 = var(6) < 1000
anim = 20020+ Var(6)-(Floor(Var(6)/10)*10)
pos = 284,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State 10]
type = explod
trigger1 = var(6) >= 10 && var(6) < 1000
anim = 20020+Floor((Var(6)-(Floor(Var(6)/100)*100))/10)
pos = 268,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128, 256

[State 100]
type = explod
trigger1 = var(6) >=100 && var(6) < 1000
anim = 20020+ Floor(Var(6)/100)
pos = 252,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State OVERTIME]
type = explod
trigger1 =  var(6) >= 1000
anim = 20058
pos = 247,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State ALL CLEAR]
type = ChangeState
trigger1 = var(1) && !Var(10)
value = ifelse(var(9),20400,20204)


[State 181, 1]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1

;5 - Lightning Knee, EX Lightning Knee, Dame Special
[Statedef 20204]
type = S
movetype = A
anim = 9998
sprpriority = 5

[State 200, 1];Force Jump
type = HitDef
trigger1 = p2stateno = 0 && var(1) < 3
sparkno = -1
numhits = 0
sparkno = -1
projhitanim = -1
projremovetime = 2
attr = S, SA
guardflag =
p2stateno = 29998
numhits = 0
kill = 0
pausetime = 0,0
ground.type = Low


[State SET GROOVE]
type = ParentVarSet
trigger1 = !var(1)
fvar(10) = 2

[State DISPLAY GROOVE]
type = explod
trigger1 = 1
anim = 8000+floor(parent,fvar(10))
pos = 160,ifelse(parent, var(18),168,228)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,128

[State NO INPUTS]
type = VarSet
trigger1 = !time
var(1) = 0

[State DELAY]
type = VarSet
trigger1 = !var(1)
var(10) = 60

[State DELAY]
type = VarAdd
trigger1 = var(1) = 3
var(10) = -1

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20102+(var(1)>0)
pos = 10,40
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20106+(var(1)>1)
pos = 10,50
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20120+(var(1)>2)
pos = 10,60
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5


[State DETECTION]
type = Null
trigger1 = ((parent, stateno = [1010,1012]) && (parent, movehit = 1)) && parent, var(50)
trigger1 = (var(1) :=1)
trigger2 = (parent, stateno = 2010 && (parent, movehit = 1)) && parent, var(50) && var(1) =1
trigger2 = (var(1) :=2)
trigger3 = ((parent, stateno = [3040,3041]) && (parent, movehit = 1)) && parent, var(50) && var(1) =2
trigger3 = (var(1) :=3)
trigger4 = (parent,var(50) = 0) && (var(1) < 3)
trigger4 = (var(1) :=0)


[State SUCCESS]
type=helper
trigger1 = var(1) = 3 && var(10) = 60
helpertype=normal
stateno=20005
ID=20005
name="Excel Charge"
postype=p1
pos=-0,0
supermovetime=255
size.xscale=1
size.yscale=1
ownpal=1

;Challenge
[State Challenge Number]
type = explod
trigger1 = 1
anim = 20044
pos = 23,ifelse(parent, var(18),180,240)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State Challenge Number]
type = explod
trigger1 = 1
anim = 20057
pos = 23,ifelse(parent, var(18),180,240)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

;====== [Time Display]==================================
[State Timer]
type = VarAdd
trigger1 = roundstate =2 && !var(9)
var(5) = 1

[State Convert to Seconds]
type = VarSet
trigger1 = 1
var(6) = Floor(var(5)/ 60 )

[State Convert to Milliseconds]
type = VarSet
trigger1 = 1
var(7) = Floor((var(5)-(Var(6)*60))*1.66)

[State .01]
type = explod
trigger1 = var(6) < 1000
anim = 20030+ Var(7) - (Floor(Var(7)/10)*10)
pos = 309,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State .1]
type = explod
trigger1 = var(6) < 1000
anim = 20030+ Floor(Var(7)/10)
pos = 300,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State 1]
type = explod
trigger1 = var(6) < 1000
anim = 20020+ Var(6)-(Floor(Var(6)/10)*10)
pos = 284,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State 10]
type = explod
trigger1 = var(6) >= 10 && var(6) < 1000
anim = 20020+Floor((Var(6)-(Floor(Var(6)/100)*100))/10)
pos = 268,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128, 256

[State 100]
type = explod
trigger1 = var(6) >=100 && var(6) < 1000
anim = 20020+ Floor(Var(6)/100)
pos = 252,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State OVERTIME]
type = explod
trigger1 =  var(6) >= 1000
anim = 20058
pos = 247,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State ALL CLEAR]
type = ChangeState
trigger1 = var(1) && !Var(10)
value = ifelse(var(9),20400,20205)


[State 181, 1]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1


;6 - J. HK, C. MK, Sliding Arrow, Spin Side Shoot
[Statedef 20205]
type = S
movetype = A
anim = 9998
sprpriority = 5

[State 200, 1];Force Jump
type = HitDef
trigger1 = p2stateno = 0
sparkno = -1
numhits = 0
sparkno = -1
projhitanim = -1
projremovetime = 2
attr = C, SA
guardflag =
p2stateno = 29999
numhits = 0
kill = 0
pausetime = 0,0
ground.type = Low


[State SET GROOVE]
type = ParentVarSet
trigger1 = !var(1)
fvar(10) = 2

[State DISPLAY GROOVE]
type = explod
trigger1 = 1
anim = 8000+floor(parent,fvar(10))
pos = 160,ifelse(parent, var(18),168,228)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,128

[State NO INPUTS]
type = VarSet
trigger1 = !time
var(1) = 0

[State DELAY]
type = VarSet
trigger1 = !var(1)
var(10) = 60

[State DELAY]
type = VarAdd
trigger1 = var(1) = 4
var(10) = -1

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20134+(var(1)>0)
pos = 10,40
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20132+(var(1)>1)
pos = 10,50
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20104+(var(1)>2)
pos = 10,60
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20118+(var(1)>3)
pos = 10,70
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5



[State DETECTION]
type = Null
trigger1 = (parent, stateno = 650 && (parent, movehit = 1)) && parent, var(50)
trigger1 = (var(1) :=1)
trigger2 = (parent, stateno = 440 && (parent, movehit = 1)) && parent, var(50) && var(1) =1
trigger2 = (var(1) :=2)
trigger3 = ((parent, stateno = 1029 && (parent, movehit = 1)) || parent, stateno = 1024) && parent, var(50) && var(1) =2
trigger3 = (var(1) :=3)
trigger4 = (parent, stateno = 3010 && (parent, movehit = 1)) && parent, var(50) && var(1) =3
trigger4 = (var(1) :=4)
trigger5 = (parent,var(50) = 0) && (var(1) < 4)
trigger5 = (var(1) :=0)


[State SUCCESS]
type=helper
trigger1 = var(1) = 4 && var(10) = 60
helpertype=normal
stateno=20005
ID=20005
name="Excel Charge"
postype=p1
pos=-0,0
supermovetime=255
size.xscale=1
size.yscale=1
ownpal=1

;Challenge
[State Challenge Number]
type = explod
trigger1 = 1
anim = 20045
pos = 23,ifelse(parent, var(18),180,240)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State Challenge Number]
type = explod
trigger1 = 1
anim = 20057
pos = 23,ifelse(parent, var(18),180,240)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

;====== [Time Display]==================================
[State Timer]
type = VarAdd
trigger1 = roundstate =2 && !var(9)
var(5) = 1

[State Convert to Seconds]
type = VarSet
trigger1 = 1
var(6) = Floor(var(5)/ 60 )

[State Convert to Milliseconds]
type = VarSet
trigger1 = 1
var(7) = Floor((var(5)-(Var(6)*60))*1.66)

[State .01]
type = explod
trigger1 = var(6) < 1000
anim = 20030+ Var(7) - (Floor(Var(7)/10)*10)
pos = 309,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State .1]
type = explod
trigger1 = var(6) < 1000
anim = 20030+ Floor(Var(7)/10)
pos = 300,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State 1]
type = explod
trigger1 = var(6) < 1000
anim = 20020+ Var(6)-(Floor(Var(6)/10)*10)
pos = 284,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State 10]
type = explod
trigger1 = var(6) >= 10 && var(6) < 1000
anim = 20020+Floor((Var(6)-(Floor(Var(6)/100)*100))/10)
pos = 268,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128, 256

[State 100]
type = explod
trigger1 = var(6) >=100 && var(6) < 1000
anim = 20020+ Floor(Var(6)/100)
pos = 252,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State OVERTIME]
type = explod
trigger1 =  var(6) >= 1000
anim = 20058
pos = 247,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State ALL CLEAR]
type = ChangeState
trigger1 = var(1) && !Var(10)
value = ifelse(var(9),20400,20206)


[State 181, 1]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1

;7 -J.HP, C.HP, Shoot Kick, 2nd Step, H. Final Step, C. WK, Lightning Knee
[Statedef 20206]
type = S
movetype = I
anim = 9997
sprpriority = 5

[State SET GROOVE]
type = ParentVarSet
trigger1 = !var(1)
fvar(10) = 0

[State DISPLAY GROOVE]
type = explod
trigger1 = 1
anim = 8000+floor(parent,fvar(10))
pos = 160,ifelse(parent, var(18),168,228)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,128

[State NO INPUTS]
type = VarSet
trigger1 = !time
var(1) = 0

[State DELAY]
type = VarSet
trigger1 = !var(1)
var(10) = 60

[State DELAY]
type = VarAdd
trigger1 = var(1) = 7
var(10) = -1

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20136+(var(1)>0)
pos = 10,40
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20138+(var(1)>1)
pos = 10,50
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20108+(var(1)>2)
pos = 10,60
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20110+(var(1)>3)
pos = 10,70
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20140+(var(1)>4)
pos = 10,80
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20126+(var(1)>5)
pos = 10,90
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20102+(var(1)>6)
pos = 10,100
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DETECTION]
type = Null
trigger1 = (parent, stateno = 620 && (parent, movehit = 1)) && parent, var(50)
trigger1 = (var(1) :=1)
trigger2 = (parent, stateno = 420 && (parent, movehit = 1)) && parent, var(50) && var(1) =1
trigger2 = (var(1) :=2)
trigger3 = (parent, stateno = 1000 && (parent, movehit = 1)) && parent, var(50) && var(1) =2
trigger3 = (var(1) :=3)
trigger4 = (parent, stateno = 1001 && (parent, movehit = 1)) && parent, var(50) && var(1) =3
trigger4 = (var(1) :=4)
trigger5 = (parent, stateno = 1004 && (parent, movehit = 1)) && parent, var(50) && var(1) =4
trigger5 = (var(1) :=5)
trigger6 = (parent, stateno = 430 && (parent, movehit = 1)) && parent, var(50) && var(1) =5
trigger6 = (var(1) :=6)
trigger7 = (parent, stateno = 1010 || parent, stateno = 1011 || parent, stateno = 1012) && (parent,movehit =1) && parent, var(50) && var(1) =6
trigger7 = (var(1) :=7)
trigger8 = (parent,var(50) = 0) && (var(1) < 7)
trigger8 = (var(1) :=0)


[State SUCCESS]
type=helper
trigger1 = var(1) = 7 && var(10) = 60
helpertype=normal
stateno=20005
ID=20005
name="Excel Charge"
postype=p1
pos=-0,0
supermovetime=255
size.xscale=1
size.yscale=1
ownpal=1

;Challenge
[State Challenge Number]
type = explod
trigger1 = 1
anim = 20046
pos = 23,ifelse(parent, var(18),180,240)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State Challenge Number]
type = explod
trigger1 = 1
anim = 20057
pos = 23,ifelse(parent, var(18),180,240)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

;====== [Time Display]==================================
[State Timer]
type = VarAdd
trigger1 = roundstate =2 && !var(9)
var(5) = 1

[State Convert to Seconds]
type = VarSet
trigger1 = 1
var(6) = Floor(var(5)/ 60 )

[State Convert to Milliseconds]
type = VarSet
trigger1 = 1
var(7) = Floor((var(5)-(Var(6)*60))*1.66)

[State .01]
type = explod
trigger1 = var(6) < 1000
anim = 20030+ Var(7) - (Floor(Var(7)/10)*10)
pos = 309,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State .1]
type = explod
trigger1 = var(6) < 1000
anim = 20030+ Floor(Var(7)/10)
pos = 300,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State 1]
type = explod
trigger1 = var(6) < 1000
anim = 20020+ Var(6)-(Floor(Var(6)/10)*10)
pos = 284,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State 10]
type = explod
trigger1 = var(6) >= 10 && var(6) < 1000
anim = 20020+Floor((Var(6)-(Floor(Var(6)/100)*100))/10)
pos = 268,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128, 256

[State 100]
type = explod
trigger1 = var(6) >=100 && var(6) < 1000
anim = 20020+ Floor(Var(6)/100)
pos = 252,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State OVERTIME]
type = explod
trigger1 =  var(6) >= 1000
anim = 20058
pos = 247,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State ALL CLEAR]
type = ChangeState
trigger1 = var(1) && !Var(10)
value = ifelse(var(9),20400,20207)


[State 181, 1]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1



;8 - S. MK, Shoot kick, 2nd Step, H. Final Step, Shoot Upper, Spin Side Shoot, Mirage combo kick
[Statedef 20207]
type = S
movetype = I
anim = 9997
sprpriority = 5

[State SET GROOVE]
type = ParentVarSet
trigger1 = !var(1)
fvar(10) = 2

[State DISPLAY GROOVE]
type = explod
trigger1 = 1
anim = 8000+floor(parent,fvar(10))
pos = 160,ifelse(parent, var(18),168,228)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,128

[State NO INPUTS]
type = VarSet
trigger1 = !time
var(1) = 0

[State DELAY]
type = VarSet
trigger1 = !var(1)
var(10) = 60

[State DELAY]
type = VarAdd
trigger1 = var(1) = 7
var(10) = -1

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20150+(var(1)>0)
pos = 10,40
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20108+(var(1)>1)
pos = 10,50
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20110+(var(1)>2)
pos = 10,60
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20140+(var(1)>3)
pos = 10,70
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20100+(var(1)>4)
pos = 10,80
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20118+(var(1)>5)
pos = 10,90
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20116+(var(1)>6)
pos = 10,100
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DETECTION]
type = Null
trigger1 = (parent, stateno = 240 && (parent, movehit = 1)) && parent, var(50)
trigger1 = (var(1) :=1)
trigger2 = (parent, stateno = 1000 && (parent, movehit = 1)) && parent, var(50) && var(1) =1
trigger2 = (var(1) :=2)
trigger3 = (parent, stateno = 1001 && (parent, movehit = 1)) && parent, var(50) && var(1) =2
trigger3 = (var(1) :=3)
trigger4 = (parent, stateno = 1004 && (parent, movehit = 1)) && parent, var(50) && var(1) =3
trigger4 = (var(1) :=4)
trigger5 = ((parent, stateno = [1030,1034]) && (parent, movehit = 1)) && parent, var(50) && var(1) =4
trigger5 = (var(1) :=5)
trigger6 = (parent, stateno = 3010 && (parent, movehit = 1)) && parent, var(50) && var(1) =5
trigger6 = (var(1) :=6)
trigger7 = (parent, stateno = 3000) && (parent,movehit =1) && parent, var(50) && var(1) =6
trigger7 = (var(1) :=7)
trigger8 = (parent,var(50) = 0) && (var(1) < 7)
trigger8 = (var(1) :=0)


[State SUCCESS]
type=helper
trigger1 = var(1) = 7 && var(10) = 60
helpertype=normal
stateno=20005
ID=20005
name="Excel Charge"
postype=p1
pos=-0,0
supermovetime=255
size.xscale=1
size.yscale=1
ownpal=1

;Challenge
[State Challenge Number]
type = explod
trigger1 = 1
anim = 20047
pos = 23,ifelse(parent, var(18),180,240)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State Challenge Number]
type = explod
trigger1 = 1
anim = 20057
pos = 23,ifelse(parent, var(18),180,240)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

;====== [Time Display]==================================
[State Timer]
type = VarAdd
trigger1 = roundstate =2 && !var(9)
var(5) = 1

[State Convert to Seconds]
type = VarSet
trigger1 = 1
var(6) = Floor(var(5)/ 60 )

[State Convert to Milliseconds]
type = VarSet
trigger1 = 1
var(7) = Floor((var(5)-(Var(6)*60))*1.66)

[State .01]
type = explod
trigger1 = var(6) < 1000
anim = 20030+ Var(7) - (Floor(Var(7)/10)*10)
pos = 309,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State .1]
type = explod
trigger1 = var(6) < 1000
anim = 20030+ Floor(Var(7)/10)
pos = 300,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State 1]
type = explod
trigger1 = var(6) < 1000
anim = 20020+ Var(6)-(Floor(Var(6)/10)*10)
pos = 284,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State 10]
type = explod
trigger1 = var(6) >= 10 && var(6) < 1000
anim = 20020+Floor((Var(6)-(Floor(Var(6)/100)*100))/10)
pos = 268,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128, 256

[State 100]
type = explod
trigger1 = var(6) >=100 && var(6) < 1000
anim = 20020+ Floor(Var(6)/100)
pos = 252,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State OVERTIME]
type = explod
trigger1 =  var(6) >= 1000
anim = 20058
pos = 247,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State ALL CLEAR]
type = ChangeState
trigger1 = var(1) && !Var(10)
value = ifelse(var(9),20400,20208)


[State 181, 1]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1

;9 - C.MP, C. MK, Shoot Kick, 2nd Step, H. Final Step, EX Lightning Knee, EX Shoot Upper, Lightning Knee
[Statedef 20208]
type = S
movetype = I
anim = 9997
sprpriority = 5

[State SET GROOVE]
type = ParentVarSet
trigger1 = !var(1)
fvar(10) = 2

[State DISPLAY GROOVE]
type = explod
trigger1 = 1
anim = 8000+floor(parent,fvar(10))
pos = 160,ifelse(parent, var(18),168,228)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,128

[State NO INPUTS]
type = VarSet
trigger1 = !time
var(1) = 0

[State DELAY]
type = VarSet
trigger1 = !var(1)
var(10) = 60

[State DELAY]
type = VarAdd
trigger1 = var(1) = 8
var(10) = -1

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20130+(var(1)>0)
pos = 10,40
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20132+(var(1)>1)
pos = 10,50
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20108+(var(1)>2)
pos = 10,60
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20110+(var(1)>3)
pos = 10,70
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20140+(var(1)>4)
pos = 10,80
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20106+(var(1)>5)
pos = 10,90
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20152+(var(1)>6)
pos = 10,100
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20102+(var(1)>7)
pos = 10,110
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DETECTION]
type = Null
trigger1 = (parent, stateno = 410 && (parent, movehit = 1)) && parent, var(50)
trigger1 = (var(1) :=1)
trigger2 = (parent, stateno = 440 && (parent, movehit = 1)) && parent, var(50) && var(1) =1
trigger2 = (var(1) :=2)
trigger3 = (parent, stateno = 1000 && (parent, movehit = 1)) && parent, var(50) && var(1) =2
trigger3 = (var(1) :=3)
trigger4 = (parent, stateno = 1001 && (parent, movehit = 1)) && parent, var(50) && var(1) =3
trigger4 = (var(1) :=4)
trigger5 = ((parent, stateno = 1004) && (parent, movehit = 1)) && parent, var(50) && var(1) =4
trigger5 = (var(1) :=5)
trigger6 = (parent, stateno = 2010 && (parent, movehit = 1)) && parent, var(50) && var(1) =5
trigger6 = (var(1) :=6)
trigger7 = (parent, stateno = [2030,2032]) && (parent,movehit =1) && parent, var(50) && var(1) =6
trigger7 = (var(1) :=7)
trigger8 = (parent, stateno = [1010,1012]) && (parent,movehit =1) && parent, var(50) && var(1) =7
trigger8 = (var(1) :=8)
trigger9 = (parent,var(50) = 0) && (var(1) < 8)
trigger9 = (var(1) :=0)


[State SUCCESS]
type=helper
trigger1 = var(1) = 8 && var(10) = 60
helpertype=normal
stateno=20005
ID=20005
name="Excel Charge"
postype=p1
pos=-0,0
supermovetime=255
size.xscale=1
size.yscale=1
ownpal=1

;Challenge
[State Challenge Number]
type = explod
trigger1 = 1
anim = 20048
pos = 23,ifelse(parent, var(18),180,240)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State Challenge Number]
type = explod
trigger1 = 1
anim = 20057
pos = 23,ifelse(parent, var(18),180,240)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

;====== [Time Display]==================================
[State Timer]
type = VarAdd
trigger1 = roundstate =2 && !var(9)
var(5) = 1

[State Convert to Seconds]
type = VarSet
trigger1 = 1
var(6) = Floor(var(5)/ 60 )

[State Convert to Milliseconds]
type = VarSet
trigger1 = 1
var(7) = Floor((var(5)-(Var(6)*60))*1.66)

[State .01]
type = explod
trigger1 = var(6) < 1000
anim = 20030+ Var(7) - (Floor(Var(7)/10)*10)
pos = 309,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State .1]
type = explod
trigger1 = var(6) < 1000
anim = 20030+ Floor(Var(7)/10)
pos = 300,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State 1]
type = explod
trigger1 = var(6) < 1000
anim = 20020+ Var(6)-(Floor(Var(6)/10)*10)
pos = 284,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State 10]
type = explod
trigger1 = var(6) >= 10 && var(6) < 1000
anim = 20020+Floor((Var(6)-(Floor(Var(6)/100)*100))/10)
pos = 268,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128, 256

[State 100]
type = explod
trigger1 = var(6) >=100 && var(6) < 1000
anim = 20020+ Floor(Var(6)/100)
pos = 252,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State OVERTIME]
type = explod
trigger1 =  var(6) >= 1000
anim = 20058
pos = 247,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State ALL CLEAR]
type = ChangeState
trigger1 = var(1) && !Var(10)
value = ifelse(var(9),20400,20209)


[State 181, 1]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1

;10 - Keep your opponent in the air for 10 seconds
[Statedef 20209]
type = S
movetype = I
anim = 9997
sprpriority = 5

[State SET GROOVE]
type = ParentVarSet
trigger1 = !var(1)
fvar(10) = 2

[State DISPLAY GROOVE]
type = explod
trigger1 = 1
anim = 8000+floor(parent,fvar(10))
pos = 160,ifelse(parent, var(18),168,228)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,128

[State NO INPUTS]
type = VarSet
trigger1 = !time
var(1) = 0

[State DELAY]
type = VarSet
trigger1 = !var(1)
var(10) = 60

[State DELAY]
type = VarAdd
trigger1 = var(1) = 1
var(10) = -1

[State SET TIME]
type = VarSet
trigger1 = !time
var(12) = 600

[State TIMER]
type = VarAdd
trigger1 = p2statetype = A && var(12) > 0
var(12) = -1

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20154+(var(1)>0)
pos = 10,40
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State Convert to Seconds]
type = VarSet
trigger1 = 1
var(14) = Floor(var(12)/ 60 )

[State Convert to Milliseconds]
type = VarSet
trigger1 = 1
var(15) = Floor((var(12)-(Var(14)*60))*1.66)

[State .01]
type = explod
trigger1 = 1
anim = 20030+ Var(15) - (Floor(Var(15)/10)*10)
pos = 179,80
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256


[State .1]
type = explod
trigger1 = 1
anim = 20030+ Floor(Var(15)/10)
pos = 170,80
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State 1]
type = explod
trigger1 = 1
anim = 20020+ Var(14)-(Floor(Var(14)/10)*10)
pos = 154,80
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State 10]
type = explod
trigger1 = var(14) >= 10 
anim = 20020+Floor((Var(14)-(Floor(Var(14)/100)*100))/10)
pos = 138,80
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128, 256




[State DETECTION]
type = Null
trigger1 = var(12) <= 0
trigger1 = (var(1) :=1)
trigger2 = p2statetype != A && var(12) > 0
trigger2 = (var(12) :=600)



[State SUCCESS]
type=helper
trigger1 = var(1) = 1 && var(10) = 60
helpertype=normal
stateno=20005
ID=20005
name="Excel Charge"
postype=p1
pos=-0,0
supermovetime=255
size.xscale=1
size.yscale=1
ownpal=1

;Challenge
[State Challenge Number]
type = explod
trigger1 = 1
anim = 20049
pos = 23,ifelse(parent, var(18),180,240)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State Challenge Number]
type = explod
trigger1 = 1
anim = 20057
pos = 23,ifelse(parent, var(18),180,240)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

;====== [Time Display]==================================
[State Timer]
type = VarAdd
trigger1 = roundstate =2 && !var(9)
var(5) = 1

[State Convert to Seconds]
type = VarSet
trigger1 = 1
var(6) = Floor(var(5)/ 60 )

[State Convert to Milliseconds]
type = VarSet
trigger1 = 1
var(7) = Floor((var(5)-(Var(6)*60))*1.66)

[State .01]
type = explod
trigger1 = var(6) < 1000
anim = 20030+ Var(7) - (Floor(Var(7)/10)*10)
pos = 309,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State .1]
type = explod
trigger1 = var(6) < 1000
anim = 20030+ Floor(Var(7)/10)
pos = 300,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State 1]
type = explod
trigger1 = var(6) < 1000
anim = 20020+ Var(6)-(Floor(Var(6)/10)*10)
pos = 284,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State 10]
type = explod
trigger1 = var(6) >= 10 && var(6) < 1000
anim = 20020+Floor((Var(6)-(Floor(Var(6)/100)*100))/10)
pos = 268,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128, 256

[State 100]
type = explod
trigger1 = var(6) >=100 && var(6) < 1000
anim = 20020+ Floor(Var(6)/100)
pos = 252,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State OVERTIME]
type = explod
trigger1 =  var(6) >= 1000
anim = 20058
pos = 247,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State ALL CLEAR]
type = ChangeState
trigger1 = var(1) && !Var(10)
value = ifelse(var(9),20400,20210)


[State 181, 1]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1

;11 - C. LK. C.LK, Shoot Kick, 2nd Step, H. Final Step, C.MK, Shuttle Combination
[Statedef 20210]
type = S
movetype = I
anim = 9997
sprpriority = 5

[State SET GROOVE]
type = ParentVarSet
trigger1 = !var(1)
fvar(10) = 2

[State DISPLAY GROOVE]
type = explod
trigger1 = 1
anim = 8000+floor(parent,fvar(10))
pos = 160,ifelse(parent, var(18),168,228)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,128

[State NO INPUTS]
type = VarSet
trigger1 = !time
var(1) = 0

[State DELAY]
type = VarSet
trigger1 = !var(1)
var(10) = 60

[State DELAY]
type = VarAdd
trigger1 = var(1) = 7
var(10) = -1

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20126+(var(1)>0)
pos = 10,40
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20126+(var(1)>1)
pos = 10,50
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20108+(var(1)>2)
pos = 10,60
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20110+(var(1)>3)
pos = 10,70
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20140+(var(1)>4)
pos = 10,80
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20132+(var(1)>5)
pos = 10,90
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20124+(var(1)>6)
pos = 10,100
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DETECTION]
type = Null
trigger1 = (parent, stateno = 430 && (parent, movehit = 1)) && parent, var(50) && !var(1)
trigger1 = (var(1) :=1) && (var(2) := 1)
trigger2 = (parent, stateno = 430 && (parent, movehit = 1)) && parent, var(50) && var(1) =1 && !var(2)
trigger2 = (var(1) :=2)
trigger3 = (parent, stateno = 1000 && (parent, movehit = 1)) && parent, var(50) && var(1) =2
trigger3 = (var(1) :=3)
trigger4 = (parent, stateno = 1001 && (parent, movehit = 1)) && parent, var(50) && var(1) =3
trigger4 = (var(1) :=4)
trigger5 = (parent, stateno = 1004 && (parent, movehit = 1)) && parent, var(50) && var(1) =4
trigger5 = (var(1) :=5)
trigger6 = (parent, stateno = 440 && (parent, movehit = 1)) && parent, var(50) && var(1) =5
trigger6 = (var(1) :=6)
trigger7 = (parent, stateno = 3070 && (parent, movehit = 1)) && parent, var(50) && var(1) =6
trigger7 = (var(1) :=7)
trigger8 = (parent,var(50) = 0) && (var(1) < 7)
trigger8 = (var(1) :=0)
trigger9 = (parent, stateno = 430 && parent, time  <2)
trigger9 = (var(2) :=0)


[State SUCCESS]
type=helper
trigger1 = var(1) = 7 && var(10) = 60
helpertype=normal
stateno=20005
ID=20005
name="Excel Charge"
postype=p1
pos=-0,0
supermovetime=255
size.xscale=1
size.yscale=1
ownpal=1

;Challenge
[State Challenge Number]
type = explod
trigger1 = 1
anim = 20050
pos = 23,ifelse(parent, var(18),180,240)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State Challenge Number]
type = explod
trigger1 = 1
anim = 20057
pos = 23,ifelse(parent, var(18),180,240)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

;====== [Time Display]==================================
[State Timer]
type = VarAdd
trigger1 = roundstate =2 && !var(9)
var(5) = 1

[State Convert to Seconds]
type = VarSet
trigger1 = 1
var(6) = Floor(var(5)/ 60 )

[State Convert to Milliseconds]
type = VarSet
trigger1 = 1
var(7) = Floor((var(5)-(Var(6)*60))*1.66)

[State .01]
type = explod
trigger1 = var(6) < 1000
anim = 20030+ Var(7) - (Floor(Var(7)/10)*10)
pos = 309,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State .1]
type = explod
trigger1 = var(6) < 1000
anim = 20030+ Floor(Var(7)/10)
pos = 300,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State 1]
type = explod
trigger1 = var(6) < 1000
anim = 20020+ Var(6)-(Floor(Var(6)/10)*10)
pos = 284,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State 10]
type = explod
trigger1 = var(6) >= 10 && var(6) < 1000
anim = 20020+Floor((Var(6)-(Floor(Var(6)/100)*100))/10)
pos = 268,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128, 256

[State 100]
type = explod
trigger1 = var(6) >=100 && var(6) < 1000
anim = 20020+ Floor(Var(6)/100)
pos = 252,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State OVERTIME]
type = explod
trigger1 =  var(6) >= 1000
anim = 20058
pos = 247,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State ALL CLEAR]
type = ChangeState
trigger1 = var(1) && !Var(10)
value = ifelse(var(9),20400,20211)


[State 181, 1]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1
;12 - J.MK, C.HP, Shoot Kick, 2nd Step, Dame Special, Fairy Gift
[Statedef 20211]
type = S
movetype = I
anim = 9997
sprpriority = 5



[State SET GROOVE]
type = ParentVarSet
trigger1 = !var(1)
fvar(10) = 2

[State DISPLAY GROOVE]
type = explod
trigger1 = 1
anim = 8000+floor(parent,fvar(10))
pos = 160,ifelse(parent, var(18),168,228)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,128

[State NO INPUTS]
type = VarSet
trigger1 = !time
var(1) = 0

[State DELAY]
type = VarSet
trigger1 = !var(1)
var(10) = 60

[State DELAY]
type = VarAdd
trigger1 = var(1) = 6
var(10) = -1

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20148+(var(1)>0)
pos = 10,40
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20138+(var(1)>1)
pos = 10,50
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20108+(var(1)>2)
pos = 10,60
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20110+(var(1)>3)
pos = 10,70
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20120+(var(1)>4)
pos = 10,80
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20122+(var(1)>5)
pos = 10,90
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DETECTION]
type = Null
trigger1 = (parent, stateno = 640 && (parent, movehit = 1)) && parent, var(50)
trigger1 = (var(1) :=1)
trigger2 = (parent, stateno = 420 && (parent, movehit = 1)) && parent, var(50) && var(1) =1
trigger2 = (var(1) :=2)
trigger3 = (parent, stateno = 1000 && (parent, movehit = 1)) && parent, var(50) && var(1) =2
trigger3 = (var(1) :=3)
trigger4 = (parent, stateno = 1001 && (parent, movehit = 1)) && parent, var(50) && var(1) =3
trigger4 = (var(1) :=4)
trigger5 = (parent, stateno = 3040 && (parent, movehit = 1)) && parent, var(50) && var(1) =4
trigger5 = (var(1) :=5)
trigger6 = ((parent, stateno = [3050,3059]) && (parent, movehit = 1)) && parent, var(50) && var(1) =5
trigger6 = (var(1) :=6)
trigger7 = (parent,var(50) = 0) && (var(1) < 6)
trigger7 = (var(1) :=0)

[State SUCCESS]
type=helper
trigger1 = var(1) = 6 && var(10) = 60
helpertype=normal
stateno=20005
ID=20005
name="Excel Charge"
postype=p1
pos=-0,0
supermovetime=255
size.xscale=1
size.yscale=1
ownpal=1

;Challenge
[State Challenge Number]
type = explod
trigger1 = 1
anim = 20051
pos = 23,ifelse(parent, var(18),180,240)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State Challenge Number]
type = explod
trigger1 = 1
anim = 20057
pos = 23,ifelse(parent, var(18),180,240)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

;====== [Time Display]==================================
[State Timer]
type = VarAdd
trigger1 = roundstate =2 && !var(9)
var(5) = 1

[State Convert to Seconds]
type = VarSet
trigger1 = 1
var(6) = Floor(var(5)/ 60 )

[State Convert to Milliseconds]
type = VarSet
trigger1 = 1
var(7) = Floor((var(5)-(Var(6)*60))*1.66)

[State .01]
type = explod
trigger1 = var(6) < 1000
anim = 20030+ Var(7) - (Floor(Var(7)/10)*10)
pos = 309,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State .1]
type = explod
trigger1 = var(6) < 1000
anim = 20030+ Floor(Var(7)/10)
pos = 300,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State 1]
type = explod
trigger1 = var(6) < 1000
anim = 20020+ Var(6)-(Floor(Var(6)/10)*10)
pos = 284,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State 10]
type = explod
trigger1 = var(6) >= 10 && var(6) < 1000
anim = 20020+Floor((Var(6)-(Floor(Var(6)/100)*100))/10)
pos = 268,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128, 256

[State 100]
type = explod
trigger1 = var(6) >=100 && var(6) < 1000
anim = 20020+ Floor(Var(6)/100)
pos = 252,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State OVERTIME]
type = explod
trigger1 =  var(6) >= 1000
anim = 20058
pos = 247,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State ALL CLEAR]
type = ChangeState
trigger1 = var(1) && !Var(10)
value = ifelse(var(9),20400,20212)


[State 181, 1]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1

;13 - J.HP, C.MP, C.MK, Sliding Arrow, Shuttle Combination
[Statedef 20212]
type = S
movetype = A
anim = 9998
sprpriority = 5

[State 200, 1];Force Jump
type = HitDef
trigger1 = p2stateno = 0
sparkno = -1
numhits = 0
sparkno = -1
projhitanim = -1
projremovetime = 2
attr = C, SA
guardflag =
p2stateno = 29999
numhits = 0
kill = 0
pausetime = 0,0
ground.type = Low


[State SET GROOVE]
type = ParentVarSet
trigger1 = !var(1)
fvar(10) = 2

[State DISPLAY GROOVE]
type = explod
trigger1 = 1
anim = 8000+floor(parent,fvar(10))
pos = 160,ifelse(parent, var(18),168,228)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,128

[State NO INPUTS]
type = VarSet
trigger1 = !time
var(1) = 0

[State DELAY]
type = VarSet
trigger1 = !var(1)
var(10) = 60

[State DELAY]
type = VarAdd
trigger1 = var(1) = 5
var(10) = -1

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20136+(var(1)>0)
pos = 10,40
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20130+(var(1)>1)
pos = 10,50
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20132+(var(1)>2)
pos = 10,60
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20104+(var(1)>3)
pos = 10,70
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20124+(var(1)>4)
pos = 10,80
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5



[State DETECTION]
type = Null
trigger1 = (parent, stateno = 620 && (parent, movehit = 1)) && parent, var(50)
trigger1 = (var(1) :=1)
trigger2 = (parent, stateno = 410 && (parent, movehit = 1)) && parent, var(50) && var(1) =1
trigger2 = (var(1) :=2)
trigger3 = (parent, stateno = 410 && (parent, movehit = 1)) && parent, var(50) && var(1) =2
trigger3 = (var(1) :=3)
trigger4 = ((parent, stateno = 1029 && (parent, movehit = 1)) || parent, stateno = 1024) && parent, var(50) && var(1) =3
trigger4 = (var(1) :=4)
trigger5 = (parent, stateno = 3070 && (parent, movehit = 1)) && parent, var(50) && var(1) =4
trigger5 = (var(1) :=5)
trigger6 = (parent,var(50) = 0) && (var(1) < 5)
trigger6 = (var(1) :=0)


[State SUCCESS]
type=helper
trigger1 = var(1) = 5 && var(10) = 60
helpertype=normal
stateno=20005
ID=20005
name="Excel Charge"
postype=p1
pos=-0,0
supermovetime=255
size.xscale=1
size.yscale=1
ownpal=1

;Challenge
[State Challenge Number]
type = explod
trigger1 = 1
anim = 20052
pos = 23,ifelse(parent, var(18),180,240)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State Challenge Number]
type = explod
trigger1 = 1
anim = 20057
pos = 23,ifelse(parent, var(18),180,240)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

;====== [Time Display]==================================
[State Timer]
type = VarAdd
trigger1 = roundstate =2 && !var(9)
var(5) = 1

[State Convert to Seconds]
type = VarSet
trigger1 = 1
var(6) = Floor(var(5)/ 60 )

[State Convert to Milliseconds]
type = VarSet
trigger1 = 1
var(7) = Floor((var(5)-(Var(6)*60))*1.66)

[State .01]
type = explod
trigger1 = var(6) < 1000
anim = 20030+ Var(7) - (Floor(Var(7)/10)*10)
pos = 309,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State .1]
type = explod
trigger1 = var(6) < 1000
anim = 20030+ Floor(Var(7)/10)
pos = 300,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State 1]
type = explod
trigger1 = var(6) < 1000
anim = 20020+ Var(6)-(Floor(Var(6)/10)*10)
pos = 284,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State 10]
type = explod
trigger1 = var(6) >= 10 && var(6) < 1000
anim = 20020+Floor((Var(6)-(Floor(Var(6)/100)*100))/10)
pos = 268,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128, 256

[State 100]
type = explod
trigger1 = var(6) >=100 && var(6) < 1000
anim = 20020+ Floor(Var(6)/100)
pos = 252,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State OVERTIME]
type = explod
trigger1 =  var(6) >= 1000
anim = 20058
pos = 247,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State ALL CLEAR]
type = ChangeState
trigger1 = var(1) && !Var(10)
value = ifelse(var(9),20400,20213)


[State 181, 1]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1

;14 - J.HK, Excel, Shoot Kick, S.HP, Shoot Kick, S.HP, Shoot Kick, S.HP, Shoot Kick, 2nd Step, M. Final Step
[Statedef 20213]
type = S
movetype = I
anim = 9997
sprpriority = 5

[State SET GROOVE]
type = ParentVarSet
trigger1 = !var(1)
fvar(10) = 2

[State DISPLAY GROOVE]
type = explod
trigger1 = 1
anim = 8000+floor(parent,fvar(10))
pos = 160,ifelse(parent, var(18),168,228)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,128

[State NO INPUTS]
type = VarSet
trigger1 = !time
var(1) = 0

[State DELAY]
type = VarSet
trigger1 = !var(1)
var(10) = 60

[State DELAY]
type = VarAdd
trigger1 = var(1) = 11
var(10) = -1

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20134+(var(1)>0)
pos = 10,40
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20156+(var(1)>1)
pos = 10,50
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20108+(var(1)>2)
pos = 10,60
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20144+(var(1)>3)
pos = 10,70
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20108+(var(1)>4)
pos = 10,80
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20144+(var(1)>5)
pos = 10,90
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20108+(var(1)>6)
pos = 10,100
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20144+(var(1)>7)
pos = 10,110
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20108+(var(1)>8)
pos = 10,120
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20110+(var(1)>9)
pos = 10,130
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20128+(var(1)>10)
pos = 10,140
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DETECTION]
type = Null
trigger1 = (parent, stateno = 650 && (parent, movehit = 1)) && parent, var(50)
trigger1 = (var(1) :=1)
trigger2 = (parent, stateno = 960) && parent, var(50) && var(1) =1
trigger2 = (var(1) :=2)
trigger3 = (parent, stateno = 1000 && (parent, movehit = 1)) && parent, var(50) && var(1) =2
trigger3 = (var(1) :=3)
trigger4 = (parent, stateno = 220 && (parent, movehit = 1)) && parent, var(50) && var(1) =3
trigger4 = (var(1) :=4)
trigger5 = ((parent, stateno = 1000) && (parent, movehit = 1)) && parent, var(50) && var(1) =4
trigger5 = (var(1) :=5)
trigger6 = (parent, stateno = 220 && (parent, movehit = 1)) && parent, var(50) && var(1) =5
trigger6 = (var(1) :=6)
trigger7 = (parent, stateno = 1000) && (parent,movehit =1) && parent, var(50) && var(1) =6
trigger7 = (var(1) :=7)
trigger8 = (parent, stateno = 220) && (parent,movehit =1) && parent, var(50) && var(1) =7
trigger8 = (var(1) :=8)
trigger9 = (parent, stateno = 1000 && (parent, movehit = 1)) && parent, var(50) && var(1) =8
trigger9 = (var(1) :=9)
trigger10 = (parent, stateno = 1001) && (parent,movehit =1) && parent, var(50) && var(1) =9
trigger10 = (var(1) :=10)
trigger11 = (parent, stateno = 1003) && (parent,movehit =1) && parent, var(50) && var(1) =10
trigger11 = (var(1) :=11)
trigger12 = (parent,var(50) = 0) && (var(1) < 11)
trigger12 = (var(1) :=0)


[State SUCCESS]
type=helper
trigger1 = var(1) = 11 && var(10) = 60
helpertype=normal
stateno=20005
ID=20005
name="Excel Charge"
postype=p1
pos=-0,0
supermovetime=255
size.xscale=1
size.yscale=1
ownpal=1

;Challenge
[State Challenge Number]
type = explod
trigger1 = 1
anim = 20053
pos = 23,ifelse(parent, var(18),180,240)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State Challenge Number]
type = explod
trigger1 = 1
anim = 20057
pos = 23,ifelse(parent, var(18),180,240)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

;====== [Time Display]==================================
[State Timer]
type = VarAdd
trigger1 = roundstate =2 && !var(9)
var(5) = 1

[State Convert to Seconds]
type = VarSet
trigger1 = 1
var(6) = Floor(var(5)/ 60 )

[State Convert to Milliseconds]
type = VarSet
trigger1 = 1
var(7) = Floor((var(5)-(Var(6)*60))*1.66)

[State .01]
type = explod
trigger1 = var(6) < 1000
anim = 20030+ Var(7) - (Floor(Var(7)/10)*10)
pos = 309,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State .1]
type = explod
trigger1 = var(6) < 1000
anim = 20030+ Floor(Var(7)/10)
pos = 300,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State 1]
type = explod
trigger1 = var(6) < 1000
anim = 20020+ Var(6)-(Floor(Var(6)/10)*10)
pos = 284,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State 10]
type = explod
trigger1 = var(6) >= 10 && var(6) < 1000
anim = 20020+Floor((Var(6)-(Floor(Var(6)/100)*100))/10)
pos = 268,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128, 256

[State 100]
type = explod
trigger1 = var(6) >=100 && var(6) < 1000
anim = 20020+ Floor(Var(6)/100)
pos = 252,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State OVERTIME]
type = explod
trigger1 =  var(6) >= 1000
anim = 20058
pos = 247,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State ALL CLEAR]
type = ChangeState
trigger1 = var(1) && !Var(10)
value = ifelse(var(9),20400,20214)


[State 181, 1]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1

;15 - J. MK, S. MK, Shoot Kick, 2nd Step, H. Final Step, EX Lightning Knee, J.MK, Crescent Wrench Kick, Fairy Gift
[Statedef 20214]
type = S
movetype = I
anim = 9997
sprpriority = 5

[State SET GROOVE]
type = ParentVarSet
trigger1 = !var(1)
fvar(10) = 2

[State DISPLAY GROOVE]
type = explod
trigger1 = 1
anim = 8000+floor(parent,fvar(10))
pos = 160,ifelse(parent, var(18),168,228)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,128

[State NO INPUTS]
type = VarSet
trigger1 = !time
var(1) = 0

[State DELAY]
type = VarSet
trigger1 = !var(1)
var(10) = 60

[State DELAY]
type = VarAdd
trigger1 = var(1) = 9
var(10) = -1

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20148+(var(1)>0)
pos = 10,40
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20150+(var(1)>1)
pos = 10,50
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20108+(var(1)>2)
pos = 10,60
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20110+(var(1)>3)
pos = 10,70
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20140+(var(1)>4)
pos = 10,80
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20106+(var(1)>5)
pos = 10,90
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20148+(var(1)>6)
pos = 10,100
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20114+(var(1)>7)
pos = 10,110
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20122+(var(1)>8)
pos = 10,120
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DETECTION]
type = Null
trigger1 = (parent, stateno = 640 && (parent, movehit = 1)) && parent, var(50) && !var(1)
trigger1 = (var(1) :=1)
trigger2 = (parent, stateno = 240 && (parent, movehit = 1)) && parent, var(50) && var(1) =1
trigger2 = (var(1) :=2)
trigger3 = (parent, stateno = 1000 && (parent, movehit = 1)) && parent, var(50) && var(1) =2
trigger3 = (var(1) :=3)
trigger4 = (parent, stateno = 1001 && (parent, movehit = 1)) && parent, var(50) && var(1) =3
trigger4 = (var(1) :=4)
trigger5 = ((parent, stateno = 1004) && (parent, movehit = 1)) && parent, var(50) && var(1) =4
trigger5 = (var(1) :=5)
trigger6 = (parent, stateno = 2010 && (parent, movehit = 1)) && parent, var(50) && var(1) =5
trigger6 = (var(1) :=6)
trigger7 = (parent, stateno = 640) && (parent,movehit =1) && parent, var(50) && var(1) =6
trigger7 = (var(1) :=7)
trigger8 = (parent, stateno = 1040) && (parent,movehit =1) && parent, var(50) && var(1) =7
trigger8 = (var(1) :=8)
trigger9 = (parent, stateno = [3050,3059]) && (parent,movehit =1) && parent, var(50) && var(1) =8
trigger9 = (var(1) :=9)
trigger10 = (parent,var(50) = 0) && (var(1) < 9)
trigger10 = (var(1) :=0)


[State SUCCESS]
type=helper
trigger1 = var(1) = 9 && var(10) = 60
helpertype=normal
stateno=20005
ID=20005
name="Excel Charge"
postype=p1
pos=-0,0
supermovetime=255
size.xscale=1
size.yscale=1
ownpal=1

;Challenge
[State Challenge Number]
type = explod
trigger1 = 1
anim = 20054
pos = 23,ifelse(parent, var(18),180,240)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State Challenge Number]
type = explod
trigger1 = 1
anim = 20057
pos = 23,ifelse(parent, var(18),180,240)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

;====== [Time Display]==================================
[State Timer]
type = VarAdd
trigger1 = roundstate =2 && !var(9)
var(5) = 1

[State Convert to Seconds]
type = VarSet
trigger1 = 1
var(6) = Floor(var(5)/ 60 )

[State Convert to Milliseconds]
type = VarSet
trigger1 = 1
var(7) = Floor((var(5)-(Var(6)*60))*1.66)

[State .01]
type = explod
trigger1 = var(6) < 1000
anim = 20030+ Var(7) - (Floor(Var(7)/10)*10)
pos = 309,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State .1]
type = explod
trigger1 = var(6) < 1000
anim = 20030+ Floor(Var(7)/10)
pos = 300,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State 1]
type = explod
trigger1 = var(6) < 1000
anim = 20020+ Var(6)-(Floor(Var(6)/10)*10)
pos = 284,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State 10]
type = explod
trigger1 = var(6) >= 10 && var(6) < 1000
anim = 20020+Floor((Var(6)-(Floor(Var(6)/100)*100))/10)
pos = 268,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128, 256

[State 100]
type = explod
trigger1 = var(6) >=100 && var(6) < 1000
anim = 20020+ Floor(Var(6)/100)
pos = 252,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State OVERTIME]
type = explod
trigger1 =  var(6) >= 1000
anim = 20058
pos = 247,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State ALL CLEAR]
type = ChangeState
trigger1 = var(1) && !Var(10)
value = ifelse(var(9),20400,20215)


[State 181, 1]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1

;16 - J.HK, C.MP, C.LK, EX Shoot Kick, 2nd Step, C.MK, EX Shoot Kick, 2nd Step, H. Final Step, Flying Neck Drop
[Statedef 20215]
type = S
movetype = I
anim = 9997
sprpriority = 5

[State SET GROOVE]
type = ParentVarSet
trigger1 = !var(1)
fvar(10) = 2

[State DISPLAY GROOVE]
type = explod
trigger1 = 1
anim = 8000+floor(parent,fvar(10))
pos = 160,ifelse(parent, var(18),168,228)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,128

[State NO INPUTS]
type = VarSet
trigger1 = !time
var(1) = 0

[State DELAY]
type = VarSet
trigger1 = !var(1)
var(10) = 60

[State DELAY]
type = VarAdd
trigger1 = var(1) = 10
var(10) = -1

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20134+(var(1)>0)
pos = 10,40
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20130+(var(1)>1)
pos = 10,50
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20132+(var(1)>2)
pos = 10,60
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20158+(var(1)>3)
pos = 10,70
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20110+(var(1)>4)
pos = 10,80
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20150+(var(1)>5)
pos = 10,90
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20158+(var(1)>6)
pos = 10,100
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20110+(var(1)>7)
pos = 10,110
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20140+(var(1)>8)
pos = 10,120
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DISPLAY]
type = explod
trigger1 = 1
anim = 20160+(var(1)>9)
pos = 10,130
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5

[State DETECTION]
type = Null
trigger1 = (parent, stateno = 650 && (parent, movehit = 1)) && parent, var(50) && !var(1)
trigger1 = (var(1) :=1)
trigger2 = (parent, stateno = 410 && (parent, movehit = 1)) && parent, var(50) && var(1) =1
trigger2 = (var(1) :=2)
trigger3 = (parent, stateno = 440 && (parent, movehit = 1)) && parent, var(50) && var(1) =2
trigger3 = (var(1) :=3)
trigger4 = (parent, stateno = 2000 && (parent, movehit = 1)) && parent, var(50) && var(1) =3
trigger4 = (var(1) :=4)
trigger5 = ((parent, stateno = 2001) && (parent, movehit = 1)) && parent, var(50) && var(1) =4
trigger5 = (var(1) :=5)
trigger6 = (parent, stateno = 240 && (parent, movehit = 1)) && parent, var(50) && var(1) =5
trigger6 = (var(1) :=6)
trigger7 = (parent, stateno = 2000) && (parent,movehit =1) && parent, var(50) && var(1) =6
trigger7 = (var(1) :=7)
trigger8 = (parent, stateno = 2001) && (parent,movehit =1) && parent, var(50) && var(1) =7
trigger8 = (var(1) :=8)
trigger9 = (parent, stateno = 2004) && (parent,movehit =1) && parent, var(50) && var(1) =8
trigger9 = (var(1) :=9)
trigger10 = (parent, stateno = 852) && parent, var(50) && var(1) =9
trigger10 = (var(1) :=10)
trigger11 = (parent,var(50) = 0) && (var(1) < 10)
trigger11 = (var(1) :=0)


[State SUCCESS]
type=helper
trigger1 = var(1) = 10 && var(10) = 60
helpertype=normal
stateno=20005
ID=20005
name="Excel Charge"
postype=p1
pos=-0,0
supermovetime=255
size.xscale=1
size.yscale=1
ownpal=1

;Challenge
[State Challenge Number]
type = explod
trigger1 = 1
anim = 20055
pos = 23,ifelse(parent, var(18),180,240)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State Challenge Number]
type = explod
trigger1 = 1
anim = 20057
pos = 23,ifelse(parent, var(18),180,240)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

;====== [Time Display]==================================
[State Timer]
type = VarAdd
trigger1 = var(1) < 10 && !var(9)
var(5) = 1

[State Convert to Seconds]
type = VarSet
trigger1 = 1
var(6) = Floor(var(5)/ 60 )

[State Convert to Milliseconds]
type = VarSet
trigger1 = 1
var(7) = Floor((var(5)-(Var(6)*60))*1.66)

[State .01]
type = explod
trigger1 = var(6) < 1000
anim = 20030+ Var(7) - (Floor(Var(7)/10)*10)
pos = 309,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State .1]
type = explod
trigger1 = var(6) < 1000
anim = 20030+ Floor(Var(7)/10)
pos = 300,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State 1]
type = explod
trigger1 = var(6) < 1000
anim = 20020+ Var(6)-(Floor(Var(6)/10)*10)
pos = 284,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State 10]
type = explod
trigger1 = var(6) >= 10 && var(6) < 1000
anim = 20020+Floor((Var(6)-(Floor(Var(6)/100)*100))/10)
pos = 268,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128, 256

[State 100]
type = explod
trigger1 = var(6) >=100 && var(6) < 1000
anim = 20020+ Floor(Var(6)/100)
pos = 252,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State OVERTIME]
type = explod
trigger1 =  var(6) >= 1000
anim = 20058
pos = 247,ifelse(parent, var(18),179,239)
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = 1
ID = 20000
ontop = 1
scale = .5,.5
trans = addalpha
alpha = 128,256

[State ALL CLEAR]
type = ChangeState
trigger1 = var(1) && !Var(10)
value = ifelse(var(9),20400,20006)


[State 181, 1]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1


; Placeholder
[Statedef 20300]
ctrl = 0
anim = 9997
velset = 0,0
sprpriority = 4

[State Finish By Fairy Gift]
type = VarSet
trigger1 = !time
var(2) = 135

[State 0, ]
type = PlaySnd
trigger1 = !time
value = 65,8
pan = 0
abspan = 0

[State 0, 1]
type = AssertSpecial
trigger1 = roundstate < 2
ignorehitpause = 1
flag = Intro

[State 0, 1]
type = AssertSpecial
trigger1 = 1
ignorehitpause = 1
flag = NoFG
flag2 = NoBarDisplay
flag3 = NoMusic

[State 0, 1]
type = AllPalFX
trigger1 = time = [1,300]
time = 3
mul = 128,128,128
ignorehitpause = 1
color = 0

[State 0, 1]
type = PalFX
trigger1 = time = [1,300]
time = 1
mul = 512,512,512
ignorehitpause = 1

[State 0, ]
type = SuperPause
trigger1 = roundstate = 2
time = 2
movetime = 2
anim = -1
darken = 0
ignorehitpause = 0
persistent = 1


[State 3510, 4]
type = explod
trigger1 = time = 1
anim = 20060
pos = 160,ifelse(parent, var(18),90,120)
postype = left
sprpriority = 7
ontop = 1
supermove = 1
removetime = 300
bindtime = 9999
ID = 9995
ignorehitpause = 1
ownpal = 0
scale = .5,.5


[State 0, ]
type = RemoveExplod
trigger1 = time > 300
ID = 9995

[State 7001, 2]
type = ChangeState
trigger1 = time > 300
value = 20001


[State 181, 1]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1

;Freeplay Select
[Statedef 20400]
type = S
movetype = I
sprpriority = 5
ctrl = 0

[State 0, 1]
type = AllPalFX
trigger1 = 1
time = 2
mul = 128,128,128
ignorehitpause = 1
;color = 0

[State 0, 1]
type = PalFX
trigger1 = 1
time = 2
mul = 512,512,512
ignorehitpause = 1



[State 0, 1]
type = VarSet
trigger1 = !time
var(0) = 0

[State 0, 1]
type = VarSet
trigger1 = !time
var(5) = 0

[State 0, 1]
type = VarSet
trigger1 = !time
var(9) = 1

[State 0, 1]
type = AssertSpecial
trigger1 = 1
flag = Intro
flag2 = NoBarDisplay

[State 0, ]
type = SuperPause
trigger1 = roundstate = 2
time = 2
movetime = 2
anim = -1
darken = 0
ignorehitpause = 0
persistent = 1

[State 3510, 4]
type = explod
trigger1 = !time
anim = 20070
pos = 10,30
postype = left
sprpriority = -10
supermove = 1
bindtime = 400
removetime = -1
ID = 8000
ontop = 1
scale = .5,.5

[State 3510, 4]
type = explod
trigger1 = 1
anim = 20061+(var(0)>=16)+(var(0)>=32)
pos = 40,ifelse(parent, var(18),90,120)
postype = left
sprpriority = -10
supermove = 1
bindtime = 50
removetime = 1
vel = 0,0
ID = 9994
ontop = 1
scale = .5,.5

[State 3510, 4]
type = explod
trigger1 = 1
anim = 20040+ifelse(var(0)>= 32,var(0)-32,ifelse(var(0)>=16,var(0)-16,var(0)))
pos = 220,ifelse(parent, var(18),90,120)
postype = left
sprpriority = 3
supermove = 1
bindtime = 50
removetime = 1
vel = 0,0
ID = 9994
ontop = 1
scale = .5,.5

[State -2, Reset]
type = VarSet
trigger1 = parent, command = "up"
v = 0
value = ifelse(Var(0)=31,0,var(0)+1)

[State -2, Reset]
type = VarSet
trigger1 = parent, command = "down"
v = 0
value = ifelse(Var(0)=0,31,var(0)-1)




[State -2, Groove Select]
type = PlaySnd
triggerall = time > 60
trigger1 = time = 400 || parent, command = "start"
value = 60,1
channel = 7

[State 0, 1]
type = RemoveExplod
triggerall = time > 60
trigger1 = time = 400 || parent, command = "start"
ID = 8000

[State 7001, 2]
type = ChangeState
triggerall = time > 60
trigger1 = time > 400 || parent, command = "start"
value = 20100+((var(0)>=16)*100)+((var(0)>=32)*100)+ifelse(var(0)>= 32,var(0)-32,ifelse(var(0)>=16,var(0)-16,var(0)))

[State 181, 1]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1

;Forced Jump
[Statedef 29998]
type    = S
movetype= I
physics = S
anim = 40
sprpriority = 1

[State 40, 4]
type = VelSet
trigger1 = AnimTime = 0
y = const(velocity.jump.y)

[State 40, 6]
type = SelfState
trigger1 = AnimTime = 0
value = 50
ctrl = 0

;Forced Crouch
[Statedef 29999]
type    = C
movetype= I
physics = C
velset = 0,0

[State 820, 2]
type = SelfState
trigger1 =1
value = 11
ctrl = 0

