Grouped Messages As Dialogue

version 1 by Ron Newcomb

  • Home page
  • Beginning
  • Previous
  • Next



  • Section 3 - Understand As Far As as Dialogue - written by Emily Short

    To decide what number is the first misunderstood word: (- (wn - 1) -).

    To say parser-understood words: (- PrintPatternCommand(); -).

    Include (-
    [ PrintPatternCommand m pcount pcount2;
        if (etype == UPTO_PE) {
            for (m=0 : m<32 : m++) pattern-->m = pattern2-->m;
            pcount = pcount2;
            PrintCommand(0);
        }
    ];
    -).

    To say parser-confusing words:
        let N be indexed text;
        let N be the player's command;
        repeat with index running from first misunderstood word to the number of words in N begin;
            if index is greater than the first misunderstood word, say " ";
            say word number index in N;
        end repeat.