Omitting an item from inventory

Could you please provide a whole code sample demonstrating this behavior?

This isn’t a fix for what you’re seeing, but instead of

I’d suggest:

The description of food is usually "Looks good enough to eat!".

It’s easy to overuse Instead rules. I wrote about when to use which action rulebooks elsewhere; here’s another post on the uses of action rulebooks by @HanonO. The perils of INSTEAD is a recurring topic here.

In my coding, Instead is the rulebook of last resort: if something can be straightforwardly accomplished with one of the other rulebooks, and there isn’t a particular reason why Instead is a better choice, I use the other rulebook. (This is a statement of personal preference and is more Instead-avoidant than the docs’ 12.21. Guidelines on how to write rules about actions themselves, which call for Check rules for general situations and Instead for specifics. So I’m not suggesting that my position is correct and anyone disagreeing with it is wrong; I’m just sharing my own thoughts.)

3 Likes