WovenTales wrote:
That looks like it works. Now, though, I'm getting an error in a related location (different rulebook, but same structure). The line is in a "setting action variables" rule for going—and appears in the right location in the index—which should give it access to the actor. Unfortunately, that's what Inform's complaining about. If I include "for the actor", it tells me it can't recognise the last two words. If I take them off, it says that the going speed selection rules are people-based and I need someone to apply it to ("for the player" works perfectly, but is not general enough).
Code:
Rule for setting action variables for going (this is the timed set going variables rule):
now the speed gone at is the number produced by the going speed selection rules for the actor;
[continued]
I think you need to include "the actor" in the name of the rule as well, to tell Inform that it needs to apply to any actor attempting to go, not just the play.
At least, this minimal source compiles and runs for me:
Code:
There is room.
The going action has a number called the speed gone at.
Rule for setting action variables for an actor going (this is the timed set going variables rule):
now the speed gone at is the number produced by the going speed selection rules for the actor;
showme the speed gone at;
[continued]
The going speed selection rules are a people based rulebook producing numbers.
A going speed selection rule:
rule succeeds with result 1.