Skip to content

Current questions and answers regarding the map editor.

User Avatar
#3653
Auto-translated
function defeatFenix(hero) if GetObjectiveState('fenix') == OBJECTIVE_UNKNOWN then SetObjectiveState('fenix', OBJECTIVE_ACTIVE) startThread(checkFenix) elseif GetObjectiveState('fenix') == OBJECTIVE_COMPLETED then Trigger(4, 'seer', nil) AddHeroCreatures(hero, CREATURE_ANGEL, 45) end end function checkFenix() while 1 do if not IsObjectExists('Phoenix1') then SetObjectiveState('fenix', OBJECTIVE_COMPLETED) break end sleep(10) end end SetObjectEnabled('seer', nil) Trigger(4, 'seer', 'defeatFenix') ``` To make this work, move the quest to the main list, name it fenix, and also set IsInitialyActive and IsInitialyVisible = false, Kind = MANUAL, and name the hut itself seer.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

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