Player Experience Upgrade

version 2/111127 by Aaron Reed

  • Home page
  • Beginning
  • Previous
  • Next



  • Chapter - Smarter Parser Core Routines

    Section - Try Harder to Understand

    Before printing a parser error (this is the Smarter Parser trying harder to understand rule):
        now the rejected command is the player's command;
        now the reborn command is the player's command;
        follow the Smarter Parser rules;
        if the outcome of the rulebook is the reparse the command outcome:
            if reborn command is not rejected command:
                clean up the reparsed command;
                announce the reparsed command;
                now sp reparse flag is true;
        otherwise if the outcome of the rulebook is the reject the command outcome:
            now suppress parser error is true;
            explain the reborn command.

    Rule for printing a parser error when suppress parser error is true or sp reparse flag is true (this is the Smarter Parser suppress parser messages on matches rule):
        now suppress parser error is false.

    Rule for reading a command when sp reparse flag is true (this is the Smarter Parser retrying input rule):
        now sp reparse flag is false;
        change the text of the player's command to "[reborn command]".