Auto-translated
yes - accordingly, it gives an error that there is no hero '1' on the map. And I also tried setting the third parameter to true - I thought maybe there was an error in the manual. The effect is achieved in principle even without it, but not for a specific hero.
This command only has two parameters, and true = 1, false = 0 always, that's why it tells you that there are no heroes with the name 1 :)
Added 1 minute ago
I've already tried that. :)
It worked for me; I did something similar in my map to track the number of visits to a magic source.
Карты для Heroes V: Повелители орды:
Multiplayer: Господство, Извечное противостояние, Война за Магию, Торговая империя, Анатомия войны, Эксперимент
SingleScenario: Последний Рубеж, Трон, Элиралис, Вернуться домой!, Лабиринты разума
Campaign: Колонизация
Multiplayer: Господство, Извечное противостояние, Война за Магию, Торговая империя, Анатомия войны, Эксперимент
SingleScenario: Последний Рубеж, Трон, Элиралис, Вернуться домой!, Лабиринты разума
Campaign: Колонизация