From 6fae4ff940ae0f874cab99cd2514b79a094bb41a Mon Sep 17 00:00:00 2001 From: Graham Nelson Date: Wed, 13 Apr 2022 10:37:42 +0100 Subject: [PATCH] Fix for Mantis bug 1867 --- resources/Documentation/Examples/View.txt | 24 ----------------------- 1 file changed, 24 deletions(-) diff --git a/resources/Documentation/Examples/View.txt b/resources/Documentation/Examples/View.txt index e65be1832c..e06010c3b1 100644 --- a/resources/Documentation/Examples/View.txt +++ b/resources/Documentation/Examples/View.txt @@ -48,27 +48,3 @@ We could add a second instead rule as well: The Sahara is a room. North of the Sahara is More Sahara. North of More Sahara is Yet Further Sahara. Test me with "x sun / get sun / n / x sun / n / x sun / tie rope to sun". - -This produces acceptable output again, but there is a more elegant way, one that works better with Inform's existing world model. Currently the default model assumes that accessibility -- whether the player can reach something or not -- is checked between the Before... rules and the Instead... rules. We can add our own accessibility rules, including this one to govern whether views are accessible. So for instance: - - {*}"Waterworld 4" - - A view is a kind of backdrop. - - The can't touch views rule is listed before the access through barriers rule in the accessibility rulebook. - - Accessibility rule (this is the can't touch views rule): - if the action requires a touchable noun and the noun is a view: - say "You are too far from [the noun] to do anything but look." instead; - if the action requires a touchable second noun and the second noun is a view: - say "You are too far from [the second noun] to do anything but look." instead; - - The player carries a rope. - - The sun is a view. It is everywhere. The description is "A blazing sun makes you wish you had never been born." - - The Sahara is a room. North of the Sahara is More Sahara. North of More Sahara is Yet Further Sahara. - - Test me with "x sun / get sun / n / x sun / n / x sun / tie rope to sun". - -Now our new accessibility rule fits into its proper stage.