MantisBT - Core Inform
View Issue Details
0002096Core InformRules and rulebookspublic2019-04-09 08:512019-05-23 06:03
(serious/mild) Game compiles but misbehaves
0002096: "Zodiac" example shows library isn't interpreting instead rule correctly
When running the second "Zodiac" example in the documentation, the compiler produces a story file that doesn't allow the "look" action, even though the instead rule doesn't prevent it.

The Secluded Alley is a room. The Capricorn Killer is a man in the Secluded Alley.

The player carries a can of mace and a roll of duct tape.

Instead of doing something other than examining something in the presence of the Capricorn Killer:
say "You dare not attempt it!"

Test me with "x me / x killer / touch killer / smell mace".
When you run this example, the initial room description is not displayed, and using "LOOK" doesn't display it either. Instead, you get the "You dare not attempt it!" message. It's like the clause "other than examining something" is not being considered.
No tags attached.
Issue History
2019-04-09 08:51seancwallNew Issue
2019-04-09 10:05seancwallNote Added: 0004852
2019-05-23 06:03mattweinerNote Added: 0004858

2019-04-09 10:05   
Actually, I just realized this may be more of a documentation issue. The docs say "But notice that because we specified 'examining something', actions that take no object (like sing) are still not affected." 'Look' falls into this category, as does 'sing', but both are affected by this rule, as does actions like 'jump'. The rule may be working as expected, but the docs are confusing on this.
2019-05-23 06:03   
Yes, this looks like a bug in the example/documentation, or more specifically a failure to update it to the latest version. If you say "instead of doing something other than examining with something in the presence of the Capricorn Killer" then the behavior is as described in the docs. (Note the "with.")

A recent version--I forget exactly which--added the distinction between "doing something other than examining foo" ("examining foo" is the only action not included) and "doing something other than examining with foo" ("examining foo" and any actions not involving foo are not included). It looks to me like this particular example wasn't updated for it.