Skip to content

Illusion of victory.

User Avatar
#14
Auto-translated
Next. If a Hero is inside a town, their scripted name disappears from the map database (apparently), so it is impossible to interact with them at that moment. However, I'm not sure if this is the exact reason. After all, the task that checks "Is Nimue alive" does not cause an error, which means the game can find the hero. But it cannot give him troops. The solution here is simple - don't hide the hero inside the town, but leave him at the entrance - you will still be able to transfer the purchased troops to him.
The hero disappears as an object from the map. For some functions, this is fatal, but not for those that contain the word "Hero" in their name. The error is most likely due to the effects and functions that accompany them. There is a function that checks whether the hero is in a town: GetHeroTown(hero). If not, it returns nil; otherwise, it returns the name of the town.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4