Transparent windows, altered menus. [Resolved]

Hello, everyone. I'm new here, but I have not introduced myself, nor am I particularly familiar with this site's structure. Though I have been using RMXP for years, I've never understood scripting and that is why I am here.
I am not asking for anything major, like a Blue Magic script or anything. In fact, new scripts don't even need to be written to fulfill my request; I believe simple edits to the default scripts can solve my dilemma.

I do not possess the means of providing screenshots, and for that, I deeply apologize. I will, however, do everything I can to make my request clear and easy to comprehend.
It should be known that no additional scripts exist in the game, nor has there been any major editing to the default script. The only edit that was made was the capitalization of "equipment" in the status menu.

This request is comprised of three simple segments:

1. I would very much like for the Fight/Escape menu that appears at the beginning of the battle to be removed. None of the battles will have the option of running, so selecting Fight every turn is simply unnecessary.

2. I would like the battle window that features the party to be transparent like the other windows. This way, I can create larger Battle Backgrounds and Enemy Battlers.

3. I would like the existence of EXP to be made unknown to the player. Leveling occurs automatically (via event), so EXP is unnecessary. All things involving EXP should just be removed from the Victory Spoils window, the Main Menu, and the Status menu.


That concludes my request, though once again, I would very much like to offer my sincerest apologies for any rules or traditions broken in the creation of this topic. I am new, but I will learn.


EDIT: I have changed my mind, and have decided that I would like these to be in the form a separate, add-on script. I'm not comfortable with editting the current scripts.
Dachimotsu wrote:
EDIT: I have changed my mind, and have decided that I would like these to be in the form a separate, add-on script. I'm not comfortable with editting the current scripts.


Nobody should edit the default scripts anyway, you don't even need too.

  1. # Title: Some kind of battle script
  2. # By StarGGundam2
  3. # Writing this makes me feel weird
  4. # In order to change the opacity of the character's status in battle change the
  5. # self.opacity of the Window_BattleStatus class.
  6.  
  7.  
  8. ##################################
  9. #####Window BattleStatus################
  10. ##################################
  11. class Window_BattleStatus < Window_Base
  12.   def initialize
  13.     super(0, 320, 640, 160)
  14.     self.contents = Bitmap.new(width - 32, height - 32)
  15.     @level_up_flags = [false, false, false, false]
  16.     self.opacity = 60
  17.     refresh
  18.   end
  19. end
  20. ##################################
  21. #####Window PartyCommand################
  22. ##################################
  23. class Window_PartyCommand < Window_Selectable
  24.   def initialize
  25.     super(600, 600, 32, 32)
  26.     self.opacity = 0
  27.   end
  28. end
  29.  
  30.  
  31. ##################################
  32. #####Window BattleResult################
  33. ##################################
  34. class Window_BattleResult < Window_Base
  35.  
  36.   def initialize(exp, gold, treasures)
  37.     @exp = exp
  38.     @gold = gold
  39.     @treasures = treasures
  40.     super(160, 0, 320, @treasures.size * 32 + 64)
  41.     self.contents = Bitmap.new(width - 32, height - 32)
  42.     self.y = 160 - height / 2
  43.     self.back_opacity = 160
  44.     self.visible = false
  45.     refresh
  46.   end
  47.   #--------------------------------------------------------------------------
  48.   # * Refresh
  49.   #--------------------------------------------------------------------------
  50.   def refresh
  51.     self.contents.clear
  52.     x = 4
  53.     self.contents.font.color = normal_color
  54.     cx = contents.text_size(@gold.to_s).width
  55.     self.contents.draw_text(x, 0, cx, 32, @gold.to_s)
  56.     x += cx + 4
  57.     self.contents.font.color = system_color
  58.     self.contents.draw_text(x, 0, 128, 32, $data_system.words.gold)
  59.     y = 32
  60.     for item in @treasures
  61.       draw_item_name(item, 4, y)
  62.       y += 32
  63.     end
  64.   end
  65. end
  66. ##################################
  67. #####Scene_Battle################
  68. ##################################
  69. class Scene_Battle  
  70. def update_phase2
  71.         start_phase3
  72.       return
  73.     end
  74.   end
  75.   ##################################
  76. #####Window MenuStatus################
  77. ##################################
  78.   class Window_MenuStatus < Window_Selectable
  79.       def refresh
  80.     self.contents.clear
  81.     @item_max = $game_party.actors.size
  82.     for i in 0...$game_party.actors.size
  83.       x = 64
  84.       y = i * 116
  85.       actor = $game_party.actors[i]
  86.       draw_actor_graphic(actor, x - 40, y + 80)
  87.       draw_actor_name(actor, x, y)
  88.       draw_actor_class(actor, x + 144, y)
  89.       draw_actor_level(actor, x, y + 32)
  90.       draw_actor_state(actor, x + 90, y + 32)
  91.       draw_actor_hp(actor, x + 236, y + 32)
  92.       draw_actor_sp(actor, x + 236, y + 64)
  93.     end
  94.   end
  95.   end
  96. ##################################
  97. #####Window Status################
  98. ##################################
  99.   class Window_Status < Window_Base
  100.     def refresh
  101.     self.contents.clear
  102.     draw_actor_graphic(@actor, 40, 112)
  103.     draw_actor_name(@actor, 4, 0)
  104.     draw_actor_class(@actor, 4 + 144, 0)
  105.     draw_actor_level(@actor, 96, 32)
  106.     draw_actor_state(@actor, 96, 64)
  107.     draw_actor_hp(@actor, 96, 112, 172)
  108.     draw_actor_sp(@actor, 96, 144, 172)
  109.     draw_actor_parameter(@actor, 96, 192, 0)
  110.     draw_actor_parameter(@actor, 96, 224, 1)
  111.     draw_actor_parameter(@actor, 96, 256, 2)
  112.     draw_actor_parameter(@actor, 96, 304, 3)
  113.     draw_actor_parameter(@actor, 96, 336, 4)
  114.     draw_actor_parameter(@actor, 96, 368, 5)
  115.     draw_actor_parameter(@actor, 96, 400, 6)
  116.     self.contents.font.color = system_color
  117.     self.contents.draw_text(320, 160, 96, 32, "equipment")
  118.     draw_item_name($data_weapons[@actor.weapon_id], 320 + 16, 208)
  119.     draw_item_name($data_armors[@actor.armor1_id], 320 + 16, 256)
  120.     draw_item_name($data_armors[@actor.armor2_id], 320 + 16, 304)
  121.     draw_item_name($data_armors[@actor.armor3_id], 320 + 16, 352)
  122.     draw_item_name($data_armors[@actor.armor4_id], 320 + 16, 400)
  123.   end
  124.   end
Expand to see the code.


In order to change the opacity of the characters, read my fourth line of the script. I never really understood scripting either, but once you start poking around, you get the hang of it.
Excellent! Yes! Thank you very, very much. Everything about it works perfectly.
I know you must've went out of your way to make this, but I'm so glad you did.

If you need my help with something, feel free to ask, though the only help I could give you would be in things like Windowskins, Title Screens, Battlers, or regular pictures. I can't do spritework very well.
class Scene_Battle  
def update_phase2
start_phase3
return
end
end

^ I got a feeling it won't work
maybe:
class Scene_Battle
def start_phase2
start_phase3
return
end
end


Edit: Never mind, 'if it works don't fix it' :)
Actually, I just noticed that the script doesn't quite make the battle window transparent.
Let me try Silver Wind's suggestion.

EDIT: Tried it. Nothing changed. Seems that both ways work fine.
But the window's still not transparent.
StarGundam didn't make it transperant, but he told you how to do it yourself..
It's useful to learn some scripting.
I think he meant Window_BattleStatus though, not Window_MenuStatus.

