Custom Library Messages

version 4/120212 by Ron Newcomb

  • Home page
  • Beginning
  • Previous
  • Next



  • Example: * Poster Shopping - Replace Inform's default responses with tailored ones for a much-improved player experience.

    In this table, we also use various say-phrases like "[We]" and "[see*]" so when the viewpoint or tense is changed during play, the messages immediately correct themselves.

        "Poster Shopping"
        
        Include Custom Library Messages by Ron Newcomb.
        
        The story tense is past tense.
        The story viewpoint is first person.
        
        The poster shop is a room.
        
        The horror movie poster is a lit thing in the poster shop.
        The romantic movie poster is a thing in the poster shop.
        The fantasy movie poster is a thing in the poster shop.
        
        Carry out examining the player for the first time: increase the score by 2.
        
        Table of custom library messages (continued)
      library-action  library-message-id  library-message-text  
      taking inventory action  1  "[We] decid[e-s] to acquire a new movie poster."  
      --  10  "[bracket]I didn't catch your drift there.[close bracket]"  
      --  109  " (glowing in the dark"  
      taking action  1  "[We] [go*] for [the noun]."  
      going action  2  "Born and raised in the city, [we] [have*] no idea what direction [=> any third person singular][are*] [noun]."  
      --  49  "Which poster [will] [we] [library message verb]?"  
      --  35  "[We] [=>don't][see*] what '[library message pronoun]' could possibly refer to."  
      --  50  "[Our] score [=> any third person singular][if library message amount > 0]gain[-s][otherwise]reduc[e-s] by[end if] [library message amount in words] point[s][ignore library line break]"  
      --  75  " A [random carried thing] adorn[-s] [our] wall [ignore library line break]"  
        
        Instead of going when something is carried, end the story.
        
        Test me with "x me / i / / take / her / s / take horror poster / i / s ".
        Test her with "pov third person feminine / x me / i / / take / her / s / take horror poster / i / s".
        Test them with "pov third person plural / x me / i / / take / her / s / take horror poster / i / s".
        Test present with "pov present tense / x me / i / / take / her / s / take horror poster / i / s".