ok ok, another CRAZY idea... would it be possible to have a unit slowly lose health unless it is within a radius of another unit? (the idea behind this is that the zombies have to stay near the necromancer or else they slowly rot away)
Physch is correct. Let me explain in more detail:
First of all, the unit must be a pet. There *was* an undead tag in development for emanations and effects, but it was lost when Daniel died. Anyway, the zombie (or any unit, really) needs to have negative HP regeneration. This way it will normally lose health when outside of the range of the master (in this case, the necromancer). Now the master has to have an emanation that only affects pets (there's a tag for that, please see the wiki documentation for a full list of tags. In this case, you want the pet only one). This effect boosts its regen so that it is a positive effect instead of negative (or zero, if wished).
For example: zombie has -15 hp regen. If it gets out of the necromancer's range, it will lose 15 hp a second. Now the necromancer has a pet only emanation that gives a static boost of 17 to hp regen. Now the zombie, provided that it is under this emanation (the range and duration of the emanation can be set. For this, you'd want probably a 1 second duration and a moderate radius, probably about
, will have a regen of +2. If they leave that radius (the distance they can go from the necromancer) they will have a -15 regen and lose hp rapidly.
Relatedly, do you realize this concept is taken LITERALLY word-for-word from the Four path Magitech (a flagship GAE mod that should be revived soon, once the AI can use subfactions)?