Well since you basically explained nothing about the HUD aside from four person and disabling it, that's what I made.
#==============================================================================
# ** Game_Screen
#------------------------------------------------------------------------------
# This class handles screen maintenance data, such as change in color tone,
# flashes, etc. It's used within the Game_Map and Game_Troop classes.
#==============================================================================
class Game_Screen
#--------------------------------------------------------------------------
# * Alias Listings
#--------------------------------------------------------------------------
alias tds_quest2_actor_hud_game_screen_initialize initialize unless $@
#--------------------------------------------------------------------------
# * Public Instance Variables
#--------------------------------------------------------------------------
attr_reader :actor_hud # Actor Hud
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize
# Run Original Method
tds_quest2_actor_hud_game_screen_initialize
# Make Actor Hud
@actor_hud = Window_Actor_Hud.new
end
end
#==============================================================================
# ** Game_Interpreter
#------------------------------------------------------------------------------
# An interpreter for executing event commands. This class is used within the
# Game_Map, Game_Troop, and Game_Event classes.
#==============================================================================
class Game_Interpreter
#--------------------------------------------------------------------------
# * Make Actor Hud Visible
#--------------------------------------------------------------------------
def make_actor_hud_visible ; screen.actor_hud.visible = true ; screen.actor_hud.refresh end
#--------------------------------------------------------------------------
# * Make Actor Hud Invisible
#--------------------------------------------------------------------------
def make_actor_hud_invisible ; screen.actor_hud.visible = false ; screen.actor_hud.refresh end
#--------------------------------------------------------------------------
# * Move Actor Hud to the top Position
#--------------------------------------------------------------------------
def move_actor_hud_to_top ; screen.actor_hud.set_to_top ; screen.actor_hud.refresh end
#--------------------------------------------------------------------------
# * Move Actor Hud to the bottom Position
#--------------------------------------------------------------------------
def move_actor_hud_to_bottom ; screen.actor_hud.set_to_bottom ; screen.actor_hud.refresh end
end
#==============================================================================
# ** Window_Actor_Hud
#------------------------------------------------------------------------------
# This window displays party member status on the screen.
#==============================================================================
class Window_Actor_Hud < Window_Base
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize
super(0, 0, 544, 160)
# Set Opacity
self.opacity = 0
# Set Self to invisible
self.visible = false
# Set to Bottom Position
set_to_bottom
# Draw Window Contents
refresh
end
#--------------------------------------------------------------------------
# * Refresh
#--------------------------------------------------------------------------
def refresh
# Clear Window Contents
self.contents.clear
# Go through Party Members
for actor in $game_party.members
# Draw Actor Face
draw_actor_face(actor, actor.index * 131, 0, 92)
# Draw Actor Name
draw_actor_name(actor, actor.index * 131, 0)
# Draw Actor State
draw_actor_state(actor, 96 + actor.index * 131, 0)
# Draw Actor HP
draw_actor_hp(actor, actor.index * 131, 76)
# Draw Actor MP
draw_actor_mp(actor, actor.index * 131, 96)
end
end
#--------------------------------------------------------------------------
# * Set Hud to Top Position
#--------------------------------------------------------------------------
def set_to_top ; self.y = -16 end
#--------------------------------------------------------------------------
# * Set Hud to Bottom Position
#--------------------------------------------------------------------------
def set_to_bottom ; self.y = 275 end
#--------------------------------------------------------------------------
# * Draw State
# actor : actor
# x : draw spot x-coordinate
# y : draw spot y-coordinate
#--------------------------------------------------------------------------
def draw_actor_state(actor, x, y)
# States Array
states = actor.states
# Move Starting Position if there are more than 3 states
x -= 25 if states.size > 3
# Go Through Actor States
states.each_with_index {|state, i|
# Draw State Icon
draw_icon(state.icon_index, x + (i / 3) * 25, y + (i % 3) * 25)
# Break if more than 6 states are displayed
break if i > 4
}
end
end
Again since there was a lack of explanation about the request I made this one more as a test. If you could explain further what you are using it for I will edit it further.
You can make the hud visible and invisble with a script call using this.
make_actor_hud_invisible
make_actor_hud_visible