Subcommands

A new extension is available at Github. This adds a “subcommand” property to objects, exposing the snippet which matched it. So if I >TAKE WAND, then the subcommand of the rusty iron rod is “wand”; if I >TAKE RUSTY IRON ROD, then it’s “rusty iron rod”.

This has been tested with 6L38, and should be portable to other ones by re-copy-pasting the I6 sections. The parts I modified are marked “===NEW===” to be easily moved around.

woot

Very cool.

Ooooh, this could be very useful!

The attached file seems to work fine on 6M62.
subcommands.i7x (15.7 KB)

I’ll just post a link here, in case anyone is subscribing to this topic.