;===========================================================================
;                                    Chapter 5.
;=============================;-| HELPER  ATTACKS. |-;=======================
;                                    ) begin (
;============================================================================
; Call HITSUGAYA
[Statedef 7530]
type = S
movetype = A
physics = S
juggle  = 1
velset = 0,0
ctrl = 0
anim = 7530
poweradd = -1000
sprpriority = 2

[State 0, PlaySnd]
type = PlaySnd
trigger1 = ANIMELEM = 3
value = S3,7
volume = 900

[State 0, PlaySnd]
type = PlaySnd
trigger1 = ANIMELEM = 4
value = S3,7
volume = 900

[State 1150, 2]
type = helper
trigger1 = AnimElem = 3
name = "hitsugaya bankai"
id = 1040
pos = 45,0
postype = p1
stateno = 1040
helpertype = normal
ownpal = 1

[State 1150, 2]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1
;---------------------------------------------------------------------------
; hitsugaya helper
; Stand
[Statedef 1040]
type = S
movetype = I
physics = S
anim = 1040
ctrl = 0
velset = 0,0
sprpriority = 1

[State 1040, push]
type = playerpush
trigger1 = 1
value = 1

[State 1040, PlaySnd]
type = PlaySnd
trigger1 = AnimElem = 2
value = s3,3
volume = 900

[State 1040, PlaySnd]
type = PlaySnd
trigger1 = AnimElem = 1
value = s500,0
volume = 900

[State 1040, PlaySnd]
type = PlaySnd
trigger1 = AnimElem = 1
value = s500,0
volume = 900

[State 1040, hit]
type = HitOverride
trigger1 = Time >= 0
attr = SCA, NA, SA, HA, NP, SP, HP
stateno = 1045
time = 1

[State 1040, hit]
type = HitBy
trigger1 = 1
value = SCA, NA, SA, HA, NP, SP, HP

[State 1042, 1]
type = Changestate
trigger1 = root, lose
value = 2942

[State 1041, 1]
type = Changestate
trigger1 = time = 40
value = 2942

;---------------------------------------------------------------------------
; Attack
[Statedef 2942]
type = S
movetype = A
physics = S
anim = 2942
ctrl = 0
velset = vel x,0
sprpriority = 1

[State 1040, push]
type = playerpush
trigger1 = 1
value = 1

[State 1040, PlaySnd]
type = PlaySnd
trigger1 = AnimElem = 5
value = s500,3
volume = 900

[State 1040, PlaySnd]
type = PlaySnd
trigger1 = AnimElem = 5
value = s500,2
volume = 900

[State 1042, hit]
type = HitOverride
trigger1 = Time >= 0
attr = SCA, NA, SA, HA, NP, SP, HP
stateno = 1045
time = 1

[State 1042, hit]
type = HitBy
trigger1 = 1
value = SCA, NA, SA, HA, NP, SP, HP

[State 0, 1]
type = Projectile
triggerall = time < 90
trigger1 = Time > 21
trigger1 = time%3=0
projanim = 7521
projremove = 0
projremovetime = 45
projheightbound = -999, 999
velocity = var(11)/2
postype = p1
offset = 45, -37
attr = S, HP
hitflag = MAFD
guardflag = MA
animtype = Hard
damage = 8, 2
pausetime = 0, 8
sparkno = S707
sparkxy = 10, 0
guard.sparkno = -1
hitsound = S2000, 1
guardsound = 6, 0
ground.type = Low
ground.hittime = 12
guard.hittime = 13
ground.velocity = -2, -2
guard.velocity = -9
air.velocity = -1, -3
getpower = 0
givepower = 20
palfx.time = 45
palfx.time = 30
palfx.add = 50,30,130
fall = 1
fall.recover = 0
hitonce = 1
persistent = 1

[State 2100, 8]
type = VarSet
trigger1 = var(10) = 0
v = 11
value = 10

[State 0, AfterImage]
type = AfterImage
trigger1 = time = 0
time = 30
length = 40
palcontrast = 256,256,256
paladd = 0,0,0
timegap = 1
framegap = 1
trans = Add

[State 1042, 1]
type = Changestate
trigger1 = animtime = 0
value = 1045

;---------------------------------------------------------------------------
; Ends
[Statedef 1045]
type = S
movetype = I
physics = S
anim = 1045
ctrl = 0
velset = 0,0
sprpriority = 1

[State 1045, PlaySnd]
type = PlaySnd
trigger1 = AnimElem = 2
value = s500,0
volume = 900

[State 1045, PlaySnd]
type = PlaySnd
trigger1 = AnimElem = 1
value = s3,3
volume = 200

[State 1045, hit]
type = HitOverride
trigger1 = Time >= 0
attr = SCA, NA, SA, HA, NP, SP, HP
stateno = 1043
time = 1

[State 1045, hit]
type = HitBy
trigger1 = 1
value = SCA, NA, SA, HA, NP, SP, HP

[State 1045, DestroySelf]
type = DestroySelf
trigger1 = AnimTime = 0

;---------------------------------------------------------------------------
; Call URYUU
[Statedef 7540]
type = S
movetype = A
physics = S
juggle  = 1
velset = 0,0
ctrl = 0
anim = 7540
poweradd = -1000
sprpriority = 2

[State 0, PlaySnd]
type = PlaySnd
trigger1 = ANIMELEM = 3
value = S3,7
volume = 900

[State 0, PlaySnd]
type = PlaySnd
trigger1 = ANIMELEM = 4
value = S3,7
volume = 900

[State 1150, 2]
type = helper
trigger1 = AnimElem = 3
name = "uryuu"
id = 7535
pos = 45,0
postype = p1
stateno = 7535
helpertype = normal
ownpal = 1

[State 1150, 2]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1
;---------------------------------------------------------------------------
; hitsugaya helper
; Stand
[Statedef 7535]
type = S
movetype = I
physics = S
anim = 7535
ctrl = 0
velset = 0,0
sprpriority = 1

[State 7535, push]
type = playerpush
trigger1 = 1
value = 1

[State 7535, PlaySnd]
type = PlaySnd
trigger1 = AnimElem = 2
value = s3,3
volume = 900

[State 7535, hit]
type = HitOverride
trigger1 = Time >= 0
attr = SCA, NA, SA, HA, NP, SP, HP
stateno = 7537
time = 1

[State 7535, hit]
type = HitBy
trigger1 = 1
value = SCA, NA, SA, HA, NP, SP, HP

[State 7535, 1]
type = Changestate
trigger1 = root, lose
value = 7536

[State 1041, 1]
type = Changestate
trigger1 = time = 40
value = 7536

;---------------------------------------------------------------------------
; Attack
[Statedef 7536]
type = S
movetype = A
physics = S
anim = 7536
ctrl = 0
velset = vel x,0
sprpriority = 1

[State 7536, push]
type = playerpush
trigger1 = 1
value = 1

[State 0, PlaySnd]
type = PlaySnd
trigger1 = ANIMELEM = 6
trigger2 = animelem = 11
trigger3 = ANIMELEM = 16
trigger4 = animelem = 21
trigger5 = ANIMELEM = 26
value = S500,4
volume = 900

[State 0, PlaySnd]
type = PlaySnd
trigger1 = ANIMELEM = 1
trigger2 = ANIMELEM = 6
trigger3 = animelem = 11
trigger4 = ANIMELEM = 16
trigger5 = animelem = 21
trigger6 = ANIMELEM = 26
trigger7 = ANIMELEM = 28
value = S500,5
volume = 100

[state 9999, ex]
type                            = explod
trigger1                        = ANIMELEM = 5
id                              = 7543
anim                            = 7543
postype                         = p1
pos                             = 23, -77
bindtime                        = -1
removeongethit                  = 1
removetime                      = -2
supermovetime                   = -1
pausemovetime                   = -1
ontop                           = 1

[state 9999, ex]
type                            = explod
trigger1                        = ANIMELEM = 1
trigger2                        = ANIMELEM = 28
id                              = 7542
anim                            = 7542
postype                         = p1
pos                             = 16, -45
bindtime                        = -1
removeongethit                  = 1
removetime                      = -2
supermovetime                   = -1
pausemovetime                   = -1
ontop                           = 1

[State 4000, Helper]
type                           = Helper
trigger1                       = animelem = 6
helpertype                     = normal
name                           = "Zeele shot"
ID                             = 7538
stateno                        = 7538
pos                            = 25,-74
postype                        = p1
sprpriority                    = -4

[State 4000, Helper]
type                           = Helper
trigger1                       = animelem = 6
helpertype                     = normal
name                           = "Zeele shot"
ID                             = 7538
stateno                        = 7538
pos                            = 0,-54
postype                        = p1
sprpriority                    = -4

[State 4000, Helper]
type                           = Helper
trigger1                       = animelem = 6
helpertype                     = normal
name                           = "Zeele shot"
ID                             = 7538
stateno                        = 7538
pos                            = 0,-94
postype                        = p1
sprpriority                    = -4

[State 4000, Helper]
type                           = Helper
trigger1                       = animelem = 6
helpertype                     = normal
name                           = "Zeele shot fx"
ID                             = 7539
stateno                        = 7539
pos                            = 25,-74
postype                        = p1
sprpriority                    = -4

[State 4000, Helper]
type                           = Helper
trigger1                       = animelem = 6
helpertype                     = normal
name                           = "Zeele shot fx"
ID                             = 7539
stateno                        = 7539
pos                            = 0,-54
postype                        = p1
sprpriority                    = -4

[State 4000, Helper]
type                           = Helper
trigger1                       = animelem = 6
helpertype                     = normal
name                           = "Zeele shot fx"
ID                             = 7539
stateno                        = 7539
pos                            = 0,-94
postype                        = p1
sprpriority                    = -4

[State 4000, Helper]
type                           = Helper
trigger1                       = animelem = 11
helpertype                     = normal
name                           = "Zeele shot"
ID                             = 7538
stateno                        = 7538
pos                            = 65,-74
postype                        = p1
sprpriority                    = -4

[State 4000, Helper]
type                           = Helper
trigger1                       = animelem = 11
helpertype                     = normal
name                           = "Zeele shot"
ID                             = 7538
stateno                        = 7538
pos                            = 65,-54
postype                        = p1
sprpriority                    = -4

[State 4000, Helper]
type                           = Helper
trigger1                       = animelem = 11
helpertype                     = normal
name                           = "Zeele shot"
ID                             = 7538
stateno                        = 7538
pos                            = 45,-94
postype                        = p1
sprpriority                    = -4

[State 4000, Helper]
type                           = Helper
trigger1                       = animelem = 11
helpertype                     = normal
name                           = "Zeele shot fx"
ID                             = 7539
stateno                        = 7539
pos                            = 65,-54
postype                        = p1
sprpriority                    = -4

[State 4000, Helper]
type                           = Helper
trigger1                       = animelem = 11
helpertype                     = normal
name                           = "Zeele shot fx"
ID                             = 7539
stateno                        = 7539
pos                            = 45,-94
postype                        = p1
sprpriority                    = -4

[State 4000, Helper]
type                           = Helper
trigger1                       = animelem = 11
helpertype                     = normal
name                           = "Zeele shot fx"
ID                             = 7539
stateno                        = 7539
pos                            = 65,-74
postype                        = p1
sprpriority                    = -4

[State 4000, Helper]
type                           = Helper
trigger1                       = animelem = 16
helpertype                     = normal
name                           = "Zeele shot"
ID                             = 7538
stateno                        = 7538
pos                            = 45,-74
postype                        = p1
sprpriority                    = -4

[State 4000, Helper]
type                           = Helper
trigger1                       = animelem = 16
helpertype                     = normal
name                           = "Zeele shot fx"
ID                             = 7539
stateno                        = 7539
pos                            = 45,-74
postype                        = p1
sprpriority                    = -4

[State 4000, Helper]
type                           = Helper
trigger1                       = animelem = 16
helpertype                     = normal
name                           = "Zeele shot"
ID                             = 7538
stateno                        = 7538
pos                            = 45,-54
postype                        = p1
sprpriority                    = -4

[State 4000, Helper]
type                           = Helper
trigger1                       = animelem = 16
helpertype                     = normal
name                           = "Zeele shot fx"
ID                             = 7539
stateno                        = 7539
pos                            = 45,-54
postype                        = p1
sprpriority                    = -4

[State 4000, Helper]
type                           = Helper
trigger1                       = animelem = 16
helpertype                     = normal
name                           = "Zeele shot"
ID                             = 7538
stateno                        = 7538
pos                            = 45,-94
postype                        = p1
sprpriority                    = -4

[State 4000, Helper]
type                           = Helper
trigger1                       = animelem = 16
helpertype                     = normal
name                           = "Zeele shot fx"
ID                             = 7539
stateno                        = 7539
pos                            = 45,-94
postype                        = p1
sprpriority                    = -4

[State 4000, Helper]
type                           = Helper
trigger1                       = animelem = 21
helpertype                     = normal
name                           = "Zeele shot"
ID                             = 7538
stateno                        = 7538
pos                            = 45,-74
postype                        = p1
sprpriority                    = -4

[State 4000, Helper]
type                           = Helper
trigger1                       = animelem = 21
helpertype                     = normal
name                           = "Zeele shot fx"
ID                             = 7539
stateno                        = 7539
pos                            = 45,-74
postype                        = p1
sprpriority                    = -4

[State 4000, Helper]
type                           = Helper
trigger1                       = animelem = 21
helpertype                     = normal
name                           = "Zeele shot"
ID                             = 7538
stateno                        = 7538
pos                            = 45,-54
postype                        = p1
sprpriority                    = -4

[State 4000, Helper]
type                           = Helper
trigger1                       = animelem = 21
helpertype                     = normal
name                           = "Zeele shot fx"
ID                             = 7539
stateno                        = 7539
pos                            = 45,-54
postype                        = p1
sprpriority                    = -4

[State 4000, Helper]
type                           = Helper
trigger1                       = animelem = 21
helpertype                     = normal
name                           = "Zeele shot"
ID                             = 7538
stateno                        = 7538
pos                            = 45,-94
postype                        = p1
sprpriority                    = -4

[State 4000, Helper]
type                           = Helper
trigger1                       = animelem = 21
helpertype                     = normal
name                           = "Zeele shot fx"
ID                             = 7539
stateno                        = 7539
pos                            = 45,-94
postype                        = p1
sprpriority                    = -4

[State 4000, Helper]
type                           = Helper
trigger1                       = animelem = 26
helpertype                     = normal
name                           = "Zeele shot fx"
ID                             = 7539
stateno                        = 7539
pos                            = 45,-74
postype                        = p1
sprpriority                    = -4

[State 4000, Helper]
type                           = Helper
trigger1                       = animelem = 26
helpertype                     = normal
name                           = "Zeele shot"
ID                             = 7538
stateno                        = 7538
pos                            = 45,-74
postype                        = p1
sprpriority                    = -4

[State 4000, Helper]
type                           = Helper
trigger1                       = animelem = 26
helpertype                     = normal
name                           = "Zeele shot fx"
ID                             = 7539
stateno                        = 7539
pos                            = 45,-54
postype                        = p1
sprpriority                    = -4

[State 4000, Helper]
type                           = Helper
trigger1                       = animelem = 26
helpertype                     = normal
name                           = "Zeele shot"
ID                             = 7538
stateno                        = 7538
pos                            = 45,-54
postype                        = p1
sprpriority                    = -4

[State 4000, Helper]
type                           = Helper
trigger1                       = animelem = 26
helpertype                     = normal
name                           = "Zeele shot fx"
ID                             = 7539
stateno                        = 7539
pos                            = 45,-94
postype                        = p1
sprpriority                    = -4

[State 4000, Helper]
type                           = Helper
trigger1                       = animelem = 26
helpertype                     = normal
name                           = "Zeele shot"
ID                             = 7538
stateno                        = 7538
pos                            = 45,-94
postype                        = p1
sprpriority                    = -4

[State 7536, hit]
type = HitOverride
trigger1 = Time >= 0
attr = SCA, NA, SA, HA, NP, SP, HP
stateno = 7537
time = 1

[State 7536, hit]
type = HitBy
trigger1 = 1
value = SCA, NA, SA, HA, NP, SP, HP

[State 7536, 1]
type = Changestate
trigger1 = animtime = 0
value = 7537

;-------------------------------------------------------------------------------
; Zeele shot fx
[Statedef 7539]
type                           = S
movetype                       = A
physics                        = N
juggle                         = 15
airjuggle                      = 15
poweradd                       = 30
velset                         = 14,0
anim                           = 7539
ctrl                           = 1
sprpriority                    = 4

[State 7539, AssertSpecial]
type                           = AssertSpecial
trigger1                       = 1
flag                           = noshadow

[State 3031, 1]
type                           = AfterImage
trigger1                       = Time = 0
time                           = 9999
PalBright                      =   0,  0,  0
PalContrast                    = 120,120,220
PalAdd                         =  0,0,0 ;29, 29, 29
PalMul                         = .37,.37,.77
trans                          = add
TimeGap                        = 1
FrameGap                       = 1
length                         = 7

[State 7539, 4]
type                           = destroyself
trigger1                       = frontedgedist < -30

;-------------------------------------------------------------------------------
; Zeele shot
[Statedef 7538]
type                           = S
movetype                       = A
physics                        = N
juggle                         = 15
airjuggle                      = 15
poweradd                       = 0
velset                         = 14,0
anim                           = 7538
ctrl                           = 1
sprpriority                    = 4

[State 7538, AssertSpecial]
type                           = AssertSpecial
trigger1                       = 1
flag                           = noshadow

[State 7538, 2]
type                           = hitdef
trigger1                       = AnimElem = 1
trigger2                       = AnimElem = 2
trigger3                       = animelem = 3
attr                           = S, SP
hitflag                        = MAF
animtype                       = Heavy
damage                         = 3,1
guardflag                      = MAFD
pausetime                      = 0,0
hitsound                       = S7,2
sparkno                        = S7541
sparkxy                        = 13, -5
guardsound                     = s120,0
ground.type                    = High
ground.slidetime               = 6
ground.hittime                 = 9
ground.velocity                = -5,0
air.velocity                   = -9,-5
air.fall                       = 1
fall.recover                   = 0
givepower                      = 0
fall                           = 1

[State 7538, 4]
type                           = destroyself
trigger1                       = frontedgedist < -30

;---------------------------------------------------------------------------
; Ends
[Statedef 7537]
type = S
movetype = I
physics = S
anim = 7537
ctrl = 0
velset = 0,0
sprpriority = 1

[State 7537, PlaySnd]
type = PlaySnd
trigger1 = AnimElem = 1
value = s3,3
volume = 200

[State 7537, hit]
type = HitOverride
trigger1 = Time >= 0
attr = SCA, NA, SA, HA, NP, SP, HP
stateno = 1043
time = 1

[State 7537, hit]
type = HitBy
trigger1 = 1
value = SCA, NA, SA, HA, NP, SP, HP

[State 7537, DestroySelf]
type = DestroySelf
trigger1 = AnimTime = 0

;---------------------------------------------------------------------------

