Player Experience Upgrade

version 2/111127 by Aaron Reed

  • Home page
  • Beginning
  • Previous
  • Next



  • Section - Understood as far as

    [Will parse things like "take ball I suppose," "look about the room", or "kill the troll in terror"]

    A smarter parser rule when sp_normal (this is the stripping unnecessary addendum rule):
        if the latest parser error is the only understood as far as error or latest parser error is the can't see any such thing error:
            if stripping "\b(the|a|some|my|this|that)\b" is fruitful, do nothing;
            if input starts with "(get off|look under|switch on|switch off|turn on|turn off|take off|listen to|wake up|put on)" and the number of words in reborn command is at least 3:
                now reborn command is "[word number 1 in reborn command] [word number 2 in reborn command] [word number 3 in reborn command]";
                identify error as stripping unnecessary addendum rule;
                reparse the command;
            if input starts with "(take|get|drop|eat|go|enter|get|x|examine|search|open)" or input starts with "(close|wear|wake|attack|kiss|touch|pull|push|turn)" or input starts with "(squeeze|burn|taste|cut|drink|rub|buy|climb|kill)" and the number of words in reborn command is at least 2:
                now reborn command is "[word number 1 in reborn command] [word number 2 in reborn command]";
                identify error as stripping unnecessary addendum rule;
                reparse the command;
            if input starts with "(l|look|inventory|exit|z|wait)" or input starts with "(yes|no|jump|sorry|sleep)": ["i" is intentionally left out, so this doesn't think something like "I don't think so" is an attempt to take inventory.]
                now reborn command is "[word number 1 in reborn command]";
                identify error as stripping unnecessary addendum rule;
                reparse the command.

    [(get|look|switch|turn|take|listen|wake|put) (off|under|on|to|up)]


    Table of Smarter Parser Messages (continued)
    rule name  message  
    stripping unnecessary addendum rule  "[as the parser]I only understood the first part of that-- trying anyway.[as normal]"