Room & Dimension

version 1 by Sebastian Rahn

  • Home page
  • Beginning
  • Previous
  • Next



  • Section 2.2 - Print Avatar

    Compass is a thing that varies.

    To say Avatar:
    If Compass is Wall, say Compass;
    If Compass is None, say Compass;
    If Compass is Entrance Point, say Compass;
    If Compass is player
    begin;
    If Looking Direction of compass is Face North, say " [second custom style]^[roman type]";
    If Looking Direction of compass is Face West, say " [second custom style]<[roman type]";
    If Looking Direction of compass is Face East, say " [second custom style]>[roman type]";
    If Looking Direction of compass is Face South, say " [second custom style]v[roman type]";
    end if;
    If Compass is a person
    begin;
    If Compass is not player
    begin;
    choose row with Entity of Compass in Table 991;
    Change tmp_text to Avatar Entry;
    say " [second custom style][tmp_text][roman type]";
    end if;
    end if;
    If Compass is not a person
    begin;
    If Compass is not a Wall
    begin;
    If Compass is not None
    begin;
    If Compass is not an Entrance Point
    begin;
    choose row with Entity of Compass in Table 991;
    Change tmp_text to Avatar Entry;
    say " [tmp_text]";
    end if;
    end if;
    end if;
    end if.

    Table 991 - Avatars
    Entity  Avatar  
    a thing  a text