SetAIHeroAttractor("DungeonTown", "Oddrema", 2);
You specify the town, the hero, and the priority. 2 is the highest (meaning it will try to capture it regardless of the risk of dying).
It looks good, but it doesn't always work as expected.
Цикл кампаний "Дыхание Смерти" из трёшки в четвёртом исполнении
Учебная карта
Астралия
За Королеву!
Подземелья и Дьяволы
Отголоски войны
Освобождение