Item targeting

Date: 3/7/2014 at 14:34
From: Razmael, the Synthesist
To : Everyone
Subj: Item targeting

I've added some new functionality to item interaction/targeting that should hopefully make it easier and less cumbersome for newbies to deal with multiple items in a room. Some of you may be familiar with this form of targeting, as it's often used in other MUD codebases.

You can now target something by its position in the room or inventory by supplying the position number either at the beginning of the target's name, followed by a . or # symbol, or at the end of the target's name, preceded by a . or # symbol.

For example, if I look at INFO HERE and see the following:

"vial21697" an oak vial
"vial21714" a ruby vial
"vial21716" a pinewood vial
"vial21717" an onyx vial
"vial21725" a moonstone vial
"vial21756" an amethyst

If I wanted to target "vial21716 (the pinewood vial)", I could use any of the following: "3.vial", "3#vial", "vial.3", "vial#3". Since the pinewood vial is the third vial in the room, that'll be the one that gets targeted.

This form of targeting should work with almost any commands you use to interact with items/NPCs. If you encounter something that doesn't, please let us know via way of the BUG command.

Penned by my hand on the 24th of Khepary, in the year 414 MA.