Problem with action name based rulebook

I’ve been trying to get Kerkerkruip to compile under the latest Inform. But I run into a weird error that one can duplicate with just this source:

"Test" by Victor Gijsbers

Lab is a room.

The take-a-player-action rules is an action name based rulebook.

which gives

From what I see, the syntax ‘X is a Y based rulebook’ should still be legal and ‘action name’ is still a kind of value, so I don’t know what’s going on!

Is the source from 6G60?

One thing I can say is that that error occurs using every version of Inform from 6L02 onwards. I tried compiling your example in each version by changing the preference in the settings panel. So if it’s syntax or a functional change, I would look at what changed in 6L02.

-Wade

1 Like

I don’t see anything about ‘action name’ in the release notes of 6L02… and I don’t think I’ll be able to do a comparison of I7 itself. :smiley:

(So far, just turning it into a regular rulebook seems fine. I wonder why the syntax is what it currently is. But apart from that, I would still like to understand what’s going on in this example.)

You can get it to compile by using parentheses:

The take-a-player-action rules is an (action name) based rulebook.

But I don’t think it will work as expected due to this bug:

[I7-2604] We can create an action name-based rulebook, but it’s compiled as action-based.

I haven’t investigated this, though.

3 Likes