Custom Library Messages

version 4/120212 by Ron Newcomb

  • Home page
  • Beginning
  • Previous
  • Next



  • Book - Interface

    Section - Custom Library Messages

    Use library message alerts translates as (- ! Constant LIBRARY_MESSAGE_ALERTS; -). [ From Default Messages extension, but is always on in CLM (in testing builds only) ]

    To say library message verb: (- PrintCommand(); -). [prints the command predicate]
    To say library message pronoun: (- print (address) pronoun_word; -). ["pronoun dictionary word" is already in the Standard Rules, but in a "this might change later" section. ]
    To say ignore library line break: (- lm_n = -lm_n; -).

    To decide which snippet is the misunderstood word: (- (((wn - 1) * 100) + 1) -).
    To decide which snippet is the quoted verb: (- ((verb_wordnum * 100) + 1) -). [if command is TAKE OFF HAT, gives just TAKE]

    To decide which text is (quoted word - a snippet) posture:
        if the quoted word matches "stand", decide on "stand on";
        if the quoted word matches "sit", decide on "sit down on";
        if the quoted word matches "lie", decide on "lie down on";
        decide on "enter".

    To say list the contents of (X - object) with (N - number): (- Switch__TX((+ story tense +)); WriteListFrom(child({X}), {N}); -).

    The current player's holdall is a player's holdall that varies. The current player's holdall variable translates into I6 as "SACK_OBJECT".

    The capitalisation mode is a truth state that varies. The capitalisation mode variable translates into I6 as "caps_mode".

    To say the/-- capitalised (output - text): (- CPrintOrRun({output}); -). [ annoying that I need both phrases, but at least I needn't code it from scratch. ]
    To say the/-- possibly capitalised (output - text): if capitalisation mode is true, say the capitalised output; otherwise say the output; now capitalisation mode is false.