Atmospheric Effects

version 6/080508 by Mikael Segercrantz

  • Home page
  • Beginning
  • Previous
  • Next



  • Part 7 - Regions

    Chapter 7(a) - Every turn in regions

    Section 7(a)1 - Check region messages

    To check region messages:
        let shw be 1;
        repeat through the Table of Atmospheric Definition:
            if the ignoring entry is ignore:
                if the loci entry is a thing:
                    if the player can see the loci entry, change shw to 0;
                otherwise:
                    if the loci entry is a room:
                        if in the loci entry, change shw to 0;
        if shw is 1:
            clean regions;
            let count be the number of located regions;
            repeat with n running from 1 to count:
                let the final region be the smallest unshown region;
                if the final region is not the empty region:
                    display messages of the final region;
                    change isshown of the final region to already shown;
                otherwise:
                    change n to count.