;======================================================================
;======================================================================
; -2/-3 states file for "Mai Kawasumi"
;======================================================================
;======================================================================

[Statedef -2]

;----------------------------------------------------------------------
; HitSounds and HitEffects
;----------------------------------------------------------------------

;----------------------------------------------------------------------
; MoveContact detection

[State -2, MoveHitReset]
type = MoveHitReset
triggerall = MoveContact
triggerall = var(3) = 1
trigger1 = StateNo = 120
trigger2 = (StateNo = [200,999])
trigger3 = (StateNo = [6000,9999])
ignorehitpause = 1

[State -2, VarSet];MoveContact Detection
type = VarSet
trigger1 = MoveContact
var(3) = 2
ignorehitpause = 1

[State -2, VarSet];MoveContact Initialize
type = VarAdd
trigger1 = var(3) > 0
var(3) = -1
ignorehitpause = 1

[State -2, VarSet];HitFlag Reset
type = VarSet
trigger1 = MoveType != A
var(2) = 0
ignorehitpause = 1

[State -2, VarAdd];HitCounter Addition
type = VarAdd
trigger1 = NumProjID(39999) > 0
fvar(1) = NumProjID(39999)
ignorehitpause = 1

[State -2, VarSet];MoveHit Detection
type = VarSet
trigger1 = MoveHit
var(2) = 1
ignorehitpause = 1

[State -2, VarSet];MoveGuarded Detection
type = VarSet
trigger1 = MoveGuarded
var(2) = 2
ignorehitpause = 1

[State -2, VarSet];MoveReversed Detection
type = VarSet
trigger1 = MoveReversed
var(2) = 3
ignorehitpause = 1

;----------------------------------------------------------------------
; HitEffects Helper

[State -2, HitEffects]
type = Helper
triggerall = NumTarget = 0
trigger1 = MoveHit
trigger1 = var(1) = 1
helpertype = normal
name = "HitSpark"
postype = p1
pos = 50,-70
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30000
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

[State -2, HitEffects]
type = Helper
triggerall = NumTarget = 1
trigger1 = MoveHit
trigger1 = var(1) = 1
helpertype = normal
name = "HitSpark"
postype = p2
pos = 0,-70
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30000
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

[State -2, HitEffects]
type = Helper
triggerall = NumTarget >= 2
triggerall = NumEnemy >= 2
triggerall = PlayerID(Enemy(0),ID),StateNo != [120,155]
trigger1 = MoveHit
trigger1 = var(1) = 1
helpertype = normal
name = "HitSpark"
postype = p1
pos = ceil(PlayerID(Enemy(0),ID),ScreenPos X - ScreenPos X)*facing,-70
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30000
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

[State -2, HitEffects]
type = Helper
triggerall = NumTarget >= 2
triggerall = NumEnemy >= 2
triggerall = PlayerID(Enemy(1),ID),StateNo != [120,155]
trigger1 = MoveHit
trigger1 = var(1) = 1
helpertype = normal
name = "HitSpark"
postype = p1
pos = ceil(PlayerID(Enemy(1),ID),ScreenPos X - ScreenPos X)*facing,-70
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30000
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

[State -2, HitEffects]
type = Helper
triggerall = NumTarget = 0
trigger1 = MoveHit
trigger1 = var(1) = 2
helpertype = normal
name = "HitSpark"
postype = p1
pos = 50,-70
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30001
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

[State -2, HitEffects]
type = Helper
triggerall = NumTarget = 1
trigger1 = MoveHit
trigger1 = var(1) = 2
helpertype = normal
name = "HitSpark"
postype = p2
pos = 0,-70
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30001
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

[State -2, HitEffects]
type = Helper
triggerall = NumTarget >= 2
triggerall = NumEnemy >= 2
triggerall = PlayerID(Enemy(0),ID),StateNo != [120,155]
trigger1 = MoveHit
trigger1 = var(1) = 2
helpertype = normal
name = "HitSpark"
postype = p1
pos = ceil(PlayerID(Enemy(0),ID),ScreenPos X - ScreenPos X)*facing,-70
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30001
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

[State -2, HitEffects]
type = Helper
triggerall = NumTarget >= 2
triggerall = NumEnemy >= 2
triggerall = PlayerID(Enemy(1),ID),StateNo != [120,155]
trigger1 = MoveHit
trigger1 = var(1) = 2
helpertype = normal
name = "HitSpark"
postype = p1
pos = ceil(PlayerID(Enemy(1),ID),ScreenPos X - ScreenPos X)*facing,-70
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30001
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

[State -2, HitEffects]
type = Helper
triggerall = NumTarget = 0
trigger1 = MoveHit
trigger1 = var(1) = 3
helpertype = normal
name = "HitSpark"
postype = p1
pos = 50,-70
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30010
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

[State -2, HitEffects]
type = Helper
triggerall = NumTarget = 1
trigger1 = MoveHit
trigger1 = var(1) = 3
helpertype = normal
name = "HitSpark"
postype = p2
pos = 0,-70
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30010
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

[State -2, HitEffects]
type = Helper
triggerall = NumTarget >= 2
triggerall = NumEnemy >= 2
triggerall = PlayerID(Enemy(0),ID),StateNo != [120,155]
trigger1 = MoveHit
trigger1 = var(1) = 3
helpertype = normal
name = "HitSpark"
postype = p1
pos = ceil(PlayerID(Enemy(0),ID),ScreenPos X - ScreenPos X)*facing,-70
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30010
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

[State -2, HitEffects]
type = Helper
triggerall = NumTarget >= 2
triggerall = NumEnemy >= 2
triggerall = PlayerID(Enemy(1),ID),StateNo != [120,155]
trigger1 = MoveHit
trigger1 = var(1) = 3
helpertype = normal
name = "HitSpark"
postype = p1
pos = ceil(PlayerID(Enemy(1),ID),ScreenPos X - ScreenPos X)*facing,-70
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30010
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

[State -2, HitEffects]
type = Helper
triggerall = NumTarget = 0
trigger1 = MoveHit
trigger1 = var(1) = 4
helpertype = normal
name = "HitSpark"
postype = p1
pos = 80,-70
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30011
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

[State -2, HitEffects]
type = Helper
triggerall = NumTarget = 1
trigger1 = MoveHit
trigger1 = var(1) = 4
helpertype = normal
name = "HitSpark"
postype = p2
pos = 0,-70
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30011
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

[State -2, HitEffects]
type = Helper
triggerall = NumTarget >= 2
triggerall = NumEnemy >= 2
triggerall = PlayerID(Enemy(0),ID),StateNo != [120,155]
trigger1 = MoveHit
trigger1 = var(1) = 4
helpertype = normal
name = "HitSpark"
postype = p1
pos = ceil(PlayerID(Enemy(0),ID),ScreenPos X - ScreenPos X)*facing,-70
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30011
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

