+- Save-Point (https://www.save-point.org)
+-- Forum: Material Development (https://www.save-point.org/forum-8.html)
+--- Forum: Scripts Database (https://www.save-point.org/forum-39.html)
+---- Forum: RPGMaker XP (RGSS) Engine (https://www.save-point.org/forum-116.html)
+---- Thread: Battlestatus Actor Highlighter (/thread-1825.html)
Battlestatus Actor Highlighter - DerVVulfman - 10-14-2009
Battlestatus Actor Highlighter
Version 1.0
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.
Battlestatus Actor Highlighter - MicKo - 10-14-2009
Oh shit, it works! Thanks Dervv'! :D
Battlestatus Actor Highlighter - explocion200 - 12-01-2009
this is nice but how can i change the color so its not pink ?
Red: Adjusts the amount of red. Green: Adjusts the amount of green. Blue: Adjusts the amount of blue. Alpha: Adjusts the amount of alpha/transparency. (0 = Completely transparent, 255 = Completely opaque/visible)
Their minimum values are 0. Their maximum values are 255. Set them up.
Battlestatus Actor Highlighter - explocion200 - 12-01-2009
Red: Adjusts the amount of red. Green: Adjusts the amount of green. Blue: Adjusts the amount of blue. Alpha: Adjusts the amount of alpha/transparency. (0 = Completely transparent, 255 = Completely opaque/visible)
Their minimum values are 0. Their maximum values are 255. Set them up.