Player Experience Upgrade

version 2/111127 by Aaron Reed

  • Home page
  • Beginning
  • Previous
  • Next



  • Section - Explaining Results

    To announce the reparsed command:
        let msg be "";
        if there is a rule name of saved Smarter Parser error in Table of Smarter Parser Messages:
            now msg is the message corresponding to a rule name of saved Smarter Parser error in Table of Smarter Parser Messages;
        show the reparsed command with explanation msg.
        
    To show the reparsed command with explanation (explanation - a text):
        say "[unless explanation is empty][explanation][command clarification break][end unless]>[reborn command in upper case]".

    To explain the reborn command:
        if there is a rule name of saved Smarter Parser error in Table of Smarter Parser Messages:
            let msg be the message corresponding to a rule name of saved Smarter Parser error in Table of Smarter Parser Messages;
            show the reborn command with explanation msg.
            
    To show the reborn command with explanation (explanation - a text):
        say "[explanation][line break]".

    To clean up the reparsed command:
        while character number 1 in reborn command is " ":
            replace character number 1 in reborn command with "";
        replace the regular expression " {2,}" in reborn command with " ".