[Data]
life = 1000
attack = 100
defence = 100
power   = 9999
fall.defence_up = 50
liedown.time = 60
airjuggle = 20
sparkno = 9500
guard.sparkno = 9500
KO.echo = 0
volume = 105
IntPersistIndex   = 20
FloatPersistIndex = 20

[Size]
xscale = 1           
yscale = 1           
ground.back = 15     
ground.front = 15     
air.back = 15        
air.front = 15       
z.width = 3          
height = 60	     
attack.width = 4,4   
attack.dist = 90
proj.attack.dist = 90
proj.doscale = 0
head.pos = -5, -90
mid.pos = -5, -60
shadowoffset = 0     
draw.offset = 0,0
[Movement]
airjump.num = 0
airjump.height = 35
yaccel = .40
stand.friction = .85
crouch.friction = .82

[Velocity]
walk.fwd  = 2.5
walk.back = -2.5
run.fwd  =  6,0 
run.back = -9,-1 
jump.neu = 0,-9
jump.fwd = 3
jump.back = -3
runjump.back = -2.55,-6.1
runjump.fwd = 5,-6.3 
airjump.neu = 0,-8.1
airjump.back = -3.55,-8.1
airjump.fwd = 3.5,-8.1
;--------------------------------------------------------
;Win
[Statedef 180]
type = S
physics = S
ctrl = 0

[State -1]
Type     = NotHitBy
Trigger1 = 1
Value    = SAC, NT, ST, HT ,NA, SA, HA ,NP, SP, HP
Time     = 1

[State -1]
type = VelSet
trigger1 = EnemyNear,P2Dist X!=[-40,40]
x = const(velocity.walk.fwd.x)

[State -1]
type = ChangeAnim
triggerall = vel x > 0
trigger1 = Anim != 20 && Anim != 5
trigger2 = Anim = 5 && AnimTime = 0
value = 20

[State -1]
type = VelSet
trigger1 = EnemyNear,P2Dist X = [-40,40]
x = 0

[State -1]
type = ChangeAnim
trigger1 = EnemyNear,P2Dist X = [-40,40]
Value = 180
ignorehitpause = 1
persistent = 0
;--------------------------------------------------------
;Intro
[Statedef 189]
type = A
physics = N
ctrl = 0
Anim = 190

[State -1]
type = PosAdd
trigger1 = time = 0
X = IfElse(TeamSide=1,-94,-95)
Y = -400

[State -1]
type = PlaySnd
trigger1 = time = 0
Value = s150,7

[State -1]
type = PlaySnd
trigger1 = time = 0
Value = s150,9

[State -1]
type = VelSet
trigger1 = time = 0
X = Cos(-77*Pi/180)*15
Y = -Sin(-77*Pi/180)*15

[State -1]
type = ScreenBound
trigger1 = 1
value = 0

[State 189]
type = changestate
trigger1 = Vel Y > 0
trigger1 = Pos Y >= -5
value = 190
;--------------------------------------------------------
;Intro
[Statedef 190]
type = S
ctrl = 0
Anim = 191
velset = 0,0

[State -1]
Type     = NotHitBy
Trigger1 = 1
Value    = SAC, NT, ST, HT ,NA, SA, HA ,NP, SP, HP
Time     = 1

[State -1]
type = VelSet
trigger1 = time = 0
X = 0
Y = 0

[State -1]
type = PosSet
trigger1 = time = 0
Y = 0

[State -1]
type = EnvShake
trigger1 = time = 0
time = 10
freq = 120
ampl = -5

[State -1]
type = Helper
trigger1 = time = 0
StateNo = 1011
ID = 1011
PosType = P1
Pos = 0,-10
OwnPal = 1
KeyCtrl = 0
ignorehitpause = 1
persistent = 0

[State 190]
type = Varset
trigger1 = time = 0
V = 58
value = 0

[State 190]
type = Varset
trigger1 = time = 0
V = 59
value = 0

[State 191, 2] 
type = AssertSpecial
trigger1 = 1
flag = Intro

[State 191, 3] 
type = ChangeState
trigger1 = AnimTime = 0
value = 191
;--------------------------------------------------------
;Intro
[Statedef 191]
type = S
ctrl = 0
anim = 0
velset = 0,0

[State -1]
Type     = NotHitBy
Trigger1 = 1
Value    = SAC, NT, ST, HT ,NA, SA, HA ,NP, SP, HP
Time     = 1

[State -1]
type = helper
trigger1 = Teamside = 1
trigger1 = numhelper(10501) = 0
Stateno = 10501
ID = 10501
pos= 0,0
postype = left
ownpal = 1
keyctrl = 0

[State -1]
type = helper
trigger1 = Teamside = 2
trigger1 = numhelper(10501) = 0
Stateno = 10501
ID = 10501
pos= 0,0
postype = right
ownpal = 1
keyctrl = 0

[State 191, 2] 
type = AssertSpecial
trigger1 = 1
flag = Intro

[State 191, 3] 
type = ChangeState
trigger1 = Var(58) = [3,5]
trigger1 = Var(59) = [3,5]
trigger2 = time = 300
value = 0
;-----------------------
;ΤΨκsk
[Statedef 170]
type = S
ctrl = 0
anim = 170
velset = 0,0,0

[State 170 , 1]
type = NotHitBy
trigger1 = Time >= 0
value = SCA
time = 1
;--------------------------------------
;wiΟF
[Statedef 10999]
type = A
physics = N
Anim = 8500
SprPriority = -999999

[State -1]
Type     = NotHitBy
Trigger1 = 1
Value    = SAC, NT, ST, HT ,NA, SA, HA ,NP, SP, HP
Time     = 1

[State -1];JbgC
type = Explod
trigger1 = TeamSide = 1
trigger1 = time = 0
Anim = 11000
ID = 11000
Pos = 10,255
PosType = Left
scale = 0.5,0.5
Removetime = 61
ownpal = 1
SprPriority = 9999
BindTime = -1
PauseMoveTime = 9999999999
SuperMoveTime = 9999999999

[State -1];JbgC
type = Explod
trigger1 = TeamSide = 2
trigger1 = time = 0
Anim = 11000
ID = 11000
Pos = -10,255
PosType = Right
scale = 0.5,0.5
Removetime = 61
ownpal = 1
facing = -1
SprPriority = 9999
BindTime = -1
PauseMoveTime = 9999999999
SuperMoveTime = 9999999999

