[State 0, VarSet]
type = VarSet
trigger1 = var(8) = 0
trigger1 = parent,stateno != 200 && (parent,stateno = [200,621])
var(8) = parent,stateno * 10
ignorehitpause = 1

[State 0, VarAdd]
type = VarAdd
trigger1 = (parent,stateno = [200,621]) && var(8) != 0
trigger1 = parent,stateno != 200
trigger1 = var(8)%10 < 9
v = 8
value = 1
ignorehitpause = 1


[State -1, atack]
type = Changestate
trigger1 = var(8) % 10 = 9
trigger1 = movecontact
trigger1 = (parent,prevstateno = [200,621]) && parent,stateno != 200
value = (var(8)/10) + 2050


trigger1 = parent,prevstateno = 200
trigger1 = (parent,stateno = [200,621]) || (parent,stateno = [40,41])


[State 0, high_jump_start]
type = ChangeState
trigger1 = var(8) % 10 = 9
trigger1 = movecontact
trigger1 = (var(8)/10 = 41)
value = 2105


[State 0, jump_start]
type = ChangeState
trigger1 = var(8) % 10 = 9
trigger1 = movecontact
trigger1 = (var(8)/10 = 40)
value = 2091


trigger1 = (parent,stateno = [600,621]) || (parent,stateno = 45)

[State 0, Air_jump_start]
type = ChangeState
trigger1 = var(8) % 10 = 9
trigger1 = movecontact
trigger1 = (var(8)/10 = 45)
value = 2096











;skill sellect
[State 0, RemoveExplod]
type = RemoveExplod
trigger1 = roundstate = [0,1]
;triggerall = numexplod(12000) > 0
trigger1 = command = "d" || command = "u" || command = "fwd" || command = "back"
trigger2 = roundstate = 2
id = 12000
ignorehitpause = 1

[State 0, Explod]
type = Explod
triggerall = stateno != 5900
triggerall = roundstate = [0,1]
triggerall = numexplod(12000) = 0
triggerall = numenemy > 0
trigger1 = roundno = 1
trigger2 = teammode = turns
trigger2 = roundsexisted = 0
anim = 12000
ID = 12000
pos = 50,60+var(11)*15
postype = left
bindtime = -1
removetime = -1
supermovetime = 9999
pausemovetime = 9999
scale = .5,.5
sprpriority = 8
ontop = 1
ownpal = 1
ignorehitpause = 1

[State 0, Explod]
type = Explod
triggerall = stateno != 5900
triggerall = roundstate = [0,1]
triggerall = numexplod(12001) = 0
trigger1 = roundno = 1
trigger2 = teammode = turns
trigger2 = roundsexisted = 0
anim = 12001 + (var(12)%10)
ID = 12001
pos = 50,60
postype = left
bindtime = -1
removetime = -1
supermovetime = 9999
pausemovetime = 9999
scale = .5,.5
sprpriority = 8
ownpal = 1
ignorehitpause = 1

[State 0, Explod]
type = Explod
triggerall = stateno != 5900
triggerall = roundstate = [0,1]
triggerall = numexplod(12002) = 0
trigger1 = roundno = 1
trigger2 = teammode = turns
trigger2 = roundsexisted = 0
anim = 12005
ID = 12002
pos = 50,75
postype = left
bindtime = -1
removetime = -1
supermovetime = 9999
pausemovetime = 9999
scale = .5,.5
sprpriority = 8
ontop = 1
ownpal = 1
ignorehitpause = 1

[State 0, Explod]
type = Explod
triggerall = stateno != 5900
triggerall = roundstate = [0,1]
triggerall = numexplod(12003) = 0
trigger1 = roundno = 1
trigger2 = teammode = turns
trigger2 = roundsexisted = 0
anim = 12010
ID = 12003
pos = 50,90
postype = left
bindtime = -1
removetime = -1
supermovetime = 9999
pausemovetime = 9999
scale = .5,.5
sprpriority = 8
ontop = 1
ownpal = 1
ignorehitpause = 1

[State 0, Explod]
type = Explod
triggerall = stateno != 5900
triggerall = roundstate = [0,1]
triggerall = numexplod(12004) = 0
trigger1 = roundno = 1
trigger2 = teammode = turns
trigger2 = roundsexisted = 0
anim = 12015
ID = 12004
pos = 50,105
postype = left
bindtime = -1
removetime = -1
supermovetime = 9999
pausemovetime = 9999
scale = .5,.5
sprpriority = 8
ontop = 1
ownpal = 1
ignorehitpause = 1

[State -2]
Type = RemoveExplod
Trigger1 = RoundState = 2
Trigger1 = NumExplod(12001) > 0
Trigger2 = Command = "recovery"
IgnoreHitPause = 1
SuperMoveTime = 99999
PauseMoveTime = 99999
ID = 12001
[State -2]
Type = RemoveExplod
Trigger1 = RoundState = 2
Trigger1 = NumExplod(12002) > 0
Trigger2 = Command = "recovery"
IgnoreHitPause = 1
SuperMoveTime = 99999
PauseMoveTime = 99999
ID = 12002
[State -2]
Type = RemoveExplod
Trigger1 = RoundState = 2
Trigger1 = NumExplod(12003) > 0
Trigger2 = Command = "recovery"
IgnoreHitPause = 1
SuperMoveTime = 99999
PauseMoveTime = 99999
ID = 12003
[State -2]
Type = RemoveExplod
Trigger1 = RoundState = 2
Trigger1 = NumExplod(12004) > 0
Trigger2 = Command = "recovery"
IgnoreHitPause = 1
SuperMoveTime = 99999
PauseMoveTime = 99999
ID = 12004

