#==============================================================================
# ** Window_ST
#------------------------------------------------------------------------------
# This window displays Window Strategy Text in the Strategy Bars.
#==============================================================================
class Window_ST < Window_Base
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize
super(240, 320, 400, 160)
self.contents = Bitmap.new(width - 32, height - 32)
self.opacity = 0
@actor = $active_actor
refresh
end
#--------------------------------------------------------------------------
# * Dispose
#--------------------------------------------------------------------------
def dispose
super
end
#--------------------------------------------------------------------------
# * Refresh *Revised*
#--------------------------------------------------------------------------
def refresh
self.contents.clear
a_name = @actor.name
a_spd = @actor.spd
a_uke = @actor.uke
a_agg = @actor.agg
# p $active_actor.name
self.contents.font.color = normal_color
self.contents.font.size = 11
# initive/patience bar (timing)
if a_spd > 7
self.contents.font.color = blue_color
self.contents.draw_text(124, 94, 80, 11, "Sage", 1)
end
if a_spd > 2 && a_spd < 8
self.contents.font.color = normal_color
self.contents.draw_text(124, 94, 80, 11, "Reserved", 1)
end
if a_spd > -3 && a_spd < 3
self.contents.font.color = normal_color
self.contents.draw_text(124, 94, 80, 11, "Calm", 1)
end
if a_spd > -8 && a_spd < -2
self.contents.font.color = normal_color
self.contents.draw_text(124, 94, 80, 11, "Impulsive", 1)
end
if a_spd < -7
self.contents.font.color = yellow_color
self.contents.draw_text(124, 94, 80, 11, "Kensai", 1)
end
# uke/seme bar (fight/flight)
if a_uke > 7
self.contents.font.color = green_color
self.contents.draw_text(124, 106, 80, 11, "Tank", 1)
end
if a_uke > 2 && a_uke < 8
self.contents.font.color = normal_color
self.contents.draw_text(124, 106, 80, 11, "Masochist", 1)
end
if a_uke > -3 && a_uke < 3
self.contents.font.color = normal_color
self.contents.draw_text(124, 106, 80, 11, "Balanced", 1)
end
if a_uke > -8 && a_uke < -2
self.contents.font.color = normal_color
self.contents.draw_text(124, 106, 80, 11, "Sadist", 1)
end
if a_uke < -7
self.contents.font.color = purple_color
self.contents.draw_text(124, 106, 80, 11, "Dominatrix", 1)
end
#brutality/finesse bar (self control)
if a_agg > 7
self.contents.font.color = orange_color
self.contents.draw_text(124, 118, 80, 11, "Sublime", 1)
end
if a_agg > 2 && a_agg < 8
self.contents.font.color = normal_color
self.contents.draw_text(124, 118, 80, 11, "Graceful", 1)
end
if a_agg > -3 && a_agg < 3
self.contents.font.color = normal_color
self.contents.draw_text(124, 118, 80, 11, "Moderate", 1)
end
if a_agg > -8 && a_agg < -2
self.contents.font.color = normal_color
self.contents.draw_text(124, 118, 80, 11, "Rage", 1)
end
if a_agg < -7
self.contents.font.color = red_color
self.contents.draw_text(124, 118, 80, 11, "Berserk", 1)
end
# numerical values of strategy bars
self.contents.font.color = normal_color
if a_spd < 1
self.contents.draw_text(0, 94, 80, 11, a_spd.to_s, 1)
else
self.contents.draw_text(0, 94, 80, 11, "+" + a_spd.to_s, 1)
end
if a_uke < 1
self.contents.draw_text(0, 106, 80, 11, a_uke.to_s, 1)
else
self.contents.draw_text(0, 106, 80, 11, "+" + a_uke.to_s, 1)
end
if a_agg < 1
self.contents.draw_text(0, 118, 80, 11, a_agg.to_s, 1)
else
self.contents.draw_text(0, 118, 80, 11, "+" + a_agg.to_s, 1)
end
# active actor's name display
self.contents.font.name = "Arial Black"
self.contents.font.size = 18
self.contents.draw_text(260, 86, 80, 32, a_name.to_s, 1)
end
#--------------------------------------------------------------------------
# * Frame Update
#--------------------------------------------------------------------------
def update
super
end
end