[state -1]
type = assertspecial
trigger1 = 1
flag = noshadow

[State -1]
type = varadd
trigger1 = time > 0
trigger1 = time < 40
v = 2
value = 5

[State -1]
Type = bgPalFx
Trigger1 = 1
Time = -1
add = 0,0,0
mul = 256-Var(2),256-Var(2),256-Var(2)

;-----------------------------------
;XyιΎ
;ΊΜΨ
[State -2]
type = Explod
trigger1 = Numexplod(10500) = 0
trigger1 = TeamSide = 1
Anim = 10500
pos = 0,200
postype = left
ID = 10500
SprPriority = 999998
bindtime = -1
scale = 0.5,0.5
ownpal = 1
RemoveTime = -1
PauseMoveTime = 9999999999
SuperMoveTime = 9999999999

[State -2]
type = Explod
trigger1 = Numexplod(10510) = 0
trigger1 = TeamSide = 2
Anim = 10510
pos = 0,200
postype = right
ID = 10510
SprPriority = 999998
bindtime = -1
scale = 0.5,0.5
ownpal = 1
RemoveTime = -1
PauseMoveTime = 9999999999
SuperMoveTime = 9999999999

[State -1]
type = removeexplod
triggerall = teamside = 1
trigger1 = Parent,Alive !
trigger2 = Var(9) <= 0
trigger3 = Parent,StateNo = 6097 || Parent,StateNo = 6710
trigger4 = Parent,Var(1) = 2
trigger5 = Parent,StateNo = 5816
trigger6 = RoundState = 4
ID = 10500

