Pixelero 0 Report post Posted April 13, 2008 I have a couple of old scripts saved up that might be useful, this was not made by me..can't script to save my life.. #============================================================================== # ** Battle Result Window Plus (WBR+) #------------------------------------------------------------------------------ # A cleaner, bigger, and better organized battle result window by Ragnarok Rob #============================================================================== class Window_BattleResult < Window_Base #-------------------------------------------------------------------------- # * Object Initialization #-------------------------------------------------------------------------- def initialize(exp, gold, treasures) #Make attributes @exp = exp @gold = gold @treasures = treasures #Draw new window super(160, 40, 320, @treasures.size * 32 + 200) #Make the window's bitmap self.contents = Bitmap.new(width - 32, height - 32) self.contents.font.name = "Tahoma" self.contents.font.size = 22 self.y = 160 - height / 2 #Make the bitmap invisible self.visible = false refresh end #-------------------------------------------------------------------------- # * Refresh #-------------------------------------------------------------------------- def refresh #Initialize string-width variables wx = contents.text_size("Winnings: ").width gx = contents.text_size(@gold.to_s + " ").width tx = contents.text_size("Total: ").width ex = contents.text_size(@exp.to_s + " ").width #If you win items in battle if @treasures.size != 0 #Set font color self.contents.font.color = system_color #Draw victory text self.contents.draw_text(0, 0, 288, 32, "Victory!", 1) #Make division rectangle self.contents.fill_rect(0, 32, 288, 2, normal_color) #Gold Section self.contents.draw_text(0, 34, 288, 32, $data_system.words.gold) self.contents.font.color = system_color self.contents.draw_text(0, 70, 288, 32, "Winnings: ") self.contents.font.color = normal_color self.contents.draw_text(wx, 70, 288, 32, @gold.to_s) @gold += $game_party.gold self.contents.font.color = system_color self.contents.draw_text(wx + gx, 70, 288, 32, "Total: ") self.contents.font.color = normal_color self.contents.draw_text(wx + gx + tx, 70, 288, 32, @gold.to_s) self.contents.fill_rect(0, 102, 288, 2, normal_color) #Experience Section self.contents.font.color = system_color self.contents.draw_text(0, 104, 288, 32, "Experience") self.contents.font.color = normal_color self.contents.draw_text(0, 136, 288, 32, @exp.to_s) self.contents.font.color = system_color self.contents.draw_text(ex, 136, 288, 32, "Ex Points") #Treasures Section self.contents.fill_rect(0, 168, 288, 2, normal_color) self.contents.draw_text(0, 170, 288, 32, "Treasure") x = 4 y = 202 for item in @treasures draw_item_name(item, x, y) y += 32 end #If you don't win any items...ha ha! You lose!...ahem else #Set font color self.contents.font.color = system_color #Draw victory text self.contents.draw_text(0, 0, 288, 32, "Victory!", 1) #Make division rectangle self.contents.fill_rect(0, 32, 288, 2, normal_color) #Gold Section self.contents.draw_text(0, 34, 288, 32, $data_system.words.gold) self.contents.font.color = system_color self.contents.draw_text(0, 70, 288, 32, "Winnings: ") self.contents.font.color = normal_color self.contents.draw_text(wx, 70, 288, 32, @gold.to_s) @gold += $game_party.gold self.contents.font.color = system_color self.contents.draw_text(wx + gx, 70, 288, 32, "Total: ") self.contents.font.color = normal_color self.contents.draw_text(wx + gx + tx, 70, 288, 32, @gold.to_s) self.contents.fill_rect(0, 102, 288, 2, normal_color) #Experience Section self.contents.font.color = system_color self.contents.draw_text(0, 104, 288, 32, "Experience") self.contents.font.color = normal_color self.contents.draw_text(0, 136, 288, 32, @exp.to_s) self.contents.font.color = system_color self.contents.draw_text(ex, 136, 288, 32, "Ex Points") end end end Screen shot http://Waiyem.fileave.com/screenshot.PNG Share this post Link to post Share on other sites
Wyzrd 12 Report post Posted April 14, 2008 Could we possibly get a better description of what this does. Or some screenshots. Share this post Link to post Share on other sites
Pixelero 0 Report post Posted April 14, 2008 Screen shot added. Share this post Link to post Share on other sites
Wyzrd 12 Report post Posted April 14, 2008 Ah, thanks. Now I get what it does. Looks good. I might use it. Share this post Link to post Share on other sites
Polraudio 122 Report post Posted April 14, 2008 Looks good I like it Share this post Link to post Share on other sites