Skip to content
User Avatar
#3289
Auto-translated
The code is as follows:

function artifact_objective()
while 1 do
* if HasArtefact("Brem", 13) then
* * SetObjectiveState("dopzadanie1", OBJECTIVE_COMPLETED);
* * break
* end;
sleep (2);
end;
end;

path=GetMapDataPath();
MessageBox(path.."message.txt");
sleep(5);
MessageBox(path.."day1-2.txt");

function newday()
if GetDate(DAY)==2 then
MessageBox(path.."day2.txt");
sleep(5);
MessageBox(path.."day2-2.txt");
end

if GetDate(DAY)==3 then
MessageBox(path.."day3.txt");
end

if GetDate(DAY)==4 then
MessageBox(path.."day4.txt");
end

if GetDate(DAY)==5 then
MessageBox(path.."day5.txt");
SetObjectiveState("zadanie4", OBJECTIVE_ACTIVE, 1);
if GetObjectOwner("ditana")==PLAYER_1 then
SetObjectiveState("zadanie4", OBJECTIVE_COMPLETED, 1);
TeachHeroSpell("Brem", 18);
end;
end

if GetDate(DAY)==6 then
MessageBox(path.."day6.txt");
SetObjectiveState("dopzadanie1", OBJECTIVE_ACTIVE, 1);
startThread(artifact_objective)
end;
end

if GetDate(DAY)==7 then
MessageBox(path.."day7.txt");
end;
Trigger(NEW_DAY_TRIGGER, "newday");

There is another persistent problem with the town that has the quest name "ditana": the quest to capture it appears, but nothing happens when the quest is completed. At the same time, I searched for it by name in the map itself, and the game finds such an object.
Мои карты для:
Heroes 5: Битвы кланов - Борьба за ресурсы - Обитель друидов - Падший рыцарь - Побег
Heroes 4: Немеджихра - Приключения ифрита
Heroes 3: Крюлод и Таталия
Heroes 2: Вторжение - Эктор - Сэр Мильтен - Чёртовы Топи
Мой ютуб канал: Navkratis