Room Description Headings

version 1/090620 by Erwin Genstein

  • Home page
  • Beginning
  • Previous



  • Section RDH/I/4 - A New Room Description Heading Rule

    [We replace the standard rule description heading rule with our own, with the listing enclosures activity taking the place of repeated issuance of library message looking action number 8.]
    The room description heading rule is not listed in the carry out looking rulebook.
    The first carry out looking rule (this is the room description heading with enclosures rule):
        [Deleted Code Begins --
        say bold type;
        if the visibility level count is 0:
            begin the printing the name of a dark room activity;
            if handling the printing the name of a dark room activity,
                issue miscellaneous library message number 71;
            end the printing the name of a dark room activity;
        otherwise if the visibility ceiling is the location:
            say "[visibility ceiling]";
        otherwise:
            say "[Rdh the visibility ceiling]";
        say roman type;
        --Deleted Code Ends]
        [New Code Begins--]
        if the visibility level count is 0:
            now the player's enclosure is nothing;
            now the apparent location is nothing;
        otherwise:
            now the player's enclosure is the visibility-holder of the actor;
            now the apparent location is the visibility ceiling;
        carry out the room description headings activity;
        [--New Code Ends]
        [Deleted Code Begins--
        let intermediate level be the visibility-holder of the actor;
        repeat with intermediate level count running from 2 to the visibility level count:
            issue library message looking action number 8 for the intermediate level;
            let the intermediate level be the visibility-holder of the intermediate level;
        say line break;
        say run paragraph on with special look spacing.
        --Deleted Code Ends]

    The last for listing enclosures from scratch rule (this is the default listing enclosures from scratch rule):
        calculate visibility ceiling at low level;
        let visibility-level-count be the visibility ceiling count calculated;
        let visibility-ceiling be the visibility ceiling calculated;
        if the visibility-level-count is 0:
            now the player's enclosure is nothing;
            now the apparent location is nothing;
        otherwise:
            now the player's enclosure is the visibility-holder of the player;
            now the apparent location is the visibility-ceiling;
        carry out the listing enclosures activity.

    To say the player's enclosures from scratch:
        carry out the listing enclosures from scratch activity.

    To say the player's surroundings with enclosures:
        say "[the player's surroundings][the player's enclosures from scratch]".

    Room Description Headings ends here.