[State -2, HitEffects]
type = Helper
triggerall = NumTarget >= 2
triggerall = NumEnemy >= 2
triggerall = PlayerID(Enemy(1),ID),StateNo != [120,155]
trigger1 = MoveHit
trigger1 = var(1) = 4
helpertype = normal
name = "HitSpark"
postype = p1
pos = ceil(PlayerID(Enemy(1),ID),ScreenPos X - ScreenPos X)*facing,-70
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30011
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

[State -2, HitEffects]
type = Helper
triggerall = NumTarget = 0
trigger1 = MoveHit
trigger1 = var(1) = 5
helpertype = normal
name = "HitSpark"
postype = p1
pos = 50,-70
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30002
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

[State -2, HitEffects]
type = Helper
triggerall = NumTarget = 1
trigger1 = MoveHit
trigger1 = var(1) = 5
helpertype = normal
name = "HitSpark"
postype = p2
pos = 0,-70
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30002
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

[State -2, HitEffects]
type = Helper
triggerall = NumTarget >= 2
triggerall = NumEnemy >= 2
triggerall = PlayerID(Enemy(0),ID),StateNo != [120,155]
trigger1 = MoveHit
trigger1 = var(1) = 5
helpertype = normal
name = "HitSpark"
postype = p1
pos = ceil(PlayerID(Enemy(0),ID),ScreenPos X - ScreenPos X)*facing,-70
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30002
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

[State -2, HitEffects]
type = Helper
triggerall = NumTarget >= 2
triggerall = NumEnemy >= 2
triggerall = PlayerID(Enemy(1),ID),StateNo != [120,155]
trigger1 = MoveHit
trigger1 = var(1) = 5
helpertype = normal
name = "HitSpark"
postype = p1
pos = ceil(PlayerID(Enemy(1),ID),ScreenPos X - ScreenPos X)*facing,-70
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30002
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

[State -2, HitEffects]
type = Helper
triggerall = NumTarget = 0
trigger1 = MoveHit
trigger1 = var(1) = 8
helpertype = normal
name = "HitSpark"
postype = p1
pos = 50,-20
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30000
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

[State -2, HitEffects]
type = Helper
triggerall = NumTarget = 1
trigger1 = MoveHit
trigger1 = var(1) = 8
helpertype = normal
name = "HitSpark"
postype = p2
pos = 0,-20
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30000
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

[State -2, HitEffects]
type = Helper
triggerall = NumTarget >= 2
triggerall = NumEnemy >= 2
triggerall = PlayerID(Enemy(0),ID),StateNo != [120,155]
trigger1 = MoveHit
trigger1 = var(1) = 8
helpertype = normal
name = "HitSpark"
postype = p1
pos = ceil(PlayerID(Enemy(0),ID),ScreenPos X - ScreenPos X)*facing,-20
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30000
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

[State -2, HitEffects]
type = Helper
triggerall = NumTarget >= 2
triggerall = NumEnemy >= 2
triggerall = PlayerID(Enemy(1),ID),StateNo != [120,155]
trigger1 = MoveHit
trigger1 = var(1) = 8
helpertype = normal
name = "HitSpark"
postype = p1
pos = ceil(PlayerID(Enemy(1),ID),ScreenPos X - ScreenPos X)*facing,-20
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30000
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

[State -2, HitEffects]
type = Helper
triggerall = NumTarget = 0
trigger1 = MoveHit
trigger1 = var(1) = 9
helpertype = normal
name = "HitSpark"
postype = p1
pos = 60,-10
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30001
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

[State -2, HitEffects]
type = Helper
triggerall = NumTarget = 1
trigger1 = MoveHit
trigger1 = var(1) = 9
helpertype = normal
name = "HitSpark"
postype = p2
pos = 0,-10
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30001
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

[State -2, HitEffects]
type = Helper
triggerall = NumTarget >= 2
triggerall = NumEnemy >= 2
triggerall = PlayerID(Enemy(0),ID),StateNo != [120,155]
trigger1 = MoveHit
trigger1 = var(1) = 9
helpertype = normal
name = "HitSpark"
postype = p1
pos = ceil(PlayerID(Enemy(0),ID),ScreenPos X - ScreenPos X)*facing,-10
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30001
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

[State -2, HitEffects]
type = Helper
triggerall = NumTarget >= 2
triggerall = NumEnemy >= 2
triggerall = PlayerID(Enemy(1),ID),StateNo != [120,155]
trigger1 = MoveHit
trigger1 = var(1) = 9
helpertype = normal
name = "HitSpark"
postype = p1
pos = ceil(PlayerID(Enemy(1),ID),ScreenPos X - ScreenPos X)*facing,-10
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30001
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

[State -2, HitEffects]
type = Helper
triggerall = NumTarget = 0
trigger1 = MoveHit
trigger1 = var(1) = 10
helpertype = normal
name = "HitSpark"
postype = p1
pos = 50,-20
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30011
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

[State -2, HitEffects]
type = Helper
triggerall = NumTarget = 1
trigger1 = MoveHit
trigger1 = var(1) = 10
helpertype = normal
name = "HitSpark"
postype = p2
pos = 0,-20
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30011
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

[State -2, HitEffects]
type = Helper
triggerall = NumTarget >= 2
triggerall = NumEnemy >= 2
triggerall = PlayerID(Enemy(0),ID),StateNo != [120,155]
trigger1 = MoveHit
trigger1 = var(1) = 10
helpertype = normal
name = "HitSpark"
postype = p1
pos = ceil(PlayerID(Enemy(0),ID),ScreenPos X - ScreenPos X)*facing,-20
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30011
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

[State -2, HitEffects]
type = Helper
triggerall = NumTarget >= 2
triggerall = NumEnemy >= 2
triggerall = PlayerID(Enemy(1),ID),StateNo != [120,155]
trigger1 = MoveHit
trigger1 = var(1) = 10
helpertype = normal
name = "HitSpark"
postype = p1
pos = ceil(PlayerID(Enemy(1),ID),ScreenPos X - ScreenPos X)*facing,-20
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30011
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

[State -2, HitEffects]
type = Helper
triggerall = NumTarget = 0
trigger1 = MoveHit
trigger1 = var(1) = 20
helpertype = normal
name = "HitSpark"
postype = p1
pos = 50,-70
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30020
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

[State -2, HitEffects]
type = Helper
triggerall = NumTarget = 1
trigger1 = MoveHit
trigger1 = var(1) = 20
helpertype = normal
name = "HitSpark"
postype = p2
pos = 0,-70
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30020
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

[State -2, HitEffects]
type = Helper
triggerall = NumTarget >= 2
triggerall = NumEnemy >= 2
triggerall = PlayerID(Enemy(0),ID),StateNo != [120,155]
trigger1 = MoveHit
trigger1 = var(1) = 20
helpertype = normal
name = "HitSpark"
postype = p1
pos = ceil(PlayerID(Enemy(0),ID),ScreenPos X - ScreenPos X)*facing,-70
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30020
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

