allright.
#==============================================================================
# ** Window_EquipLeft
#------------------------------------------------------------------------------
# This window displays actor parameter changes on the equipment screen.
#==============================================================================
class Window_EquipLeft < Window_Base
#--------------------------------------------------------------------------
# * Object Initialization
# actor : actor
#--------------------------------------------------------------------------
def initialize(actor)
super(0, 64, 270,413)
self.contents = Bitmap.new(width - 32, height - 32)
@actor = actor
refresh
end
#--------------------------------------------------------------------------
# * Refresh
#--------------------------------------------------------------------------
def refresh
self.contents.clear
draw_actor_name(@actor, 4, 0)
draw_actor_level(@actor, 4, 30)
draw_actor_graphic(@actor, 175, 45)
draw_actor_parameter(@actor, 4, 60, 0)
draw_actor_parameter(@actor, 4, 90, 1)
draw_actor_parameter(@actor, 4, 120, 2)
draw_actor_parameter(@actor, 4, 150, 3)
if @new_atk != nil
self.contents.font.color = Color.new(0, 255,0,192)
self.contents.draw_text(170, 60, 20, 32, "¦¦", 1)
self.contents.font.color = normal_color
self.contents.draw_text(200, 60, 36, 32, @new_atk.to_s, 2)
end
if @new_pdef != nil
self.contents.font.color = Color.new(0, 255,0,192)
self.contents.draw_text(170, 90, 20, 32, "¦¦", 1)
self.contents.font.color = normal_color
self.contents.draw_text(200, 90, 36, 32, @new_pdef.to_s, 2)
end
if @new_mdef != nil
self.contents.font.color = Color.new(0, 255,0,192)
self.contents.draw_text(170, 120, 20, 32, "¦¦", 1)
self.contents.font.color = normal_color
self.contents.draw_text(200, 120, 36, 32, @new_mdef.to_s, 2)
end
if @new_str != nil
self.contents.font.color = Color.new(0, 255,0,192)
self.contents.draw_text(170, 150, 20, 32, "¦¦", 1)
self.contents.font.color = normal_color
self.contents.draw_text(200, 150, 36, 32, @new_str.to_s, 2)
end
end
#--------------------------------------------------------------------------
# * Set parameters after changing equipment
# new_atk : attack power after changing equipment
# new_pdef : physical defense after changing equipment
# new_mdef : magic defense after changing equipment
# new_str : strength after changing equipment
#--------------------------------------------------------------------------
def set_new_parameters(new_atk, new_pdef, new_mdef)
if @new_atk != new_atk or @new_pdef != new_pdef or @new_mdef != new_mdef or @new_str != new_str
@new_atk = new_atk
@new_pdef = new_pdef
@new_mdef = new_mdef
@new_str = new_str
refresh
end
end
end
I'm basicallyl learning by modding the already existing scripts so gimme a break if I did something really obviously stupid.