Ending the Story (Quest 5.8.0 beta)

Quest 5.8.0beta has a RESTART command. So, now we can do things like this:

image


  <function name="FinishGame" parameters="message"><![CDATA[
    message = "<h3>GAME OVER</h3>" + message
    ShowGameOverMenu (message)
  ]]></function>
  <function name="ShowGameOverMenu" parameters="message"><![CDATA[
    ShowMenu (message + "<br/>What would you like to do?", Split("UNDO your last command;RESTART from the beginning;QUIT the game", ";"), false) {
      switch (result) {
        case ("UNDO your last command") {
          invoke (undo.script)
        }
        case ("RESTART from the beginning") {
          JS.RestartGame ()
        }
        case ("QUIT the game") {
          finish
        }
        default {
          ShowGameOverMenu
        }
      }
    }
  ]]></function>

That is cool K.V.!!

(Also, note to self: Never get in a fight with K.V.... he seems to be throwing a mean a$$ punch!)

Nice idea.


I find it ironic that I spent a while to code this into my game not to long ago, though with a few caveats for the specific games needs.


The RESTART command and RestartGame() JS function were recently added to Quest 5.8. Before that, you had to press CTRL+R or use the menu option to do it in the desktop player.


Thanks for the kind words, everyone!


Never get in a fight with K.V.... he seems to be throwing a mean a$$ punch!

I'm strongs to the finish, 'cause I eats me spinach, Cheese!


I would gladly pay you Tuesday, for a CYOA, today!


I would gladly pay you Tuesday, for a CYOA, today!

Ha!

Wimpy RULES!!!


Log in to post a reply.

Support

Forums