Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002068Core InformActionspublic2018-07-30 16:252018-09-02 06:20
Reporterlpsmith 
Assigned To 
PrioritynormalSeveritymildReproducibilityhave not tried
StatusconfirmedResolutionopen 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0002068: 'instead' rule requires 'something' instead of 'it'
DescriptionThe attached source does not compile, and should!
Minimal Source Text To Reproduce
"Lucian's Room in Cragne Manor" by Lucian Smith

Errors1 is a room.  

Emmett is a man in Errors1

Instead of putting it on when the second noun is Emmett:
	say "Don't put that on him!"
Additional InformationIf you replace 'it' with 'something', it works as expected.
TagsNo tags attached.
Effect(serious) Compiler rejects valid code
Attached Files

- Relationships

-  Notes
(0004793)
lpsmith (reporter)
2018-07-30 16:26

(First noticed by Jeremy Freese, and confirmed as a bug by zarf.)
(0004794)
zarf (developer)
2018-07-30 16:36

Well, I've confirmed that it looks like a bug to me, anyway. :)

Error message: You wrote 'Instead of putting it on' , which seems to introduce a rule taking effect only if the action is 'putting it on'. But that did not make sense as a description of an action. I am unable to place this rule into any rulebook.

A simpler example:

Report putting it on: say "report."

Instead of putting it on: say "instead."


The first line works, the second line fails. I can't think of any reason why that action specification should only be valid in check/report rules.
(0004797)
mattweiner (reporter)
2018-09-02 06:20

I can think of a reason but it's not a very good reason.... "Report putting it on" is the name of the rulebook, so that rule can go straight into the named rulebook. The "instead" rules are followed by an action specification, and "putting it on" isn't an action specification in the way "putting something on something" is.

This may even be hinted at in ยง19.2 of WwI:

[quote]If the source text contains the rules

Instead of taking something: say "You have no particular need just now."
Instead of taking a fish: say "It's all slimy."
and a command to TAKE something is tried, then only one of these rules will have any effect. The "instead" rulebook contains:

Rule (1) to be applied if the action matches "taking a fish"
Rule (2) to be applied if the action matches "taking something"[/quote]

This somewhat suggests that "Instead of putting it on" should be applied if the action matches "putting it on," but "putting it on" is an action name and not an action specification.

By similar lights, "Report putting it on Emmett:" doesn't work, since "putting it on Emmett" isn't an action specification and the header isn't the name of the rulebook.

Nevertheless it would probably be desirable to have "it" work uniformly here.

- Issue History
Date Modified Username Field Change
2018-07-30 16:25 lpsmith New Issue
2018-07-30 16:26 lpsmith Note Added: 0004793
2018-07-30 16:36 zarf Note Added: 0004794
2018-07-30 16:36 zarf Status new => confirmed
2018-09-02 06:20 mattweiner Note Added: 0004797


Copyright © 2000 - 2010 MantisBT Group
Powered by Mantis Bugtracker