Skip to content
#3700
Auto-translated
Hottabych, that's exactly what I did. But since I already have a lot of garrisons, and for each one, I have to create three triggers (and in some cases, even from both sides), I'm afraid my map will crash due to the sheer number of triggers.

So, here's a question for everyone.
Is it possible to link a condition, say, for displaying text, not to a region, object, or battle, but simply to the completion of SetObjectiveProgress, or to picking up an artifact, or to both?
I've been trying for about 12 hours, but nothing works.
No matter which trigger I try to attach to this:

function Laszlo_goodbye_F(heroname)
if GetObjectiveProgress ("Quest_Zubec", 1) == 3 then
sleep(2);
MessageBox ("/Maps/SingleMissions/L1/Parol_Zubec1.txt");
end;
end;

- the game just doesn't recognize it.

I tried:

if GetObjectiveState("Quest_Zubec", 1) == 2 and GetObjectiveProgress ("Quest_Zubec", 1) == 3 then
- it doesn't recognize it.

I tried giving an artifact - it still doesn't recognize it.

I tried using OBJECTIVE_STATE_CHANGE_TRIGGER - it doesn't recognize it, although maybe I'm writing it incorrectly.

What should I do about this? Will I have to create another region for REGION_ENTER_AND_STOP_TRIGGER and somehow force the main hero into it?