I'm trying to give a very long actor name, with 22 characters, "Hsuan-T'ien-Shang-Tung", but as you can see in the screenshot above, the entire name is not fully visible in battle, nor in menus. How to make them fully visible and not squeezy-looking, in all menu parts and scenes?
Better visibility for longer actor names.
RGSS3 Script RequestsMoved to: RGSS3 Script Requests
Why such long names? The windows have an area allocated for each item that appears. If that's a text item and it's too long to fit, it will condense the font to fit more. If that isn't enough, or you don't want to condense it, then you need to make the allocated area larger. And that means making the area allocated for other things smaller.
In the case of the menu, you have the name and class on line 1, the level and HP on line 2, and the icons and MP on line 3. What space is there for a longer name to use?
In the case of the battle status, you have the name, icons, HP, MP and TP. Again, what space is there for a longer name?
In each case, what is it you want removed, to make room?
Wouldn't it be easier to choose names that fit?
Why such long names? The windows have an area allocated for each item that appears. If that's a text item and it's too long to fit, it will condense the font to fit more. If that isn't enough, or you don't want to condense it, then you need to make the allocated area larger. And that means making the area allocated for other things smaller.
In the case of the menu, you have the name and class on line 1, the level and HP on line 2, and the icons and MP on line 3. What space is there for a longer name to use?
In the case of the battle status, you have the name, icons, HP, MP and TP. Again, what space is there for a longer name?
In each case, what is it you want removed, to make room?
Wouldn't it be easier to choose names that fit?
@Shaz its because I'm thinking to make a Digimon game, and some Digimon have pretty long names, like BelialVamdemon, AncientMegatheriumon, and HerculesKabuterimon. Removing the status ailments session would be enough for me, or at least make it only show 1 state icon
in that case, try this:
I haven't tested this, so I can't confirm it does exactly what you want, and I don't know if there are other screens that use the same functions that might also need to be changed. Post back with results if you need more tweaking.
Code:
class Window_Base < Window
#--------------------------------------------------------------------------
# * Draw Simple Status
#--------------------------------------------------------------------------
def draw_actor_simple_status(actor, x, y)
draw_actor_name(actor, x, y, 224)
draw_actor_class(actor, x, y + line_height * 1)
draw_actor_level(actor, x, y + line_height * 2)
draw_actor_hp(actor, x + 120, y + line_height * 1)
draw_actor_mp(actor, x + 120, y + line_height * 2)
end
end
class Window_BattleStatus < Window_Selectable
#--------------------------------------------------------------------------
# * Draw Basic Area
#--------------------------------------------------------------------------
def draw_basic_area(rect, actor)
draw_actor_name(actor, rect.x + 0, rect.y, rect.width)
end
end
I haven't tested this, so I can't confirm it does exactly what you want, and I don't know if there are other screens that use the same functions that might also need to be changed. Post back with results if you need more tweaking.
Thank you, it worked!
Ok, sorry for double-posting, but it's urgent: can you redo this script, but instead of removing status ailments visualization, can you remove the tp gauge?
Original thread: https://forums.rpgmakerweb.com/threads/better-visibility-for-longer-actor-names.156361/