I have a fairly complicated project that will test compile in the ide, but when I try to release the project it fails. The errors that it prints seem inaccurate. For instance, it says this
Problem. You wrote ‘before interacting with an herb when the noun is not held by the player’
, which seems to introduce a rule taking effect only if the action is ‘interacting with an herb when the noun is not held by the player’. The part after ‘when’ (or ‘while’) was fine, but the earlier words did not make sense as a description of an action. I am unable to place this rule into any rulebook.
herb is a kind of thing, and in test the player can successfully use the interacting action with one. There are several errors along this line, indicating that herb is not a recognizable thing. Here’s a rule that works in test that won’t compile.
an herb is a kind of recovery item.
the specification of herb is "A medicinal plant used for health recovery. Can be combined with other herbs.".
before interacting with an herb when the noun is not held by the player:
try taking the noun instead;
check mixing something with something when the the noun is not an herb or the second noun is not an herb:
say "It is only possible to combine herbs.";
Herbs are duplicates, which might matter, but this stuff has been working for weeks. It’s surprising! I’ve tried trimming everything to the bare minimum and it still fails. I’m sorry I can’t narrow this down further, I’ve failed to duplicate the problem in a small program.
Is there a reason test works and release doesn’t?