Increase Battler Size in Battle

Hello!
I'm trying to figure out how to multiply the size of a battler sprite in battle. For example I script that the battler sprites become twice as large, or half their size.

I can use this to get the battlers : $game_troop.members[1..5] (I want to select the first 5 members for example)

I'm not sure if Rpg Maker Vx Axe already has variables like @battler.zoom_x and I'm not sure how I would use it.

I hope that made sense...

Thanks
(Assuming VX Ace)

I've done this in my game as a status effect. Pretty much, anything that has to do with the enemy's image (battler) is under Sprite_Battler. @battler is a reference to the enemy itself (stats) under Game_Enemy/Battler and unless you have a script, @battler doesn't have zoom_x/y because those variables are built into sprites. Thankfully, you don't need such a script.

---

So let's see...

1. Test: Try self.zoom_x in an Sprite_Battler update snippet or alias. By default, zoom_x and zoom_y are 1.0 (1x zoom).

2. State-Dependent: I use zooms for my status effects Mini and Enrage, so you can try if @battler.state?(MINIVARIABLE) . Considering that battlers are mainly seen in battle, you can apply the state as opposed to changing an enemy via script.

Example:
Code:
#replace MINI and GIANT with ID of states.
#You can insert this as a new snippet
class Sprite_Battler < Sprite_Base

  alias dl_update_effect update_effect #alias means run this method on top of the originial
  def update_effect
    if @battler.state?(MINI) #Half-size State
      self.zoom_x = 0.5
      self.zoom_y = 0.5
    elsif @battler.state?(GIANT) #Double-size State
      self.zoom_x = 2.0
      self.zoom_y = 2.0
    else #If you have neither states, return to normal size
      self.zoom_x = 1.0
      self.zoom_y = 1.0
    end
    dl_update_effect #This alias nickname runs the original update_effect
  end
end

---

If you still want to have @battler.zoom_x, you actually have to create an accessor variable or a method that returns a variable, but I'm certain states are less trouble.
Thanks for your help, but the snippet isn't working for me. I don't know why but playing with the @zoom_x has no effect. I don't get any
errors, but it does nothing... It's frustrating because it seems so simple.
Ah, it seems the other variables use self.opacity, so perhaps @this is not the same as self.this. I changed my snippet a bit, so try that out.
Thanks! We got it to work.
This thread is solved.

Original thread: https://forums.rpgmakerweb.com/threads/increase-battler-size-in-battle.83500/