Change game over screen depending on map ID

JAD94

The lunar knight
Veteran
Joined
Feb 18, 2014
Messages
662
Reaction score
189
First Language
English
Primarily Uses
RMMV
Hey everyone I was wondering if anyone could make a simple little plug in. I had this feature over in VX ace but would love to have it for MV as well. Basically want I want it the ability to change the game over screen by selecting which Map ID's will have the alternative game over picture. 

Thank you!  :)
 
Last edited by a moderator:

Prescott

argggghhh
Veteran
Joined
Aug 28, 2014
Messages
506
Reaction score
422
First Language
English
Primarily Uses
RMMV
While it isn't quite what you wanted, you can do this with a common event!

You won't be using the actual game over screen, but rather pictures.

This way may be more customizable than a plugin as well... you can define what the conditions are for death (such as not having a certain item in your inventory, all players reaching 0 health, one player reaching 0 health, etc.)

You can also give the players an option at the end to load their game or go back to the title screen :) You could just do a wait command and force them to go back to the title screen, too.

Here's how you do it, if you are pretty competent with events it should be easy enough to customize. You can just use this until someone comes along with the exact plugin you need. It's definitely a workaround, but could also be a solution.

1.png

2.png

If you have any questions, let me know!

Note, I'm not sure if this will work during a battle or not. You may have to set up some conditions in each troop to make it look like this common event page. Like I said, workaround, for now.
 

Jecht

Veteran
Veteran
Joined
Jul 15, 2015
Messages
44
Reaction score
24
First Language
Italian
Primarily Uses
Hey everyone I was wondering if anyone could make a simple little plug in. I had this feature over in VX ace but would love to have it for MV as well. Basically want I want it the ability to change the game over screen by selecting which Map ID's will have the alternative game over picture. 

Thank you!  :)
Here the code! You will need to create GameOverN.png in the img/system folder where N is the Id of the map! Remember if the id of the map is 002 you just need to name it GameOver2.png

Code:
//=============================================================================// GameOverMapID.js//=============================================================================/*: * @plugindesc Different GameOver image for every mapID * @author Bodka  * @help v 1.0 Different GameOver image for every mapID*/Scene_Gameover.prototype.createBackground = function() {	var mapId = $gameMap.mapId();    this._backSprite = new Sprite();    this._backSprite.bitmap = ImageManager.loadBitmap('img/system/', 'GameOver'+mapId);	this.addChild(this._backSprite);};
 

JAD94

The lunar knight
Veteran
Joined
Feb 18, 2014
Messages
662
Reaction score
189
First Language
English
Primarily Uses
RMMV
Thank you everyone! I really appreciate it!  :)

Works like a charm!
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

I should realize that error was produced by a outdated version of MZ so that's why it pop up like that
Ami
i can't wait to drink some ice after struggling with my illness in 9 days. 9 days is really bad for me,i can't focus with my shop and even can't do something with my project
How many hours have you got in mz so far?

A bit of a "sparkle" update to the lower portion of the world map. :LZSexcite:
attack on titan final season is airing tomorrow, I'm excited and scared at the same time!

Forum statistics

Threads
105,882
Messages
1,017,231
Members
137,607
Latest member
Maddo
Top