//===========================================================================
//
// Guardian Of Darkness
//
// Created by Guest
// Sprites from Bruiserdemon by Vader, modified by Guest and Shadowman
//===========================================================================
actor CHRocket : rocket replaces rocket
{
+THRUGHOST
}



actor Seth : actor replaces Cyberdemon
{
  obituary "%o was consumed by a Darkness."
  health 5500
  radius 24
  height 64
  mass 1000
  speed 8
  painchance 2
  damagetype darkness
  damagefactor darkness,0
  seesound "superbaron/scream"
  painsound "superbaron/pain"
  deathsound "superbaron/death"
  activesound "superbaron/act2"
  scale 1.5
  MONSTER
  +FLOORCLIP
  +NORADIUSDMG
  +BOSS
  +DONTMORPH
  
BloodColor "00 00 00"

  +MISSILEMORE

  states
  {
  Spawn:
    BRUS A 0 
    BRUS A 1 A_GiveInventory("ChShieldChecker",1)
    BRUS A 0
    BRUS AB 10 A_Look
    goto spawn+3
    
 See:

    BRUS A 1 A_JumpIfInTargetInventory("ChShield",1,"SeeWeak")
    BRUS A 1 A_JumpIfInventory("ChStart",1,83)
    BRUS A 0 A_CustomMissile("SethRain", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain", 16, random(32,400), 0) //16
    BRUS A 0 A_CustomMissile("SethRain", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain", 16, random(32,400), 0) //32
    BRUS A 0 A_CustomMissile("SethRain", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain", 16, random(32,400), 0) //40
    BRUS A 0 A_CustomMissile("SethRain2", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain2", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain2", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain2", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain2", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain2", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain2", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain2", 16, random(32,400), 0) //48
    BRUS A 0 A_CustomMissile("SethRain2", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain2", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain2", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain2", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain2", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain2", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain2", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain2", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain2", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain2", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain2", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain2", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain2", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain2", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain2", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain2", 16, random(32,400), 0) //64
    BRUS A 0 A_CustomMissile("SethRain2", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain2", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain2", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain2", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain2", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain2", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain2", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain2", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain2", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain2", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain2", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain2", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain2", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain2", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain2", 16, random(32,400), 0)
    BRUS A 0 A_CustomMissile("SethRain2", 16, random(32,400), 0) //80
    BRUS A 0 A_GiveInventory("ChStart",1)
    BRUS A 0
    BRUS A 1 A_Chase
    BRUS ABBCCDD 2 A_Chase
    BRUS A 1 A_JumpIfInventory("ChBlindStrike",1,2)
    BRUS A 0 A_JumpIfTargetInLOS(1)
    Goto BlindStrike
    BRUS A 0
    loop
  
  SeeWeak:
    BRUS A 0
    BRUS A 0 A_TakeInventory("ChShieldChecker",1)
    BRUS AABBCCDD 3 A_Chase
    BRUS A 0 A_GiveInventory("ChShieldChecker",1)
    GOTO See
    

Missile:
    BRUS A 0
    BRUS A 1
    BRUS EFG 4 A_FaceTarget
    BRUS A 0 A_JumpIfInventory ("ChShieldChecker", 1, 1)
    GOTO Missile+10
    BRUS A 0
    BRUS M 0 A_JumpIfInventory ("CrawlBallChecker", 4, 2)
    BRUS G 1 A_Jump(144,11)
    BRUS M 0 
    BRUS G 1 A_Jump(4,9)
    BRUS M 0 A_CustomMissile("DarkBall", random(16,24), 0, 10)
    BRUS M 0 
    BRUS M 0 A_Jump(128,5)
    BRUS HIJ 4 A_FaceTarget
    BRUS A 0 A_CustomMissile("DarkBall", random(16,24), 0, -10)
    BRUS A 0 
    Goto See
    BRUS A 0
    BRUS HI 6
    BRUS I 0 A_GiveInventory("CrawlBallChecker",1)
    BRUS J 6 A_CustomMissile("DarkBall2", 0, 0, random(-180,180))
    Goto See

    
   
  BlindStrike:
    BRUS A 0
    BRUS A 0 A_Jump(224, "See")
    BRUS KLM 6
    BRUS M 1 A_GiveInventory("ChBlindStrike",1)
    BRUS M 0 A_CustomMissile("DarkBall3", 0, 0, random(-179,180))
    BRUS M 0 A_CustomMissile("DarkBall3", 0, 0, random(-179,180))
    BRUS M 0 A_CustomMissile("DarkBall3", 0, 0, random(-179,180))
    BRUS M 0 A_CustomMissile("DarkBall3", 0, 0, random(-179,180))
    BRUS M 0 A_CustomMissile("DarkBall3", 0, 0, random(-179,180))
    BRUS M 0 A_CustomMissile("DarkBall3", 0, 0, random(-179,180))
    BRUS M 0 A_CustomMissile("DarkBall3", 0, 0, random(-179,180))
    BRUS M 0 A_CustomMissile("DarkBall3", 0, 0, random(-179,180))
    BRUS M 0 A_CustomMissile("DarkBall3", 0, 0, random(-179,180))
    BRUS M 0 A_CustomMissile("DarkBall3", 0, 0, random(-179,180))
    BRUS M 0 A_CustomMissile("DarkBall3", 0, 0, random(-179,180))
    BRUS M 0 A_CustomMissile("DarkBall3", 0, 0, random(-179,180))
    BRUS M 0 A_CustomMissile("DarkBall3", 0, 0, random(-179,180))
    BRUS M 0 A_CustomMissile("DarkBall3", 0, 0, random(-179,180))
    BRUS M 0 A_CustomMissile("DarkBall3", 0, 0, random(-179,180))
    BRUS M 0 A_CustomMissile("DarkBall3", 0, 0, random(-179,180)) //16
    BRUS M 0 A_CustomMissile("DarkBall3", 0, 0, random(-179,180))
    BRUS M 0 A_CustomMissile("DarkBall3", 0, 0, random(-179,180))
    BRUS M 0 A_CustomMissile("DarkBall3", 0, 0, random(-179,180))
    BRUS M 0 A_CustomMissile("DarkBall3", 0, 0, random(-179,180))
    BRUS M 0 A_CustomMissile("DarkBall3", 0, 0, random(-179,180))
    BRUS M 0 A_CustomMissile("DarkBall3", 0, 0, random(-179,180))
    BRUS M 0 A_CustomMissile("DarkBall3", 0, 0, random(-179,180))
    BRUS M 0 A_CustomMissile("DarkBall3", 0, 0, random(-179,180))
    BRUS M 0 A_CustomMissile("DarkBall3", 0, 0, random(-179,180))
    BRUS M 0 A_CustomMissile("DarkBall3", 0, 0, random(-179,180))
    BRUS M 0 A_CustomMissile("DarkBall3", 0, 0, random(-179,180))
    BRUS M 0 A_CustomMissile("DarkBall3", 0, 0, random(-179,180))
    BRUS M 0 A_CustomMissile("DarkBall3", 0, 0, random(-179,180))
    BRUS M 0 A_CustomMissile("DarkBall3", 0, 0, random(-179,180))
    BRUS M 0 A_CustomMissile("DarkBall3", 0, 0, random(-179,180))
    BRUS M 0 A_CustomMissile("DarkBall3", 0, 0, random(-179,180)) //32    
    BRUS M 0 A_CustomMissile("DarkBall3", 0, 0, random(-179,180))
    BRUS M 0 A_CustomMissile("DarkBall3", 0, 0, random(-179,180))
    BRUS M 0 A_CustomMissile("DarkBall3", 0, 0, random(-179,180))
    BRUS M 0 A_CustomMissile("DarkBall3", 0, 0, random(-179,180))
    BRUS M 0 A_CustomMissile("DarkBall3", 0, 0, random(-179,180))
    BRUS M 0 A_CustomMissile("DarkBall3", 0, 0, random(-179,180))
    BRUS M 0 A_CustomMissile("DarkBall3", 0, 0, random(-179,180))
    BRUS M 0 A_CustomMissile("DarkBall3", 0, 0, random(-179,180)) //40
    BRUS M 0 A_CustomMissile("ChBAttakFlag", 0, 0, random(-179,180))
    Goto See
    
    
   
  Pain:
    BRUS N 4
    BRUS N 4 A_Pain
    goto See
    
  Death:
    BRUD A 6 Bright
    BRUD B 4 Bright A_Scream
    BRUD C 4 Bright A_TakeInventory("ChShieldChecker",1)
    BRUD D 4 Bright A_NoBlocking
    BRUD EFGHIJKLMNOPQRSTUV 6 Bright
    BRUD W 1 A_BossDeath
    BRUD W 1 A_SpawnItem("ChDeadBoss", 0, 0, 0, 0)
    stop
  }
}

Actor ChDeadBoss
{
scale 1.5
States
{
Spawn:
BRUD W -1
Stop
}
}


actor ChShieldChecker : Inventory
{
Inventory.Amount 1 
Inventory.MaxAmount 1 
-INVBAR 
}


actor BallChecker : Inventory
{
Inventory.Amount 1 
Inventory.MaxAmount 144 
-INVBAR 
}

actor CrawlBallChecker : Inventory
{
Inventory.Amount 1 
Inventory.MaxAmount 144 
-INVBAR 
}

actor ChStart : Inventory
{
Inventory.Amount 1 
Inventory.MaxAmount 1 
-INVBAR
}

actor ChBlindStrike : Inventory
{
Inventory.Amount 1 
Inventory.MaxAmount 1 
-INVBAR
}



actor ChBAttakFlag
{
  radius 0
  height 0
  speed 1
  damage 0
  PROJECTILE
  +NOCLIP
  states
  {
  Spawn:
    TNT1 A 0
    TNT1 A 1 A_Jump(1,"Death")
    loop
      
  Death:
    TNT1 A 20
    TNT1 A 1 A_TakeFromTarget("ChBlindStrike",1) 
    stop
  }
}

actor DarkBall
{
  radius 16
  height 16
  speed 24
  damage 7
  damagetype darkness
  renderstyle Normal
  seesound "superbaron/scream"
  deathsound "baron/shotx"
  PROJECTILE
  +SEEKERMISSILE
  +RANDOMIZE
  +THRUGHOST
  states
  {
  Spawn:
  
    BDL7 A 1 A_SeekerMissile (1,3)
    BDL7 B 1 A_Explode(5,128)
    loop
    
  Death:
    BDL7 CDE 6 bright
    stop
  }
}

actor DarkBall3 : DarkBall
{
+NOCLIP
+Ripper
//translation "0:255=0:0"
Scale 0.3
height 8
radius 8
damage 2
states
  {
  Spawn: 
         BDL7 A 0
         BDL7 A 0 A_JumpIfInTargetInventory("ChShieldChecker",1,1)
         Goto Death 
   	 BDL7 A 0
   	 BDL7 ABABABABABAB 2
   	 BDL7 A 0
         BDL7 AB 1 A_SeekerMissile (1,3) 
         //BDL7 A 0 A_JumpIfInventory("ChStart",1,2)
         BDL7 A 0 A_JumpIfTargetInLOS("Attack", 0, 1)
         BDL7 A 0
         BDL7 A 0 A_JumpIfInTargetInventory("ChBlindStrike",1,1)
         Goto Death
         BDL7 A 0
         Goto Spawn+14
         
         Attack:
         BDL7 A 0 bright
         BDL7 A 0 bright A_ChangeFlag("Noclip", 0)
         //BDL7 A 0 bright A_GiveInventory("ChStart",1)
         Goto AttackTrue //Spawn+14

		 AttackTrue:
         SKFX A 1 light("ARACHPLAS_X3") A_SeekerMissile (1,3) 
		 SKFX C 1 light("ARACHPLAS_X4") A_SeekerMissile (1,3)
         SKFX A 0 light("ARACHPLAS_X3") A_JumpIfInTargetInventory("ChBlindStrike",1,1)
         Goto Death
         SKFX A 0 light("ARACHPLAS_X3")
         loop
  }
}

actor SethRain
{
     SeeSound ""
     DeathSound ""
     translation "0:255=0:0"
     +NOCLIP
     +SEEKERMISSILE
     PROJECTILE
     height 6
     Scale 0.1
     damage 2
     Speed 10
     damagetype darkness
     States
     {
     Spawn:
         BDL7 C 0
         BDL7 CDCD 2 A_Explode(5,48)
         BDL7 C 1 A_CustomMissile("SethRain", random(0,80), random(256,448), 75)
         BDL7 E 1 A_Jump(224,2)
         BDL7 E 1 A_SpawnItemEx ("floatshield", 0, 0, 0, 0, 0, 0, 0, 0, 1) 
         BDL7 E 1
         Stop
         

     }
}

actor SethRain2 : SethRain
{
     States
     {
     Spawn:
         BDL7 C 0
         BDL7 C 0 A_JumpIfInTargetInventory("ChBlindStrike",1,"BlindStrike")
         BDL7 CDCD 2 A_Explode(5,48)
         BDL7 C 1 A_CustomMissile("SethRain2", random(0,80), random(256,448), 75)
         BDL7 E 1 A_Jump(224,2)
         BDL7 E 1 A_SpawnItemEx ("floatshield", 0, 0, 0, 0, 0, 0, 0, 0, 1) 
         BDL7 E 1
         Stop
         
      BlindStrike:
         TNT1 A 0
         TNT1 A 5
         TNT1 A 0
         TNT1 A 0 A_JumpIfInTargetInventory("ChBlindStrike",1,"BlindStrike")
         Goto Spawn

     }
}


actor floatshield
{
MONSTER
damagefactor darkness,0
PainChance 256
PainChance "darkness", 0
health 5
Scale 0.25
speed 0
radius 6
height 6
+NoGravity
+Noclip
+DONTFALL
+NOBLOOD
+GHOST
-COUNTKILL
States
{
Spawn:
TNT1 A 35
TNT1 A 1 A_Die("darkness")
stop

Pain:
TNT1 AAAAAA 2 A_SpawnItemEx ("RedChSparkle", random(-2,2), random(-2,2),0)
TNT1 A 35
TNT1 A 1 A_Die("darkness")
stop

Death:
TNT1 AAAAAA 2 A_SpawnItemEx ("RedChSparkle", random(-2,6), random(-2,6),random(0,6))
stop

Death.darkness:
TNT1 A 1
stop
}
}


actor DarkBall2
{
  radius 6
  height 16
  speed 12
  damage 16
  mass 100
  damagetype darkness
  renderstyle Normal
  translation "168:191=16:47"
  seesound "superbaron/pain"
  deathsound "baron/shotx"
  PROJECTILE
  +MISSILE
  +SEEKERMISSILE
  +RANDOMIZE
  +Hexenbounce
  +FLOORHUGGER
  +THRUGHOST
  states
  {
  Spawn:
    BDL7 A 0
    BDL7 A 0 A_JumpIfInTargetInventory("ChShieldChecker",1,1)
    Goto Death
    BDL7 A 0
    BDL7 A 1 Bright A_SeekerMissile (1,2) 
    BDL7 A 1 Bright A_Explode(5,96)
    BDl7 A 1 Bright A_SpawnItem("DarkBallTile",0,0)
    BDL7 A 1 Bright A_SeekerMissile (1,3) 
    BDL7 A 2 Bright A_Explode(5,96)
    BDL7 B 1 Bright A_SeekerMissile (1,2) 
    BDL7 A 1 Bright A_Explode(5,96)
    BDl7 A 1 Bright A_SpawnItem("DarkBallTile",0,0)
    BDL7 B 1 Bright A_SeekerMissile (1,3) 
    BDL7 A 2 Bright A_Explode(5,96)
    BDL7 B 1 Bright A_SeekerMissile (1,2) 
    BDL7 A 1 Bright A_Explode(5,96)
  Loop
  
  Death:
    BDL7 C 1 A_TakeFromTarget("CrawlBallChecker", 1)
    BDL7 CDE 6 bright A_Explode(2,256)
    stop
  }
}

actor DarkBallTile
{
radius 0
height 0
damagetype darkness
states
{
Spawn:
TNT1 A 1
TNT1 A 0 A_JumpIfInTargetInventory("ChShieldChecker",1,1)
Goto Death
TNT1 A 0

TNT1 A 0
TNT1 A 0 A_JumpIfInventory("BallChecker",96,"Death")
TNT1 A 0 A_GiveInventory("BallChecker",1)
TNT1 AA 1 A_Explode(5,40)
Loop
  
Death:
TNT1 B 2 bright A_Explode(1,32)
TNT1 C 2 bright A_Explode(1,16)
stop
}
}




//-------------------------Soul Stone---------------------------------//

actor SoulStone : CustomInventory 22158
{
  radius 16
  height 16
  inventory.amount 1
  inventory.maxamount 4
  //puzzleitem.number 13
  inventory.pickupmessage "Picked up a Soul Stone."
  inventory.icon "STONB0"
  inventory.pickupsound "item/pickup"
  Inventory.UseSound "PuzzleSuccess"

  +INVENTORY.INVBAR
  
  States
  {
  Spawn:
  	STON A -1 
  	Stop
  Use:
    STON A 0 
    STON A 0 A_JumpIfInventory("ChShield",1,6)
    STON A 1 A_JumpIfInventory("SethChecker",1,2)
    STON A 2 ACS_ExecuteAlways(777,0,0,0,0)
    Stop
    STON A 0 A_GiveInventory("ChShield",1)
    STON A 2 ACS_Execute(778,0,0,0,0)
    STON A 0 A_FireCustomMissile("ChFakeBolt")
    Stop
    STON A 1
    STON A 1 ACS_ExecuteAlways(779,0,0,0,0)
    Stop
   }
}

actor ChShield : Inventory
{
Inventory.Amount 1 
Inventory.MaxAmount 1 
-INVBAR
}


actor SethChecker : Inventory
{
Inventory.Amount 1 
Inventory.MaxAmount 1 
-INVBAR
}


actor ChFakeBolt
{
  radius 0
  height 0
  speed 1
  damage 0
  PROJECTILE
  +NOCLIP
  states
  {
  Spawn:
    TNT1 A 0
    TNT1 A 525
      
  Death:
    TNT1 A 1 A_TakeFromTarget("ChShield", 1) 
    stop
  }
}

Actor RedChSparkle
{
 +Missile
 +NoGravity
 +NoBlockmap
 +NoInteraction
 -Solid
 Radius 0
 Height 0
 RenderStyle Add
 Alpha 1.0
 Scale 0.25
 States
 {
  Spawn:
   SKFX A 0 Bright
   SKFX A 1 Bright A_FadeOut(0.1)   
   SKFX A 1 Bright A_SetScale(0.2)   
   SKFX A 1 Bright A_FadeOut(0.1)   
   SKFX A 1 Bright A_SetScale(0.3)   
   SKFX A 1 Bright A_FadeOut(0.1)   
   SKFX A 1 Bright A_SetScale(0.4)   
   SKFX A 1 Bright A_FadeOut(0.1)   
   SKFX A 1 Bright A_SetScale(0.5)   
   SKFX A 1 Bright A_FadeOut(0.1)   
   SKFX A 1 Bright A_SetScale(0.6)   
   SKFX A 1 Bright A_FadeOut(0.1)   
   SKFX A 1 Bright A_SetScale(0.7)   
   SKFX A 1 Bright A_FadeOut(0.1)   
   SKFX A 1 Bright A_SetScale(0.8)   
   SKFX A 1 Bright A_FadeOut(0.1)   
   SKFX A 1 Bright A_SetScale(0.9)   
   SKFX A 1 Bright A_FadeOut(0.1)   
   SKFX A 1 Bright A_SetScale(1.0)   
   SKFX A 1 Bright A_FadeOut(0.1)   
   Stop
 }
}
