I need help with this script snippet... it doesn't work :( The console is silent, both at the beginning of the map and during the walkthrough... it just doesn't work. No reaction at all... here's the script:
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;
Trigger(REGION_ENTER_AND_STOP_TRIGGER, "way1", "dop1");
function fenixF()
prog = prog + 1
Trigger(OBJECT_TOUCH_TRIGGER, "fenix", nil);
Trigger(OBJECT_TOUCH_TRIGGER, "fenix", "fenixF");
end;
end;
Auto-translated