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.

LegACy's 1-Scene CMS [Alternate] Help

In his CMS, I am having a problem with something.

It looks like this:

Sprite Name [Normal]
Sprite Fighter Lv 1
HP------------
SP------------

The problem that I am having is that the [Normal] status is getting in the way of names that are quite long, and they overlap. Is there a way to take that out?

Help would be very much appreciated.
Thanks,
Ark.
 

khmp

Sponsor

Arkotrath could you please provide the link to or post the code you want help with? Even if it's at the top of Script Analysis or the very last page. It helps if we have quick access to the script that is giving you the problem. Thanks.
 

khmp

Sponsor

I would consider not even displaying the states of the actors'. It's already a tiny part of the window to draw. If you have multiple statuses it probably won't look nice at all.

In any case install this little snippet below into a new section above Main. Check the FAQ for more detailed instructions.
Code:
class Window_Base
  #--------------------------------------------------------------------------
  # * Draw State                                                   !OVERRIDE!
  #     actor : actor
  #     x     : draw spot x-coordinate
  #     y     : draw spot y-coordinate
  #     width : draw spot width
  #--------------------------------------------------------------------------
  def draw_actor_state(actor, x, y, width = 120)
    text = make_battler_state_text(actor, width, true)
    self.contents.font.color = actor.hp == 0 ? knockout_color : normal_color
    size = self.contents.font.size
    $scene.is_a?(Scene_Menu) ? (
      self.contents.font.size = 10;
      self.contents.draw_text(0, y, self.width - 32, 32, text, 2)) : 
      self.contents.draw_text(x, y, width, 32, text)
    self.contents.font.size = size
  end
end
 

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