Auto-translated
Hello, I have a small problem here.
I was writing a script for my map, but for some reason, it says that the function is not defined, and it points to the line where it is actually defined.
Here is the script:
SetRegionBlocked ("OreMine", true);
EnableHeroAI ("Hero8", false);
MessageBox ("Maps/SingleMissions/UnderCrossFire/description.txt");
function D ()
QuestionBox ("Maps/SingleMissions/UnderCrossFire/Dwarves.txt", "Acc", "Den");
end;
function Acc ()
CreateArtifact ("idk", 82, 75, 42, 0);
end;
function Den ()
SetRegionBlocked ("oreMine", false);
end;
Trigger(REGION_ENTER_AND_STOP_TRIGGER, "MineSighting", "D");
function OrcsF ()
MessageBox ("Maps\SingleMissions\UnderCrossFire\Orcs.txt");
end;
Trigger(REGION_ENTER_AND_STOP_TRIGGER, "Orcs", "OrcsF");
function Key ()
MessageBox ("Maps\SingleMissions\UnderCrossFire\Key.txt");
GiveBorderguardKey(3, 5);
end;
function Vic ()
MessageBox ("Maps\SingleMissions\UnderCrossFire\Victory.txt");
Win();
end;
Trigger(REGION_ENTER_AND_STOP_TRIGGER, "Victory", "Vic");
I would be very grateful if someone could explain what is wrong.