Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002096Core InformRules and rulebookspublic2019-04-09 08:512019-05-23 06:03
Reporterseancwall 
Assigned To 
PrioritynormalSeverityseriousReproducibilityalways
StatusnewResolutionopen 
PlatformOSMacOSOS Version10.14.4
Product Version6M62 
Target VersionFixed in Version 
Summary0002096: "Zodiac" example shows library isn't interpreting instead rule correctly
DescriptionWhen 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.
Minimal Source Text To Reproduce
"Zodiac"

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".
Additional InformationWhen 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.
TagsNo tags attached.
Effect(serious/mild) Game compiles but misbehaves
Attached Files

- Relationships

-  Notes
(0004852)
seancwall (reporter)
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.
(0004858)
mattweiner (reporter)
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.

- Issue History
Date Modified Username Field Change
2019-04-09 08:51 seancwall New Issue
2019-04-09 10:05 seancwall Note Added: 0004852
2019-05-23 06:03 mattweiner Note Added: 0004858


Copyright © 2000 - 2010 MantisBT Group
Powered by Mantis Bugtracker