[State -2, HitEffects]
type = Helper
triggerall = NumTarget >= 2
triggerall = NumEnemy >= 2
triggerall = PlayerID(Enemy(1),ID),StateNo != [120,155]
trigger1 = MoveHit
trigger1 = var(1) = 20
helpertype = normal
name = "HitSpark"
postype = p1
pos = ceil(PlayerID(Enemy(1),ID),ScreenPos X - ScreenPos X)*facing,-70
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30020
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

[State -2, HitEffects]
type = Helper
triggerall = NumTarget = 0
trigger1 = MoveHit
trigger1 = var(1) = 21
helpertype = normal
name = "HitSpark"
postype = p1
pos = 50,-20
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30021
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

[State -2, HitEffects]
type = Helper
triggerall = NumTarget = 1
trigger1 = MoveHit
trigger1 = var(1) = 21
helpertype = normal
name = "HitSpark"
postype = p2
pos = 0,-20
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30021
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

[State -2, HitEffects]
type = Helper
triggerall = NumTarget >= 2
triggerall = NumEnemy >= 2
triggerall = PlayerID(Enemy(0),ID),StateNo != [120,155]
trigger1 = MoveHit
trigger1 = var(1) = 21
helpertype = normal
name = "HitSpark"
postype = p1
pos = ceil(PlayerID(Enemy(0),ID),ScreenPos X - ScreenPos X)*facing,-20
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30021
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

[State -2, HitEffects]
type = Helper
triggerall = NumTarget >= 2
triggerall = NumEnemy >= 2
triggerall = PlayerID(Enemy(1),ID),StateNo != [120,155]
trigger1 = MoveHit
trigger1 = var(1) = 21
helpertype = normal
name = "HitSpark"
postype = p1
pos = ceil(PlayerID(Enemy(1),ID),ScreenPos X - ScreenPos X)*facing,-20
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30021
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

[State -2, HitEffects]
type = Helper
triggerall = NumTarget = 0
trigger1 = MoveHit
trigger1 = var(1) = 22
helpertype = normal
name = "HitSpark"
postype = p1
pos = 60,-50
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30023
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

[State -2, HitEffects]
type = Helper
triggerall = NumTarget = 1
trigger1 = MoveHit
trigger1 = var(1) = 22
helpertype = normal
name = "HitSpark"
postype = p2
pos = 0,-50
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30023
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

[State -2, HitEffects]
type = Helper
triggerall = NumTarget >= 2
triggerall = NumEnemy >= 2
triggerall = PlayerID(Enemy(0),ID),StateNo != [120,155]
trigger1 = MoveHit
trigger1 = var(1) = 22
helpertype = normal
name = "HitSpark"
postype = p1
pos = ceil(PlayerID(Enemy(0),ID),ScreenPos X - ScreenPos X)*facing,-50
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30023
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

[State -2, HitEffects]
type = Helper
triggerall = NumTarget >= 2
triggerall = NumEnemy >= 2
triggerall = PlayerID(Enemy(1),ID),StateNo != [120,155]
trigger1 = MoveHit
trigger1 = var(1) = 22
helpertype = normal
name = "HitSpark"
postype = p1
pos = ceil(PlayerID(Enemy(1),ID),ScreenPos X - ScreenPos X)*facing,-50
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30023
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

[State -2, HitEffects]
type = Helper
triggerall = NumTarget = 0
trigger1 = MoveHit
trigger1 = var(1) = 30
helpertype = normal
name = "HitSpark"
postype = p1
pos = 60,-50
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30030
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

[State -2, HitEffects]
type = Helper
triggerall = NumTarget = 1
trigger1 = MoveHit
trigger1 = var(1) = 30
helpertype = normal
name = "HitSpark"
postype = p2
pos = 0,-60
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30030
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

[State -2, HitEffects]
type = Helper
triggerall = NumTarget >= 2
triggerall = NumEnemy >= 2
triggerall = PlayerID(Enemy(0),ID),StateNo != [120,155]
trigger1 = MoveHit
trigger1 = var(1) = 30
helpertype = normal
name = "HitSpark"
postype = p1
pos = ceil(PlayerID(Enemy(0),ID),ScreenPos X - ScreenPos X)*facing,-60
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30030
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

[State -2, HitEffects]
type = Helper
triggerall = NumTarget >= 2
triggerall = NumEnemy >= 2
triggerall = PlayerID(Enemy(1),ID),StateNo != [120,155]
trigger1 = MoveHit
trigger1 = var(1) = 30
helpertype = normal
name = "HitSpark"
postype = p1
pos = ceil(PlayerID(Enemy(1),ID),ScreenPos X - ScreenPos X)*facing,-60
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30030
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

[State -2, HitEffects]
type = Helper
triggerall = NumTarget = 0
trigger1 = MoveHit
trigger1 = var(1) = 31
helpertype = normal
name = "HitSpark"
postype = p1
pos = 60,-50
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30031
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

[State -2, HitEffects]
type = Helper
triggerall = NumTarget = 1
trigger1 = MoveHit
trigger1 = var(1) = 31
helpertype = normal
name = "HitSpark"
postype = p2
pos = 0,-60
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30031
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

[State -2, HitEffects]
type = Helper
triggerall = NumTarget >= 2
triggerall = NumEnemy >= 2
triggerall = PlayerID(Enemy(0),ID),StateNo != [120,155]
trigger1 = MoveHit
trigger1 = var(1) = 31
helpertype = normal
name = "HitSpark"
postype = p1
pos = ceil(PlayerID(Enemy(0),ID),ScreenPos X - ScreenPos X)*facing,-60
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30031
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

[State -2, HitEffects]
type = Helper
triggerall = NumTarget >= 2
triggerall = NumEnemy >= 2
triggerall = PlayerID(Enemy(1),ID),StateNo != [120,155]
trigger1 = MoveHit
trigger1 = var(1) = 31
helpertype = normal
name = "HitSpark"
postype = p1
pos = ceil(PlayerID(Enemy(1),ID),ScreenPos X - ScreenPos X)*facing,-60
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30031
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

[State -2, HitEffects]
type = Helper
triggerall = NumTarget = 0
trigger1 = MoveHit
trigger1 = var(1) = 32
helpertype = normal
name = "HitSpark"
postype = p1
pos = 60,-50
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30032
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

[State -2, HitEffects]
type = Helper
triggerall = NumTarget = 1
trigger1 = MoveHit
trigger1 = var(1) = 32
helpertype = normal
name = "HitSpark"
postype = p2
pos = 0,-60
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30032
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

[State -2, HitEffects]
type = Helper
triggerall = NumTarget >= 2
triggerall = NumEnemy >= 2
triggerall = PlayerID(Enemy(0),ID),StateNo != [120,155]
trigger1 = MoveHit
trigger1 = var(1) = 32
helpertype = normal
name = "HitSpark"
postype = p1
pos = ceil(PlayerID(Enemy(0),ID),ScreenPos X - ScreenPos X)*facing,-60
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30032
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

