Is there a script that adds the health bars, magic, and tp on the side of the screen outside of a battle?
Health bars out of battle
RGSS3 Script RequestsI've moved this thread to Script Request. Please be sure to post your threads in the correct forum next time. Thank you.
Here you go. This is as basic as it can get.
Code:
# Map Battle Bars
# Written by Kazama for WithosEmpire
# Build 1.0
module Kazama_MapBarSettings
# The X-Position of the Window
X = 6
# The Y-Position of the Window
Y = 6
# The Starting Actor in the Party (use 0 for player)
START_ACTOR = 0
# You can also use the script call
# battle_bar_actor(actor) | (actor = 0 or 1 or 2 etc.) (0 = Party Leader)
# If the party member called is not in your party it will throw an error.
end
class Game_Interpreter
def battle_bar_actor(actor)
return unless SceneManager.scene_is?(Scene_Map)
SceneManager.scene.battle_bar_window.actor = $game_party.members[actor]
end
end
class Window_BattleBars < Window_Base
include Kazama_MapBarSettings
def initialize
super(X, Y, 148, fitting_height(3))
@actor = $game_party.members[START_ACTOR]
refresh
end
def actor=(actor)
return if actor == @actor
@actor = actor
refresh
end
def refresh
contents.clear
draw_actor_hp(@actor, 0, 0)
draw_actor_mp(@actor, 0, line_height)
draw_actor_tp(@actor, 0, line_height * 2)
end
end
class Scene_Map < Scene_Base
attr_reader :battle_bar_window
alias :kazama_bb_scene_map_create_all_windows :create_all_windows
def create_all_windows
kazama_bb_scene_map_create_all_windows
create_battle_bar_window
end
def create_battle_bar_window
@battle_bar_window = Window_BattleBars.new
@battle_bar_window.viewport = @viewport
end
end
Original thread: https://forums.rpgmakerweb.com/threads/health-bars-out-of-battle.73259/