Thank you very much, that did the trick!
Btw, I’m running into one other little problem. I’m using the transmutation machine (from the recipe book).
I won’t include everything here, but here’s the basics of what I’m using:
Transmutation relates things to each other in groups. The verb to become (it becomes, they become, it became) implies the transmutation relation.
Definition: a thing is transmutable if it becomes more than one thing. [* It always becomes itself.]
A thing can be pennylike. The penny is a pennylike thing. It becomes a copper fork.
A thing can be copperlike. The copper fork is a copperlike thing.
The machine is fixed in place in the workshop. Procedural rule when inserting something into the machine: ignore the can't insert into what's not a container rule.
Check inserting something which is not transmutable into the machine:
instead say "You can't transmute that."
To decide which thing is new form of (obj - pennylike thing): decide on a random copperlike thing which becomes obj.
Carry out inserting something into the machine:
remove the noun from play;
now the player carries the new form of the noun.
Report inserting something pennylike into the machine:
say "The machine clicks, whirrs, and with a roar, spits out [a new form of the noun].";
rule succeeds.
Above I’m just including the object that is a problem. Essentially, you stick the penny in the machine, and it spits out the copper fork (which you’re awarded points for after placing it in a trophy case).
What I noticed while testing it though is that if you insert the copper fork into the machine, it would cause an error. I tried adding some different rules (i.e. I added something like:
To decide which thing is new form of (obj - copperlike thing): decide on a random copperlike thing which becomes obj.
Report inserting something copperlike into the machine:
say "The machine clicks, whirrs, and with a roar, spits out [a new form of the noun].";
rule succeeds.
The main common thread I found with whatever I tried is that the rule would succeed, but the copper fork would no longer be in inventory. So it would be like it removes the noun from play, but the player doesn’t carry the “new form” of the noun.
Initially I wanted it to simply not be transmutable at all (so the copper fork would just be rejected), but it looks like as I left it, it did let you transmute it anyway.
For the time being, I’m preventing the player from doing it by adding:
Check inserting a copper spork into the machine:
instead say "You don't want to do that."
But I figure this is a bad solution, and there should be some way to ensure that the final outputted object is simply not regarded as transmutable so it will be rejected by the initial “Check inserting something which is not transmutable into the machine:” rule.
Thanks!