I have a noun in a sentence that needs to be there for descriptive purposes. I don’t want the player trying to interact with that noun. I also don’t want to code every single instance of attempting to use a verb on that noun.
Is there a way to return a generic response like
Instead of carrying out an action applying to the widget:
say "Stop messing with the widget."
NB that actions where the widget is the second noun won’t be blocked by this rule - “throw ball at widget”, say. This may be the behavior you want, but it’s worth considering. You also might want to exempt examine from the instead rule since players often expect to be able to look at even inessential stuff (otherwise what’s the point if including it?)