Use this code to show bigger battlebacks, and make the party window transparent :
Note you won't see the difference until you switch to bigger battlebacks!
  1. # make the party window tasparent
  2.  
  3. class Window_BattleStatus < Window_Base
  4.   def refresh
  5.     self.contents.clear
  6.     self.opacity =  210
  7.     @item_max = $game_party.actors.size
  8.     for i in 0...$game_party.actors.size
  9.       actor = $game_party.actors[i]
  10.       actor_x = i * 160 + 4
  11.       draw_actor_name(actor, actor_x, 0)
  12.       draw_actor_hp(actor, actor_x, 32, 120)
  13.       draw_actor_sp(actor, actor_x, 64, 120)
  14.       if @level_up_flags[i]
  15.         self.contents.font.color = normal_color
  16.         self.contents.draw_text(actor_x, 96, 120, 32, "LEVEL UP!")
  17.       else
  18.         draw_actor_state(actor, actor_x, 96)
  19.       end
  20.     end
  21.   end
  22. end
  23.  
  24. # expanded battle-back area (viewport 1)
  25. class Spriteset_Battle
  26.   def initialize
  27.     # Make viewports
  28.     @viewport1 = Viewport.new(0, 0, 640, 480)
  29.     @viewport2 = Viewport.new(0, 0, 640, 480)
  30.     @viewport3 = Viewport.new(0, 0, 640, 480)
  31.     @viewport4 = Viewport.new(0, 0, 640, 480)
  32.     @viewport2.z = 101
  33.     @viewport3.z = 200
  34.     @viewport4.z = 5000
  35.     # Make battleback sprite
  36.     @battleback_sprite = Sprite.new(@viewport1)
  37.     # Make enemy sprites
  38.     @enemy_sprites = []
  39.     for enemy in $game_troop.enemies.reverse
  40.       @enemy_sprites.push(Sprite_Battler.new(@viewport1, enemy))
  41.     end
  42.     # Make actor sprites
  43.     @actor_sprites = []
  44.     @actor_sprites.push(Sprite_Battler.new(@viewport2))
  45.     @actor_sprites.push(Sprite_Battler.new(@viewport2))
  46.     @actor_sprites.push(Sprite_Battler.new(@viewport2))
  47.     @actor_sprites.push(Sprite_Battler.new(@viewport2))
  48.     # Make weather
  49.     @weather = RPG::Weather.new(@viewport1)
  50.     # Make picture sprites
  51.     @picture_sprites = []
  52.     for i in 51..100
  53.       @picture_sprites.push(Sprite_Picture.new(@viewport3,
  54.         $game_screen.pictures[i]))
  55.     end
  56.     # Make timer sprite
  57.     @timer_sprite = Sprite_Timer.new
  58.     # Frame update
  59.     update
  60.   end
  61.  
  62.   def update
  63.     # Update actor sprite contents (corresponds with actor switching)
  64.     @actor_sprites[0].battler = $game_party.actors[0]
  65.     @actor_sprites[1].battler = $game_party.actors[1]
  66.     @actor_sprites[2].battler = $game_party.actors[2]
  67.     @actor_sprites[3].battler = $game_party.actors[3]
  68.     # If battleback file name is different from current one
  69.     if @battleback_name != $game_temp.battleback_name
  70.       @battleback_name = $game_temp.battleback_name
  71.       if @battleback_sprite.bitmap != nil
  72.         @battleback_sprite.bitmap.dispose
  73.       end
  74.       @battleback_sprite.bitmap = RPG::Cache.battleback(@battleback_name)
  75.       @battleback_sprite.src_rect.set(0, 0, 640, 480)
  76.     end
  77.     # Update battler sprites
  78.     for sprite in @enemy_sprites + @actor_sprites
  79.       sprite.update
  80.     end
  81.     # Update weather graphic
  82.     @weather.type = $game_screen.weather_type
  83.     @weather.max = $game_screen.weather_max
  84.     @weather.update
  85.     # Update picture sprites
  86.     for sprite in @picture_sprites
  87.       sprite.update
  88.     end
  89.     # Update timer sprite
  90.     @timer_sprite.update
  91.     # Set screen color tone and shake position
  92.     @viewport1.tone = $game_screen.tone
  93.     @viewport1.ox = $game_screen.shake
  94.     # Set screen flash color
  95.     @viewport4.color = $game_screen.flash_color
  96.     # Update viewports
  97.     @viewport1.update
  98.     @viewport2.update
  99.     @viewport4.update
  100.   end
  101.  
  102. end
Expand to see the code.

Read line 6:
self.opacity = 210
It controls how transparent the window is. play with it until you find the right number, it should be between 0 and 255.
Oh and your battle backs should be 640x480, if they're the default size, your window won't look transparent.
Dachimotsu wrote:
Actually, I just noticed that the script doesn't quite make the battle window transparent.
Let me try Silver Wind's suggestion.

EDIT: Tried it. Nothing changed. Seems that both ways work fine.
But the window's still not transparent.

It is transparent, it's just got a black background behind it. You'll probably need a bigger battleback, Use silverwind's idea for that.
@Silverwind, but I did say Window_BattleStatus o.o
I had already switched to using 640x480 battlebacks to see if it worked, and it didn't. But now it does, so thanks a bunch! (is there a faster way to delete all those numbers when copying and pasting the code?)

But now I've stumbled upon a problem I did not know about before. RMXP won't let me move battlers further down, so that they appear semi-behind the party window. Can that be fixed, or is there no way to change the functions of the program itself?

I'm sorry. I know I probably should've mentioned this at first, but I didn't know the program didn't allow battlers to go past the edges.
Dachimotsu, click line number on/off before you copy the code.
I didn't get what you wanna do with the battlers.

StarGGundam2: Sorry ^^;
Now I see you did both.. why is there a window_MenuStatus in your script though? :o:
The party window is transparent, but the battleback will not show behind it without my code- All I did is make the height of the viewport 480, so it'll overlap the party window.(a tiny edit on lines 28 and 75)
you can't go beyond the limit of the viewport (640x320). The bottom part of the battleback isn't drawn to the screen, leaving the area below the party window black.
silver wind wrote:
I didn't get what you wanna do with the battlers.


I want to make it so that larger battlers can appear behind the window where the party's stats are shown.
This is very crudely drawn picture, but I think it gets the message across.
Content Hidden Spoiler
Image
Dachimotsu wrote:
silver wind wrote:
I didn't get what you wanna do with the battlers.


I want to make it so that larger battlers can appear behind the window where the party's stats are shown.
This is very crudely drawn picture, but I think it gets the message across.
Content Hidden Spoiler
Image

That's completely impossible as far as I know to do with RMXP. Because you can't get the battlers below the bottom line in the Database, unless you some how figured out how to do so.

@silver wind: There's a Window_MenuStatus in my script cause he requested for EXP to be removed from Scene_Menu, and that's what that part does for him. Think of it as the Window that operates the Main Menu.
It has to be possible. It seems like such a simple thing to do. (Well, simple for a scriptor, which I am not)
Isn't it at all possible to edit the database's functions? I seem to recall using a script long ago that let my enemies' HP values go higher than the limit. There's gotta be something.
I just tried using a too-big battler in the troop window, but the only line it won't go past is the bottom one. It goes through the top, left, and right ones just fine.
There's just gotta be a way around this.
Dachimotsu wrote:
It has to be possible. It seems like such a simple thing to do. (Well, simple for a scriptor, which I am not)
Isn't it at all possible to edit the database's functions? I seem to recall using a script long ago that let my enemies' HP values go higher than the limit. There's gotta be something.
I just tried using a too-big battler in the troop window, but the only line it won't go past is the bottom one. It goes through the top, left, and right ones just fine.
There's just gotta be a way around this.

  1. class Spriteset_Battle
  2.   #--------------------------------------------------------------------------
  3.   # * Public Instance Variables
  4.   #--------------------------------------------------------------------------
  5.   attr_reader   :viewport1                # enemy viewport
  6.   attr_reader   :viewport2                # actor viewport
  7.   #--------------------------------------------------------------------------
  8.   # * Object Initialization
  9.   #--------------------------------------------------------------------------
  10.   def initialize
  11.     # Make viewports
  12.     @viewport1 = Viewport.new(0, 0, 640, 480)
  13.    @viewport5 = Viewport.new(0, 100, 640, 800)
  14.     @viewport2 = Viewport.new(0, 0, 640, 480)
  15.     @viewport3 = Viewport.new(0, 0, 640, 480)
  16.     @viewport4 = Viewport.new(0, 0, 640, 480)
  17.     @viewport2.z = 101
  18.     @viewport3.z = 200
  19.     @viewport4.z = 5000
  20.     # Make battleback sprite
  21.     @battleback_sprite = Sprite.new(@viewport1)
  22.     # Make enemy sprites
  23.     @enemy_sprites = []
  24.     for enemy in $game_troop.enemies.reverse
  25.       @enemy_sprites.push(Sprite_Battler.new(@viewport5, enemy))
  26.     end
  27.     # Make actor sprites
  28.     @actor_sprites = []
  29.     @actor_sprites.push(Sprite_Battler.new(@viewport2))
  30.     @actor_sprites.push(Sprite_Battler.new(@viewport2))
  31.     @actor_sprites.push(Sprite_Battler.new(@viewport2))
  32.     @actor_sprites.push(Sprite_Battler.new(@viewport2))
  33.     # Make weather
  34.     @weather = RPG::Weather.new(@viewport1)
  35.     # Make picture sprites
  36.     @picture_sprites = []
  37.     for i in 51..100
  38.       @picture_sprites.push(Sprite_Picture.new(@viewport3,
  39.         $game_screen.pictures[i]))
  40.     end
  41.     # Make timer sprite
  42.     @timer_sprite = Sprite_Timer.new
  43.     # Frame update
  44.     update
  45.   end
  46.   #--------------------------------------------------------------------------
  47.   # * Dispose
  48.   #--------------------------------------------------------------------------
  49.   def dispose
  50.     # If battleback bit map exists, dispose of it
  51.     if @battleback_sprite.bitmap != nil
  52.       @battleback_sprite.bitmap.dispose
  53.     end
  54.     # Dispose of battleback sprite
  55.     @battleback_sprite.dispose
  56.     # Dispose of enemy sprites and actor sprites
  57.     for sprite in @enemy_sprites + @actor_sprites
  58.       sprite.dispose
  59.     end
  60.     # Dispose of weather
  61.     @weather.dispose
  62.     # Dispose of picture sprites
  63.     for sprite in @picture_sprites
  64.       sprite.dispose
  65.     end
  66.     # Dispose of timer sprite
  67.     @timer_sprite.dispose
  68.     # Dispose of viewports
  69.     @viewport1.dispose
  70.     @viewport2.dispose
  71.     @viewport3.dispose
  72.     @viewport4.dispose
  73.     @viewport5.dispose
  74.   end
  75.   end
