following rules listed in another action's rulebook

[code]Doldrums is a room. Some monkey bars are here.

Instead of jumping (this is the no having fun rule):
say “Having fun is not allowed.”

Instead of swinging:
follow the no having fun rule.[/code]

I would have expected the second command to produce the same response as the first. Why doesn’t it work? Is it supposed to work (i.e., is this a bug)?

The rule includes its condition. That is, the rule per se is (pseudocode)

if the current action is jumping, say “Having fun is not allowed.”; stop the action.

(The fact that the rule is in the “instead of…” rulebook is not part of this code.)

To expand, I think what zarf is implying is that you would need to remove the action condition from the “no having fun” rule, but you could still point multiple actions to the same generic rule:

[code]“Example”

Doldrums is a room. Some monkey bars are here.

This is the no having fun rule:
say “Having fun is not allowed.”

Instead of jumping:
follow the no having fun rule.

Instead of swinging:
follow the no having fun rule.

test me with “jump / swing / wave”[/code]

That makes sense, and matches my suspicions.