[State -2, HitEffects]
type = Helper
triggerall = NumTarget >= 2
triggerall = NumEnemy >= 2
triggerall = PlayerID(Enemy(1),ID),StateNo != [120,155]
trigger1 = MoveHit
trigger1 = var(1) = 32
helpertype = normal
name = "HitSpark"
postype = p1
pos = ceil(PlayerID(Enemy(1),ID),ScreenPos X - ScreenPos X)*facing,-60
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30032
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

[State -2, HitEffects]
type = Helper
triggerall = NumTarget = 0
trigger1 = MoveHit
trigger1 = var(1) = 35
helpertype = normal
name = "HitSpark"
postype = p1
pos = 60,-50
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30035
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

[State -2, HitEffects]
type = Helper
triggerall = NumTarget = 1
trigger1 = MoveHit
trigger1 = var(1) = 35
helpertype = normal
name = "HitSpark"
postype = p2
pos = 0,-60
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30035
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

[State -2, HitEffects]
type = Helper
triggerall = NumTarget >= 2
triggerall = NumEnemy >= 2
triggerall = PlayerID(Enemy(0),ID),StateNo != [120,155]
trigger1 = MoveHit
trigger1 = var(1) = 35
helpertype = normal
name = "HitSpark"
postype = p1
pos = ceil(PlayerID(Enemy(0),ID),ScreenPos X - ScreenPos X)*facing,-60
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30035
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

[State -2, HitEffects]
type = Helper
triggerall = NumTarget >= 2
triggerall = NumEnemy >= 2
triggerall = PlayerID(Enemy(1),ID),StateNo != [120,155]
trigger1 = MoveHit
trigger1 = var(1) = 35
helpertype = normal
name = "HitSpark"
postype = p1
pos = ceil(PlayerID(Enemy(1),ID),ScreenPos X - ScreenPos X)*facing,-60
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30035
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

;----------------------------------------------------------------------
; GuardEffect Helper

[State -2, GuardEffects]
type = Helper
triggerall = NumTarget = 0
triggerall = MoveGuarded
trigger1 = var(1) = [1,7]
trigger2 = var(1) = 20
trigger3 = var(1) = 22
trigger4 = var(1) = [30,35]
helpertype = normal
name = "GuardSpark"
postype = p1
pos = 30,-60
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30100
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

[State -2, GuardEffects]
type = Helper
triggerall = NumTarget = 1
triggerall = MoveGuarded
trigger1 = var(1) = [1,7]
trigger2 = var(1) = 20
trigger3 = var(1) = 22
trigger4 = var(1) = [30,35]
helpertype = normal
name = "GuardSpark"
postype = p2
pos = 0,-60
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30100
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

[State -2, GuardEffects]
type = Helper
triggerall = NumTarget >= 2
triggerall = NumEnemy >= 2
triggerall = PlayerID(Enemy(0),ID),StateNo = [120,155]
triggerall = MoveGuarded
trigger1 = var(1) = [1,7]
trigger2 = var(1) = 20
trigger3 = var(1) = 22
trigger4 = var(1) = [30,35]
helpertype = normal
name = "GuardSpark"
postype = p1
pos = ceil(PlayerID(Enemy(0),ID),ScreenPos X - ScreenPos X)*facing,-60
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30100
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

[State -2, GuardEffects]
type = Helper
triggerall = NumTarget >= 2
triggerall = NumEnemy >= 2
triggerall = PlayerID(Enemy(1),ID),StateNo = [120,155]
triggerall = MoveGuarded
trigger1 = var(1) = [1,7]
trigger2 = var(1) = 20
trigger3 = var(1) = 22
trigger4 = var(1) = [30,35]
helpertype = normal
name = "GuardSpark"
postype = p1
pos = ceil(PlayerID(Enemy(1),ID),ScreenPos X - ScreenPos X)*facing,-60
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30100
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

[State -2, GuardEffects]
type = Helper
triggerall = NumTarget = 0
triggerall = MoveGuarded
trigger1 = var(1) = [8,10]
trigger2 = var(1) = 21
helpertype = normal
name = "GuardSpark"
postype = p1
pos = 50,-20
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30100
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

[State -2, GuardEffects]
type = Helper
triggerall = NumTarget = 1
triggerall = MoveGuarded
trigger1 = var(1) = [8,10]
trigger2 = var(1) = 21
helpertype = normal
name = "GuardSpark"
postype = p2
pos = 0,-20
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30100
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

[State -2, GuardEffects]
type = Helper
triggerall = NumTarget >= 2
triggerall = NumEnemy >= 2
triggerall = PlayerID(Enemy(0),ID),StateNo = [120,155]
triggerall = MoveGuarded
trigger1 = var(1) = [8,10]
trigger2 = var(1) = 21
helpertype = normal
name = "GuardSpark"
postype = p1
pos = ceil(PlayerID(Enemy(0),ID),ScreenPos X - ScreenPos X)*facing,-20
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30100
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

[State -2, GuardEffects]
type = Helper
triggerall = NumTarget >= 2
triggerall = NumEnemy >= 2
triggerall = PlayerID(Enemy(1),ID),StateNo = [120,155]
triggerall = MoveGuarded
trigger1 = var(1) = [8,10]
trigger2 = var(1) = 21
helpertype = normal
name = "GuardSpark"
postype = p1
pos = ceil(PlayerID(Enemy(1),ID),ScreenPos X - ScreenPos X)*facing,-20
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30100
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

;----------------------------------------------------------------------
; ProjHit Helper

[State -2, Helper]
type = Helper
trigger1 = ProjHitTime(1040) = 0
helpertype = normal
name = "HitSpark"
postype = p2
pos = 0,-40
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30025
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

[State -2, GuardEffect]
type = Helper
trigger1 = ProjGuardedTime(1040) = 0
helpertype = normal
name = "GuardSpark"
postype = p2
pos = 0,-40
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30100
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

[State -2, Helper]
type = Helper
trigger1 = ProjHitTime(1042) = 0
helpertype = normal
name = "HitSpark"
postype = p2
pos = 0,-40
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30025
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

[State -2, GuardEffect]
type = Helper
trigger1 = ProjGuardedTime(1042) = 0
helpertype = normal
name = "GuardSpark"
postype = p2
pos = 0,-40
ownpal = 1
pausemovetime = 9999
supermovetime = 0
stateno = 30000
ID = 30100
size.xscale = 1
size.yscale = 1
ignorehitpause = 1

;----------------------------------------------------------------------
; HitSounds / GuardSounds - for Player

[State -2, HitSounds]
type = PlaySnd
trigger1 = NumHelper(30000) > 0
value = s1,0
channel = 1
ignorehitpause = 1