Expand to see the code.


Well... I thought about it and you're right. I guess I thought there'd be no way around it. Change the Pink Colored text's "100" in my script to the Y Position you want your enemy battlers to be at. Oh paste this below Silverwind's bit also. There should be no incompatibility
Well, on my computer, they appear red, but I still don't know how to use this script. I mean, what's the step-by-step process and how do I do this for multiple battlers or troops?

EDIT: Also, I discovered that with the script, battlers that are placed too high get cut off, so little feet just end up dangling in the center of the screen.
Well.. All it does is move down the battler's to a specific position of y. Whatever position you put them in the database is where they'll be. But this @viewport5 = Viewport.new(0, 100, 640, 800) is the new port that positions the WINDOW Enemy Battlers in your game. The Battlers will just go wherever you decided you wanted them to go in the database (Did I say that already :down: )

anyway @viewport5 = viewport.new(x,y,width,height) Is all that means.

Increase of Y will move the Enemy Battler Window Down
Decrease of Y will move the Enemy Battler Window Up

You shouldn't really need to mess with the rest.

It should work with Multiple Battlers and troops, I tested it. Not sure about Height though, really tall ones are liable to get cutoff, but this seems to be the only work around to get battlers farther down the screen.

Edit: Well. This workaround will only work with Battlers about 320 pixels tall. Else it's not gonna work. Maybe a more experienced scripter can help
Yeah, that's kinda what I was hoping for, actually. Screen-filling 480 pixel bosses.

