Multiple Exits

version 4/080915 by Mikael Segercrantz

  • Home page
  • Beginning
  • Previous

  • Chapter 2b - Special rules

    Section 2b1 - To modify the way exit of place according to tbl

    To modify the (way - a direction) exit of (place - a room) according to (tbl - a table-name):
        let count be the number of filled rows in tbl;
        let current be 0;
        let chosen be a random number between 1 and count;
        repeat through tbl:
            if there is a loci entry:
                increase current by 1;
                if current is chosen, change the way exit of place to the loci entry.

    Multiple Exits ends here.