[State -2, HitSounds]
type = PlaySnd
trigger1 = NumHelper(30001) > 0
value = s1,1
channel = 1
ignorehitpause = 1

[State -2, HitSounds]
type = PlaySnd
trigger1 = NumHelper(30002) > 0
value = s1,2
channel = 1
ignorehitpause = 1

[State -2, HitSounds]
type = PlaySnd
trigger1 = NumHelper(30010) > 0
value = s1,4
channel = 1
ignorehitpause = 1

[State -2, HitSounds]
type = PlaySnd
trigger1 = NumHelper(30011) > 0
value = s1,5
channel = 1
ignorehitpause = 1

[State -2, HitSounds]
type = PlaySnd
trigger1 = NumHelper(30020) > 0
value = s1,5
channel = 1
ignorehitpause = 1

[State -2, HitSounds]
type = PlaySnd
trigger1 = NumHelper(30021) > 0
value = s1,5
channel = 1
ignorehitpause = 1

[State -2, HitSounds]
type = PlaySnd
trigger1 = NumHelper(30022) > 0
value = s1,6
channel = 1
ignorehitpause = 1

[State -2, HitSounds]
type = PlaySnd
trigger1 = NumHelper(30023) > 0
value = s1,2
channel = 1
ignorehitpause = 1

[State -2, HitSounds]
type = PlaySnd
trigger1 = NumHelper(30024) > 0
value = s1,3
channel = 1
ignorehitpause = 1

[State -2, HitSounds]
type = PlaySnd
trigger1 = NumHelper(30025) > 0
value = s1,7
channel = 1
ignorehitpause = 1

[State -2, HitSounds]
type = PlaySnd
trigger1 = NumHelper(30026) > 0
value = s1,8
channel = 1
ignorehitpause = 1

[State -2, HitSounds]
type = PlaySnd
trigger1 = NumHelper(30027) > 0
value = s1,10
channel = 1
ignorehitpause = 1

[State -2, HitSounds]
type = PlaySnd
trigger1 = NumHelper(30030) > 0
value = s1,5
channel = 1
ignorehitpause = 1

[State -2, HitSounds]
type = PlaySnd
trigger1 = NumHelper(30031) > 0
value = s1,5
channel = 1
ignorehitpause = 1

[State -2, HitSounds]
type = PlaySnd
trigger1 = NumHelper(30032) > 0
value = s1,6
channel = 1
ignorehitpause = 1

[State -2, HitSounds]
type = PlaySnd
trigger1 = NumHelper(30033) > 0
value = s1,12
channel = 1
ignorehitpause = 1

[State -2, HitSounds]
type = PlaySnd
trigger1 = NumHelper(30034) > 0
value = s1,13
channel = 1
ignorehitpause = 1

[State -2, HitSounds]
type = PlaySnd
trigger1 = NumHelper(30035) > 0
value = s1,14
channel = 1
ignorehitpause = 1

[State -2, GuardSounds]
type = PlaySnd
trigger1 = NumHelper(30100) > 0
value = s1,100
channel = 6
ignorehitpause = 1

;----------------------------------------------------------------------
; HitSounds / GuardSounds - for Helper

[State -2, HitSounds]
type = PlaySnd
trigger1 = NumProjID(31000) > 0
value = s1,0
channel = 1
ignorehitpause = 1

[State -2, HitSounds]
type = PlaySnd
trigger1 = NumProjID(31001) > 0
value = s1,1
channel = 1
ignorehitpause = 1

[State -2, HitSounds]
type = PlaySnd
trigger1 = NumProjID(31002) > 0
value = s1,2
channel = 1
ignorehitpause = 1

[State -2, HitSounds]
type = PlaySnd
trigger1 = NumProjID(31010) > 0
value = s1,4
channel = 1
ignorehitpause = 1

[State -2, HitSounds]
type = PlaySnd
trigger1 = NumProjID(31011) > 0
value = s1,5
channel = 1
ignorehitpause = 1

[State -2, HitSounds]
type = PlaySnd
trigger1 = NumProjID(31020) > 0
value = s1,5
channel = 1
ignorehitpause = 1

[State -2, HitSounds]
type = PlaySnd
trigger1 = NumProjID(31021) > 0
value = s1,5
channel = 1
ignorehitpause = 1

[State -2, HitSounds]
type = PlaySnd
trigger1 = NumProjID(31022) > 0
value = s1,6
channel = 1
volume = -255
ignorehitpause = 1

[State -2, HitSounds]
type = PlaySnd
trigger1 = NumProjID(31023) > 0
value = s1,2
channel = 1
volume = 255
ignorehitpause = 1
pausemovetime = 9999
supermovetime = 9999

[State -2, HitSounds]
type = PlaySnd
trigger1 = NumProjID(31024) > 0
value = s1,3
channel = 5
volume = 255
ignorehitpause = 1
pausemovetime = 9999
supermovetime = 9999

[State -2, HitSounds]
type = PlaySnd
trigger1 = NumProjID(31025) > 0
value = s1,7
channel = 1
volume = 255
ignorehitpause = 1
pausemovetime = 9999
supermovetime = 9999

[State -2, HitSounds]
type = PlaySnd
trigger1 = NumProjID(31026) > 0
value = s1,8
channel = 1
ignorehitpause = 1
pausemovetime = 9999
supermovetime = 9999

[State -2, HitSounds]
type = PlaySnd
trigger1 = NumProjID(31027) > 0
value = s1,10
channel = 1
ignorehitpause = 1
pausemovetime = 9999
supermovetime = 9999

[State -2, HitSounds]
type = PlaySnd
trigger1 = NumProjID(31030) > 0
value = s1,5
channel = 1
ignorehitpause = 1
pausemovetime = 9999
supermovetime = 9999

[State -2, HitSounds]
type = PlaySnd
trigger1 = NumProjID(31031) > 0
value = s1,5
channel = 1
ignorehitpause = 1
pausemovetime = 9999
supermovetime = 9999

[State -2, HitSounds]
type = PlaySnd
trigger1 = NumProjID(31032) > 0
value = s1,6
channel = 1
ignorehitpause = 1
pausemovetime = 9999
supermovetime = 9999

[State -2, HitSounds]
type = PlaySnd
trigger1 = NumProjID(31033) > 0
value = s1,12
channel = 1
ignorehitpause = 1
pausemovetime = 9999
supermovetime = 9999

[State -2, HitSounds]
type = PlaySnd
trigger1 = NumProjID(31034) > 0
value = s1,13
channel = 1
ignorehitpause = 1
pausemovetime = 9999
supermovetime = 9999

[State -2, HitSounds]
type = PlaySnd
trigger1 = NumProjID(31035) > 0
value = s1,14
channel = 1
ignorehitpause = 1
pausemovetime = 9999
supermovetime = 9999

