How do I end the game?

From OHRRPGCE-Wiki

Jump to: navigation, search

How do you make it so when the player completes your game, the game ends?

The best way to do this is with a plotscript. You will probably want a plotscript anyway for making the ending sequence. To end the game, just use the plotscripting command game over. Note that there are 3 different ends.

  1. The game can end because you have just lost.(no more life points)
  2. The game can also end because the version of the game is finished and the programmer has still not finised and you shall check for a further version of the game
  3. The games ends because it's the real end and the game has to finish someday. (It happens generally after you have beaten the final boss.)

For each kind of end (except may be for the end number 3) you can choose to use a plotscript (and the game over command) or the way explained below.

For more info on plotscripting, see the Plotscripting Tutorial or the Dictionary of Plotscripting Commands

If you don't want to use plotscripting, another simpler way is to make a text box that says "Game Over" and link it to itself (using the Next box: property in the text box editor). This method does not automatically return the player to the title screen, they still have to pick "Quit" from the menu manually, but it is nice and simple, and makes it abundantly clear to the player that they have won the game.

Personal tools