[State 0, VarSet]
type = VarSet
triggerall = stateno != 5900
triggerall = roundstate = 1
triggerall = command = "u"
trigger1 = roundno = 1
trigger2 = teammode = turns
trigger2 = roundsexisted = 0
var(11) = IfElse(Var(11)=0,1,IfElse(Var(11)=1,2,ifelse(var(11)=2,3,ifelse(var(11)=3,0,0))))
supermovetime = 9999
pausemovetime = 9999

[State 0, VarSet]
type = VarSet
triggerall = stateno != 5900
triggerall = roundstate = 1
triggerall = command = "d"
trigger1 = roundno = 1
trigger2 = teammode = turns
trigger2 = roundsexisted = 0
var(11) = IfElse(Var(11)=0,3,IfElse(Var(11)=1,0,ifelse(var(11)=2,1,ifelse(var(11)=3,2,0))))
supermovetime = 9999
pausemovetime = 9999

[State 0, VarSet];236
type = VarSet
triggerall = var(11) = 0
triggerall = stateno != 5900
triggerall = roundstate = 1
triggerall = command = "fwd"
trigger1 = roundno = 1
trigger2 = teammode = turns
trigger2 = roundsexisted = 0
var(12) = var(12)/10*10 + IfElse(Var(12)%10=0,1,IfElse(Var(12)%10=1,0,0))
supermovetime = 9999
pausemovetime = 9999

[State 0, VarSet];236
type = VarSet
triggerall = var(11) = 0
triggerall = stateno != 5900
triggerall = roundstate = 1
triggerall = command = "back"
trigger1 = roundno = 1
trigger2 = teammode = turns
trigger2 = roundsexisted = 0
var(12) = var(12)/10*10 + IfElse(Var(12)%10=0,1,IfElse(Var(12)%10=1,0,0))
supermovetime = 9999
pausemovetime = 9999

[State 0, VarSet];623
type = VarSet
triggerall = var(11) = 1
triggerall = stateno != 5900
triggerall = roundstate = 1
triggerall = command = "fwd"
trigger1 = roundno = 1
trigger2 = teammode = turns
trigger2 = roundsexisted = 0
var(12) = var(12)/100*100+var(12)%10+IfElse(Var(12)/10%10=0,10,IfElse(Var(12)/10%10=1,0,0))
supermovetime = 9999
pausemovetime = 9999

[State 0, VarSet];623
type = VarSet
triggerall = var(11) = 1
triggerall = stateno != 5900
triggerall = roundstate = 1
triggerall = command = "back"
trigger1 = roundno = 1
trigger2 = teammode = turns
trigger2 = roundsexisted = 0
var(12) = var(12)/100*100+var(12)%10+IfElse(Var(12)/10%10=0,10,IfElse(Var(12)/10%10=1,0,0))
supermovetime = 9999
pausemovetime = 9999

[State 0, VarSet];22
type = VarSet
triggerall = var(11) = 2
triggerall = stateno != 5900
triggerall = roundstate = 1
triggerall = command = "fwd"
trigger1 = roundno = 1
trigger2 = teammode = turns
trigger2 = roundsexisted = 0
var(12) = var(12)/1000*1000+var(12)%100+IfElse(Var(12)/100%10=0,100,IfElse(Var(12)/100%10=1,0,0))
supermovetime = 9999
pausemovetime = 9999

[State 0, VarSet];22
type = VarSet
triggerall = var(11) = 2
triggerall = stateno != 5900
triggerall = roundstate = 1
triggerall = command = "back"
trigger1 = roundno = 1
trigger2 = teammode = turns
trigger2 = roundsexisted = 0
var(12) = var(12)/1000*1000+var(12)%100+IfElse(Var(12)/100%10=0,100,IfElse(Var(12)/100%10=1,0,0))
supermovetime = 9999
pausemovetime = 9999

[State 0, VarSet];214
type = VarSet
triggerall = var(11) = 3
triggerall = stateno != 5900
triggerall = roundstate = 1
triggerall = command = "fwd"
trigger1 = roundno = 1
trigger2 = teammode = turns
trigger2 = roundsexisted = 0
var(12) = var(12)%1000+IfElse(Var(12)/1000=0,1000,IfElse(Var(12)/1000=1,0,0))
supermovetime = 9999
pausemovetime = 9999

[State 0, VarSet];214
type = VarSet
triggerall = var(11) = 3
triggerall = stateno != 5900
triggerall = roundstate = 1
triggerall = command = "back"
trigger1 = roundno = 1
trigger2 = teammode = turns
trigger2 = roundsexisted = 0
var(12) = var(12)%1000+IfElse(Var(12)/1000=0,1000,IfElse(Var(12)/1000=1,0,0))
supermovetime = 9999
pausemovetime = 9999

[State 0, PlaySnd]
type = PlaySnd
triggerall = stateno != 5900
triggerall = roundstate = [0,1]
triggerall = command = "d" || command = "u" || command = "fwd" || command = "back"
trigger1 = roundno = 1
trigger2 = teammode = turns
trigger2 = roundsexisted = 0
value = S3,9
volume = 0
channel = 2
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999