RMRK is retiring.
Server is paid up for the rest of 2026, but the forum may go after that. See here for more information. Please archive or save anything you would like to keep before 2027.
Main Menu
  • Welcome to The RPG Maker Resource Kit.

[VX] RESOLVED - Monster Battler Size Script

Started by Adon, August 29, 2011, 12:44:51 PM

0 Members and 2 Guests are viewing this topic.

Adon

Monster Battler Size
August 29, 2011




Summary
Change the size of your monster battlers, using notetags.

Features Desired

  • Change Monster Battler Size
  • Note-tags
  • Compatibility with Takentai SBS.

Mockups
None really, besides in BEM.

What other scripts are you using?

  • Takentai SBS
  • KGC_EquipLearnSkill
  • Rockleedude's Battler SE.




Did you search?
Yes!

Where did you search?

What did you search for?

  • rpgmaker vx battler size script/ rpgmaker vx monster size script
  • rgss2 battler size script/ rgss2 monster size script.

I'm back.

DoctorTodd

That's pointless ???. Just go into GIMP or Paint and change the size.

Adon

Well, I kinda would have liked it for the convenience. Also, it would help keep down the size of the game.
Sorry Doctor.

I'm back.

cozziekuns


#==============================================================================
# ** RPG::Enemy
#==============================================================================

class RPG::Enemy
 
  def zoom_x; return (self.note[/\\zoom_x\[(\d+)\]/i].nil? ? 1 : $1.to_f); end
  def zoom_y; return (self.note[/\\zoom_y\[(\d+)\]/i].nil? ? 1 : $1.to_f); end
 
end
 
#==============================================================================
# ** Game_Enemy
#==============================================================================

class Game_Enemy
 
  def zoom_x; return enemy.zoom_x; end
  def zoom_y; return enemy.zoom_y; end
 
end

#==============================================================================
# ** Sprite_Battler
#==============================================================================

class Sprite_Battler < Sprite_Base
 
  alias coz_adon_monster_zoom_sb_update update
  def update
    coz_adon_monster_zoom_sb_update
    if @use_sprite and @battler.is_a?(Game_Enemy)
      self.zoom_x = @battler.zoom_x
      self.zoom_y = @battler.zoom_y
    end
  end
end


Use \zoom_x[zoom] and \zoom_y[zoom] tags. I don't for see any compatability problems for such a small script, but you never know.

Adon

#4
You are the best Cozziekuns! :3 Thanks~
EDIT:
Wait, when you input your value, how do  you do that? Do you use percentages? Or whole numbers?
Nevermind.

I'm back.