Sorry, by “predefine the settings” I meant something like this: Suppose you defined a use option like “use touchy actions,” so that rubbing, touching, and squeezing,* were eliminated unless the author turned on “use touchy actions.” Then the author couldn’t include touching without also including rubbing and squeezing. If it’s done with a table, then they can include anything they like.
As far as typing out the code for the table, I guess what I was envisioning was that the default state of the table would have all those actions turned off, and you could include a line of the table to turn one back on. Writing out one line of a table could well be less hassle than typing out all the Understand grammar for a given verb/action, where you have to make sure you catch all the synonyms.
Daniel’s block of code idea does seem like it might wind up being easier for the authors.
…what about this? If it’s not critical to remove the verbs/actions completely, maybe you could define a kind of action for the actions you want to stop with a message saying not to bother, and another kind of action for the actions you want to let through after all? Like this:
[code]Cavern is a room.
Rubbing is unimportant action. Touching is unimportant action. Squeezing is unimportant action.
Rubbing is actually important action.
Before unimportant action when the current action is not actually important action: say “That’s not something you need to do in this game.” instead.
A lamp is in the cavern.
Instead of rubbing the lamp:
say “A genie appears and whisks you away from this horrible place!”;
end the story finally.
test me with “touch lamp/squeeze lamp/squeeze me/rub me/rub lamp”.[/code]
Then the extension could define all the stuff you usually want to discard as unimportant action, and the author could define anything they want to put back in as actually important action. (You’d have to pick an action–maybe looking–that would be defined as actually important action in the extension, because that’s the only way to get Inform to understand a kind of action. I have a Uservoice suggestion to change that if anyone’s interested!)
*I guess we’re not programming a ShuffleComp entry based on my favorite Journey song.