<div dir="ltr"><div><div><div><div><div><div><div>Taoki asked on IRC if we could allow NPCs to move from map to map.<br><br></div>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...<br><br></div>but after looking at the code for a bit, I am wondering if cross-map NPC definitions might actually be relatively easy.<br><br></div>Suppose that the NPCInst type had a map_of_origin id number in addition to the NPC definition id number.<br><br></div>Then the code that actually does NPC appearance and behavior like visnpc, or NPC walking and activation would need to be aware of it.<br><br></div>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.<br><br></div>Does this sound crazy or not-crazy?<br><br></div>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.<br></div>