Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002122Core InformRules and rulebookspublic2020-04-19 09:272020-04-19 09:30
Reportermattweiner 
Assigned To 
PrioritynormalSeveritymildReproducibilityalways
StatusnewResolutionopen 
PlatformmacintoshOSEl Capitan?OS Version10.14.11
Product Version6M62 
Target VersionFixed in Version 
Summary0002122: adding a "say" phrase to a check rule that calls a rulebook can affect whether the action succeeds
DescriptionThis check rule calls a rulebook that succeeds; the check rule itself then ends with "stop the action."

When the "say" phrase is commented out, the action succeeds and the unsuccessful attempt rules do not run; no text is printed.

When the "say" phrase is uncommented, the action fails and the unsuccessful attempt rules run; both the contents of the say-phrase and the result of the unsuccessful attempt rule are printed.

This appears to happen when the "say" phrase contains a bracketed substitution.
Minimal Source Text To Reproduce
The smooping rules are a rulebook.

A smooping rule (this is the default smooping rule):
	rule succeeds.

Smooping is an action applying to nothing.
To smoop is a verb.

Understand "smoop" as smooping.

Check an actor smooping (this is the smooping limitation rule):
	follow the smooping rules;
	[say "(smoop-checked [the actor])[line break]";]
	if the actor is the player, say "[We] [can't] smoop!";
	stop the action.

Report an actor smooping:
	say "[The actor] [smoop]."

The Lab is a room.

Annie is a person in the Lab.
A persuasion rule for asking Annie to try doing something: persuasion succeeds.

Unsuccessful attempt by Annie smooping:
	say "'I can't smoop,' says Annie."
Additional InformationResults with "say" phrase commented out:

Lab
You can see Annie here.

>test me
(Testing.)

>[1] annie, smoop
>[2] actions
Actions listing on.

>[3] annie, smoop
[asking Annie to try smooping]
[(1) Annie smooping]
[(1) Annie smooping - succeeded]

[asking Annie to try smooping - succeeded]

>

Results with "say" phrase uncommented:

Lab
You can see Annie here.

>test me
(Testing.)

>[1] annie, smoop
(smoop-checked Annie)

"I can't smoop," says Annie.

>[2] actions
Actions listing on.

>[3] annie, smoop
[asking Annie to try smooping]
[(1) Annie smooping]
(smoop-checked Annie)
[(1) Annie smooping - failed the smooping limitation rule]

"I can't smoop," says Annie.
[asking Annie to try smooping - succeeded]

>
TagsNo tags attached.
Effect(serious/mild) Game compiles but misbehaves
Attached Files

- Relationships

-  Notes
(0004904)
mattweiner (reporter)
2020-04-19 09:30

Forum thread: https://intfiction.org/t/stop-the-action-vs-rule-fails/45039 [^]

(Note also that the documentation in ยง19.11 of the difference between "stop the action" and "rule fails" is still confusing people.)

- Issue History
Date Modified Username Field Change
2020-04-19 09:27 mattweiner New Issue
2020-04-19 09:30 mattweiner Note Added: 0004904


Copyright © 2000 - 2010 MantisBT Group
Powered by Mantis Bugtracker