Help with recreating this lost "Aura" script?

In 2013, a user named LONE uploaded this video to YouTube, showing off a very cool visual effect he'd scripted. However, the download link in the description is broken, and LONE seems to have abandoned the channel, making him impossible to contact.

I was wondering if anyone knew where I might be able to get my hands on the script, or failing that, how difficult it would be to make something similar. It would be a great effect to have for a final boss battle. 😛

I spent a couple hours researching. Yep, looked at your video at MIDNIGHT... WOooooooo0000oooo----*

Hey, I am a werewolf ya know. 😛

And I came up with this. If you're using some enemy HP script like one by Raziel or El Conducter, you'd want this below that script. They usually don't play nice together.

OH, fill the LONEZOOM_LIST array at the top with the IDs of your boss enemies.. For testing purposes, it's currently filled with a 2 for the Basilisk default enemy. If you leave it empty, or set it to nil, all enemies have the effect.

Why LONEZOOM? You said it was from a guy named Lone, and it's more of a fading zoom effect. 😀

Code:
#==============================================================================
# ** Lone's Battler Zoom n Fade
#------------------------------------------------------------------------------
#    by DerVVulfman
#    version 1.1
#    01-02-2019
#    RGSS / RMXP
#==============================================================================


LONEZOOM_LIST = [2]

#==============================================================================
# ** Spriteset_Battle
#------------------------------------------------------------------------------
#  This class brings together battle screen sprites. It's used within
#  the Scene_Battle class.
#==============================================================================

class Spriteset_Battle
  #--------------------------------------------------------------------------
  # * Alias Listings
  #--------------------------------------------------------------------------
  alias lonezoom_spriteset_battle_initialize initialize
  alias lonezoom_spriteset_battle_dispose dispose
  alias lonezoom_spriteset_battle_update update
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  def initialize
    # The original call
    lonezoom_spriteset_battle_initialize
    # Branch to new code
    function_lonezoom_initialize
  end  
  #--------------------------------------------------------------------------
  # * Dispose
  #--------------------------------------------------------------------------
  def dispose
    # The original code
    lonezoom_spriteset_battle_dispose
    # Dispose of secondary enemy sprites
    unless @enemy_sprites2.nil?
      for sprite in @enemy_sprites2
        sprite.dispose unless sprite.nil?
      end
    end
  end  
  #--------------------------------------------------------------------------
  # * Frame Update
  #--------------------------------------------------------------------------
  def update
    # Branch to new code
    function_lonezoom_update
    # The original call
    lonezoom_spriteset_battle_update   
  end
  #--------------------------------------------------------------------------
  # * Additional Initialized values
  #--------------------------------------------------------------------------
  def function_lonezoom_initialize
    # Set up the pattern
    @zoompattern = 0
    # Make enemy sprites
    @enemy_sprites2 = []
    for enemy in $game_troop.enemies.reverse
      @enemy_sprites2.push(Sprite_Battler.new(@viewport1, enemy))
    end       
  end
  #--------------------------------------------------------------------------
  # * Additional Sprite Effect for Enemy
  #--------------------------------------------------------------------------
  def function_lonezoom_update
    # Update battler sprites
    return if @enemy_sprites2.nil?
    # Cycle through and get rid of dead sprites
    for sprite in @enemy_sprites2
      sprite.visible = false if sprite.battler.hidden
      sprite.visible = false if sprite.battler.dead?
      sprite.damage(" ",false) if sprite.battler.hidden
      sprite.damage(" ",false) if sprite.battler.dead?
    end
    # Update damage values for secondary enemy sprites
    # Required if using certain Enemy HP/SP Bar scripts
    for sprite in @enemy_sprites
      if sprite.battler.damage_pop
        for sprite2 in @enemy_sprites2
          if sprite2.battler == sprite.battler
            sprite2.battler.damage_pop  = sprite.battler.damage_pop
            sprite2.battler.damage      = sprite.battler.damage
            sprite2.battler.critical    = sprite.battler.critical
          end
        end
      end
    end
    # Cycle through secondary enemy sprites and update only living ones
    for sprite in @enemy_sprites2
      next if sprite.battler.hidden
      next if sprite.battler.dead?
      sprite.update
    end
    # Get current pattern
    @zoompattern = (@zoompattern + 1) % 60
    # Cycle through and update secondary sprite effect
    for sprite in @enemy_sprites2
      next if sprite.battler.hidden
      next if sprite.battler.dead?
      perform = false
      perform = true if LONEZOOM_LIST.nil?
      if LONEZOOM_LIST.is_a?(Array)
        perform = true if LONEZOOM_LIST == []
        perform = true if LONEZOOM_LIST.include?(sprite.battler.id)
      end
      next unless perform
      sprite.zoom_x = 1 + (@zoompattern.to_f)/200
      sprite.zoom_y = 1 + (@zoompattern.to_f)/200
      sprite.opacity = 255 - (@zoompattern*5)
    end   
  end
