Please tell me what I am doing wrong.
Zehir dies, but the quest doesn't fail, and the game continues.
To have the check run throughout the game, you need to place the condition in a loop.
function CheckAlive()
while IsHeroAlive('Zehir') do
sleep(5)
end
SetObjectiveState('kill', OBJECTIVE_FAILED)
Loose()
end
startThread(CheckAlive)
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога
Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4