Custom Library Messages

version 28/100614 by David Fisher

  • Home page
  • Beginning
  • Previous
  • Next



  • Section 5.2 - Internal rules - unindexed

    [ the following rule is called from the i6 code ]

    This is the custom_internal_i6 reveal any newly visible exterior rule:
    display LibMsg <reveal any newly visible exterior initial text> without 'after library messages';
    if there is no newly visible exterior begin;
    follow the after library messages rule;
    display LibMsg <no newly visible exterior>;
    otherwise;
    say ".[/r]";
    follow the after library messages rule;
    say "[/n]";
    end if.

    [ need to test the return value of WriteListFrom(); not sure how to do this in Inform 7 ]
    To decide whether there is no newly visible exterior:
    (- WriteListFrom(child(lm_o), ENGLISH_BIT+TERSE_BIT+CONCEAL_BIT) == 0 -).

    [ Special handling for "go" without a direction ]

    The block vaguely going rule is not listed in the for supplying a missing noun rules.

    Rule for supplying a missing noun while going:
    display LibMsg <block vaguely going>;
    say " ". [ if this isn't here, it says "You must supply a noun" ! ]