MV Custom Game Over issue

I'm having an issue with trying to get my custom image to display when the player gets a Game Over. The system keeps calling MV's default Game Over image and not my custom created one. I've tried creating a Common Event and adding it into the enemy Troops along with Conditional Branches but MV still keeps calling the default Game Over image and I'm practically out of ideas to get around it. I even had the Switch turned on as well for the event but still nothing.

Images below are from ChatGPT and while helpful I'm still stuck with having this issue.

Also added images from MV of the actual script implemented.
you have... multiple issues here

- your common event is an autorun event that uses switch 1 as a trigger. theres no reason check or turn that switch on within itself as in order for it to have ran in the first place, the switch must either be on outside of battle, or you have manually called the event.

- you call the common event in itself under a condition that cannot be false at the start of the event. once it does run, the player'll end up in an infinite loop before it could take them to the title screen

- iirc, pictures do not show when the screen is faded out

- your troop event requires switch 1 to be on and that actor to be at 0 hp, but you then turn the switch on, check if its on, and then check if the actor is dead before calling the common event. all of that in unnecessary, and if this is the only way the switch turns on in the fight, then the troop event will never start.

- theres no need to abort the battle. if the common event returns you to the title screen, the battle already ends
Images below are from ChatGPT and while helpful
ChatGPT cannot give you solutions to something that hasn't been done before, it only pretends to be able to do so - which is why most of its code results are idiotic like what you tried.

first, there is no parallel process or autorun during any screen including battlescreen, which means that even if your common event were to work as expected, it would only work after the player has left the battlescreen.


second, both your troop event and your common event require the switch to be ON to function.
Placing the control switch inside those events is the same as placing a key inside a jewelry box before locking it: you will never get them to unlock because you cannot get to the key inside.

which bvasically means your entire logic is wrong beyond count and can never work - so basically the typical result of almost every chatgpt output...
you have... multiple issues here

- your common event is an autorun event that uses switch 1 as a trigger. theres no reason check or turn that switch on within itself as in order for it to have ran in the first place, the switch must either be on outside of battle, or you have manually called the event.

- you call the common event in itself under a condition that cannot be false at the start of the event. once it does run, the player'll end up in an infinite loop before it could take them to the title screen

- iirc, pictures do not show when the screen is faded out

- your troop event requires switch 1 to be on and that actor to be at 0 hp, but you then turn the switch on, check if its on, and then check if the actor is dead before calling the common event. all of that in unnecessary, and if this is the only way the switch turns on in the fight, then the troop event will never start.

- theres no need to abort the battle. if the common event returns you to the title screen, the battle already ends

Ah ok. I figured it had something to do with how I called the event but I didn't understand where I went wrong and got confused.

ChatGPT cannot give you solutions to something that hasn't been done before, it only pretends to be able to do so - which is why most of its code results are idiotic like what you tried.

first, there is no parallel process or autorun during any screen including battlescreen, which means that even if your common event were to work as expected, it would only work after the player has left the battlescreen.


second, both your troop event and your common event require the switch to be ON to function.
Placing the control switch inside those events is the same as placing a key inside a jewelry box before locking it: you will never get them to unlock because you cannot get to the key inside.

which bvasically means your entire logic is wrong beyond count and can never work - so basically the typical result of almost every chatgpt output...
Yeah, I figured ChatGPT was throwing me off but it did help me to understand SOME of the basics atleast earlier on. Is there like a detailed example of this particular event that I can look at as a reference so I can understand this better?
Ah ok. I figured it had something to do with how I called the event but I didn't understand where I went wrong and got confused.
instead of using this event, why not just change the default game game over picture? if you already have a png of your custom picture and you dont want the default one, then go into the img/system folder and replace the existing game over picture with yours.
instead of using this event, why not just change the default game game over picture? if you already have a png of your custom picture and you dont want the default one, then go into the img/system folder and replace the existing game over picture with yours.
I think I attempted to do that earlier today but I will go back and try again. The image that I created is the proper size and I even compressed its data to avoid issues with memory.
and I even compressed its data to avoid issues with memory.
no need for that, default png compression is more than sufficient.

especially since the compression is only for storage, never for use - no computer will ever be able to display compressed pictures, they are always decompressed in memory, no exceptions.
instead of using this event, why not just change the default game game over picture? if you already have a png of your custom picture and you dont want the default one, then go into the img/system folder and replace the existing game over picture with yours.
I did eventually get it to work through this method.🙂

Is there a way to have other Game Over images called other than just the default one through other ways in scripting and events?
there are existing plugins that simply call a common event on game over, allowing you to do whatever you want in the common event.
they just work completely different than the mess you got from chatgpt in the first post...
there are existing plugins that simply call a common event on game over, allowing you to do whatever you want in the common event.
they just work completely different than the mess you got from chatgpt in the first post...

I think I may already have that plugin actually. Definitely will avoid using ChatGPT for scripting purposes from now on.
if you truly want an game over be evented (or the same or different)
use HIME_GameOverEvents and it omit the default Game Over.
if you truly want an game over be evented (or the same or different)
use HIME_GameOverEvents and it omit the default Game Over.

Ah ok! I'm still trying to learn about setting up these Common Events and alot of times I get turned around. Is there a straight forward tutorial on how to setup a Common Event for 3 different GameOver scenes? I've tried a few times already to do this myself and so far I've gotten nowhere.🙁

I've only gotten my default custom GameOver scene because I changed the GameOver image file in the systems folder. I was using SumrdmDude plugin to try and accomplish this but all I've gotten is just my default custom GameOver.

Played around between Troops and Common Events in my attempts but ended up getting confused.
Use the plugin I linked, set a map ID (let say map Id 10).

when game over, it goes to map10.

use a GameOver Variable.

than use a conditional branch:

if: GameOver variable = 0
common event 1
else
if GameOver variable = 1
common event 2
else
common event 3
end
end

as there are other ways, you can show pictures, or use switches to change pages.
however your common event is made, or already a common event with conditions,
you can call the common event directly on there, wait x, and go to title.

event gameOver can use much more (control character) to walk continue (right)
or go left for title scene and transfer it to there.

you can do far more from there, but HIME_GameOverEvents alter the default
and transfer you to the mapId instead (from map or from battle).

Original thread: https://forums.rpgmakerweb.com/threads/custom-game-over-issue.178303/