Thank you. I just had an idea:
ChangeHeroStats - add movement points
MoveHeroRealTime - the hero moves towards the main hero
ChangeHeroStats - completely remove movement points.
This way, when the "end turn" button is pressed, the hero will stay in place.
For this, it's not necessary to know the exact number of movement points; you can use GetHeroStat and variables:
start = GetHeroStat("Hero3", 7);
ChangeHeroStat("Hero3", 7, start+3500);
MoveHeroRealTime(...); -- (this function is not modal! I tried to make it modal once, and the game crashed :))
sleep(20);
startThread(end);
function end()
end = GetHeroStat("Hero3", 7);
ChangeHeroStat("Hero3", 7, -end);
end;and no extra numbers ;)
Multiplayer: Господство, Извечное противостояние, Война за Магию, Торговая империя, Анатомия войны, Эксперимент
SingleScenario: Последний Рубеж, Трон, Элиралис, Вернуться домой!, Лабиринты разума
Campaign: Колонизация