[State -2, GuardSounds]
type = PlaySnd
trigger1 = NumProjID(31100) > 0
value = s1,100
channel = 6
ignorehitpause = 1

;----------------------------------------------------------------------
; Other Sounds

[State -2, PlaySnd];Wire Damage
type = PlaySnd
triggerall = P2MoveType = H
trigger1 = P2StateNo = 40672
trigger2 = P2StateNo = 47012
value = s2,7
supermovetime = 0
pausemovetime = 0

;----------------------------------------------------------------------
; Movement in the air
;----------------------------------------------------------------------

;----------------------------------------------------------------------
; Air Jump / Air Dash

[State -2, VarSet];Air Jump flag initialize
type = VarSet
trigger1 = StateType != A
var(5) = 0

[State -2, VarSet];Holdup detector
type = VarAdd
trigger1 = command = "holdup"
var(6) = 1

[State -2, VarSet];Holdup flag initialize
type = VarSet
trigger1 = command != "holdup"
var(6) = 0

[State -2, VarSet];Air Dash flag initialize
type = VarSet
trigger1 = StateType != A
var(7) = 0

[State -2, VarSet];Super Jump flag initialize
type = VarSet
trigger1 = StateNo != [40,49]
trigger1 = StateType != A
var(8) = 0

;----------------------------------------------------------------------
; Just Defence
;----------------------------------------------------------------------

[State -2, VarAdd]
type = VarAdd
trigger1 = command = "holdback"
trigger1 = StateNo != 125
var(4) = 1

[State -2, VarSet]
type = VarSet
trigger1 = command != "holdback"
var(4) = 0

;----------------------------------------------------------------------
; RemoveExplod
;----------------------------------------------------------------------

;----------------------------------------------------------------------
; Calculation of AttackMulset
;----------------------------------------------------------------------

[State -2, AttackMulSet]
type = Null;AttackMulSet
trigger1 = 1
value = fvar(0)
ignorehitpause = 1

[State -2, VarSet];AttackMulSet
type = VarSet
trigger1 = 1
fvar(0) = fvar(2) * fvar(4) * fvar(5)
ignorehitpause = 1

;----------------------------------------------------------------------
; HitCount initialize

[State -2, VarSet];Hitcount initialize
type = VarSet
trigger1 = P2MoveType != H
fvar(1) = 0
ignorehitpause = 1

;----------------------------------------------------------------------
; AttackMulSet - HitCount

[State -2, VarSet]
type = VarSet
trigger1 = fvar(3) < (fvar(6) - 0.05)
fvar(2) = fvar(6) - fvar(3)
ignorehitpause = 1

[State -2, VarSet]
type = VarSet
trigger1 = fvar(3) > (fvar(6) - 0.05)
fvar(2) = 0.05
ignorehitpause = 1

;----------------------------------------------------------------------
; Correction initialize

[State -2, VarSet];Correction initialize
type = VarSet
trigger1 = P2MoveType != H
fvar(3) = 0
ignorehitpause = 1

[State -2, VarSet];Correction initialize
type = VarSet
trigger1 = P2MoveType != H
fvar(6) = 1.00
ignorehitpause = 1

;----------------------------------------------------------------------
; AttackMulSet - P2StateType

[State -2, VarSet]
type = VarSet
trigger1 = P2StateType = S
fvar(4) = 1.0
ignorehitpause = 1

[State -2, VarSet]
type = VarSet
trigger1 = P2StateType = C
fvar(4) = 1.08
ignorehitpause = 1

[State -2, VarSet]
type = VarSet
trigger1 = P2StateType = A
fvar(4) = 0.88
ignorehitpause = 1

;----------------------------------------------------------------------
; AttackMulSet - Life

[State -2, VarSet]
type = VarSet
trigger1 = ceil(Life*100/LifeMax) = [76,100]
fvar(5) = 1.0
ignorehitpause = 1

[State -2, VarSet]
type = VarSet
trigger1 = ceil(Life*100/LifeMax) = [51,75]
fvar(5) = 1.0
ignorehitpause = 1

[State -2, VarSet]
type = VarSet
trigger1 = ceil(Life*100/LifeMax) = [26,50]
fvar(5) = 1.05
ignorehitpause = 1

[State -2, VarSet]
type = VarSet
trigger1 = ceil(Life*100/LifeMax) = [0,25]
fvar(5) = 1.10
ignorehitpause = 1

;----------------------------------------------------------------------
; MoveHit Correction - for Helper

[State -2, VarAdd]
type = VarAdd
trigger1 = NumProjID(32001) > 0
fvar(3) = 0.01
ignorehitpause = 1

[State -2, VarAdd]
type = VarAdd
trigger1 = NumProjID(32002) > 0
fvar(3) = 0.02
ignorehitpause = 1

[State -2, VarAdd]
type = VarAdd
trigger1 = NumProjID(32003) > 0
fvar(3) = 0.03
ignorehitpause = 1

[State -2, VarAdd]
type = VarAdd
trigger1 = NumProjID(32004) > 0
fvar(3) = 0.04
ignorehitpause = 1

[State -2, VarAdd]
type = VarAdd
trigger1 = NumProjID(32005) > 0
fvar(3) = 0.05
ignorehitpause = 1

[State -2, VarAdd]
type = VarAdd
trigger1 = NumProjID(32006) > 0
fvar(3) = 0.06
ignorehitpause = 1

[State -2, VarAdd]
type = VarAdd
trigger1 = NumProjID(32007) > 0
fvar(3) = 0.07
ignorehitpause = 1

[State -2, VarAdd]
type = VarAdd
trigger1 = NumProjID(32008) > 0
fvar(3) = 0.08
ignorehitpause = 1

[State -2, VarAdd]
type = VarAdd
trigger1 = NumProjID(32009) > 0
fvar(3) = 0.09
ignorehitpause = 1

[State -2, VarAdd]
type = VarAdd
trigger1 = NumProjID(32010) > 0
fvar(3) = 0.10
ignorehitpause = 1

[State -2, VarAdd]
type = VarAdd
trigger1 = NumProjID(32011) > 0
fvar(3) = 0.11
ignorehitpause = 1

[State -2, VarAdd]
type = VarAdd
trigger1 = NumProjID(32012) > 0
fvar(3) = 0.12
ignorehitpause = 1

[State -2, VarAdd]
type = VarAdd
trigger1 = NumProjID(32013) > 0
fvar(3) = 0.13
ignorehitpause = 1

[State -2, VarAdd]
type = VarAdd
trigger1 = NumProjID(32014) > 0
fvar(3) = 0.14
ignorehitpause = 1

[State -2, VarAdd]
type = VarAdd
trigger1 = NumProjID(32015) > 0
fvar(3) = 0.15
ignorehitpause = 1

[State -2, VarAdd]
type = VarAdd
trigger1 = NumProjID(32016) > 0
fvar(3) = 0.16
ignorehitpause = 1

