[MUD-Dev] Dealing with cloned NPCs

Kristen Koster kkoster at austin.rr.com
Thu Jun 19 17:36:17 CEST 2003

On Friday, May 30, 2003, at 09:23  AM, Thomas Sullivan wrote:

> How do you coders deal with NPCs?

> Sounds like an easy one, and it may be that I'm overlooking the
> simple facts.. But if I'm in a room and the "look" results are as
> follows:

>   You stand in the desert, with a wal-mart to your south.

>   People here: Jum Jum Joey, a desert rat, a desert rat, an orc
>   medic.

> I want the user to be able to attack "a desert rat" and be able to
> tell his friends to attack *the same* rat.. (grouping, etc..)

> How can I deal with this?

HI Tom,

The way I've always seen (mostly diku/merc background here) of
dealing with multiple instances of the "same" NPC or object is to
have the parser recognize a syntax like "kill 2.rat" so that
everyone can attack the second NPC with the keyword "rat" in the
room or drink from only the second water tap in the room. This works
for not just cloned NPCs and objects but also ones that share

kaige at legendmud
MUD-Dev mailing list
MUD-Dev at kanga.nu

More information about the mud-dev-archive mailing list