Custom Library Messages

version 28/100614 by David Fisher

  • Home page
  • Beginning
  • Previous
  • Next



  • Section: More Complex Messages

    Most of the library messages refer to the player and/or an object;
    for example:
        
        "You can't go that way."
        "The box isn't open."
        "First you'll have to close the box."

    The above messages are defined as follows:

        "[You] [can't] go that way."
        "[The %] [isn't|aren't] open."
        "First [you]'ll have to close [the % dobj]."

    "[You]" prints the appropriate pronoun for the player, which is usually
    just "you", but can also be changed to "I", "he", "they", etc.

    "[can't]" prints the word "can't" in the present tense or "couldn't" in
    the past tense.

    "%" represents the main object being talked about. "[The %]" will print
    the same kind of thing as "[The x]" in standard Inform. You can also
    say "[the %]" or just "[%]". If it is not the subject of the sentence -
    as in the third example above - say "[% dobj]" or "[the % dobj]" instead
    (dobj stands for "direct object", the alternative to being the subject
    of the sentence).

    "[isn't|aren't]" prints the appropriate word for the last thing mentioned
    in the sentence. In the second example above, the last thing mentioned was
    "%" (the main object), so it will say "isn't" if the main object is singular
    or "aren't" if it is plural.

    As well as "[the %]", it is possible to say "[The actor]" / "[the actor]",
    which refers to the person doing the action (usually the player).

    A list of commands is given below (see the section on
    Auxiliary Verbs below for an explanation of "+" after a command).

        % ... ^The % ... the % ... % dobj ... the % dobj
        $ ... ^The $ ... the $ ... $ dobj ... the $ dobj ... ^The actor ... the actor
        ^Are ... ^Aren't ... ^Can ... ^Can't ... ^Do ... ^Doesn't|Don't ... ^Does|Do ... ^Don't
        ^Hasn't|Haven't ... ^Has|Have ... ^Have ... ^Have+ ... ^Haven't ... ^Haven't+
        ^He ... here ... ^Him ... ^Himself ... ^His ...
        ^Isn't|Aren't ... ^Isn't|Wasn't ... ^Is|Are ... ^Is|Was
        ^It's ... ^It|They ... ^It|Those ... ^That's|They're ... ^That|They ... ^That|Those
        ^There's ... ^You ... ^You're ... ^You've+ ... ^Your ... ^Yourself
        are ... aren't ... can ... can't ... comes|came ... did ... didn't ... do ... doesn't|don't
        does|do ... don't ... hasn't|haven't ... has|have ... have ... have+ ... haven't ... haven't+
        he ... him ... himself ... -his ... is ... isn't|aren't ... isn't|wasn't ... is|are ... is|was
        it's ... it|them ... it|they ... it|those ... that|those ... there's ... you ... you dobj
        you|yourself ... you're ... you've+ ... your ... yourself

    (Note that as of version 12, "[-his]" is used instead of "[his]"; see Change History).

    The following commands are used to distinguish between a
    supporter and a container:

        ^On|In ... off|out of ... onto|into ... on|in