[State -2, VarAdd]
type = VarAdd
trigger1 = NumProjID(32017) > 0
fvar(3) = 0.17
ignorehitpause = 1

[State -2, VarAdd]
type = VarAdd
trigger1 = NumProjID(32018) > 0
fvar(3) = 0.18
ignorehitpause = 1

[State -2, VarAdd]
type = VarAdd
trigger1 = NumProjID(32019) > 0
fvar(3) = 0.19
ignorehitpause = 1

[State -2, VarAdd]
type = VarAdd
trigger1 = NumProjID(32020) > 0
fvar(3) = 0.20
ignorehitpause = 1

;----------------------------------------------------------------------
; Calculation of DefenceMulset
;----------------------------------------------------------------------

[State -2, DefenceMulSet]
type = DefenceMulSet
trigger1 = 1
value = fvar(10)
ignorehitpause = 1

[State -2, VarSet];DefenceMulSet
type = VarSet
trigger1 = 1
fvar(10) = fvar(11)
ignorehitpause = 1

;----------------------------------------------------------------------
; DefenceMulSet - Life

[State -2, VarSet]
type = VarSet
trigger1 = ceil(Life*100/LifeMax) = [76,100]
fvar(11) = 1.0
ignorehitpause = 1

[State -2, VarSet]
type = VarSet
trigger1 = ceil(Life*100/LifeMax) = [51,75]
fvar(11) = 0.925
ignorehitpause = 1

[State -2, VarSet]
type = VarSet
trigger1 = ceil(Life*100/LifeMax) = [26,50]
fvar(11) = 0.815
ignorehitpause = 1

[State -2, VarSet]
type = VarSet
trigger1 = ceil(Life*100/LifeMax) = [0,25]
fvar(11) = 0.735
ignorehitpause = 1

;----------------------------------------------------------------------
; ReinForce Gauge
;----------------------------------------------------------------------
;
; fvar(30)	- Value
; fvar(31)	- ReinForce Level(Blue(1)/Red(2)/White(3)/UNLIMITED(4))

[State -2, Explod];Gauge - Frame
type = Explod
trigger1 = NumExplod(20000) = 0
anim = 20000
ID = 20000
pos = ifelse(TeamSide = 1,25,295),3
postype = Left
bindtime = -1
removetime = -1
ownpal = 1
ontop = 0
sprpriority = -5
facing = ifelse(TeamSide = 1,1,-1)
pausemovetime = 999999
supermovetime = 999999
scale = 1,1
ignorehitpause = 1

[State -2, Explod];Gauge - Blue
type = Explod
trigger1 = NumExplod(20006) = 0
trigger1 = fvar(31) = [1,2]
anim = 20006
ID = 20006
pos = ifelse(TeamSide = 1,27,293),5
postype = Left
bindtime = -1
removetime = -1
ownpal = 1
ontop = 0
sprpriority = -4
facing = ifelse(TeamSide = 1,1,-1)
pausemovetime = 999999
supermovetime = 999999
scale = 1,1
ignorehitpause = 1

[State -2, Explod];Gauge - Red
type = Explod
trigger1 = NumExplod(20005) = 0
trigger1 = fvar(31) = 2
anim = 20005
ID = 20005
pos = ifelse(TeamSide = 1,27,293),5
postype = Left
bindtime = -1
removetime = -1
ownpal = 1
ontop = 0
sprpriority = -3
facing = ifelse(TeamSide = 1,1,-1)
pausemovetime = 999999
supermovetime = 999999
scale = 1,1
ignorehitpause = 1

[State -2, Explod];Gauge - White
type = Explod
trigger1 = NumExplod(20007) = 0
trigger1 = fvar(31) = 3
anim = 20007
ID = 20007
pos = ifelse(TeamSide = 1,27,293),5
postype = Left
bindtime = -1
removetime = -1
ownpal = 1
ontop = 0
sprpriority = -3
facing = ifelse(TeamSide = 1,1,-1)
pausemovetime = 999999
supermovetime = 999999
scale = 1,1
ignorehitpause = 1

[State -2, ModifyExplod]
type = ModifyExplod
trigger1 = NumExplod(20006) = 1
trigger1 = fvar(31) = [1,2]
ID = 20006
scale = ifelse(fvar(31) = 1,fvar(30)/100,ifelse(fvar(31) = 3,0,1)),1
ignorehitpause = 1

[State -2, ModifyExplod]
type = ModifyExplod
trigger1 = NumExplod(20005) = 1
trigger1 = fvar(31) = 2
ID = 20005
scale = (fvar(30)-100)/100,1
ignorehitpause = 1

[State -2, ModifyExplod]
type = ModifyExplod
trigger1 = NumExplod(20007) = 1
trigger1 = fvar(31) = 3
ID = 20007
scale = (fvar(30))/100,1
ignorehitpause = 1

[State -2, RemoveExplod]
type = RemoveExplod
trigger1 = fvar(31) = 3
trigger2 = fvar(30) < 100
ID = 20005
ignorehitpause = 1

[State -2, RemoveExplod]
type = RemoveExplod
trigger1 = fvar(31) = 3
ID = 20006
ignorehitpause = 1

[State -2, RemoveExplod]
type = RemoveExplod
trigger1 = fvar(31) != 3
ID = 20007
ignorehitpause = 1

[State -2, VarAdd];Blue
type = VarAdd
trigger1 = MoveType != H
trigger1 = fvar(31) = 1
trigger1 = GameTime % 2 = 0
trigger1 = fvar(30) < 100
fvar(30) = 0.5
ignorehitpause = 1

[State -2, VarAdd];Red
type = VarAdd
trigger1 = MoveType != H
trigger1 = fvar(31) = 2
trigger1 = GameTime % 3 = 0
trigger1 = fvar(30) < 200
fvar(30) = 0.5
ignorehitpause = 1

[State -2, VarAdd];White
type = VarAdd
trigger1 = MoveType = H
trigger1 = StateNo != [120,155]
trigger1 = fvar(31) = 3
trigger1 = GameTime % 4 = 0
trigger1 = fvar(30) >= 0
fvar(30) = -0.5
ignorehitpause = 1

[State -2, VarAdd];Blue Flag
type = VarSet
trigger1 = fvar(31) != 3
trigger1 = fvar(30) < 100
fvar(31) = 1
ignorehitpause = 1

[State -2, VarAdd];Red Flag
type = VarSet
trigger1 = fvar(31) != 3
trigger1 = fvar(30) = [100,199]
fvar(31) = 2
ignorehitpause = 1

[State -2, VarAdd];White Flag
type = VarSet
trigger1 = fvar(30) = 200
fvar(31) = 3
ignorehitpause = 1

[State -2, VarAdd];White Flag
type = VarSet
trigger1 = fvar(30) = 200
trigger1 = fvar(31) = 3
fvar(30) = 100
ignorehitpause = 1

