| Chapter 7: Basic Actions |

| 7.16. Repeated actions

We come at last to the final thing which can be specified about an action, and appropriately enough it must be specified with the final words of the description. This is the way to talk about repeated activity:

> Instead of examining the tapestry for the third time, say "All right, so it's a masterpiece, but is this really the time to make a detailed study?"

> Instead of examining the urn at least twice, say "It's an urn. What do you want from me?"

> Instead of going nowhere for the 20th time, say "Do stop walking into walls, there's a good fellow."

Note that we are allowed to spell out numbers up to ten in English words, but beyond that must use digits (thus "tenth" is allowed but not "eleventh": "11th" should be used instead). The following example is instructive:

> Instead of taking something for the fourth time, say "No. I'm capricious."

This means that it is the fourth time a "taking..." action has been tried, and does not mean that the same item was taken each time. Also, note that we are counting the number of times the action has been tried, not the number of times it succeeded.

92
| Example Y ask Y? Noticing when the player seems to be at a loss, and recommending the use of hints.

Suppose we'd like to watch for signs that the player is floundering, and if we see them, recommend that he try the hints. There are probably more sophisticated diagnostics, but as a first cut, let's assume that a player who repeatedly reviews descriptions of objects he's already seen, looks around the room, and takes inventory, is at a loss for more productive activities. So then... "Y ask Y?" A thing can be examined or unexamined. A thing is usually unexamined. Carry out examining something: now the noun is examined. Taking inventory is acting confused. Looking is acting confused. Examining an examined thing is acting confused. After acting confused for the sixth turn: say "(If you are feeling lost, try typing HELP for suggestions.)" And now we write a scenario which will, alas, rather encourage even a deft and clueful player to play as though he were hopelessly confused: The story headline is "or: Bad Author, No Biscuit". The description of a thing is usually "Hm. [The item described] reminds you quite a lot of [a random visible thing which is not the item described]." The Yurt is a room. Food is a kind of thing. Food is always edible. In the Yurt are a yam and a dish of yakitori. The yam and the yakitori are food. The description of food is "Well, at least it's not [a random edible thing which is not the item described]." In the Yurt is an animal called a yapok. The player wears a yukata. The player carries a yataghan. Every turn: if a random chance of 1 in 2 succeeds and something is examined begin; say "Your eye is attracted by some kind of surreptitious movement from [the random examined thing]."; otherwise if the player carries something and a random chance of 1 in 3 succeeds; say "[The random thing carried by the player] tries to slip from your grasp."; end if. Test me with "x yam / look / x yam / i / look / i / help / quit". And finally a little dollop of perversity from a later chapter: Check quitting the game: say "You're sure? "; if player consents, say "[line break]You were getting close to a breakthrough, you know.[line break]"; otherwise stop the action. Understand "help" as a mistake ("You're doing fine! Just keep at what you're doing now.").

93
| Example A Day For Fresh Sushi A complete story by Emily Short, called "A Day for Fresh Sushi", rewritten using Inform 7. Noteworthy is the snarky commenter who remarks on everything the player does, but only the first time each action is performed.

Previous | Contents | Next