curiousdannii-testing / inform7-imported-bugs

0 stars 0 forks source link

[I7-1604] [Mantis 1640] WI 19.11 incorrectly states that "rule succeeds" will not halt the Every Turn rules #480

Closed curiousdannii-testing closed 2 years ago

curiousdannii-testing commented 2 years ago

Reported by : mattweiner

Description :

Section 19.11 of Writing with Inform says:

"When a rulebook is followed, what happens is that each of its rules is followed in turn until one of them ends in success or failure - if ever: it is possible that each rule is tried and each ends with no outcome, so that the rulebook simply runs out of rules to try.

"For some rulebooks, these are not useful ideas: "every turn" rules, for instance, never produce an outcome, which is why the "every turn" rulebook always runs through all its rules at the end of each turn."

This suggests that "rule succeeds" in an Every turn rule will end the rule and then the other rules will run; but in fact it ends the whole rulebook.

Steps to reproduce :

Lab is a room.

Every turn: say "This rule will get cut off."

First every turn: 
    say "This rule does the cutting off.";
    rule succeeds.

Test me with "z".

Additional information :

Or perhaps the documentation is correct and this is a bug? If so, it'd be nice to clarify which rulebooks this applies to.

imported from: [Mantis 1640] WI 19.11 incorrectly states that "rule succeeds" will not halt the Every Turn rules
  • status: Closed
  • resolution: Resolved
  • resolved: 2022-04-07T04:59:42+10:00
  • imported: 2022/01/10
curiousdannii-testing commented 2 years ago

557058:4c095ffd-6d6f-47ce-9e73-77c613347b86:

Comment by zarf :
Right. What the documentation means, I guess, is that every-turn rules should not produce an outcome. So, if you want to halt such a rule, you must use "continue the action". (Unless you really mean to cut the rulebook off.)