[State -2, VarAdd];Reset Flag
type = VarSet
trigger1 = fvar(30) <= 0
fvar(31) = 1
ignorehitpause = 1

[State -2, VarAdd];Reset Flag
type = VarSet
trigger1 = fvar(30) < 0
fvar(30) = 0
ignorehitpause = 1

[State -2, VarAdd];Reset FIC Flag
type = VarSet
trigger1 = MoveType != A
var(16) = 0
ignorehitpause = 1

;----------------------------------------------------------------------
; Child-Mai Gauge
;----------------------------------------------------------------------
;
; fvar(33)	- Value
; fvar(34)	- Dissappear Level(Normal(1)/Damage(2)/Heavy damage(3))

[State -2, Explod];Gauge - Red
type = Explod
trigger1 = NumExplod(20010) = 0
trigger1 = fvar(34) != 0
anim = 20005
ID = 20010
pos = ifelse(TeamSide = 1,27,293),8
postype = Left
bindtime = -1
removetime = -1
ownpal = 1
ontop = 0
sprpriority = -3
facing = ifelse(TeamSide = 1,1,-1)
pausemovetime = 999999
supermovetime = 999999
scale = 1,1
ignorehitpause = 1

[State -2, ModifyExplod]
type = ModifyExplod
trigger1 = NumExplod(20010) = 1
trigger1 = fvar(34) = [1,3]
ID = 20010
scale = (fvar(33))/100,1
ignorehitpause = 1

[State -2, VarAdd];Normal
type = VarAdd
trigger1 = fvar(34) = 1
trigger1 = fvar(33) < 100
fvar(33) = 1
ignorehitpause = 1

[State -2, VarAdd];Damage
type = VarAdd
trigger1 = fvar(34) = 2
trigger1 = fvar(33) < 100
fvar(33) = 0.5
ignorehitpause = 1

[State -2, VarAdd];Heavy Damage
type = VarAdd
trigger1 = fvar(34) = 3
trigger1 = fvar(33) < 100
trigger1 = GameTime % 2 = 0
fvar(33) = 0.5
ignorehitpause = 1

[State -2, VarAdd];Reset Flag
type = VarSet
trigger1 = fvar(33) = 100
fvar(34) = 0
ignorehitpause = 1

[State -2, RemoveExplod]
type = RemoveExplod
trigger1 = fvar(34) = 0
ID = 20010
ignorehitpause = 1

[State -2, VarAdd];Debug
type = VarSet
trigger1 = NumHelper(1000) = 0
trigger1 = NumHelper(1010) = 0
trigger1 = var(10) = 1
var(10) = 0
ignorehitpause = 1

;----------------------------------------------------------------------
; Learned

[State -1, PalFX]
type = PalFX
triggerall = StateNo = [150,153]
triggerall = Time % 4 = 0
trigger1 = P2StateNo = var(20)
trigger1 = var(20) != 0
trigger2 = P2StateNo = var(21)
trigger2 = var(21) != 0
trigger3 = P2StateNo = var(22)
trigger3 = var(22) != 0
trigger4 = P2StateNo = var(23)
trigger4 = var(23) != 0
trigger5 = P2StateNo = var(24)
trigger5 = var(24) != 0
trigger6 = P2StateNo = var(25)
trigger6 = var(25) != 0
trigger7 = P2StateNo = var(26)
trigger7 = var(26) != 0
trigger8 = P2StateNo = var(27)
trigger8 = var(27) != 0
trigger9 = P2StateNo = var(28)
trigger9 = var(28) != 0
trigger10 = P2StateNo = var(29)
trigger10 = var(29) != 0
time = 2
add = 180,180,180

;---------------------------------------------------------------------------
; Blink

[State -2, PalFX]
type = PalFX
triggerall = var(17) > 0
trigger1 = GameTime % 21 = 0
trigger2 = GameTime % 21 = 20
time = 2
add = 255,255,255
ignorehitpause = 1

[State -2, PalFX]
type = PalFX
triggerall = var(17) > 0
trigger1 = GameTime % 21 = 2
trigger2 = GameTime % 21 = 18
time = 2
add = 210,210,210
ignorehitpause = 1

[State -2, PalFX]
type = PalFX
triggerall = var(17) > 0
trigger1 = GameTime % 21 = 4
trigger2 = GameTime % 21 = 16
time = 2
add = 170,170,170
ignorehitpause = 1

[State -2, PalFX]
type = PalFX
triggerall = var(17) > 0
trigger1 = GameTime % 21 = 6
trigger2 = GameTime % 21 = 14
time = 2
add = 130,130,130
ignorehitpause = 1

[State -2, PalFX]
type = PalFX
triggerall = var(17) > 0
trigger1 = GameTime % 21 = 8
trigger2 = GameTime % 21 = 12
time = 2
add = 90,90,90
ignorehitpause = 1

[State -2, PalFX]
type = PalFX
triggerall = var(17) > 0
trigger1 = GameTime % 21 = 10
time = 2
add = 50,50,50
ignorehitpause = 1

[State -2, VarAdd]
type = Null;VarAdd
trigger1 = var(17) > 0
trigger1 = NumHelper(31010) = 0
var(17) = -1
ignorehitpause = 1

;----------------------------------------------------------------------
; Special Features
;----------------------------------------------------------------------

;----------------------------------------------------------------------
; Poison Damage for Arcana Heart Characters by Drowin

[State -2, PowerAdd]
type = PowerAdd
triggerall = Enemy,AuthorName = "Drowin arcana"
triggerall = Enemy,fvar(20) > 0
trigger1 = Power > 0
value = -1

[State -2, LifeAdd]
type = LifeAdd
triggerall = Enemy,AuthorName = "Drowin arcana"
triggerall = Enemy,fvar(20) > 0
trigger1 = GameTime % 7 = 0
value = -1
kill = 0

[State -2, PalFX]
type = PalFX
triggerall = Enemy,AuthorName = "Drowin arcana"
trigger1 = Enemy,fvar(20) > 0
add = 100,0,110
mul = 220,220,220
time = 5

;----------------------------------------------------------------------
; Fire Damage for Akiha Vermilion by 9

[State -2, LifeAdd]
type = LifeAdd
triggerAll = Enemy,AuthorName = "‡H" && Enemy,Name = "Akiha_Vermilion"
trigger1 = Enemy,var(47) = 1
value = -5
kill = 0

[State -2, PowerAdd]
type = PowerAdd
triggerAll = Enemy,AuthorName = "‡H" && Enemy,Name = "Akiha_Vermilion"
trigger1 = Enemy,var(47) = 1
value = -26

;----------------------------------------------------------------------
; Debug

[State -3, DisplayToClipBoard]
type = DisplayToClipBoard
trigger1 = 1
text = "var(2) = %d var(21) = %d var(16) = %d fvar(21) = %f SP Y = %f"
params = var(2),var(21),var(16),fvar(21),ScreenPos Y
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999
