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.

Party Command Edit?

Hey, I was wondering if there was a way to, other than selecting 'Attack' & 'Escape' from columns, you select them from rows, if you don't know what I mean (As I can't explain it very well) then have a look at the screenshots,

This is what it is at the moment...
View attachment 562

And this is what I want it to look like
View attachment 563

Hope this explains it,

Thank You :D
 
Here you go:

Code:
#==============================================================================
# Window_PartyCommand
#--------------------------------------------------------------------------
# Script by BlueScope
#==============================================================================

class Window_PartyCommand < Window_Selectable
  #--------------------------------------------------------------------------
  def initialize
    super(0, 0, 640, 96)
    self.contents = Bitmap.new(width - 32, height - 32)
    self.x = 320 - self.width / 2
    self.back_opacity = 160
    @commands = ["Attack", "Escape"]
    @item_max = 2
    @column_max = 1
    draw_item(0, normal_color)
    draw_item(1, $game_temp.battle_can_escape ? normal_color : disabled_color)
    self.active = false
    self.visible = false
    self.index = 0
  end
  #--------------------------------------------------------------------------
  def draw_item(index, color)
    self.contents.font.color = color
    rect = Rect.new(4, index * 32, self.width-40, 32)
    self.contents.fill_rect(rect, Color.new(0, 0, 0, 0))
    self.contents.draw_text(rect, @commands[index], 1)
  end
  #--------------------------------------------------------------------------
  def update_cursor_rect
    self.cursor_rect.set(0, index * 32, self.width-40, 32)
  end
  #--------------------------------------------------------------------------
end

Replace Window_PartyCommand with this or insert it above Main, below Window_PartyCommand.

I wrote it for easy customization. If you want to change the width, change it in the super command, third value (640 currently).

Enjoy.
 

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