how do I make the game end?

I'm making a game and I want to know. How do you make it end? Credits and all. is there a way?
For the credits, you can use the scrolling text command.
In the third page of the events window you have "Return to Title Screen" and "Game Over". Both option will end your game.
Scrolling text is an option. Alternatively, you could use show picture to display the credit

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-make-the-game-end.34784/