Auto-translated
That's strange, I did exactly as I described – the quest is completed when 4 enemy heroes are defeated.
Here, GetPlayerState retrieves the current state of the player,
and '~=1' means 'not equal to,' and any number can be used; for more details, see the manual:
Returns the player's participation/victory/defeat status: 0 – the player is not participating in the game,
1 – the player is still playing,
2 – the player has lost,
3 – neither of the above (possibly won, but it cannot be said for certain).
Карты для Heroes of Might and Magic V
Цикл "Закадычные враги": "Особенное гостеприимство, "Супероружие", "Меж молотом и наковальней"
"Падение Шантири"
Кампания для "Кодекса Войны"
"Выбор Сагиттеля"
Цикл "Закадычные враги": "Особенное гостеприимство, "Супероружие", "Меж молотом и наковальней"
"Падение Шантири"
Кампания для "Кодекса Войны"
"Выбор Сагиттеля"