03-07-2008, 06:44 PM
2 Minute Script - Status DBS Window
I'm usually above this lol but i thought it would be funny to create some new little scripts before i go to bed cause its extra practice i guess, but here you go, made in 2 minutes.
This script is more for begginers to mess around with as you can mess with the settings and change the attributes to what you want and such :biggrin:
What it does is it remodels the Window_BattleStatus.
Enjoy
Firstly in Window_Base go to the lines:-
And change this to:-
Then place the script below above main.
Script
Screenshot
Credits
Sure?
I'm usually above this lol but i thought it would be funny to create some new little scripts before i go to bed cause its extra practice i guess, but here you go, made in 2 minutes.
This script is more for begginers to mess around with as you can mess with the settings and change the attributes to what you want and such :biggrin:
What it does is it remodels the Window_BattleStatus.
Enjoy
Firstly in Window_Base go to the lines:-
Code:
self.contents.font.color = normal_color
self.contents.draw_text(x + 120, y, 36, 32, parameter_value.to_s, 2)
Code:
self.contents.font.color = normal_color
self.contents.draw_text(x + 82, y, 36, 32, parameter_value.to_s, 2)
Script
Code:
#==============================================================================
# ** Window_BattleStatus Editted by Mac
#------------------------------------------------------------------------------
# This window displays the status of all party members on the battle screen.
#==============================================================================
class Window_BattleStatus < Window_Base
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize
super(0, 320, 640, 160)
Font.default_size = 16
self.contents = Bitmap.new(width - 32, height - 32)
@level_up_flags = [false, false, false, false]
refresh
end
#--------------------------------------------------------------------------
# * Dispose
#--------------------------------------------------------------------------
def dispose
super
end
#--------------------------------------------------------------------------
# * Set Level Up Flag
# actor_index : actor index
#--------------------------------------------------------------------------
def level_up(actor_index)
@level_up_flags[actor_index] = true
end
#--------------------------------------------------------------------------
# * Refresh
#--------------------------------------------------------------------------
def refresh
self.contents.clear
@item_max = $game_party.actors.size
for i in 0...$game_party.actors.size
actor = $game_party.actors[i]
actor_x = i * 152 + 4
draw_actor_name(actor, actor_x, -10)
draw_actor_hp(actor, actor_x, 14, 120)
draw_actor_sp(actor, actor_x, 26, 120)
draw_actor_level(actor, actor_x, 2)
draw_actor_class(actor, actor_x + 90, 2)
draw_actor_parameter(actor, actor_x, 38, 0)
draw_actor_parameter(actor, actor_x, 50, 1)
draw_actor_parameter(actor, actor_x, 62, 2)
draw_actor_parameter(actor, actor_x, 74, 6)
draw_actor_parameter(actor, actor_x, 86, 4)
draw_actor_parameter(actor, actor_x, 98, 5)
if @level_up_flags[i]
self.contents.font.color = normal_color
self.contents.draw_text(actor_x, 96, 120, 32, "LEVEL UP!")
else
draw_actor_state(actor, actor_x + 90, -10)
end
end
end
#--------------------------------------------------------------------------
# * Frame Update
#--------------------------------------------------------------------------
def update
super
# Slightly lower opacity level during main phase
if $game_temp.battle_main_phase
self.contents_opacity -= 4 if self.contents_opacity > 191
else
self.contents_opacity += 4 if self.contents_opacity < 255
end
end
end
Credits
Sure?