Edit: Should I make a separate topic asking for a script that allows for bigger battlers?
I've tested this with a large battler(480 height), but i get the head, not the feet cut off.
I fixed that by editing Sprite_battler's @height and making the viewport5 960 height.
Here's the full script, StarGGundam2's script and my edits:

  1. # Title: Some kind of battle script
  2. # By StarGGundam2
  3. # Writing this makes me feel weird
  4. # In order to change the opacity of the character's status in battle change the
  5. # self.opacity of the Window_BattleStatus class.
  6.  
  7.  
  8. ##################################
  9. #####Window BattleStatus################
  10. ##################################
  11. class Window_BattleStatus < Window_Base
  12.   def initialize
  13.     super(0, 320, 640, 160)
  14.     self.contents = Bitmap.new(width - 32, height - 32)
  15.     @level_up_flags = [false, false, false, false]
  16.     self.opacity = 60
  17.     refresh
  18.   end
  19. end
  20. ##################################
  21. #####Window PartyCommand################
  22. ##################################
  23. class Window_PartyCommand < Window_Selectable
  24.   def initialize
  25.     super(600, 600, 32, 32)
  26.     self.opacity = 0
  27.   end
  28. end
  29.  
  30.  
  31. ##################################
  32. #####Window BattleResult################
  33. ##################################
  34. class Window_BattleResult < Window_Base
  35.  
  36.   def initialize(exp, gold, treasures)
  37.     @exp = exp
  38.     @gold = gold
  39.     @treasures = treasures
  40.     super(160, 0, 320, @treasures.size * 32 + 64)
  41.     self.contents = Bitmap.new(width - 32, height - 32)
  42.     self.y = 160 - height / 2
  43.     self.back_opacity = 160
  44.     self.visible = false
  45.     refresh
  46.   end
  47.   #--------------------------------------------------------------------------
  48.   # * Refresh
  49.   #--------------------------------------------------------------------------
  50.   def refresh
  51.     self.contents.clear
  52.     x = 4
  53.     self.contents.font.color = normal_color
  54.     cx = contents.text_size(@gold.to_s).width
  55.     self.contents.draw_text(x, 0, cx, 32, @gold.to_s)
  56.     x += cx + 4
  57.     self.contents.font.color = system_color
  58.     self.contents.draw_text(x, 0, 128, 32, $data_system.words.gold)
  59.     y = 32
  60.     for item in @treasures
  61.       draw_item_name(item, 4, y)
  62.       y += 32
  63.     end
  64.   end
  65. end
  66. ##################################
  67. #####Scene_Battle################
  68. ##################################
  69. class Scene_Battle  
  70. def update_phase2
  71.         start_phase3
  72.       return
  73.     end
  74.   end
  75.   ##################################
  76. #####Window MenuStatus################
  77. ##################################
  78.   class Window_MenuStatus < Window_Selectable
  79.       def refresh
  80.     self.contents.clear
  81.     @item_max = $game_party.actors.size
  82.     for i in 0...$game_party.actors.size
  83.       x = 64
  84.       y = i * 116
  85.       actor = $game_party.actors[i]
  86.       draw_actor_graphic(actor, x - 40, y + 80)
  87.       draw_actor_name(actor, x, y)
  88.       draw_actor_class(actor, x + 144, y)
  89.       draw_actor_level(actor, x, y + 32)
  90.       draw_actor_state(actor, x + 90, y + 32)
  91.       draw_actor_hp(actor, x + 236, y + 32)
  92.       draw_actor_sp(actor, x + 236, y + 64)
  93.     end
  94.   end
  95.   end
  96. ##################################
  97. #####Window Status################
  98. ##################################
  99.   class Window_Status < Window_Base
  100.     def refresh
  101.     self.contents.clear
  102.     draw_actor_graphic(@actor, 40, 112)
  103.     draw_actor_name(@actor, 4, 0)
  104.     draw_actor_class(@actor, 4 + 144, 0)
  105.     draw_actor_level(@actor, 96, 32)
  106.     draw_actor_state(@actor, 96, 64)
  107.     draw_actor_hp(@actor, 96, 112, 172)
  108.     draw_actor_sp(@actor, 96, 144, 172)
  109.     draw_actor_parameter(@actor, 96, 192, 0)
  110.     draw_actor_parameter(@actor, 96, 224, 1)
  111.     draw_actor_parameter(@actor, 96, 256, 2)
  112.     draw_actor_parameter(@actor, 96, 304, 3)
  113.     draw_actor_parameter(@actor, 96, 336, 4)
  114.     draw_actor_parameter(@actor, 96, 368, 5)
  115.     draw_actor_parameter(@actor, 96, 400, 6)
  116.     self.contents.font.color = system_color
  117.     self.contents.draw_text(320, 160, 96, 32, "equipment")
  118.     draw_item_name($data_weapons[@actor.weapon_id], 320 + 16, 208)
  119.     draw_item_name($data_armors[@actor.armor1_id], 320 + 16, 256)
  120.     draw_item_name($data_armors[@actor.armor2_id], 320 + 16, 304)
  121.     draw_item_name($data_armors[@actor.armor3_id], 320 + 16, 352)
  122.     draw_item_name($data_armors[@actor.armor4_id], 320 + 16, 400)
  123.   end
  124.  end
  125.  
  126.  
  127.  class Spriteset_Battle
  128.   #--------------------------------------------------------------------------
  129.   # * Public Instance Variables
  130.   #--------------------------------------------------------------------------
  131.   attr_reader   :viewport1                # enemy viewport
  132.   attr_reader   :viewport2                # actor viewport
  133.   #--------------------------------------------------------------------------
  134.   # * Object Initialization
  135.   #--------------------------------------------------------------------------
  136.   def initialize
  137.     # Make viewports
  138.     @viewport1 = Viewport.new(0, 0, 640, 480)
  139.     # ----- silver wind's edit: 800 >> 960 ----- #
  140.     @viewport5 = Viewport.new(0, 100, 640, 960)
  141.     # ------------------------------------------ #
  142.     @viewport2 = Viewport.new(0, 0, 640, 480)
  143.     @viewport3 = Viewport.new(0, 0, 640, 480)
  144.     @viewport4 = Viewport.new(0, 0, 640, 480)
  145.     @viewport2.z = 101
  146.     @viewport3.z = 200
  147.     @viewport4.z = 5000
  148.     # Make battleback sprite
  149.     @battleback_sprite = Sprite.new(@viewport1)
  150.     # Make enemy sprites
  151.     @enemy_sprites = []
  152.     for enemy in $game_troop.enemies.reverse
  153.       @enemy_sprites.push(Sprite_Battler.new(@viewport5, enemy, 100)) # new
  154.     end
  155.     # Make actor sprites
  156.     @actor_sprites = []
  157.     @actor_sprites.push(Sprite_Battler.new(@viewport2))
  158.     @actor_sprites.push(Sprite_Battler.new(@viewport2))
  159.     @actor_sprites.push(Sprite_Battler.new(@viewport2))
  160.     @actor_sprites.push(Sprite_Battler.new(@viewport2))
  161.     # Make weather
  162.     @weather = RPG::Weather.new(@viewport1)
  163.     # Make picture sprites
  164.     @picture_sprites = []
  165.     for i in 51..100
  166.       @picture_sprites.push(Sprite_Picture.new(@viewport3,
  167.         $game_screen.pictures[i]))
  168.     end
  169.     # Make timer sprite
  170.     @timer_sprite = Sprite_Timer.new
  171.     # Frame update
  172.     update
  173.   end
  174.   #--------------------------------------------------------------------------
  175.   # * Dispose
  176.   #--------------------------------------------------------------------------
  177.   def dispose
  178.     # If battleback bit map exists, dispose of it
  179.     if @battleback_sprite.bitmap != nil
  180.       @battleback_sprite.bitmap.dispose
  181.     end
  182.     # Dispose of battleback sprite
  183.     @battleback_sprite.dispose
  184.     # Dispose of enemy sprites and actor sprites
  185.     for sprite in @enemy_sprites + @actor_sprites
  186.       sprite.dispose
  187.     end
  188.     # Dispose of weather
  189.     @weather.dispose
  190.     # Dispose of picture sprites
  191.     for sprite in @picture_sprites
  192.       sprite.dispose
  193.     end
  194.     # Dispose of timer sprite
  195.     @timer_sprite.dispose
  196.     # Dispose of viewports
  197.     @viewport1.dispose
  198.     @viewport2.dispose
  199.     @viewport3.dispose
  200.     @viewport4.dispose
  201.     @viewport5.dispose
  202.   end
  203. end
  204.  
  205.  
  206. # --------------------------------------------- #
  207. # Fix by Silver Wind                            #
  208. # --------------------------------------------- #
  209. # expanded battle-back area (viewport 1)
  210. class Spriteset_Battle
  211.  
  212.   def update
  213.     # Update actor sprite contents (corresponds with actor switching)
  214.     @actor_sprites[0].battler = $game_party.actors[0]
  215.     @actor_sprites[1].battler = $game_party.actors[1]
  216.     @actor_sprites[2].battler = $game_party.actors[2]
  217.     @actor_sprites[3].battler = $game_party.actors[3]
  218.     # If battleback file name is different from current one
  219.     if @battleback_name != $game_temp.battleback_name
  220.       @battleback_name = $game_temp.battleback_name
  221.       if @battleback_sprite.bitmap != nil
  222.         @battleback_sprite.bitmap.dispose
  223.       end
  224.       @battleback_sprite.bitmap = RPG::Cache.battleback(@battleback_name)
  225.       @battleback_sprite.src_rect.set(0, 0, 640, 480)
  226.     end
  227.     # Update battler sprites
  228.     for sprite in @enemy_sprites + @actor_sprites
  229.       sprite.update
  230.     end
  231.     # Update weather graphic
  232.     @weather.type = $game_screen.weather_type
  233.     @weather.max = $game_screen.weather_max
  234.     @weather.update
  235.     # Update picture sprites
  236.     for sprite in @picture_sprites
  237.       sprite.update
  238.     end
  239.     # Update timer sprite
  240.     @timer_sprite.update
  241.     # Set screen color tone and shake position
  242.     @viewport1.tone = $game_screen.tone
  243.     @viewport1.ox = $game_screen.shake
  244.     # Set screen flash color
  245.     @viewport4.color = $game_screen.flash_color
  246.     # Update viewports
  247.     @viewport1.update
  248.     @viewport2.update
  249.     @viewport4.update
  250.   end
  251.  
  252. end
  253.  
  254.  
  255. class Sprite_Battler < RPG::Sprite
  256.   def initialize(viewport, battler = nil, offset=0)
  257.     super(viewport)
  258.     @battler = battler
  259.     @battler_visible = false
  260.     @offset = offset# new
  261.   end
  262.  
  263.   def update
  264.     super
  265.     # If battler is nil
  266.     if @battler == nil
  267.       self.bitmap = nil
  268.       loop_animation(nil)
  269.       return
  270.     end
  271.     # If file name or hue are different than current ones
  272.     if @battler.battler_name != @battler_name or
  273.        @battler.battler_hue != @battler_hue
  274.       # Get and set bitmap
  275.       @battler_name = @battler.battler_name
  276.       @battler_hue = @battler.battler_hue
  277.       self.bitmap = RPG::Cache.battler(@battler_name, @battler_hue)
  278.       #self.bitmap = RPG::Cache.picture(@battler_name)
  279.       @width = bitmap.width
  280.       @height = bitmap.height
  281.       self.ox = @width / 2
  282.       # ----------- edit ------------
  283.       self.oy = @height - @offset
  284.       # was: self.oy = @height
  285.       # -----------------------------
  286.       # Change opacity level to 0 when dead or hidden
  287.       if @battler.dead? or @battler.hidden
  288.         self.opacity = 0
  289.       end
  290.     end
  291.     # If animation ID is different than current one
  292.     if @battler.damage == nil and
  293.        @battler.state_animation_id != @state_animation_id
  294.       @state_animation_id = @battler.state_animation_id
  295.       loop_animation($data_animations[@state_animation_id])
  296.     end
  297.     # If actor which should be displayed
  298.     if @battler.is_a?(Game_Actor) and @battler_visible
  299.       # Bring opacity level down a bit when not in main phase
  300.       if $game_temp.battle_main_phase
  301.         self.opacity += 3 if self.opacity < 255
  302.       else
  303.         self.opacity -= 3 if self.opacity > 207
  304.       end
  305.     end
  306.     # Blink
  307.     if @battler.blink
  308.       blink_on
  309.     else
  310.       blink_off
  311.     end
  312.     # If invisible
  313.     unless @battler_visible
  314.       # Appear
  315.       if not @battler.hidden and not @battler.dead? and
  316.          (@battler.damage == nil or @battler.damage_pop)
  317.         appear
  318.         @battler_visible = true
  319.       end
  320.     end
  321.     # If visible
  322.     if @battler_visible
  323.       # Escape
  324.       if @battler.hidden
  325.         $game_system.se_play($data_system.escape_se)
  326.         escape
  327.         @battler_visible = false
  328.       end
  329.       # White flash
  330.       if @battler.white_flash
  331.         whiten
  332.         @battler.white_flash = false
  333.       end
  334.       # Animation
  335.       if @battler.animation_id != 0
  336.         animation = $data_animations[@battler.animation_id]
  337.         animation(animation, @battler.animation_hit)
  338.         @battler.animation_id = 0
  339.       end
  340.       # Damage
  341.       if @battler.damage_pop
  342.         damage(@battler.damage, @battler.critical)
  343.         @battler.damage = nil
  344.         @battler.critical = false
  345.         @battler.damage_pop = false
  346.       end
  347.       # Collapse
  348.       if @battler.damage == nil and @battler.dead?
  349.         if @battler.is_a?(Game_Enemy)
  350.           $game_system.se_play($data_system.enemy_collapse_se)
  351.         else
  352.           $game_system.se_play($data_system.actor_collapse_se)
  353.         end
  354.         collapse
  355.         @battler_visible = false
  356.       end
  357.     end
  358.     # Set sprite coordinates
  359.     self.x = @battler.screen_x
  360.     self.y = @battler.screen_y
  361.     self.z = @battler.screen_z
  362.   end
  363.  
  364. end
  365. # --------------------------------------------- #
Expand to see the code.

Do like StarGGundam2 said for the enemy's y value. if you make it 120, be sure to also put 120 on line 153:
Sprite_Battler.new(@viewport5, enemy, 120)
Well, I tested your new script with a 480-tall battler, and I played around with that number (I made it 0, 100, 120, etc.), but parts of the battler still get cut off.

EDIT: Also, for some reason, the target cursor doesn't show now.

