|Anonymous | Login | Signup for a new account||2018-12-12 18:08 PST|
|Main | My View | View Issues | Change Log | Roadmap|
|View Issue Details|
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0002068||Core Inform||Actions||public||2018-07-30 16:25||2018-09-02 06:20|
|Priority||normal||Severity||mild||Reproducibility||have not tried|
|Target Version||Fixed in Version|
|Summary||0002068: 'instead' rule requires 'something' instead of 'it'|
|Description||The 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 Information||If you replace 'it' with 'something', it works as expected.|
|Tags||No tags attached.|
|Effect||(serious) Compiler rejects valid code|
|(First noticed by Jeremy Freese, and confirmed as a bug by zarf.)|
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.
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.
|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|