Save-Point
Gameover based on Level - Printable Version

+- Save-Point (https://www.save-point.org)
+-- Forum: Archives (https://www.save-point.org/forum-105.html)
+--- Forum: Creation Asylum Archives (https://www.save-point.org/forum-90.html)
+---- Forum: Scripts & Code Snippets (https://www.save-point.org/forum-92.html)
+----- Forum: RPG Maker XP Code (https://www.save-point.org/forum-93.html)
+----- Thread: Gameover based on Level (/thread-6886.html)



Gameover based on Level - ember2inferno - 07-20-2006

Gameover based on Level
by ember2inferno

Jul 20 2006

This is a locked, single-post thread from Creation Asylum. Archived here to prevent its loss.
No support is given. If you are the owner of the thread, please contact administration.


Introduction
This is an edit of Eccid's 'Title Based On Level Script'. It is now a Gameover Based On Level Script.


Features
  • Change your game over screen when you reach a certain level.


Screenshots
Thats kind of...impossible.


Script
Find this line in 'Scene_Gameover'
Code:
@sprite.bitmap = RPG::Cache.gameover($data_system.gameover_name)

It is line 14 by default.

Replace that line with this:
Code:
#===============================================================================
#Gameover Screen Based on Level Script
#By: Eccid
#With help fromn kaito
#Edited to gameover by Sam Drew
#-------------------------------------------------------------------------------    
#---Start Edit---

case $game_actors[1].level#finds actor level
when 1 .. 24#When actor level is...
    @sprite.bitmap = RPG::Cache.gameover("1.png")#Show gameover
    
when 25 .. 49
    @sprite.bitmap = RPG::Cache.gameover("2.png")
    
when 50 .. 74
    @sprite.bitmap = RPG::Cache.gameover("3.png")
    
when 75 .. 100
    @sprite.bitmap = RPG::Cache.gameover("4.png")
  end
else
  @sprite.bitmap = RPG::Cache.gameover("1.png")#set regular gameover
end

#---End Edit---
#===============================================================================


Instructions
Just put in the extra game overs into the gameover folder, and name them 1, 2, 3 ,4 etc. If you don't want to name them that then you can edit the script so it has their names there.

You can edit what levels too, I think its pretty straight foward though.


Credits & Thanks
Credit to Eccid for the original script - Good job, mate.
Thanks to Kaito for helping out Eccid - Good job also.


Author's notes
Well, AH! I guess thats me.
I think the script should all be there, I've checked it a few times over, and to me its ok.
Enjoy!
And don't forget to credit Eccid, Kaito and I if you use it!
(If some of you did'nt know, this is my first real attempt at a script...so..yeah.)