Now, I'm no good at scripting, so I could just be spouting nonsense... But what if you made a script that lowered the position of all battlers by 160 (the height of the party window), and then somehow "refreshed" the images so parts wouldn't be cut off?
Not my best coding example, but it works now (including the arrow):
I had to cut the enemy in half and show the bottom and the top as 2 sprites. apparently viewports are capped at 320 height, or it may be caused by some hidden class. Couldn't get it to work any other way.
  1. # Title: Some kind of battle script
  2. # By StarGGundam2
  3. # Writing this makes me feel weird
  4. # In order to change the opacity of the character's status in battle change the
  5. # self.opacity of the Window_BattleStatus class.
  6.  
  7.  
  8. ##################################
  9. #####Window BattleStatus################
  10. ##################################
  11. class Window_BattleStatus < Window_Base
  12.   def initialize
  13.     super(0, 320, 640, 160)
  14.     self.contents = Bitmap.new(width - 32, height - 32)
  15.     @level_up_flags = [false, false, false, false]
  16.     self.opacity = 200
  17.     refresh
  18.   end
  19. end
  20. ##################################
  21. #####Window PartyCommand################
  22. ##################################
  23. class Window_PartyCommand < Window_Selectable
  24.   def initialize
  25.     super(600, 600, 32, 32)
  26.     self.opacity = 0
  27.   end
  28. end
  29.  
  30.  
  31. ##################################
  32. #####Window BattleResult################
  33. ##################################
  34. class Window_BattleResult < Window_Base
  35.  
  36.   def initialize(exp, gold, treasures)
  37.     @exp = exp
  38.     @gold = gold
  39.     @treasures = treasures
  40.     super(160, 0, 320, @treasures.size * 32 + 64)
  41.     self.contents = Bitmap.new(width - 32, height - 32)
  42.     self.y = 160 - height / 2
  43.     self.back_opacity = 160
  44.     self.visible = false
  45.     refresh
  46.   end
  47.   #--------------------------------------------------------------------------
  48.   # * Refresh
  49.   #--------------------------------------------------------------------------
  50.   def refresh
  51.     self.contents.clear
  52.     x = 4
  53.     self.contents.font.color = normal_color
  54.     cx = contents.text_size(@gold.to_s).width
  55.     self.contents.draw_text(x, 0, cx, 32, @gold.to_s)
  56.     x += cx + 4
  57.     self.contents.font.color = system_color
  58.     self.contents.draw_text(x, 0, 128, 32, $data_system.words.gold)
  59.     y = 32
  60.     for item in @treasures
  61.       draw_item_name(item, 4, y)
  62.       y += 32
  63.     end
  64.   end
  65. end
  66. ##################################
  67. #####Scene_Battle################
  68. ##################################
  69. class Scene_Battle  
  70. def update_phase2
  71.         start_phase3
  72.       return
  73.     end
  74.   end
  75.   ##################################
  76. #####Window MenuStatus################
  77. ##################################
  78.   class Window_MenuStatus < Window_Selectable
  79.       def refresh
  80.     self.contents.clear
  81.     @item_max = $game_party.actors.size
  82.     for i in 0...$game_party.actors.size
  83.       x = 64
  84.       y = i * 116
  85.       actor = $game_party.actors[i]
  86.       draw_actor_graphic(actor, x - 40, y + 80)
  87.       draw_actor_name(actor, x, y)
  88.       draw_actor_class(actor, x + 144, y)
  89.       draw_actor_level(actor, x, y + 32)
  90.       draw_actor_state(actor, x + 90, y + 32)
  91.       draw_actor_hp(actor, x + 236, y + 32)
  92.       draw_actor_sp(actor, x + 236, y + 64)
  93.     end
  94.   end
  95.   end
  96. ##################################
  97. #####Window Status################
  98. ##################################
  99.   class Window_Status < Window_Base
  100.     def refresh
  101.     self.contents.clear
  102.     draw_actor_graphic(@actor, 40, 112)
  103.     draw_actor_name(@actor, 4, 0)
  104.     draw_actor_class(@actor, 4 + 144, 0)
  105.     draw_actor_level(@actor, 96, 32)
  106.     draw_actor_state(@actor, 96, 64)
  107.     draw_actor_hp(@actor, 96, 112, 172)
  108.     draw_actor_sp(@actor, 96, 144, 172)
  109.     draw_actor_parameter(@actor, 96, 192, 0)
  110.     draw_actor_parameter(@actor, 96, 224, 1)
  111.     draw_actor_parameter(@actor, 96, 256, 2)
  112.     draw_actor_parameter(@actor, 96, 304, 3)
  113.     draw_actor_parameter(@actor, 96, 336, 4)
  114.     draw_actor_parameter(@actor, 96, 368, 5)
  115.     draw_actor_parameter(@actor, 96, 400, 6)
  116.     self.contents.font.color = system_color
  117.     self.contents.draw_text(320, 160, 96, 32, "equipment")
  118.     draw_item_name($data_weapons[@actor.weapon_id], 320 + 16, 208)
  119.     draw_item_name($data_armors[@actor.armor1_id], 320 + 16, 256)
  120.     draw_item_name($data_armors[@actor.armor2_id], 320 + 16, 304)
  121.     draw_item_name($data_armors[@actor.armor3_id], 320 + 16, 352)
  122.     draw_item_name($data_armors[@actor.armor4_id], 320 + 16, 400)
  123.   end
  124.  end
  125.  
  126.  
  127.  class Spriteset_Battle
  128.   #--------------------------------------------------------------------------
  129.   # * Public Instance Variables
  130.   #--------------------------------------------------------------------------
  131.   attr_reader   :viewport1                # enemy viewport
  132.   attr_reader   :viewport2                # actor viewport
  133.   attr_reader   :enemy_sprites
  134.   #--------------------------------------------------------------------------
  135.   # * Object Initialization
  136.   #--------------------------------------------------------------------------
  137.   def initialize
  138.     # Make viewports
  139.     @viewport1 = Viewport.new(0, 0, 640, 480)
  140.     # ----- silver wind's edit: 800 >> 960 ----- #
  141.     @viewport5 = Viewport.new(0, 0, 640, 480) #960
  142.     # ------------------------------------------ #
  143.     @viewport2 = Viewport.new(0, 0, 640, 480)
  144.     @viewport3 = Viewport.new(0, 0, 640, 480)
  145.     @viewport4 = Viewport.new(0, 0, 640, 480)
  146.     @viewport2.z = 101
  147.     @viewport3.z = 200
  148.     @viewport4.z = 5000
  149.     #@viewport5.z = 200
  150.     # Make battleback sprite
  151.     @battleback_sprite = Sprite.new(@viewport1)
  152.     # Make enemy sprites
  153.     @enemy_sprites = []
  154.     for enemy in $game_troop.enemies.reverse
  155.       @enemy_sprites.push(Sprite_Battler.new(@viewport5, enemy, 0)) # new
  156.       @enemy_sprites.push(Sprite_Battler.new(@viewport5, enemy, 160))
  157.     end
  158.     # Make actor sprites
  159.     @actor_sprites = []
  160.     @actor_sprites.push(Sprite_Battler.new(@viewport2))
  161.     @actor_sprites.push(Sprite_Battler.new(@viewport2))
  162.     @actor_sprites.push(Sprite_Battler.new(@viewport2))
  163.     @actor_sprites.push(Sprite_Battler.new(@viewport2))
  164.     # Make weather
  165.     @weather = RPG::Weather.new(@viewport1)
  166.     # Make picture sprites
  167.     @picture_sprites = []
  168.     for i in 51..100
  169.       @picture_sprites.push(Sprite_Picture.new(@viewport3,
  170.         $game_screen.pictures[i]))
  171.     end
  172.     # Make timer sprite
  173.     @timer_sprite = Sprite_Timer.new
  174.     # Frame update
  175.     update
  176.   end
  177.   #--------------------------------------------------------------------------
  178.   # * Dispose
  179.   #--------------------------------------------------------------------------
  180.   def dispose
  181.     # If battleback bit map exists, dispose of it
  182.     if @battleback_sprite.bitmap != nil
  183.       @battleback_sprite.bitmap.dispose
  184.     end
  185.     # Dispose of battleback sprite
  186.     @battleback_sprite.dispose
  187.     # Dispose of enemy sprites and actor sprites
  188.     for sprite in @enemy_sprites + @actor_sprites
  189.       sprite.dispose
  190.     end
  191.     # Dispose of weather
  192.     @weather.dispose
  193.     # Dispose of picture sprites
  194.     for sprite in @picture_sprites
  195.       sprite.dispose
  196.     end
  197.     # Dispose of timer sprite
  198.     @timer_sprite.dispose
  199.     # Dispose of viewports
  200.     @viewport1.dispose
  201.     @viewport2.dispose
  202.     @viewport3.dispose
  203.     @viewport4.dispose
  204.     @viewport5.dispose
  205.   end
  206. end
  207.  
  208.  
  209. # --------------------------------------------- #
  210. # Fix by Silver Wind                            #
  211. # --------------------------------------------- #
  212. # expanded battle-back area (viewport 1)
  213. class Spriteset_Battle
  214.  
  215.   def update
  216.     # Update actor sprite contents (corresponds with actor switching)
  217.     @actor_sprites[0].battler = $game_party.actors[0]
  218.     @actor_sprites[1].battler = $game_party.actors[1]
  219.     @actor_sprites[2].battler = $game_party.actors[2]
  220.     @actor_sprites[3].battler = $game_party.actors[3]
  221.     # If battleback file name is different from current one
  222.     if @battleback_name != $game_temp.battleback_name
  223.       @battleback_name = $game_temp.battleback_name
  224.       if @battleback_sprite.bitmap != nil
  225.         @battleback_sprite.bitmap.dispose
  226.       end
  227.       @battleback_sprite.bitmap = RPG::Cache.battleback(@battleback_name)
  228.       @battleback_sprite.src_rect.set(0, 0, 640, 480)
  229.     end
  230.     # Update battler sprites
  231.     for sprite in @enemy_sprites + @actor_sprites
  232.       sprite.update
  233.     end
  234.     # Update weather graphic
  235.     @weather.type = $game_screen.weather_type
  236.     @weather.max = $game_screen.weather_max
  237.     @weather.update
  238.     # Update picture sprites
  239.     for sprite in @picture_sprites
  240.       sprite.update
  241.     end
  242.     # Update timer sprite
  243.     @timer_sprite.update
  244.     # Set screen color tone and shake position
  245.     @viewport1.tone = $game_screen.tone
  246.     @viewport1.ox = $game_screen.shake
  247.     # Set screen flash color
  248.     @viewport4.color = $game_screen.flash_color
  249.     # Update viewports
  250.     @viewport1.update
  251.     @viewport2.update
  252.     @viewport4.update
  253.   end
  254.  
  255. end
  256.  
  257.  
  258. class Sprite_Battler < RPG::Sprite
  259.   def initialize(viewport, battler = nil, offset=nil)
  260.     super(viewport)
  261.     @battler = battler
  262.     @battler_visible = false
  263.     @offset = offset# new
  264.   end
  265.  
  266.   def update
  267.     super
  268.     # If battler is nil
  269.     if @battler == nil
  270.       self.bitmap = nil
  271.       loop_animation(nil)
  272.       return
  273.     end
  274.     # If file name or hue are different than current ones
  275.     if @battler.battler_name != @battler_name or
  276.        @battler.battler_hue != @battler_hue
  277.       # Get and set bitmap
  278.       @battler_name = @battler.battler_name
  279.       @battler_hue = @battler.battler_hue
  280.       # ----------- edit ------------
  281.       if @offset.nil?
  282.         self.bitmap = RPG::Cache.battler(@battler_name, @battler_hue)
  283.         @width = bitmap.width
  284.         @height = bitmap.height
  285.         self.ox = @width / 2
  286.         self.oy = @height
  287.       else
  288.         bitmap2 = RPG::Cache.battler(@battler_name, @battler_hue)
  289.         @width = bitmap2.width
  290.         @height = (bitmap2.height) - @offset
  291.         self.ox = @width / 2
  292.         off = (@offset==0 ? -160 : 160)
  293.         self.oy = @height - @offset
  294.         src_rect = Rect.new(0, off, @width, @height+@offset) # @offset
  295.         self.bitmap = Bitmap.new(@width, @height+@offset)
  296.         self.bitmap.blt(0, 0, bitmap2, src_rect)
  297.       end
  298.       # -----------------------------
  299.      
  300.       # Change opacity level to 0 when dead or hidden
  301.       if @battler.dead? or @battler.hidden
  302.         self.opacity = 0
  303.       end
  304.     end
  305.     # If animation ID is different than current one
  306.     if @battler.damage == nil and
  307.        @battler.state_animation_id != @state_animation_id
  308.       @state_animation_id = @battler.state_animation_id
  309.       loop_animation($data_animations[@state_animation_id])
  310.     end
  311.     # If actor which should be displayed
  312.     if @battler.is_a?(Game_Actor) and @battler_visible
  313.       # Bring opacity level down a bit when not in main phase
  314.       if $game_temp.battle_main_phase
  315.         self.opacity += 3 if self.opacity < 255
  316.       else
  317.         self.opacity -= 3 if self.opacity > 207
  318.       end
  319.     end
  320.     # Blink
  321.     if @battler.blink
  322.       blink_on
  323.     else
  324.       blink_off
  325.     end
  326.     # If invisible
  327.     unless @battler_visible
  328.       # Appear
  329.       if not @battler.hidden and not @battler.dead? and
  330.          (@battler.damage == nil or @battler.damage_pop)
  331.         appear
  332.         @battler_visible = true
  333.       end
  334.     end
  335.     # If visible
  336.     if @battler_visible
  337.       # Escape
  338.       if @battler.hidden
  339.         $game_system.se_play($data_system.escape_se)
  340.         escape
  341.         @battler_visible = false
  342.       end
  343.       # White flash
  344.       if @battler.white_flash
  345.         # ------------ edit  ------------- #
  346.         # the large enemy is made from 2 sprites.
  347.         # this edit makes them flash together
  348.         if $game_temp.in_battle
  349.           for sprite in $scene.spriteset.enemy_sprites
  350.             if @battler == sprite.battler
  351.               #found another sprite of this battler
  352.               sprite.whiten
  353.             end
  354.            
  355.           end
  356.         end
  357.         # ------------------------------------ #
  358.         whiten
  359.         @battler.white_flash = false
  360.       end
  361.       # Animation
  362.       if @battler.animation_id != 0
  363.         # ------------ edit : make both sprites animate ------------- #
  364.         animation = $data_animations[@battler.animation_id]
  365.         #animation(animation, @battler.animation_hit)
  366.         @battler.animation_id = 0
  367.         if $game_temp.in_battle
  368.           for sprite in $scene.spriteset.enemy_sprites
  369.             if @battler == sprite.battler
  370.               #found another sprite of this battler
  371.               @count = animation.frame_max
  372.               sprite.loop_animation(animation)
  373.               @second_sprite = sprite
  374.             end
  375.            
  376.           end
  377.         end
  378.         # ----------------------------------------- #
  379.         loop_animation(animation)
  380.       end
  381.       # ------- edit : make both sprites stop animating--------- #
  382.       if @count and @count >0 : @count -= 1 end
  383.       if @count==0
  384.         @second_sprite.loop_animation(nil)
  385.         loop_animation(nil)
  386.       end
  387.      
  388.       # ------------------------------------------- #
  389.       # Damage
  390.       if @battler.damage_pop
  391.         damage(@battler.damage, @battler.critical)
  392.         @battler.damage = nil
  393.         @battler.critical = false
  394.         @battler.damage_pop = false
  395.       end
  396.       # Collapse
  397.       if @battler.damage == nil and @battler.dead?
  398.         if @battler.is_a?(Game_Enemy)
  399.           $game_system.se_play($data_system.enemy_collapse_se)
  400.         else
  401.           $game_system.se_play($data_system.actor_collapse_se)
  402.         end
  403.         collapse
  404.         @battler_visible = false
  405.       end
  406.     end
  407.     # Set sprite coordinates
  408.     self.x = @battler.screen_x
  409.     self.y = @battler.screen_y
  410.     self.z = @battler.screen_z
  411.   end
  412.  
  413. end
  414. # ----------------------------------------------------- #
  415. class Scene_Battle
  416.   attr_reader :spriteset
  417.   def start_enemy_select
  418.     # Make enemy arrow
  419.     # ---------------  edit: was viewport1 ------------------
  420.     @enemy_arrow = Arrow_Enemy.new(@spriteset.viewport2)
  421.    # -------------------------------------------------------
  422.     # Associate help window
  423.     @enemy_arrow.help_window = @help_window
  424.     # Disable actor command window
  425.     @actor_command_window.active = false
  426.     @actor_command_window.visible = false
  427.   end
  428. end
  429.  
