Auto-translated
The task of capturing this city should have been completed, and the main hero would have received the "Berserk" spell. I checked again, but it still doesn't work.
Added 17 minutes later
I replaced the name with "ditana" again; otherwise, when searching for a town by name within the map, every city would be displayed.
Added 21 hours and 26 minutes later
I managed to make the script execute in the following way:
function necropolis()
while 1 do
if GetObjectOwner("ditana")==PLAYER_1 then
SetObjectiveState("zadanie4", OBJECTIVE_COMPLETED, 1);
TeachHeroSpell("Brem", 18);
* * break
* end;
sleep (2);
end;
end;
if GetDate(DAY)==5 then
MessageBox(path.."day5.txt");
SetObjectiveState("zadanie4", OBJECTIVE_ACTIVE, 1);
startThread(necropolis)
end;
However, I still don't understand why it wouldn't execute normally.
Added 17 minutes later
I replaced the name with "ditana" again; otherwise, when searching for a town by name within the map, every city would be displayed.
Added 21 hours and 26 minutes later
I managed to make the script execute in the following way:
function necropolis()
while 1 do
if GetObjectOwner("ditana")==PLAYER_1 then
SetObjectiveState("zadanie4", OBJECTIVE_COMPLETED, 1);
TeachHeroSpell("Brem", 18);
* * break
* end;
sleep (2);
end;
end;
if GetDate(DAY)==5 then
MessageBox(path.."day5.txt");
SetObjectiveState("zadanie4", OBJECTIVE_ACTIVE, 1);
startThread(necropolis)
end;
However, I still don't understand why it wouldn't execute normally.
Мои карты для:
Heroes 5: Битвы кланов - Борьба за ресурсы - Обитель друидов - Падший рыцарь - Побег
Heroes 4: Немеджихра - Приключения ифрита
Heroes 3: Крюлод и Таталия
Heroes 2: Вторжение - Эктор - Сэр Мильтен - Чёртовы Топи
Мой ютуб канал: Navkratis
Heroes 5: Битвы кланов - Борьба за ресурсы - Обитель друидов - Падший рыцарь - Побег
Heroes 4: Немеджихра - Приключения ифрита
Heroes 3: Крюлод и Таталия
Heroes 2: Вторжение - Эктор - Сэр Мильтен - Чёртовы Топи
Мой ютуб канал: Navkratis