1
0
Fork 0
mirror of https://github.com/ganelson/inform.git synced 2024-07-07 17:44:22 +03:00
inform7/resources/Documentation/Examples/Veronica.txt
2023-07-24 11:56:58 +01:00

28 lines
975 B
Plaintext

Example: * Veronica
Location: Going from, going to
RecipeLocation: Going, Pushing Things in Directions
Index: Regions, traveling from
Description: An effect that occurs only when the player leaves a region entirely.
For: Z-Machine
Suppose that we want to have something happen when the player leaves a region we've defined. "Instead of going from (the region)..." will not suffice for this, because this rule will be invoked every time the player successfully leaves a room within the region, whether or not they are going to a room that is also in the same region.
Instead we need a rule that is a bit more specific, like this:
{*}"Veronica"
Neptune is a region.
Tijuana is a room.
High School is north of Tijuana. It is in Neptune.
Detective Offices is west of High School. It is in Neptune.
The player is in High School.
Instead of going from Neptune to a room which is not in Neptune:
say "It's a bad time to leave Neptune."
Test me with "s / w / e".