but most likely the line
Trigger(REGION_ENTER_AND_STOP_TRIGGER, "way1", nil );
should be placed after the line
Trigger(REGION_ENTER_AND_STOP_TRIGGER, "way1", nil );
Added 7 minutes ago
Something started working...
Now the message I wanted is displayed, if prog is equal to one, the trigger didn't reset, everything is as intended, BUT for some reason, issuing the quest didn't work, the main trigger, where SetObjectiveState is... however, there is progress. Currently, the script looks like this:
function dopF()
prog = 1;
MessageBox(GetMapDataPath().."text10.txt");
Trigger(REGION_ENTER_AND_STOP_TRIGGER, "wayF", nil);
sleep(5);
SetObjectiveState('obj_dop', OBJECTIVE_ACTIVE);
SetObjectiveVisible('obj_dop', true, PLAYER_1);
Trigger(REGION_ENTER_AND_STOP_TRIGGER, "wayF", "dopF");
end;
function dop1()
if prog == 1 then
MessageBox(GetMapDataPath().."text11.txt");
elseif prog == 2 then
SetObjectiveState("obj_dop", OBJECTIVE_COMPLETED);
Trigger(REGION_ENTER_AND_STOP_TRIGGER, "way1", nil);
AddHeroCreatures("hero", 64, 30);
end;
end;
Trigger(REGION_ENTER_AND_STOP_TRIGGER, "way1", "dop1");
function fenixF()
Trigger(OBJECT_TOUCH_TRIGGER, "fenix", nil);
prog = prog + 1;
end;
Trigger(OBJECT_TOUCH_TRIGGER, "fenix", "fenixF");