# Is it possible to create a horde that can chase the player to adjacent overmaps?

**URL:** <https://discourse.cataclysmdda.org/t/is-it-possible-to-create-a-horde-that-can-chase-the-player-to-adjacent-overmaps/24232>\
**Category:** The Drawing Board\
**Created:** [July 23, 2020, 1:21pm UTC](https://discourse.cataclysmdda.org/t/is-it-possible-to-create-a-horde-that-can-chase-the-player-to-adjacent-overmaps/24232 "2020-07-23T13:21:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ericlimer](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/ericlimer/32/6291_2.png) [@ericlimer](https://discourse.cataclysmdda.org/u/ericlimer)\
**Post date:** [July 23, 2020, 1:21pm UTC](https://discourse.cataclysmdda.org/t/is-it-possible-to-create-a-horde-that-can-chase-the-player-to-adjacent-overmaps/24232/1 "2020-07-23T13:21:10Z")

</div>

Hello! I’m working on a mod/feature where a player with the trait “hunted” is pursued relentlessly by a special “nemesis” horde that follows the player’s exact location using the existing horde movement mechanics. Is this even possible with the coordinate system as implemented? I have a suspicion there is no coordinate system global enough to make this work at scale.

I also see a “// TODO: Handle moving to adjacent overmaps.” in the move\_hordes() overmap function which, uh, gives me pause

I got it working in a narrow set of circumstances by hacking the sound signaling mechanics into what is essentially an extremely loud dog whistle or a specific kind of horde, but now I’m trying to improve it and grok the coordinate system on the whole, and I’m afraid I’m that the player will be able to pass some sort of boundary that it would be impossible for a horde to cleanly aggro across. Right now, I’ve run into the issue that if the horde spawns too far from the player, they are perma aggro’d to random space closer to them instead, i think because the player and horde are in different coordinate maps?

Trying to figure this out before I sink too much more time into this implementation bc I do have an alternate idea where I fake it by tracking the player’s distance covered day to day and spawn the nemesis if that number drops too low.

---

<div class="post-metadata">

**Author:** ![Zhilkin](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/zhilkin/32/3749_2.png) [@Zhilkin](https://discourse.cataclysmdda.org/u/Zhilkin)\
**Post date:** [July 23, 2020, 3:41pm UTC](https://discourse.cataclysmdda.org/t/is-it-possible-to-create-a-horde-that-can-chase-the-player-to-adjacent-overmaps/24232/2 "2020-07-23T15:41:12Z")

</div>

You can add anything, but you need to code it by yourself. It is not something that is in the game yet.

---

<div class="post-metadata">

**Author:** ![ericlimer](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/ericlimer/32/6291_2.png) [@ericlimer](https://discourse.cataclysmdda.org/u/ericlimer)\
**Post date:** [July 23, 2020, 4:08pm UTC](https://discourse.cataclysmdda.org/t/is-it-possible-to-create-a-horde-that-can-chase-the-player-to-adjacent-overmaps/24232/3 "2020-07-23T16:08:19Z")

</div>

I understand that, I’m just worried my in-progress implementation is going to hit a brick wall because there is not an established coordinate system that can bridge overmaps, which is beyond my abilities to create.

Just trying to canvas for advice before sinking additional time into a project that could be a dead end!

---

<div class="post-metadata">

**Author:** ![Zhilkin](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/zhilkin/32/3749_2.png) [@Zhilkin](https://discourse.cataclysmdda.org/u/Zhilkin)\
**Post date:** [July 23, 2020, 4:27pm UTC](https://discourse.cataclysmdda.org/t/is-it-possible-to-create-a-horde-that-can-chase-the-player-to-adjacent-overmaps/24232/4 "2020-07-23T16:27:47Z")

</div>

There is a fresh new doc which can probably address your concerns - [https://github.com/CleverRaven/Cataclysm-DDA/blob/ec349c9895bd8fc81c2ef8e74df3af9876f6d1bc/doc/POINTS\_COORDINATES.md](https://github.com/CleverRaven/Cataclysm-DDA/blob/ec349c9895bd8fc81c2ef8e74df3af9876f6d1bc/doc/POINTS_COORDINATES.md)
