Introduction
A simple script/patch that highlights the name of the current actor in the battle status window. Meant as a 'basis' and not as a final product.
It works though.
Script
The Script
Code:
#==============================================================================
# ** Battlestatus Actor Highlighter
#------------------------------------------------------------------------------
# by DerVVulfman
# Version 1.0
# October 13, 2009
# RGSS / RPGMaker XP
#------------------------------------------------------------------------------
# This simple script changes the color of the actor's name so you can identify
# them in the battlestatus window. Kinda useful if you're making your own
# custom window. Editing may be required.
#==============================================================================
# Color setting of the current actor
BSTAT_ACTOR_HIGHLIGHT = Color.new(255,0,255,255)
#==============================================================================
# ** Window_BattleStatus
#------------------------------------------------------------------------------
# This window displays the status of all party members on the battle screen.
#==============================================================================
class Window_BattleStatus < Window_Base
#--------------------------------------------------------------------------
# * Draw Name
# actor : actor
# x : draw spot x-coordinate
# y : draw spot y-coordinate
# color : set current color (normal_color as default)
#--------------------------------------------------------------------------
def draw_actor_name(actor, x, y, color = normal_color)
self.contents.font.color = color
self.contents.draw_text(x, y, 120, 32, actor.name)
end
#--------------------------------------------------------------------------
# * Set Current Actor
# actor_index : actor index
#--------------------------------------------------------------------------
def current_actor(actor_index)
@current_actor = actor_index
end
#--------------------------------------------------------------------------
# * Refresh
#--------------------------------------------------------------------------
alias highlight_actor_refresh refresh
def refresh
# Perform the original call
highlight_actor_refresh
# Redraw the name if a current actor
unless @current_actor == nil
actor = $game_party.actors[@current_actor]
actor_x = @current_actor * 160 + 4
draw_actor_name(actor, actor_x, 0, BSTAT_ACTOR_HIGHLIGHT)
end
@current_actor = nil
end
end
#==============================================================================
# ** Scene_Battle
#------------------------------------------------------------------------------
# This class performs battle screen processing.
#==============================================================================
class Scene_Battle
#--------------------------------------------------------------------------
# * Actor Command Window Setup
#--------------------------------------------------------------------------
alias highlight_actor_p3scw phase3_setup_command_window
def phase3_setup_command_window
# Perform the original call
highlight_actor_p3scw
# Pass the current actor to the status window
@status_window.current_actor(@actor_index)
# Refresh status window
@status_window.refresh
end
end
Compatibility
RPGMaker XP system only. Highly compatible though.
Credits and Thanks
Made to figure out a feature for a friend... MicKo.
Terms and Conditions
Free for use, even in commercial games. But please credit me for this simple system.