Skip to content

Current questions and answers regarding the map editor.

User Avatar
#708
Auto-translated
Duncan
Winner, do you happen to know how to make a character neutral at first, and then, when my hero approaches, that neutral character joins my side? For example, in the "Choice" mission, you need to free Duncan. At first, he was a teal player, but when Frida approached him, he joined my side. Thank you for your answer, Winner!
You first make the hero an enemy hero. Then you disable him:
EnableHeroAI('--script name of the hero--', false);

And when you need to, you transfer the "rights" to the hero to another player:
SetObjectOwner('--script name of the hero--',PLAYER_1);
Tell me separately about the condition-trigger ;).
His Most Eminence
I need help. How do I make a hero go to an object? This function doesn't work:
MARKEL_ENEMY = "Pelt";
SetAIHeroAttractor("Lord", MARKEL_ENEMY, 2);
Ment in the "Scripts" topic wrote that Attractor works intermittently, if it works at all. He advised using MoveHero. But it didn't work for me either. Only MoveHeroRealTime works reliably.
Карты для Heroes of Might and Magic V
Цикл "Закадычные враги": "Особенное гостеприимство, "Супероружие", "Меж молотом и наковальней"
"Падение Шантири"

Кампания для "Кодекса Войны"
"Выбор Сагиттеля"