Changing Game_Over to a Common Event

I'm using another script that has it's own game over check.

Spoiler
def check_gameover
return unless $game_party.in_battle
SceneManager.goto(Scene_Gameover) if $game_party.all_dead?
end
end

That's the code it uses to check game over, and sense I'm not too keen on using Ruby I was curious on if I could change it to run a common event instead of just going to game over. Thanks

Original thread: https://forums.rpgmakerweb.com/threads/changing-game_over-to-a-common-event.104825/