I was trying to work out a scenelet to handle certain interactions:
Shrugging is an action applying to nothing. Understand "shrug" as shrugging.
Saying yes is question-answering.
Saying no is question-answering.
Shrugging is question-answering.
Question posed is initially false.
Awaiting Response is a recurring scene.
Awaiting Response begins when question posed is true.
Awaiting Response ends affirmatively when saying yes and time since Awaiting Response began is 1 minute.
Awaiting Response ends negatively when saying no and time since Awaiting Response began is 1 minute.
Awaiting Response ends inconclusively when question-answering and time since Awaiting Response began is 1 minute.
Every turn when Awaiting Response is not happening:
say "A question is posed!";
now question posed is true.
(Yes, Iâm aware that this example code creates the possibility for Awaiting Response to never end. This is a stripped down example to show a specific issue.)
The problem is that saying yes or saying no both result in the scene ending inconclusively. This is not expected since the individual actions are more specific than the kind of action (question-answering) to which they belong. The normal rules for rule precedence donât seem to be applying here.
By comparison, if the following is added:
Response reaction is a rulebook. The response reaction rulebook has default success.
Every turn: follow the response reaction rules.
Response reaction when saying yes: say "react to: Yes."
Response reaction when saying no: say "react to: No."
Response reaction question-answering: say "react to: Shrug."
then rule precedence in the response reaction rules is working as expected:
>Z
Time passes.
A question is posed!
>SCENES
Scene 'Entire Game' playing (for 1 mins now)
Scene 'Awaiting Response' playing (for 0 mins now)
(Scene monitoring now switched on. Type "scenes off" to switch it off again.)
>YES
That was a rhetorical question.
react to: Yes. [<-- the saying yes action gets precedence over question-answering]
[Scene 'Awaiting Response' ends]
[Scene 'Awaiting Response' ends inconclusively] [<-- the saying yes action does NOT get precedence over question-answering]
[Scene 'Awaiting Response' begins] [<-- also aware of this immediate restart; only affects stripped-down example]
Is this a bug?