Altering Game Over Theme via Event

I attempted to look for this, but I couldn't find the answer by just searching. Essentially, I'm wanting to change the game over theme by using an event. I am hoping that someone can help me with this, and thank you in advance. If I need to give a more in-depth explanation please let me know.
Are you intending this game over to come after a battle, or after specific conditions have been met in game. For example a player makes a choice that gives them the bad ending, versus them losing to a particular enemy?
After specific conditions are met. Later I'll likely be needing to know how to change it for when you loose to a specific enemy, as well.


I would additionally appreciate it if there is a way to change the victory theme in the event of winning against a specific enemy.
For after specific conditions you should be able to just trigger a common event, have what you wanted to occur, occur, then reset to the title screen.


So say you wanted a "Hero joins the Villain" ending, make a conditional branch in dialogue event; then have the "Bad Ending" choice trigger a cutscene, video, or picture with text crawl, however you want to do it really, then return you to the title screen.


As for losing to a specific enemy, you can change the defeat music in events, then attach the event to a particular troop easy enough, the same with a victory. 
Thank you for your help. Thanks to your advice, I've managed to do what I had originally intended. You can close this thread now as it has answered my question(s)
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/altering-game-over-theme-via-event.68283/