region_visit_cnt = 0;` increment it and check it after the line `region.visited = 1;`region_visit_cnt = region_visit_cnt + 1;
if(region_visit_cnt >= 5) then
SetObjectiveState(QUEST_NAME, OBJECTIVE_COMPLETED);
end
New here? I'm Roha — want a quick tour?
region_visit_cnt = 0;` increment it and check it after the line `region.visited = 1;`region_visit_cnt = region_visit_cnt + 1;
if(region_visit_cnt >= 5) then
SetObjectiveState(QUEST_NAME, OBJECTIVE_COMPLETED);
end