1
0
Fork 0
mirror of https://github.com/ganelson/inform.git synced 2024-07-16 14:04:24 +03:00
inform7/resources/Documentation/Examples/HotelStechelberg.txt

39 lines
2 KiB
Plaintext
Raw Normal View History

Example: ** Hotel Stechelberg
Location: Adjacent rooms and routes through the map
RecipeLocation: Continuous Spaces and The Outdoors
Index: Signposts to distant rooms
Description: Signposts such as those provided on hiking paths in the Swiss Alps, which show the correct direction and hiking time to all other locations.
For: Z-Machine
2019-02-05 02:44:07 +02:00
The following rule appends a paragraph to every room description. We need not worry about doors (despite the pass in the Bernese Oberland known figuratively as the "Little Door").
{*}"Hotel Stechelberg"
2019-02-05 02:44:07 +02:00
After looking:
say "Yellow arms on the signpost point:-[line break]";
repeat with destination running through interesting rooms:
let the way be the best route from the location to the destination;
if the way is a direction, say " [way] for [the destination]: [number of moves from the location to the destination] Std."
2019-02-05 02:44:07 +02:00
Hotel Stechelberg is a room. "The wooden hiking inn at the end of the road, with flowerboxes, canton flags, outdoor tables and a triangular paddock for the cows contesting the annual Miss Stechelberg competition. Otto and Marianne do cheerful innkeeper things, while the sun blazes from a gentian-blue sky."
2019-02-05 02:44:07 +02:00
A room can be dull or interesting. A room is usually dull.
2019-02-05 02:44:07 +02:00
North of Hotel Stechelberg is Trummelbachfalle. North of Trummelbachfalle is Lauterbrunnen. Lauterbrunnen is interesting.
2019-02-05 02:44:07 +02:00
Southeast of Hotel Stechelberg is Trachsellauenen. Trachsellauenen is interesting.
2019-02-05 02:44:07 +02:00
Test me with "look".
With a bit more work, the result might be:
Hotel Stechelberg
The wooden hiking inn at the end of the road, with flowerboxes, canton flags, outdoor tables and a triangular paddock for the cows contesting the annual Miss Stechelberg competition. Otto and Marianne do cheerful innkeeper things, while the sun blazes from a gentian-blue sky.
2019-02-05 02:44:07 +02:00
Yellow arms on the signpost point:-
north for Lauterbrunnen: 2 Std.
west for Sefinental: 2 Std.
west for Schilthorn: 6 Std.
southeast for Trachsellauenen: 1 Std.
southeast for Oberhornsee: 3 Std.