end
I spent a couple hours researching. Yep, looked at your video at MIDNIGHT... WOooooooo0000oooo----*

Hey, I am a werewolf ya know. 😛

And I came up with this. If you're using some enemy HP script like one by Raziel or El Conducter, you'd want this below that script. They usually don't play nice together.

OH, fill the LONEZOOM_LIST array at the top with the IDs of your boss enemies.. For testing purposes, it's currently filled with a 2 for the Basilisk default enemy. If you leave it empty, or set it to nil, all enemies have the effect.

Why LONEZOOM? You said it was from a guy named Lone, and it's more of a fading zoom effect. 😀

Thank you so much!! Visually, the effect is perfect.
Sadly, I pretty quickly noticed a conflict with Kotfire's animated battleback script:

(Part 1)
(Part 2)

If your script is higher in the load order than his, then the game crashes at the end of battle, and your script gives me an error on line 33: NoMethodError occured. undefined method 'each' for nil:NilClass.

However, if your script is lower on the list than his, the game crashes at the start of battle, and I get an error on line 69: ArgumentError occured. wrong number of arguments(2 for 3).

Is there a way to fix this? If not, I understand. Thanks for your hard work! 😀
It figures. 😛

Okay, I updated the script within that post. And I included a simple header with a title now. 😛

But, if you're fine with doing an edit... replace the dispose method within my script with this upgraded version:
Code:
  #--------------------------------------------------------------------------
  # * Dispose
  #--------------------------------------------------------------------------
  def dispose
    # The original code
    lonezoom_spriteset_battle_dispose
    # Dispose of secondary enemy sprites
    unless @enemy_sprites2.nil?
      for sprite in @enemy_sprites2
        sprite.dispose unless sprite.nil?
      end
    end
  end

The design adds two safeguards. It only performs this routine if the @enemy_sprites2 array exists. And it only runs the sprite.dispose command if the sprite actively exists.

HOWEVER, this must be placed below your animated battleback script. The effect is lost if you have it above the battleback script as the script you refer to as 'part 2' performs a rewrite of the Spriteset_Battle system's initialize method.

SPECIAL ALERT:
The two scripts you presented: Part 1 and Part 2. I believe you have these in reverse order. The one labeled as Part 2 rewrites the initialize method of the Spriteset_Battle class. But the one labeled as Part 1 attaches code to the same initialize method in Spriteset_Battle. When your project runs, it will first see Part 1's initialize method.... add the code... and then get to Part 2's initialize method and wipe everything added! If you reverse the order and have part 2 up higher, then it will run part 2's initialize method and then add Part 1's code after. This is what's referred to as script order, and why you would also need to have mine below both.
It works perfectly now! Thank you so much!!

(And yeah, I had the two scripts in the right order. I'm not sure why I posted them the wrong way around). >.<

Original thread: https://forums.rpgmakerweb.com/threads/help-with-recreating-this-lost-aura-script.103920/