I created a function, but it doesn't seem to be working. What's the error?
function Dialog2(hero)
if GetObjectOwner(hero) == 2 then
StartAdvMapDialog(1);
Trigger(REGION_ENTER_AND_STOP_TRIGGER, "DialogeNA2", nil)
end;
end;
Trigger(REGION_ENTER_AND_STOP_TRIGGER, "DialogeNA2", "Dialog2");
--