I am essentially trying to make a simpler version of Dunnet, in inform 7.
I’m stuck on doing “Instead of” actions. Here is my code:
Shaking is an action applying to one thing.
Instead of climbing the tree:
say "You manage to get about two feet up the tree and fall back down. [line break]You notice that the tree is very unsteady.";
Instead of shaking the tree:
say "You shake the tree, and a coconut falls onto you.";
end the story;
And here is the error:
→ You wrote ‘Instead of climbing the tree’ (source text, line 11), which
seems to introduce a rule taking effect only if the action is ‘climbing the
tree’. But that did not make sense as a description of an action. I am
unable to place this rule into any rulebook.
→ You wrote ‘Instead of shaking the tree’ (source text, line 14), which
seems to introduce a rule taking effect only if the action is ‘shaking the
tree’. But that did not make sense as a description of an action. I am
unable to place this rule into any rulebook.
++ Ended: Translation failed: 2 problems found
Inform 7 has finished.