Inform Hints


Inform language hints and tips taken from various sources.

Contents


  1. Sources
  2. Invisible or imaginary people [1]
  3. A table for topic replies [1]
  4. Rule structure and notes [2]
  5. The player and actors [2]

1. Sources


[1]: http://ifdb.tads.org/viewgame?id=20f753czrlhoorfh
[2]: http://www.ifwiki.org/index.php/Inform_7_for_Programmers

2. Invisible or imaginary people


Leslie is a woman.  She is scenery.  Understand "voice" as Leslie.  "You twist your head around, searching for the source of the voice.  'I'm not actually here, Dave.  You're stuck in some kind of simulation, and I'm communicating to you from the outside.  This is Leslie.  Do you remember?'" 

After examining Leslie for the first time:  Now the description of Leslie is "Leslie is not actually here, but you've been hearing her voice inside your head."  

Automatically include our imaginary friend with us at most times:

After deciding the scope of the player:  If the Your Scene is running, place Leslie in scope.

While ignore physical interactions:

[Bugfix for scope bug introduced in 5G67:]
Procedural rule when the noun is leslie:
Ignore the basic accessibility rule.

Procedural rule when the second noun is leslie:
Ignore the basic accessibility rule.

A table for topic replies


Topics can be joined with or statements:

The replies of Leslie is the Table of Leslie Replies.

Table of Leslie Replies
  topic	reply
  "me" or "myself" or "dave"	"'You were testing the simulation code when something went wrong.  Do you not even remember who you are any more?  That's bad.'"
  "her" or "leslie" or "herself"	"'I'm trying to get you out of there!  I think we can do this, just trust me.'"

Except a topic of "competition" would fail if the player asks about "the competition". Reserve the optional word as:

Table of novel replies
topic		reply
"the/-- competition"	"'If you buy a raffle ticket you can win the entire collection of Dickens's works!'"

While handling unlisted topics gracefully:

Instead of asking leslie about something when the topic understood is not a topic listed in the replies of the noun:
  say "Leslie either can't help you with that, or doesn't understand what you mean.".

Instead of answering Leslie that something when the topic understood is not a topic listed in the replies of the noun:
  say "Leslie either can't help you with that, or doesn't understand what you mean.".

4. Rule structure and notes


A check rule for an actor inserting my favorite toy into the jeans when the time of day is before the deadline:
	say “[The current manager] would fire [the actor] for stuffing [my favorite toy] down there!” instead.

These are optional words: rule, for, of. We could have written "Check an actor" just as easily.

5. The player and actors


A check rule for an actor inserting my favorite toy into the jeans when the time of day is before the deadline:

  1. Here an actor applies to all characters, not just the player. (The an is one of the few times when a particular article is required.)
  2. omit it entirely, so the rule only applies to the player.
  3. a specific named character such as Bob, provided Bob is not the player.
  4. a set-description, such as a resourceful person.
  5. someone, which means anyone except the player.