Notice: fwrite(): Write of 8192 bytes failed with errno=28 No space left on device in /home/rmrk/domains/rmrk.net/public_html/Sources/Cache/APIs/FileBased.php on line 96
Print Page - [VXA] Icon/Color display in battle when selecting target.

The RPG Maker Resource Kit

RMRK RPG Maker Creation => Requests => Script Request => Topic started by: szbutler123 on August 08, 2012, 03:11:12 PM

Title: [VXA] Icon/Color display in battle when selecting target.
Post by: szbutler123 on August 08, 2012, 03:11:12 PM
if I gave a monster name an Icon, such as \i[50]Slime. His name displays in battle with the appropriate icon. BUT, when I choose Attack or go to select an enemy to hit, it doesn't display the icon, it says \i[50]Slime instead of showing the Icon and the slimes name. This does the same if I try to change the color of an enemy's text, \c[20]Slime, etc.

Does anyone know how to fix this? I would imagine it's probably not too terrible of an issue, but if it could be addressed that would mean wonders to me as my battle system revolves around being able to see an icon next to an enemies name.

I've also tried Modern Algebra's ATS script but that didn't address the issue either.

Anyone have any ideas?
Title: Re: [VXA] Icon/Color display in battle when selecting target.
Post by: modern algebra on August 08, 2012, 10:39:03 PM
My Global Text Codes (http://rmrk.net/index.php/topic,44810.0.html) script might work. You would need to add a \* to the name as well though.
Title: Re: [VXA] Icon/Color display in battle when selecting target.
Post by: pacdiggity on August 09, 2012, 06:24:14 AM
This should work for all text codes in that specific window.
class Window_BattleEnemy < Window_Selectable
  def draw_item(index)
    change_color(normal_color)
    name = $game_troop.alive_members[index].name
    r = item_rect_for_text(index)
    draw_text_ex(r.x, r.y, name)
  end
end