Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

window for 6 characters

Anonymous

Guest

I have changed things in the script with no luck although I did mange to take the hp and sp bars off my side battle ally and enemies. I need a window to show 6 characters instead of 4 is there one or is it just a simple fix that I have missed.
 
Ok that's easy, I'll just steal some code from one of my scripts:
In Window_MenuStatus find the line super(0, 0, 480, 480) (it's near the top) and replace it with super(0, 0, 480, 160 * $game_party.actors.size) then add this at the bottom of the script (before the very last end)
Code:
  alias large_refresh refresh
  def refresh
    large_refresh
    self.height = 480
  end
See if that works.
 

Anonymous

Guest

#==============================================================================
# ** Window_MenuStatus
#------------------------------------------------------------------------------
# This window displays party member status on the menu screen.
#==============================================================================

class Window_MenuStatus < Window_Selectable
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize
super(0, 0, 480, 160 * $game_party.actors.size)
self.contents = Bitmap.new(width - 32, height - 32)
refresh
self.active = false
self.index = -1
end
#--------------------------------------------------------------------------
# * Refresh
#--------------------------------------------------------------------------
def refresh
self.contents.clear
@item_max = $game_party.actors.size
for i in 0...$game_party.actors.size
x = 64
y = i * 116
actor = $game_party.actors
draw_actor_graphic(actor, x - 40, y + 80)
draw_actor_name(actor, x, y)
draw_actor_class(actor, x + 144, y)
draw_actor_level(actor, x, y + 32)
draw_actor_state(actor, x + 90, y + 32)
draw_actor_exp(actor, x, y + 64)
draw_actor_hp(actor, x + 236, y + 32)
draw_actor_sp(actor, x + 236, y + 64)
end
end
#--------------------------------------------------------------------------
# * Cursor Rectangle Update
#--------------------------------------------------------------------------
def update_cursor_rect
if @index < 0
self.cursor_rect.empty
else
self.cursor_rect.set(0, @index * 116, self.width - 32, 96)
end
end
alias large_refresh refresh
def refresh
large_refresh
self.height = 488
end
end
 

Anonymous

Guest

Yup I could scroll down to the 5th and 6th anyway but I can't see them even after scrolling down, I want the chars all visable on the menu.
 

Anonymous

Guest

tis ok I have done I just changed this under refresh, y = i * 70 (70 is what I changed it to from 116)

Thanks for the quick replies.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top