[State -1]
type = removeexplod
triggerall = teamside = 2
trigger1 = Parent,Alive !
trigger2 = Var(9) <= 0
trigger3 = Parent,StateNo = 6097 || Parent,StateNo = 6710
trigger4 = Parent,Var(1) = 2
trigger5 = Parent,StateNo = 5816
trigger6 = RoundState = 4
ID = 10510
;=====================================================================================
λ
;=====================================================================================
;x[O
[State -2]
type = Explod
triggerall = Parent,Var(58) = 3
triggerall = Numexplod(10501) = 0
triggerall = TeamSide = 1
trigger1 = Parent,Var(57) = 0
Anim = 10501
pos = 0,200
postype = left
ID = 10501
SprPriority = 999999
bindtime = -1
scale = 0.5,0.5
ownpal = 1
RemoveTime = -1
PauseMoveTime = 9999999999
SuperMoveTime = 9999999999

[State -2]
type = Explod
triggerall = Parent,Var(58) = 3
triggerall = TeamSide = 1
trigger1 = Parent,Var(57) = 0
Anim = 10568
pos = 0,200
postype = left
ID = 10501
SprPriority = 999999
bindtime = -1
scale = 0.5,0.5
ownpal = 1
RemoveTime = -1
ignorehitpause = 1
persistent = 0
PauseMoveTime = 9999999999
SuperMoveTime = 9999999999

[State -2]
type = Explod
triggerall = Parent,Var(58) = 3
triggerall = Numexplod(10511) = 0
triggerall = TeamSide = 2
trigger1 = Parent,Var(57) = 0
Anim = 10511
pos = 0,200
postype = right
ID = 10511
SprPriority = 999999
bindtime = -1
scale = 0.5,0.5
ownpal = 1
RemoveTime = -1
PauseMoveTime = 9999999999
SuperMoveTime = 9999999999

[State -2]
type = Explod
triggerall = Parent,Var(58) = 3
triggerall = TeamSide = 2
trigger1 = Parent,Var(57) = 0
Anim = 10574
pos = 0,200
postype = right
ID = 10511
SprPriority = 999999
bindtime = -1
scale = 0.5,0.5
ownpal = 1
RemoveTime = -1
ignorehitpause = 1
persistent = 0
PauseMoveTime = 9999999999
SuperMoveTime = 9999999999
;====================================================================================
;VηΉ
[State -2]
type = Explod
triggerall = Parent,Var(58) = 4
triggerall = Numexplod(10501) = 0
triggerall = TeamSide = 1
trigger1 = Parent,Var(57) = 0
Anim = 10503
pos = 0,200
postype = left
ID = 10501
SprPriority = 999999
bindtime = -1
scale = 0.5,0.5
ownpal = 1
RemoveTime = -1
PauseMoveTime = 9999999999
SuperMoveTime = 9999999999

[State -2]
type = Explod
triggerall = Parent,Var(58) = 4
triggerall = TeamSide = 1
trigger1 = Parent,Var(57) = 0
Anim = 10572
pos = 0,200
postype = left
ID = 10501
SprPriority = 999999
bindtime = -1
scale = 0.5,0.5
ownpal = 1
RemoveTime = -1
ignorehitpause = 1
persistent = 0
PauseMoveTime = 9999999999
SuperMoveTime = 9999999999

[State -2]
type = Explod
triggerall = Parent,Var(58) = 4
triggerall = Numexplod(10511) = 0
triggerall = TeamSide = 2
trigger1 = Parent,Var(57) = 0
Anim = 10513
pos = 0,200
postype = right
ID = 10511
SprPriority = 999999
bindtime = -1
scale = 0.5,0.5
ownpal = 1
RemoveTime = -1
PauseMoveTime = 9999999999
SuperMoveTime = 9999999999

[State -2]
type = Explod
triggerall = Parent,Var(58) = 4
triggerall = TeamSide = 2
trigger1 = Parent,Var(57) = 0
Anim = 10578
pos = 0,200
postype = right
ID = 10511
SprPriority = 999999
bindtime = -1
scale = 0.5,0.5
ownpal = 1
RemoveTime = -1
ignorehitpause = 1
persistent = 0
PauseMoveTime = 9999999999
SuperMoveTime = 9999999999

;====================================================================================
;ω
[State -2]
type = Explod
triggerall = Parent,Var(58) = 5
triggerall = Numexplod(10501) = 0
triggerall = TeamSide = 1
trigger1 = Parent,Var(57) = 0
Anim = 10505
pos = 0,200
postype = left
ID = 10501
SprPriority = 999999
bindtime = -1
scale = 0.5,0.5
ownpal = 1
RemoveTime = -1
PauseMoveTime = 9999999999
SuperMoveTime = 9999999999

[State -2]
type = Explod
triggerall = Parent,Var(58) = 5
triggerall = TeamSide = 1
trigger1 = Parent,Var(57) = 0
Anim = 10570
pos = 0,200
postype = left
ID = 10501
SprPriority = 999999
bindtime = -1
scale = 0.5,0.5
ownpal = 1
RemoveTime = -1
ignorehitpause = 1
persistent = 0
PauseMoveTime = 9999999999
SuperMoveTime = 9999999999

[State -2]
type = Explod
triggerall = Parent,Var(58) = 5
triggerall = Numexplod(10511) = 0
triggerall = TeamSide = 2
trigger1 = Parent,Var(57) = 0
Anim = 10515
pos = 0,200
postype = right
ID = 10511
SprPriority = 999999
bindtime = -1
scale = 0.5,0.5
ownpal = 1
RemoveTime = -1
PauseMoveTime = 9999999999
SuperMoveTime = 9999999999

[State -2]
type = Explod
triggerall = Parent,Var(58) = 5
triggerall = TeamSide = 2
trigger1 = Parent,Var(57) = 0
Anim = 10576
pos = 0,200
postype = right
ID = 10511
SprPriority = 999999
bindtime = -1
scale = 0.5,0.5
ownpal = 1
RemoveTime = -1
ignorehitpause = 1
persistent = 0
PauseMoveTime = 9999999999
SuperMoveTime = 9999999999

;======================================================================================
;σ
;Φ§
[State -2]
type = Explod
trigger1 = Numexplod(10501) = 0
trigger1 = TeamSide = 1
trigger1 = Parent,Var(57) = 1
trigger1 = Parent,Var(59) = 3
Anim = 10502
pos = 0,200
postype = left
ID = 10501
bindtime = -1
SprPriority = 999999
scale = 0.5,0.5
ownpal = 1
RemoveTime = -1
PauseMoveTime = 9999999999
SuperMoveTime = 9999999999

[State -2]
type = Explod
triggerall = Parent,Var(59) = 3
triggerall = TeamSide = 1
trigger1 = Parent,Var(57) = 1
Anim = 10569
pos = 0,200
postype = left
ID = 10501
SprPriority = 999999
bindtime = -1
scale = 0.5,0.5
ownpal = 1
RemoveTime = -1
ignorehitpause = 1
persistent = 0
PauseMoveTime = 9999999999
SuperMoveTime = 9999999999

[State -2]
type = Explod
trigger1 = Numexplod(10511) = 0
trigger1 = TeamSide = 2
trigger1 = Parent,Var(57) = 1
trigger1 = Parent,Var(59) = 3
Anim = 10512
pos = 0,200
postype = right
ID = 10511
SprPriority = 999999
bindtime = -1
scale = 0.5,0.5
ownpal = 1
RemoveTime = -1
PauseMoveTime = 9999999999
SuperMoveTime = 9999999999

[State -2]
type = Explod
triggerall = Parent,Var(59) = 3
triggerall = TeamSide = 2
trigger1 = Parent,Var(57) = 1
Anim = 10575
pos = 0,200
postype = right
ID = 10511
SprPriority = 999999
bindtime = -1
scale = 0.5,0.5
ownpal = 1
RemoveTime = -1
ignorehitpause = 1
persistent = 0
PauseMoveTime = 9999999999
SuperMoveTime = 9999999999
;======================================================================================
;cF
[State -2]
type = Explod
trigger1 = Numexplod(10501) = 0
trigger1 = TeamSide = 1
trigger1 = Parent,Var(57) = 1
trigger1 = Parent,Var(59) = 4
Anim = 10504
pos = 0,200
postype = left
ID = 10501
SprPriority = 999999
bindtime = -1
scale = 0.5,0.5
ownpal = 1
RemoveTime = -1
PauseMoveTime = 9999999999
SuperMoveTime = 9999999999

[State -2]
type = Explod
triggerall = Parent,Var(59) = 4
triggerall = TeamSide = 1
trigger1 = Parent,Var(57) = 1
Anim = 10573
pos = 0,200
postype = left
ID = 10501
SprPriority = 999999
bindtime = -1
scale = 0.5,0.5
ownpal = 1
RemoveTime = -1
ignorehitpause = 1
persistent = 0
PauseMoveTime = 9999999999
SuperMoveTime = 9999999999

[State -2]
type = Explod
trigger1 = Numexplod(10511) = 0
trigger1 = TeamSide = 2
trigger1 = Parent,Var(57) = 1
trigger1 = Parent,Var(59) = 4
Anim = 10514
pos = 0,200
postype = right
ID = 10511
SprPriority = 999999
bindtime = -1
scale = 0.5,0.5
ownpal = 1
RemoveTime = -1
PauseMoveTime = 9999999999
SuperMoveTime = 9999999999

[State -2]
type = Explod
triggerall = Parent,Var(59) = 4
triggerall = TeamSide = 2
trigger1 = Parent,Var(57) = 1
Anim = 10579
pos = 0,200
postype = right
ID = 10511
SprPriority = 999999
bindtime = -1
scale = 0.5,0.5
ownpal = 1
RemoveTime = -1
ignorehitpause = 1
persistent = 0
PauseMoveTime = 9999999999
SuperMoveTime = 9999999999
;======================================================================================
;Ή΅ιΧ
[State -2]
type = Explod
trigger1 = Numexplod(10501) = 0
trigger1 = TeamSide = 1
trigger1 = Parent,Var(57) = 1
trigger1 = Parent,Var(59) = 5
Anim = 10506
pos = 0,200
postype = left
ID = 10501
SprPriority = 999999
bindtime = -1
scale = 0.5,0.5
ownpal = 1
RemoveTime = -1
PauseMoveTime = 9999999999
SuperMoveTime = 9999999999

[State -2]
type = Explod
triggerall = Parent,Var(59) = 5
triggerall = TeamSide = 1
trigger1 = Parent,Var(57) = 1
Anim = 10571
pos = 0,200
postype = left
ID = 10501
SprPriority = 999999
bindtime = -1
scale = 0.5,0.5
ownpal = 1
RemoveTime = -1
ignorehitpause = 1
persistent = 0
PauseMoveTime = 9999999999
SuperMoveTime = 9999999999

[State -2]
type = Explod
trigger1 = Numexplod(10511) = 0
trigger1 = TeamSide = 2
trigger1 = Parent,Var(57) = 1
trigger1 = Parent,Var(59) = 5
Anim = 10516
pos = 0,200
postype = right
ID = 10511
SprPriority = 999999
bindtime = -1
scale = 0.5,0.5
ownpal = 1
RemoveTime = -1
PauseMoveTime = 9999999999
SuperMoveTime = 9999999999

[State -2]
type = Explod
triggerall = Parent,Var(59) = 5
triggerall = TeamSide = 2
trigger1 = Parent,Var(57) = 1
Anim = 10577
pos = 0,200
postype = right
ID = 10511
SprPriority = 999999
bindtime = -1
scale = 0.5,0.5
ownpal = 1
RemoveTime = -1
ignorehitpause = 1
persistent = 0
PauseMoveTime = 9999999999
SuperMoveTime = 9999999999
;======================================================================================
;Story Mode
;======================================================================================
;ͺεΛ
[State -2]
type = Explod
trigger1 = Numexplod(10501) = 0
trigger1 = TeamSide = 1
trigger1 = Parent,Var(57) = 1
trigger1 = Parent,Var(59) = 6
Anim = 10580
pos = 0,200
postype = left
ID = 10501
SprPriority = 999999
bindtime = -1
scale = 0.5,0.5
ownpal = 1
RemoveTime = -1
PauseMoveTime = 9999999999
SuperMoveTime = 9999999999

[State -2]
type = Explod
triggerall = Parent,Var(59) = 6
triggerall = TeamSide = 1
trigger1 = Parent,Var(57) = 1
Anim = 10581
pos = 0,200
postype = left
ID = 10501
SprPriority = 999999
bindtime = -1
scale = 0.5,0.5
ownpal = 1
RemoveTime = -1
ignorehitpause = 1
persistent = 0
PauseMoveTime = 9999999999
SuperMoveTime = 9999999999

[State -2]
type = Explod
trigger1 = Numexplod(10511) = 0
trigger1 = TeamSide = 2
trigger1 = Parent,Var(57) = 1
trigger1 = Parent,Var(59) = 6
Anim = 10588
pos = 0,200
postype = right
ID = 10511
SprPriority = 999999
bindtime = -1
scale = 0.5,0.5
ownpal = 1
RemoveTime = -1
PauseMoveTime = 9999999999
SuperMoveTime = 9999999999

[State -2]
type = Explod
triggerall = Parent,Var(59) = 6
triggerall = TeamSide = 2
trigger1 = Parent,Var(57) = 1
Anim = 10589
pos = 0,200
postype = right
ID = 10511
SprPriority = 999999
bindtime = -1
scale = 0.5,0.5
ownpal = 1
RemoveTime = -1
ignorehitpause = 1
persistent = 0
PauseMoveTime = 9999999999
SuperMoveTime = 9999999999
;=====================================================================================
;V·~Υ
[State -2]
type = Explod
trigger1 = Numexplod(10501) = 0
trigger1 = TeamSide = 1
trigger1 = Parent,Var(57) = 1
trigger1 = Parent,Var(59) = 7
Anim = 10582
pos = 0,200
postype = left
ID = 10501
SprPriority = 999999
bindtime = -1
scale = 0.5,0.5
ownpal = 1
RemoveTime = -1
PauseMoveTime = 9999999999
SuperMoveTime = 9999999999

[State -2]
type = Explod
triggerall = Parent,Var(59) = 7
triggerall = TeamSide = 1
trigger1 = Parent,Var(57) = 1
Anim = 10583
pos = 0,200
postype = left
ID = 10501
SprPriority = 999999
bindtime = -1
scale = 0.5,0.5
ownpal = 1
RemoveTime = -1
ignorehitpause = 1
persistent = 0
PauseMoveTime = 9999999999
SuperMoveTime = 9999999999

[State -2]
type = Explod
trigger1 = Numexplod(10511) = 0
trigger1 = TeamSide = 2
trigger1 = Parent,Var(57) = 1
trigger1 = Parent,Var(59) = 7
Anim = 10590
pos = 0,200
postype = right
ID = 10511
SprPriority = 999999
bindtime = -1
scale = 0.5,0.5
ownpal = 1
RemoveTime = -1
PauseMoveTime = 9999999999
SuperMoveTime = 9999999999

[State -2]
type = Explod
triggerall = Parent,Var(59) = 7
triggerall = TeamSide = 2
trigger1 = Parent,Var(57) = 1
Anim = 10591
pos = 0,200
postype = right
ID = 10511
SprPriority = 999999
bindtime = -1
scale = 0.5,0.5
ownpal = 1
RemoveTime = -1
ignorehitpause = 1
persistent = 0
PauseMoveTime = 9999999999
SuperMoveTime = 9999999999
;======================================================================================
;_­
[State -2]
type = Explod
trigger1 = Numexplod(10501) = 0
trigger1 = TeamSide = 1
trigger1 = Parent,Var(57) = 1
trigger1 = Parent,Var(59) = 8
Anim = 10584
pos = 0,200
postype = left
ID = 10501
SprPriority = 999999
bindtime = -1
scale = 0.5,0.5
ownpal = 1
RemoveTime = -1
PauseMoveTime = 9999999999
SuperMoveTime = 9999999999

[State -2]
type = Explod
triggerall = Parent,Var(59) = 8
triggerall = TeamSide = 1
trigger1 = Parent,Var(57) = 1
Anim = 10585
pos = 0,200
postype = left
ID = 10501
SprPriority = 999999
bindtime = -1
scale = 0.5,0.5
ownpal = 1
RemoveTime = -1
ignorehitpause = 1
persistent = 0
PauseMoveTime = 9999999999
SuperMoveTime = 9999999999

[State -2]
type = Explod
trigger1 = Numexplod(10511) = 0
trigger1 = TeamSide = 2
trigger1 = Parent,Var(57) = 1
trigger1 = Parent,Var(59) = 8
Anim = 10592
pos = 0,200
postype = right
ID = 10511
SprPriority = 999999
bindtime = -1
scale = 0.5,0.5
ownpal = 1
RemoveTime = -1
PauseMoveTime = 9999999999
SuperMoveTime = 9999999999

[State -2]
type = Explod
triggerall = Parent,Var(59) = 8
triggerall = TeamSide = 2
trigger1 = Parent,Var(57) = 1
Anim = 10593
pos = 0,200
postype = right
ID = 10511
SprPriority = 999999
bindtime = -1
scale = 0.5,0.5
ownpal = 1
RemoveTime = -1
ignorehitpause = 1
persistent = 0
PauseMoveTime = 9999999999
SuperMoveTime = 9999999999
;======================================================================================
;Άzκr
[State -2]
type = Explod
trigger1 = Numexplod(10501) = 0
trigger1 = TeamSide = 1
trigger1 = Parent,Var(57) = 1
trigger1 = Parent,Var(59) = 9
Anim = 10586
pos = 0,200
postype = left
ID = 10501
SprPriority = 999999
bindtime = -1
scale = 0.5,0.5
ownpal = 1
RemoveTime = -1
PauseMoveTime = 9999999999
SuperMoveTime = 9999999999

[State -2]
type = Explod
triggerall = Parent,Var(59) = 9
triggerall = TeamSide = 1
trigger1 = Parent,Var(57) = 1
Anim = 10587
pos = 0,200
postype = left
ID = 10501
SprPriority = 999999
bindtime = -1
scale = 0.5,0.5
ownpal = 1
RemoveTime = -1
ignorehitpause = 1
persistent = 0
PauseMoveTime = 9999999999
SuperMoveTime = 9999999999

[State -2]
type = Explod
trigger1 = Numexplod(10511) = 0
trigger1 = TeamSide = 2
trigger1 = Parent,Var(57) = 1
trigger1 = Parent,Var(59) = 9
Anim = 10594
pos = 0,200
postype = right
ID = 10511
SprPriority = 999999
bindtime = -1
scale = 0.5,0.5
ownpal = 1
RemoveTime = -1
PauseMoveTime = 9999999999
SuperMoveTime = 9999999999

[State -2]
type = Explod
triggerall = Parent,Var(59) = 9
triggerall = TeamSide = 2
trigger1 = Parent,Var(57) = 1
Anim = 10595
pos = 0,200
postype = right
ID = 10511
SprPriority = 999999
bindtime = -1
scale = 0.5,0.5
ownpal = 1
RemoveTime = -1
ignorehitpause = 1
persistent = 0
PauseMoveTime = 9999999999
SuperMoveTime = 9999999999
;======================================================================================
;Λ½ΫΆ
[State -2]
type = Explod
trigger1 = Numexplod(10501) = 0
trigger1 = TeamSide = 1
trigger1 = Parent,Var(57) = 1
trigger1 = Parent,Var(59) = 10
Anim = 10596
pos = 0,200
postype = left
ID = 10501
bindtime = -1
SprPriority = 999999
scale = 0.5,0.5
ownpal = 1
RemoveTime = -1
PauseMoveTime = 9999999999
SuperMoveTime = 9999999999

[State -2]
type = Explod
triggerall = Numexplod(10501) = 1
triggerall = Parent,Var(59) = 10
triggerall = TeamSide = 1
trigger1 = Parent,Var(57) = 1
Anim = 10597
pos = 0,200
postype = left
ID = 10501
SprPriority = 999999
bindtime = -1
scale = 0.5,0.5
ownpal = 1
RemoveTime = -1
ignorehitpause = 1
PauseMoveTime = 9999999999
SuperMoveTime = 9999999999

[State -2]
type = Explod
trigger1 = Numexplod(10511) = 0
trigger1 = TeamSide = 2
trigger1 = Parent,Var(57) = 1
trigger1 = Parent,Var(59) = 10
Anim = 10598
pos = 0,200
postype = right
ID = 10511
SprPriority = 999999
bindtime = -1
scale = 0.5,0.5
ownpal = 1
RemoveTime = -1
PauseMoveTime = 9999999999
SuperMoveTime = 9999999999

[State -2]
type = Explod
triggerall = Numexplod(10511) = 1
triggerall = Parent,Var(59) = 10
triggerall = TeamSide = 2
trigger1 = Parent,Var(57) = 1
Anim = 10599
pos = 0,200
postype = right
ID = 10511
SprPriority = 999999
bindtime = -1
scale = 0.5,0.5
ownpal = 1
RemoveTime = -1
ignorehitpause = 1
PauseMoveTime = 9999999999
SuperMoveTime = 9999999999
;======================================================================================
[State -1]
type = ModifyExplod
trigger1 = NumExplod(10501) != 0
trigger1 = FVar(1) <= 1.5
ID = 10501
scale = 2-FVar(1),2-FVar(1)

[State -1]
type = ModifyExplod
trigger1 = NumExplod(10511) != 0
trigger1 = FVar(1) <= 1.5
ID = 10511
scale = 2-FVar(1),2-FVar(1)

[State -1]
type = VarAdd
triggerall = FVar(1) <= 1.5
trigger1 = NumExplod(10501) != 0
trigger2 = NumExplod(10511) != 0
FV = 1
Value = 0.05

[State -1]
type = VarSet
trigger1 = Parent,Power = [0,1999]
trigger1 = Var(10) = 0
trigger1 = Parent,Var(59) != [6,10]
V = 9
Value = 2176
ignorehitpause = 1
persistent = 0

[State -1]
type = VarSet
trigger1 = Parent,Power = [2000,2999]
trigger1 = Var(10) = 0
trigger1 = Parent,Var(59) != [6,10]
V = 9
Value = 3154
ignorehitpause = 1
persistent = 0

[State -1]
type = VarSet
trigger1 = Parent,Power = [3000,3999]
trigger1 = Var(10) = 0
trigger1 = Parent,Var(59) != [6,10]
V = 9
Value = 4132
ignorehitpause = 1
persistent = 0

[State -1]
type = VarSet
trigger1 = Parent,Power = [4000,4999]
trigger1 = Var(10) = 0
trigger1 = Parent,Var(59) != [6,10]
V = 9
Value = 5110
ignorehitpause = 1
persistent = 0

[State -1]
type = VarSet
trigger1 = Parent,Power = [5000,5999]
trigger1 = Var(10) = 0
trigger1 = Parent,Var(59) != [6,10]
V = 9
Value = 6087
ignorehitpause = 1
persistent = 0

[State -1]
type = VarSet
trigger1 = Parent,Power = [6000,6999]
trigger1 = Var(10) = 0
trigger1 = Parent,Var(59) != [6,10]
V = 9
Value = 7065
ignorehitpause = 1
persistent = 0

[State -1]
type = VarSet
trigger1 = Parent,Power = [7000,7999]
trigger1 = Var(10) = 0
trigger1 = Parent,Var(59) != [6,10]
V = 9
Value = 8043
ignorehitpause = 1
persistent = 0

[State -1]
type = VarSet
trigger1 = Parent,Power = [8000,8999]
trigger1 = Var(10) = 0
trigger1 = Parent,Var(59) != [6,10]
V = 9
Value = 9021
ignorehitpause = 1
persistent = 0

[State -1]
type = VarSet
trigger1 = Parent,Power = [9000,9999]
trigger1 = Var(10) = 0
trigger1 = Parent,Var(59) != [6,10]
V = 9
Value = 9999
ignorehitpause = 1
persistent = 0

[State -1]
type = VarSet
trigger1 = Parent,Var(59) = [6,10]
V = 9
Value = 9999

[State -1]
type = VarSet
trigger1 = time = 0
V = 10
Value = 1

[State -1]
type = VarAdd
trigger1 = Var(9)!=0
trigger1 = Parent,Var(59)!=[6,10]
V = 9
Value = -2

[State -1]
type = removeexplod
triggerall = teamside = 1
trigger1 = Parent,Alive !
trigger2 = Var(9) <= 0
trigger3 = Parent,StateNo = 6097 || Parent,StateNo = 6710
trigger4 = Parent,Var(1) = 2
trigger5 = Parent,StateNo = 5816
trigger6 = RoundState = 4
ID = 10501

[State -1]
type = removeexplod
triggerall = teamside = 2
trigger1 = Parent,Alive !
trigger2 = Var(9) <= 0
trigger3 = Parent,StateNo = 6097 || Parent,StateNo = 6710
trigger4 = Parent,Var(1) = 2
trigger5 = Parent,StateNo = 5816
trigger6 = RoundState = 4
ID = 10511

[State -1]
type = varadd
triggerall = Var(2) >= 0
trigger1 = Parent,Alive !
trigger2 = Var(9) <= 0
trigger2 = time%1 = 0
trigger3 = Parent,StateNo = 6097
trigger4 = RoundState = 4
v = 2
value = -5

[State -1]
type = DestroySelf
trigger1 = Var(2) <= 0
trigger1 = Parent,StateNo = 6097
trigger2 = Var(2) <= 0 && Time >= 40
;--------------------------------------------------------------------------
[Statedef 3000]
type = S
movetype = H
physics = S
ctrl = 0
Anim = 3000
VelSet = -8,0

[State 3000]
type = SelfState
trigger1 = AnimTime = 0
value = 0
ctrl = 1
;--------------------------------------------------------------------------
[Statedef 5300]
type = S
movetype = H
physics = S
ctrl = 0
Anim = 5300

[State 5300]
type = VarSet
triggerall = FVar(2) = 0
triggerall = (authorname="Enap")
trigger1   = (name="Sakuya Izayoi")+(name="Aya Syameimaru")+(name="Remilia Scarlet")
FV = 1
Value = 0
IgnoreHitPause = 1
persistent = 0

[State 5300]
type = VarSet
triggerall = FVar(2) = 0
triggerall = (authorname="Enap")
trigger1   = (name="Sakuya Izayoi")+(name="Aya Syameimaru")+(name="Remilia Scarlet")
FV = 2
Value = 1
IgnoreHitPause = 1
persistent = 0

[State 5300]
type = ChangeAnim2
triggerall = time = 40
triggerall = (authorname="Enap")
trigger1   = (name="Sakuya Izayoi")+(name="Aya Syameimaru")+(name="Remilia Scarlet")
Value = 5301

[State 5300]
type = SelfState
trigger1 = time = 48
value = 0
ctrl = 1
;--------------------------------------------------------------------------
[Statedef 5301]
type = A
movetype = H
physics = A
ctrl = 0
VelSet = 0,0
Anim = 5070

[State -1]
type = VelSet
trigger1 = time = 0
X = -5
Y = -4

[State -1]
type = ChangeState
trigger1 = Vel Y > 0
trigger1 = Pos Y >= -10
Value = 5110
;--------------------------------------------------------------------------
;_Eo[Xg
[Statedef 5400]
type = A
movetype = H
physics = N
ctrl = 0

[State -1]
type = ChangeAnim2
trigger1 = time = 0
value = 5070

[State -1]
type = VelSet
trigger1 = HitShakeOver
X = -5
Y = 12

[State -1]
type = VelSet
trigger1 = HitShakeOver !
trigger1 = Pos Y >= 0
X = 0
Y = 0

[State -1]
type = PosSet
trigger1 = HitShakeOver !
trigger1 = Pos Y >= 0
Y = 0

[State -1]
type = ChangeState
trigger1 = HitShakeOver
trigger1 = Pos Y >= 0
Value = 5401
;----------------------------------------------------------------------------
[Statedef 5401]
type = A
movetype = H
physics = N

[State -1]
type = EnvShake
trigger1 = time = 0
time = 10
freq = 100
ampl = -10

[State -1]
type = ChangeAnim2
trigger1 = time = 0
value = 5170

[State -1]
type = Velset
trigger1 = time = 0
X = 0
Y = 0

[State -1]
type = SelfState
trigger1 = time >= 10
Value = 5100
;----------------------------------------------------------------------------
[Statedef 5402]
type = A
physics = N
movetype  = H

[State -1]
type = ChangeAnim2
trigger1 = time = 0
value = 5400

[State -1]
type = AngleDraw
trigger1 = 1

[State -1]
type = AngleAdd
trigger1 = 1
Value = 45

[State -1]
type = VelSet
trigger1 = time = 0
X = -1
Y = -7

[State -1]
type = VelAdd
trigger1 = 1
Y = .36

[State -1]
type = OffSet
trigger1 = 1
Y = const(Size.Mid.Pos.Y)

[State -1]
type = SelfState
trigger1 = time >= 10
trigger1 = Pos Y >= -10
Value = 5100
;----------------------------------------------------------------------------
;cFΣΑςΞ΅
[Statedef 5403]
type = L
physics = N
movetype  = H

[State -1]
type = ChangeAnim2
trigger1 = time = 0
value = 5400

[State -1]
type = NotHitBy
trigger1 = 1
Value = SCA

[State -1]
type = AngleDraw
trigger1 = 1

[State -1]
type = AngleAdd
trigger1 = 1
Value = 45

[State -1]
type = VelSet
trigger1 = time = 0
X = 0
Y = -30

[State -1]
type = VelAdd
trigger1 = 1
Y = .40

[State -1]
type = SelfState
trigger1 = time >= 10
trigger1 = Pos Y >= -10
Value = 5100
;============================================================================
;
;νΔXe[g
;
;============================================================================
[Statedef -2]

[State -2]
type = CtrlSet
trigger1 = StateNo = 51
Value = 1

[State -2]
type = PlaySnd
trigger1 = NumTarget > 0
trigger1 = Target,MoveType = H
trigger1 = Target,StateNo = 5401
Channel = 11
lowpriority = 1
ignorehitpause = 1
Value = s400,2

[State -1]
type = ChangeState
trigger1 = FVar(4) = 1
trigger1 = StateNo=[150,153]
value = 5300
ignorehitpause = 1

[State -1]
type = ChangeState
trigger1 = FVar(2) = 1
trigger1 = StateNo = 154||StateNo=155
value = 5301
ignorehitpause = 1

[State -2]
type = VarSet
trigger1 = (EnemyNear,MoveType!=H)+(EnemyNear,StateNo=[120,155])+(EnemyNear,StateNo=5300)+(EnemyNear,Alive!)
V = 18
Value = 0

[State -2]
type = VarSet
triggerall = (EnemyNear,Alive)*(P2StateType=A)*(P2MoveType=H)
trigger1   = (EnemyNear,CanRecover)*(P2StateNo!=[120,155])*(P2StateNo!=5300)
V = 18
Value = 1

[State -1]
Type     = NotHitBy
Trigger1 = !Alive
Trigger2 = Var(19) = 1
trigger3 = (StateType=A)*(MoveType=H)*(CanRecover)*(StateNo!=[120,155])*(StateNo!=5300)
Value    = SAC, NT, ST, HT ,NA, SA, HA ,NP, SP, HP
Time     = 1

[State -2]
type = VarSet
trigger1 = P2MoveType = A
V = 9
Value = 1
ignorehitpause = 1

[State -2]
type = VarSet
trigger1 = Var(9) = 1
trigger1 = P2MoveType != A && EnemyNear,Time >= 1
trigger2 = MoveType != A
V = 9
Value = 0
ignorehitpause = 1

[State -2]
type = VarSet
trigger1 = Var(9) = 1
V = 36
Value = 1

[State -2]
type = VarSet
triggerall = Var(9) = 0
triggerall = Var(36) != 0
trigger1 = P2MoveType != H
trigger2 = MoveHit
trigger3 = MoveType = H
V = 36
Value = 0

[State -2]
type = VarSet
trigger1 = P2MoveType != H
trigger2 = PalNo=12
FV = 20
Value = 1
ignorehitpause = 1

[State -2]
type = VarSet
trigger1 = P2MoveType = H
trigger1 = FVar(20) < 0.01
FV = 20
Value = 0.01
ignorehitpause = 1

[State -2]
type = Helper
trigger1 = P2Stateno = 5110
trigger1 = NumHelper(17000) = 0
Stateno = 17000
ID = 17000
keyctrl = 0

[State -2]
type = VarRandom
triggerall = Stateno != [189,191]
triggerall = Stateno != 5900
trigger1 = Var(59) != [3,10]
V = 59
range = 3,5
ignorehitpause = 1
persistent = 0

[State -2]
type = VarRandom
triggerall = Stateno != [189,191]
triggerall = Stateno != 5900
trigger1 = Var(58) != [3,5]
V = 58
range = 3,5
ignorehitpause = 1
persistent = 0

[State -2]
type = Varset
trigger1 = time >= 0
V = 17
Value = Enemy,Const(Size.mid.Pos.Y)/IfElse(Enemy,StateType=C,2,1)

[State -2]
type = PowerAdd
trigger1 = (movetype=H)*(Alive)*(PalNo!=11)*(StateNo!=[120,155])
Value = Floor((GetHitVar(Damage)*10)*0.25)

[State -2]
type = PowerAdd
trigger1 = (movetype=H)*(PalNo!=11)*(StateNo=[120,155])*(time<=GetHitVar(SlideTime))
Value = 2

[State -1]
type = PowerSet
trigger1   = Var(1) = 1
trigger1   = NumHelper(10999) = 0
trigger1   = ((Var(58) = [0,5])+(Var(59) = [0,5]))
trigger2   = RoundState = [3,4]
Value = 0
ignorehitpause = 1
PauseMoveTime = 9999999999
SuperMoveTime = 9999999999

[State -1]
type = LifeSet
triggerall = (TeamMode=Single)*(EnemyNear,TeamMode=Single)*(Var(56)>=1)*(Var(22)=1)*(Alive)*(PalNo=[7,10])*(Life<=300)
trigger1   = Var(59)=[0,7]
trigger2   = (Var(59)=8)*(EnemyNear,Life>=EnemyNear,LifeMax/2)
Value = 300
;---------------------------------------
;μΝQ[WΦA
[State -2]
type = helper
trigger1 = Time >= 0
trigger1 = Numhelper(19999) = 0
Stateno = 19999
postype = P1
ID = 19999
ownpal = 1
Bindtime = -1
SuperMove = 1
PauseMoveTime = 9999999999
SuperMoveTime = 9999999999

;μΝC
[State -2]
type = VarSet
trigger1 = FVar(1) < 0
FV = 1
Value = 0
IgnoreHitPause = 1

[State -2]
type = VarSet
trigger1 = FVar(1) > 1000
FV = 1
Value = 1000
IgnoreHitPause = 1
;------------------------------------------
[State -2]
type = VarAdd
trigger1 = FVar(3) = 0
trigger1 = FVar(1) < 1000
trigger1 = FVar(2) = 0
FV = 1
Value = 3
IgnoreHitPause = 1

[State -2]
type = VarSet
trigger1 = FVar(1) = 0
trigger1 = FVar(2) = 0
FV = 2
Value = 1
IgnoreHitPause = 1

[State -2]
type = VarSet
trigger1 = FVar(1) = 0
trigger1 = FVar(2) = 1
FV = 4
Value = 1
IgnoreHitPause = 1

[State -2]
type = VarAdd
trigger1 = FVar(2) = 1
FV = 1
Value = 2
IgnoreHitPause = 1

[State -1]
type = playsnd
trigger1 = FVar(1) >= 1000
trigger1 = FVar(2) = 1
value = s400,4
IgnoreHitPause = 1

[State -2]
type = VarSet
trigger1 = FVar(1) >= 1000
FV = 2
Value = 0
IgnoreHitPause = 1

[State -2]
type = VarAdd
trigger1 = FVar(3) > 0
FV = 3
Value = -1
IgnoreHitPause = 1
;--------------------------------------
;σ_bV§ΐ
[State -1]
type = varset
trigger1 = Statetype != A
v = 0
value = 3
;--------------------------------------
;cΑ΅
[State -2]
type = AfterImage
trigger1 = MoveType = H
trigger2 = MoveType = A
time = 0
;--------------------------------------
[State -2]
type = AssertSpecial
trigger1 = FVar(2) != 0
flag = noairguard
IgnoreHitPause = 1
;--------------------------------------
[State -2]
type = VarAdd
trigger1 = Var(20) = 3
trigger1 = Var(3) != 0
V = 3
Value = -1

[State -2]
type = VarSet
trigger1 = Var(20) = 3
V = 20
Value = 0
;--------------------------------------
[State -2]
type = Varset
trigger1 = Lose = 1
trigger2 = LoseKO = 1
trigger3 = Losetime = 1
V = 22
Value = 1

[State -2]
type = Varset
trigger1 = Alive = 0
V = 1
Value = 0

[State -2]
type = assertspecial
trigger1 = 1
flag = timerfreeze
IgnoreHitPause = 1
PauseMoveTime = 9999999999
;--------------------------------------------------------------------
;κx[O
[State -2]
type = Helper
trigger1 = NumHelper(6110) = 0
trigger1 = Var(7)=1
Stateno = 6110
ID = 6110
pos = 0,0
postype = P1
scale = 1,1
ownpal = 1
IgnoreHitPause = 1
persistent = 5

[State -2]
type = Varadd
triggerall = FVar(1) > 10
trigger1 = Var(7) = 1
FV = 1
value = -10
IgnoreHitPause = 1
;--------------------------------------------------------------------
[State -2]
type = Varadd
triggerall = FVar(1) > 10
trigger1 = Var(7) = 2
FV = 1
value = -6
IgnoreHitPause = 1
;--------------------------------------------------------------------
[State -2]
type = Varset
triggerall = FVar(1) <= 10
trigger1 = Var(7) != 0
FV = 3
value = 60

[state -2]
type = Varset
trigger1 = ((FVar(1) <= 20)*(Var(7) != 0))
trigger2 = ((Var(7) = 1)*(MoveType = H))
V = 7
value = 0
;--------------------------------------------------------------------
[State -1]
type = VarAdd
trigger1 = (Var(59)=10)*(RoundState=2)*(StateType=A||Vel X!=[-3,3])*(StateNo!=6750)*(time%6=0)
FV = 25
Value = 1

[State -1]
type = VarAdd
trigger1 = (Var(59)=10)*(RoundState=2)*(StateType!=A||Vel X=[-3,3])*(MoveType=I)*(StateNo!=6750)*(time%3=0)
FV = 25
Value = 1
;--------------------------------------------------------------------
;SPJ[
[State -2]
type = Helper
trigger1 = Alive
trigger1 = PalNo=12
trigger1 = NumHelper(1020) = 0
trigger1 = Var(7)!=1
Stateno = 1020
ID = 1020
pos = 0,0
postype = P1
scale = 1,1
ownpal = 1
IgnoreHitPause = 1
persistent = 5

[State -2]
type = AttackMulSet
trigger1 = PalNo=12
Value = 1.2
ignorehitpause = 1

[State -2]
type = DefenceMulSet
trigger1 = PalNo=12
trigger1 = Life < LifeMax
trigger1 = Var(59) = [0,7]
Value = .85
ignorehitpause = 1

[State -2]
type = VarSet
trigger1 = Var(7) = 0
trigger1 = PalNo = 12
trigger1 = FVar(1) != 1000
FV = 1
Value = 1000
ignorehitpause = 1

[State -2]
type = LifeAdd
trigger1 = (Time%5=0)*(PalNo=12)*(Alive)*(movetype!=H)
Value = 1
ignorehitpause = 1

[State -2]
type = PowerAdd
trigger1 = PalNo = 12
trigger1 = Power < 9999
trigger1 = Alive
Value = 2
ignorehitpause = 1
;====================================================================================================
;‘tMμΌsHXq@μyΡυ½Ξ
;====================================================================================================
[State -2]
Type       = LifeAdd
TriggerAll = Enemy,AuthorName    = "Souki" && Enemy,Name = "Yuyuko Saigyouji"
Trigger1   = Enemy,Var(3)        = 1 || Enemy,Var(3) = 2
Trigger1   = GameTime%6          = 0
Value      = IfElse(Enemy,Var(3) = 1, -2, -3)
Kill       = 0

;===========================================================================
;===========================================================================
;------------------------------------------------------------------
;fobOW
;------------------------------------------------------------------
[State -2]
Type = DisplayToClipBoard
Trigger1 = 1
Text = "DASH=%d,BOMD=%d,POWER=%f\n"
Params = Var(0),Var(3),FVar(1)
IgnoreHitPause = 1

[State -2]
type = AppendToClipboard
trigger1 = 1
text =  "P2X:%f,P2Y:%f,Py%f \n"
params = P2BodyDist X,P2BodyDist Y,Pos Y
IgnoreHitPause = 1

[State -1]
type = null;PalFx
trigger1 = 1
time = 2
mul = -256,-256,-256

[State -1]
type = null;BGPalFx
trigger1 = 1
time = -1
add = -256,-256,-256

[State -1]
type = null;AssertSpecial
trigger1 = 1
flag = nobardisplay