Chaos Project

RPG Maker => RPG Maker Scripts => Script Requests => Topic started by: cyclope on August 22, 2011, 06:36:09 pm

Title: [RESOLVED][XP] Custom GameOver?
Post by: cyclope on August 22, 2011, 06:36:09 pm
Hi, I've been looking for a custom game over that will show a random sentence each time you die but I can't find one. If any one could help it would be awesome. :haha:
Title: Re: [XP] Custom GameOver?
Post by: G_G on August 22, 2011, 09:53:19 pm
I have no idea if this'll work but it should. I didn't test it. S:


LINES = ["You have lost the battle.",
        "Defeat cannot be tolerated!",
        "DERP ME FACE!"]

class Scene_Gameover
 alias gg_random_lines_over_lat main
 def main
   @help_window = Window_Help.new
   @help_window.set_text(LINES[rand(LINES.size)])
    @help_window.opacity = 0
   gg_random_lines_over_lat
   @help_window.dispose
 end
end
Title: Re: [XP] Custom GameOver?
Post by: cyclope on August 22, 2011, 10:40:58 pm
It works perfectly :D thanks!