I’ve been combing the verbs sections of the guides about this but can’t find the answer:
I’d like to create verbs which have a direct object and an implied indirect object. This already happens with some in-built verbs:
[code]> unlock door
(with the brass key) <---- this inference that they want to use the only key they’re holding
The brass key fits and unlocks the door.[/code]
In my case I have a verb to “ScrapeWith” as in “scrape hinges with screwdriver”. If the player types “scrape hinges”, and has no tool, I want to throw the response “You have nothing to scrape them with”, and if they do, execute as for “scrape hinges with tool” or similar.
I could define this both as “Scrape” and “ScrapeWith” and then have dobjFor sections for both verbs, with check() for the tool to basically fake a “With”, but this seems like the wrong approach. The verb always requires a direct AND indirect object. I was looking for a way to basically say, “if no indirect object is specified, but one (and only one) compatible indirect object is available to the player, infer that they mean to use it”.