- Joined
- Nov 14, 2012
- Messages
- 143
- Reaction score
- 45
- First Language
- English
- Primarily Uses
Script: https://yanflychannel.wordpress.com/rmvxa/battle-scripts/ace-battle-engine/
I'm looking to disable the state icon displays under enemy names when they are inflicted with a status ailment/buff. The reason is because I'm using a script that displays state icons over the enemy, and so the state icons displayed under the enemy name while targeting them is redundant.
I found this portion of the script that I believe handles this:
#-------------------------------------------------------------------------- # refresh_battler_name #-------------------------------------------------------------------------- def refresh_battler_name(battler) contents.clear reset_font_settings change_color(normal_color) @text = battler_name(battler) icons = battler.state_icons + battler.buff_icons dy = icons.size <= 0 ? line_height / 2 : 0 draw_text(0, dy, contents.width, line_height, @text, 1) dx = (contents.width - (icons.size * 24)) / 2 draw_actor_icons(battler, dx, line_height, contents.width) endI commented out the last line, and it seems to remove the state icons like I want. However, it ends up looking like this:
As you can see, the name is shifted upwards, as if it is still accomodating the state icon which is now invisible. I would like for it to be centered, as if it were just targetting an enemy with no status effects inflicted. I've tried commenting out and editing various parts of the above snippet but to no success.
Any help on this would be greatly appreciated. If you need anymore information, please ask.
I'm looking to disable the state icon displays under enemy names when they are inflicted with a status ailment/buff. The reason is because I'm using a script that displays state icons over the enemy, and so the state icons displayed under the enemy name while targeting them is redundant.
I found this portion of the script that I believe handles this:
#-------------------------------------------------------------------------- # refresh_battler_name #-------------------------------------------------------------------------- def refresh_battler_name(battler) contents.clear reset_font_settings change_color(normal_color) @text = battler_name(battler) icons = battler.state_icons + battler.buff_icons dy = icons.size <= 0 ? line_height / 2 : 0 draw_text(0, dy, contents.width, line_height, @text, 1) dx = (contents.width - (icons.size * 24)) / 2 draw_actor_icons(battler, dx, line_height, contents.width) endI commented out the last line, and it seems to remove the state icons like I want. However, it ends up looking like this:
Any help on this would be greatly appreciated. If you need anymore information, please ask.

