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.

How do you adjust the display range for stats in the menu?

I was using a stat limit breaking script, and getting characters to level 300 and stuff, and giving characters stats well over 999...

But there's a slight aesthetic problem. The numbers get scrunched together when they pass the normal limits. This isn't particularly urgent as it only affects looks, but I still would like some help in the matter.

What I want to do, is to allow more space for these numbers. Like with how the experience is displayed. The numbers are the same size whether the experience is 50 or 50000. I want this to work out for Level display and stats display on the menu.

I can't figure out how I need to adjust the script to get this to work out.

This is what I mean:
http://i18.photobucket.com/albums/b142/ArmorKing108/RPG/Rand/3.png[/IMG]

The level number looks funky all scrunched up, and his strength stat looks silly like that as well. How do I fix this?
 
Thats an easy change.
For the parameter (attack, strength etc..)
In the script "Window_Base" search for the method "draw_actor_parameter"
At the end of this method you will find this line
Code:
self.contents.draw_text(x+120, y, 36, 32, parameter_value.to_s, 2)
That is the line which draws the parameter-value. You only need to increase the width of the space that is used to draw the value (here it is 36)
for example:
Code:
self.contents.draw_text(x+120, y, 60, 32, parameter_value.to_s, 2)
Because the value is drawn at the right end of the used space you may need to decrease the x-position with the same amount.
Code:
self.contents.draw_text(x+96, y, 60, 32, parameter_value.to_s, 2)
For the HP and SP you need to change the lines which draws the HP and SP. They can be found in the methods "draw_actor_hp" and "draw_actor_sp" also both in the script "Window_Base"
 
Thanks! That's exactly what I was looking for.

I'm sorta suprised I didn't think to try Window_Base...I messed around with it before on that very project, to get the portraits in there looking right. I just kinda forgot. I didn't even think to look there...

I don't know if I want to change the HP and SP display though...I mean, there's not enough room for 750000/750000 HP on the main status screen! The individual status screen could handle it, but I don't know.
 

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