Expand to see the code.

Animations will be double- it won't look good with some animations.
If you want to just use the default script (the animation will show on half of the sprite), erase lines 362-388 and paste this instead:
  1.      if @battler.animation_id != 0
  2.         animation = $data_animations[@battler.animation_id]
  3.         animation(animation, @battler.animation_hit)
  4.         @battler.animation_id = 0
  5.       end
Expand to see the code.
It works wonderfully!
However, I have now stumbled upon yet another glitch.
Animations that change the screen's hue leave it that way. The default Fire 3 animation turned the screen red.
If this can be fixed, then all my problems will be over.
  1. # Title: Some kind of battle script
  2. # By StarGGundam2 & Silver Wind
  3. # Writing this makes me feel weird
  4. # In order to change the opacity of the character's status in battle change the
  5. # self.opacity of the Window_BattleStatus class.
  6.  
  7.  
  8. ##################################
  9. #####Window BattleStatus################
  10. ##################################
  11. class Window_BattleStatus < Window_Base
  12.   def initialize
  13.     super(0, 320, 640, 160)
  14.     self.contents = Bitmap.new(width - 32, height - 32)
  15.     @level_up_flags = [false, false, false, false]
  16.     self.opacity = 200
  17.     refresh
  18.   end
  19. end
  20. ##################################
  21. #####Window PartyCommand################
  22. ##################################
  23. class Window_PartyCommand < Window_Selectable
  24.   def initialize
  25.     super(600, 600, 32, 32)
  26.     self.opacity = 0
  27.   end
  28. end
  29.  
  30.  
  31. ##################################
  32. #####Window BattleResult################
  33. ##################################
  34. class Window_BattleResult < Window_Base
  35.  
  36.   def initialize(exp, gold, treasures)
  37.     @exp = exp
  38.     @gold = gold
  39.     @treasures = treasures
  40.     super(160, 0, 320, @treasures.size * 32 + 64)
  41.     self.contents = Bitmap.new(width - 32, height - 32)
  42.     self.y = 160 - height / 2
  43.     self.back_opacity = 160
  44.     self.visible = false
  45.     refresh
  46.   end
  47.   #--------------------------------------------------------------------------
  48.   # * Refresh
  49.   #--------------------------------------------------------------------------
  50.   def refresh
  51.     self.contents.clear
  52.     x = 4
  53.     self.contents.font.color = normal_color
  54.     cx = contents.text_size(@gold.to_s).width
  55.     self.contents.draw_text(x, 0, cx, 32, @gold.to_s)
  56.     x += cx + 4
  57.     self.contents.font.color = system_color
  58.     self.contents.draw_text(x, 0, 128, 32, $data_system.words.gold)
  59.     y = 32
  60.     for item in @treasures
  61.       draw_item_name(item, 4, y)
  62.       y += 32
  63.     end
  64.   end
  65. end
  66. ##################################
  67. #####Scene_Battle################
  68. ##################################
  69. class Scene_Battle  
  70. def update_phase2
  71.         start_phase3
  72.       return
  73.     end
  74.   end
  75.   ##################################
  76. #####Window MenuStatus################
  77. ##################################
  78.   class Window_MenuStatus < Window_Selectable
  79.       def refresh
  80.     self.contents.clear
  81.     @item_max = $game_party.actors.size
  82.     for i in 0...$game_party.actors.size
  83.       x = 64
  84.       y = i * 116
  85.       actor = $game_party.actors[i]
  86.       draw_actor_graphic(actor, x - 40, y + 80)
  87.       draw_actor_name(actor, x, y)
  88.       draw_actor_class(actor, x + 144, y)
  89.       draw_actor_level(actor, x, y + 32)
  90.       draw_actor_state(actor, x + 90, y + 32)
  91.       draw_actor_hp(actor, x + 236, y + 32)
  92.       draw_actor_sp(actor, x + 236, y + 64)
  93.     end
  94.   end
  95.   end
  96. ##################################
  97. #####Window Status################
  98. ##################################
  99.   class Window_Status < Window_Base
  100.     def refresh
  101.     self.contents.clear
  102.     draw_actor_graphic(@actor, 40, 112)
  103.     draw_actor_name(@actor, 4, 0)
  104.     draw_actor_class(@actor, 4 + 144, 0)
  105.     draw_actor_level(@actor, 96, 32)
  106.     draw_actor_state(@actor, 96, 64)
  107.     draw_actor_hp(@actor, 96, 112, 172)
  108.     draw_actor_sp(@actor, 96, 144, 172)
  109.     draw_actor_parameter(@actor, 96, 192, 0)
  110.     draw_actor_parameter(@actor, 96, 224, 1)
  111.     draw_actor_parameter(@actor, 96, 256, 2)
  112.     draw_actor_parameter(@actor, 96, 304, 3)
  113.     draw_actor_parameter(@actor, 96, 336, 4)
  114.     draw_actor_parameter(@actor, 96, 368, 5)
  115.     draw_actor_parameter(@actor, 96, 400, 6)
  116.     self.contents.font.color = system_color
  117.     self.contents.draw_text(320, 160, 96, 32, "equipment")
  118.     draw_item_name($data_weapons[@actor.weapon_id], 320 + 16, 208)
  119.     draw_item_name($data_armors[@actor.armor1_id], 320 + 16, 256)
  120.     draw_item_name($data_armors[@actor.armor2_id], 320 + 16, 304)
  121.     draw_item_name($data_armors[@actor.armor3_id], 320 + 16, 352)
  122.     draw_item_name($data_armors[@actor.armor4_id], 320 + 16, 400)
  123.   end
  124.  end
  125.  
  126.  
  127.  class Spriteset_Battle
  128.   #--------------------------------------------------------------------------
  129.   # * Public Instance Variables
  130.   #--------------------------------------------------------------------------
  131.   attr_reader   :viewport1                # enemy viewport
  132.   attr_reader   :viewport2                # actor viewport
  133.   attr_reader   :enemy_sprites
  134.   #--------------------------------------------------------------------------
  135.   # * Object Initialization
  136.   #--------------------------------------------------------------------------
  137.   def initialize
  138.     # Make viewports
  139.     @viewport1 = Viewport.new(0, 0, 640, 480)
  140.     # ----- silver wind's edit: 800 >> 960 ----- #
  141.     @viewport5 = Viewport.new(0, 0, 640, 480) #960
  142.     # ------------------------------------------ #
  143.     @viewport2 = Viewport.new(0, 0, 640, 480)
  144.     @viewport3 = Viewport.new(0, 0, 640, 480)
  145.     @viewport4 = Viewport.new(0, 0, 640, 480)
  146.     @viewport2.z = 101
  147.     @viewport3.z = 200
  148.     @viewport4.z = 5000
  149.     #@viewport5.z = 200
  150.     # Make battleback sprite
  151.     @battleback_sprite = Sprite.new(@viewport1)
  152.     # Make enemy sprites
  153.     @enemy_sprites = []
  154.     for enemy in $game_troop.enemies.reverse
  155.       @enemy_sprites.push(Sprite_Battler.new(@viewport5, enemy, 0)) # new
  156.       @enemy_sprites.push(Sprite_Battler.new(@viewport5, enemy, 160))
  157.     end
  158.     # Make actor sprites
  159.     @actor_sprites = []
  160.     @actor_sprites.push(Sprite_Battler.new(@viewport2))
  161.     @actor_sprites.push(Sprite_Battler.new(@viewport2))
  162.     @actor_sprites.push(Sprite_Battler.new(@viewport2))
  163.     @actor_sprites.push(Sprite_Battler.new(@viewport2))
  164.     # Make weather
  165.     @weather = RPG::Weather.new(@viewport1)
  166.     # Make picture sprites
  167.     @picture_sprites = []
  168.     for i in 51..100
  169.       @picture_sprites.push(Sprite_Picture.new(@viewport3,
  170.         $game_screen.pictures[i]))
  171.     end
  172.     # Make timer sprite
  173.     @timer_sprite = Sprite_Timer.new
  174.     # Frame update
  175.     update
  176.   end
  177.   #--------------------------------------------------------------------------
  178.   # * Dispose
  179.   #--------------------------------------------------------------------------
  180.   def dispose
  181.     # If battleback bit map exists, dispose of it
  182.     if @battleback_sprite.bitmap != nil
  183.       @battleback_sprite.bitmap.dispose
  184.     end
  185.     # Dispose of battleback sprite
  186.     @battleback_sprite.dispose
  187.     # Dispose of enemy sprites and actor sprites
  188.     for sprite in @enemy_sprites + @actor_sprites
  189.       sprite.dispose
  190.     end
  191.     # Dispose of weather
  192.     @weather.dispose
  193.     # Dispose of picture sprites
  194.     for sprite in @picture_sprites
  195.       sprite.dispose
  196.     end
  197.     # Dispose of timer sprite
  198.     @timer_sprite.dispose
  199.     # Dispose of viewports
  200.     @viewport1.dispose
  201.     @viewport2.dispose
  202.     @viewport3.dispose
  203.     @viewport4.dispose
  204.     @viewport5.dispose
  205.   end
  206. end
  207.  
  208.  
  209. # --------------------------------------------- #
  210. # Fix by Silver Wind                            #
  211. # --------------------------------------------- #
  212. # expanded battle-back area (viewport 1)
  213. class Spriteset_Battle
  214.  
  215.   def update
  216.     # Update actor sprite contents (corresponds with actor switching)
  217.     @actor_sprites[0].battler = $game_party.actors[0]
  218.     @actor_sprites[1].battler = $game_party.actors[1]
  219.     @actor_sprites[2].battler = $game_party.actors[2]
  220.     @actor_sprites[3].battler = $game_party.actors[3]
  221.     # If battleback file name is different from current one
  222.     if @battleback_name != $game_temp.battleback_name
  223.       @battleback_name = $game_temp.battleback_name
  224.       if @battleback_sprite.bitmap != nil
  225.         @battleback_sprite.bitmap.dispose
  226.       end
  227.       @battleback_sprite.bitmap = RPG::Cache.battleback(@battleback_name)
  228.       @battleback_sprite.src_rect.set(0, 0, 640, 480)
  229.     end
  230.     # Update battler sprites
  231.     for sprite in @enemy_sprites + @actor_sprites
  232.       sprite.update
  233.     end
  234.     # Update weather graphic
  235.     @weather.type = $game_screen.weather_type
  236.     @weather.max = $game_screen.weather_max
  237.     @weather.update
  238.     # Update picture sprites
  239.     for sprite in @picture_sprites
  240.       sprite.update
  241.     end
  242.     # Update timer sprite
  243.     @timer_sprite.update
  244.     # Set screen color tone and shake position
  245.     @viewport1.tone = $game_screen.tone
  246.     @viewport5.tone = $game_screen.tone # new
  247.     @viewport1.ox = $game_screen.shake
  248.     # Set screen flash color
  249.     @viewport4.color = $game_screen.flash_color
  250.     @viewport5.color = $game_screen.flash_color # new
  251.     # Update viewports
  252.     @viewport1.update
  253.     @viewport2.update
  254.     @viewport4.update
  255.     @viewport5.update
  256.   end
  257.  
  258. end
  259.  
  260.  
  261. class Sprite_Battler < RPG::Sprite
  262.   def initialize(viewport, battler = nil, offset=nil)
  263.     super(viewport)
  264.     @battler = battler
  265.     @battler_visible = false
  266.     @offset = offset# new
  267.   end
  268.  
  269.   def update
  270.     super
  271.     # If battler is nil
  272.     if @battler == nil
  273.       self.bitmap = nil
  274.       loop_animation(nil)
  275.       return
  276.     end
  277.     # If file name or hue are different than current ones
  278.     if @battler.battler_name != @battler_name or
  279.        @battler.battler_hue != @battler_hue
  280.       # Get and set bitmap
  281.       @battler_name = @battler.battler_name
  282.       @battler_hue = @battler.battler_hue
  283.       # ----------- edit ------------
  284.       if @offset.nil?
  285.         self.bitmap = RPG::Cache.battler(@battler_name, @battler_hue)
  286.         @width = bitmap.width
  287.         @height = bitmap.height
  288.         self.ox = @width / 2
  289.         self.oy = @height
  290.       else
  291.         bitmap2 = RPG::Cache.battler(@battler_name, @battler_hue)
  292.         @width = bitmap2.width
  293.         @height = (bitmap2.height) - @offset
  294.         self.ox = @width / 2
  295.         off = (@offset==0 ? -160 : 160)
  296.         self.oy = @height - @offset
  297.         src_rect = Rect.new(0, off, @width, @height+@offset) # @offset
  298.         self.bitmap = Bitmap.new(@width, @height+@offset)
  299.         self.bitmap.blt(0, 0, bitmap2, src_rect)
  300.       end
  301. =begin
  302.       self.oy = @height + @offset # was +@offset
  303.       src_rect = Rect.new(0, off, @width, @height+@offset) # off was -160
  304.       self.bitmap = Bitmap.new(@width, @height+@offset)
  305.       self.bitmap.blt(0, 0, bitmap2, src_rect)
  306. =end
  307.       # -----------------------------
  308.      
  309.       # Change opacity level to 0 when dead or hidden
  310.       if @battler.dead? or @battler.hidden
  311.         self.opacity = 0
  312.       end
  313.     end
  314.     # If animation ID is different than current one
  315.     if @battler.damage == nil and
  316.        @battler.state_animation_id != @state_animation_id
  317.       @state_animation_id = @battler.state_animation_id
  318.       loop_animation($data_animations[@state_animation_id])
  319.     end
  320.     # If actor which should be displayed
  321.     if @battler.is_a?(Game_Actor) and @battler_visible
  322.       # Bring opacity level down a bit when not in main phase
  323.       if $game_temp.battle_main_phase
  324.         self.opacity += 3 if self.opacity < 255
  325.       else
  326.         self.opacity -= 3 if self.opacity > 207
  327.       end
  328.     end
  329.     # Blink
  330.     if @battler.blink
  331.       blink_on
  332.     else
  333.       blink_off
  334.     end
  335.     # If invisible
  336.     unless @battler_visible
  337.       # Appear
  338.       if not @battler.hidden and not @battler.dead? and
  339.          (@battler.damage == nil or @battler.damage_pop)
  340.         appear
  341.         @battler_visible = true
  342.       end
  343.     end
  344.     # If visible
  345.     if @battler_visible
  346.       # Escape
  347.       if @battler.hidden
  348.         $game_system.se_play($data_system.escape_se)
  349.         escape
  350.         @battler_visible = false
  351.       end
  352.       # White flash
  353.       if @battler.white_flash
  354.         # ------------ edit  ------------- #
  355.         # the large enemy is made from 2 sprites.
  356.         # this edit makes them flash together
  357.         if $game_temp.in_battle
  358.           for sprite in $scene.spriteset.enemy_sprites
  359.             if @battler == sprite.battler
  360.               #p 'found another sprite of this battler'
  361.               sprite.whiten
  362.             end
  363.            
  364.           end
  365.         end
  366.         # ------------------------------------ #
  367.         whiten
  368.         @battler.white_flash = false
  369.       end
  370.       # Animation
  371.       if @battler.animation_id != 0
  372.         # ------------ edit  ------------- #
  373.         animation = $data_animations[@battler.animation_id]
  374.         #animation(animation, @battler.animation_hit)
  375.         @count = animation.frame_max
  376.         @battler.animation_id = 0
  377.         if $game_temp.in_battle
  378.           for sprite in $scene.spriteset.enemy_sprites
  379.             if @battler == sprite.battler
  380.               #p 'found another sprite of this battler'
  381.               #sprite.battler.animation_id = @battler.animation_id
  382.               #sprite.animation() #(animation, @battler.animation_hit)
  383.               #sprite.loop_animation($data_animations[@battler.animation_id])
  384.              
  385.               #animation = $data_animations[@battler.animation_id]
  386.               #sprite.animation(animation, @battler.animation_hit)
  387.               #sprite.update
  388.               #sprite.battler.animation_id = 0
  389.               #animation = $data_animations[anim_id]
  390.               sprite.loop_animation(animation)
  391.               @second_sprite = sprite
  392.             end
  393.            
  394.           end
  395.         end
  396.         # ----------------------------------------- #
  397.         #loop_animation(animation)
  398.         animation(animation, @battler.animation_hit)
  399.       end
  400.       # ------------------ edit  ------------------ #
  401.       if @count and @count >0 : @count -= 1 end
  402.       if @count==0
  403.         unless @second_sprite.nil?  
  404.           @second_sprite.loop_animation(nil)
  405.         end
  406.         loop_animation(nil)
  407.       end
  408.      
  409.       # ------------------------------------------- #
  410.       # Damage
  411.       if @battler.damage_pop
  412.         damage(@battler.damage, @battler.critical)
  413.         @battler.damage = nil
  414.         @battler.critical = false
  415.         @battler.damage_pop = false
  416.       end
  417.       # Collapse
  418.       if @battler.damage == nil and @battler.dead?
  419.         if @battler.is_a?(Game_Enemy)
  420.           $game_system.se_play($data_system.enemy_collapse_se)
  421.         else
  422.           $game_system.se_play($data_system.actor_collapse_se)
  423.         end
  424.         collapse
  425.         @battler_visible = false
  426.       end
  427.     end
  428.     # Set sprite coordinates
  429.     self.x = @battler.screen_x
  430.     self.y = @battler.screen_y
  431.     self.z = @battler.screen_z
  432.   end
  433.  
  434. end
  435. # --------------------------------------------------------------------------- #
  436. class Scene_Battle
  437.   attr_reader :spriteset
  438.   def start_enemy_select
  439.     # Make enemy arrow
  440.     @enemy_arrow = Arrow_Enemy.new(@spriteset.viewport2) #was viewport1
  441.     # Associate help window
  442.     @enemy_arrow.help_window = @help_window
  443.     # Disable actor command window
  444.     @actor_command_window.active = false
  445.     @actor_command_window.visible = false
  446.   end
  447. end
  448.  
