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.

Small amount of help needed with CBS

I hoped that i wouldn't need to ask for help..but it's just something i can't work out:

i'm doing a bit(right..a bit) of editing to the DBS to make it like dragon warrior monsters BS
and i've got stuck... i want to know how to get Window_PartyCommand to look like this:

[Fight][Item]
[Plan ][Flee ]

and this is what i have so far:
http://i60.photobucket.com/albums/h38/marblelight/Annoying.png[/IMG]
it's like this at the mo:

[ ][ ][ ][ ]

and theres a "flee" written in the middle of nowhere

heres my Window_PartyCommand:
Code:
#==============================================================================
# ** Window_PartyCommand
#------------------------------------------------------------------------------
#  This window is used to select whether to fight or escape on the battle
#  screen.
#==============================================================================

class Window_PartyCommand < Window_Selectable
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  def initialize
    super(0, 0, 320, 128)
    self.contents = Bitmap.new(width - 32, height - 32)
    self.back_opacity = 255
    @commands = ["Fight","Item","Plan","Flee"]
    @item_max = 4
    @column_max = 2
    draw_item0(0, normal_color)
    draw_item1(1, normal_color)
    draw_item2(2, normal_color)
    draw_item3(3, $game_temp.battle_can_escape ? normal_color : disabled_color)
    self.active = false
    self.visible = false
    self.index = 0
  end
  #--------------------------------------------------------------------------
  # * Draw Item 0
  #     index : item number
  #     color : text character color
  #--------------------------------------------------------------------------
  def draw_item0(index, color)
    self.contents.font.color = normal_color
    rect = Rect.new(25 + index,0, 128,32)
    self.contents.fill_rect(rect, Color.new(0, 0, 0, 0))
    self.contents.draw_text(rect, @commands[index], 1)
  end
  #------------------------------------------------------------------
  # * Draw Item 1
  #     index : item number
  #     color : text character color
  #--------------------------------------------------------------------------
   def draw_item1(index, color)
    self.contents.font.color = normal_color
    rect = Rect.new(2 + index, 0, 128 - 10, 32)
    self.contents.fill_rect(rect, Color.new(0, 0, 0, 0))
    self.contents.draw_text(rect, @commands[index], 1)
  end
  #--------------------------------------------------------------------------
  # * Draw Item 2
  #     index : item number
  #     color : text character color
  #--------------------------------------------------------------------------
   def draw_item2(index, color)
    self.contents.font.color = normal_color
    rect = Rect.new(2 + index, 0, 32, 100)
    self.contents.fill_rect(rect, Color.new(0, 0, 0, 0))
    self.contents.draw_text(rect, @commands[index], 1)
  end
  #--------------------------------------------------------------------------
  # * Draw Item 3
  #     index : item number
  #     color : text character color
  #--------------------------------------------------------------------------
   def draw_item3(index, color)
    self.contents.font.color = color
    rect = Rect.new(2 + index, 0, 300, 118)
    self.contents.fill_rect(rect, Color.new(0, 0, 0, 0))
    self.contents.draw_text(rect, @commands[index], 1)
  end
  #--------------------------------------------------------------------------
  # * Cursor Rectangle Update
  #--------------------------------------------------------------------------
  def update_cursor_rect
    self.cursor_rect.set(25 + index * 160, 0, self.width - 32, 64)
  end 
end

EDIT:if you can tell me how to get the
Code:
    self.cursor_rect.set(25 + index * 160, 0, self.width - 32, 64)
to get
[][]
[][]
instead of
[][][][]
or
[]
[]
[]
[]
then that will help me a lot
 

khmp

Sponsor

I'll be honest. I can not believe you just did that. :lol:

This thread isn't even from this year let alone the past 3 months. I'm getting Space Mecha Mothra. You're in soooo much trouble.
 

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