[Ohrrpgce] Crazy or not crazy: NPCs on other maps

James Paige Bob at hamsterrepublic.com
Tue Jan 31 13:37:53 PST 2017


Taoki asked on IRC if we could allow NPCs to move from map to map.

At first I was thinking that no, that is impractical, and that it would be
better to make a separate pool of universal NPC definitions that could be
used on any map...

but after looking at the code for a bit, I am wondering if cross-map NPC
definitions might actually be relatively easy.

Suppose that the NPCInst type had a map_of_origin id number in addition to
the NPC definition id number.

Then the code that actually does NPC appearance and behavior like visnpc,
or NPC walking and activation would need to be aware of it.

All NPC definitions would have to be loaded, rather than just the NPC
definitions of the current map, but that would probably be practical too.

Does this sound crazy or not-crazy?

If this could work, then it could become possible to move through doors
while riding a vehicle, and the destination map would just load a dynamic
instance of the vehicle from its origin map.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.motherhamster.org/pipermail/ohrrpgce-motherhamster.org/attachments/20170131/2676eb5d/attachment.htm>


More information about the Ohrrpgce mailing list