Expand to see the code.
YES!! Excellent!
Everything is great, Everything is wonderful, Everything is perfect.

I can't thank you two enough for going out of your way to help me.

Now, uh... Do I click report to request the topic's lock?
Okay, well, for some reason, now bits and pieces of smaller battlers are vanishing no matter where I put them on the troop screen. I was hoping the script could be compatible with smaller battlers, but I guess it's not.
I'll have a look at it
ok, a quick fix:
replace lines 155-156 in the script above:
@enemy_sprites.push(Sprite_Battler.new(@viewport5, enemy, 0)) # new
@enemy_sprites.push(Sprite_Battler.new(@viewport5, enemy, 160))

with this code:
  1.      name, hue = enemy.battler_name, enemy.battler_hue
  2.       sprite = RPG::Cache.battler(name, hue)
  3.       if sprite.height > 320
  4.         # draw full-screen sprites
  5.         @enemy_sprites.push(Sprite_Battler.new(@viewport5, enemy, 0))
  6.         @enemy_sprites.push(Sprite_Battler.new(@viewport5, enemy, 160))
  7.       else
  8.         # draw smaller sprites in the normal way :
  9.         @enemy_sprites.push(Sprite_Battler.new(@viewport1, enemy))
  10.       end
Expand to see the code.
Awesome! Okay, thanks. Small and big battlers even work well when they're together!
Thanks a ton!

Original thread: https://www.hbgames.org/forums/viewtopic.php?t=71045