Spellcasting

version 2 by Jim Aikin

  • Home page
  • Beginning
  • Previous
  • Next



  • Section 4 - Supplying Information

    Spellchecking is an action out of world applying to nothing. Understand "spells" as spellchecking.

    Carry out spellchecking:
        let found-one be a truth state;
        let found-one be false;
        repeat with N running from 1 to the number of rows in the Table of Spells:
            if the spell in row N of the Table of Spells is learned:
                now found-one is true;
        if found-one is false:
            say "[no-spells-learned]";
        otherwise:
            say "You are the master of the following spells:[line break]";
            repeat with N running from 1 to the number of rows in the Table of Spells:
                if the spell in row N of the Table of Spells is learned:
                    say "[spell in row N of the Table of Spells]: ";
                    say "[description in row N of the Table of Spells][line break]".