Connection ErrorBad RequestThis page went staleSession ExpiredSign in requiredForbiddenNot FoundToo Many RequestsServer ErrorBad GatewayService UnavailableGateway TimeoutHTTP Version Not Supported
Session Expired
Your session has expired. Please log in to continue.
Sign in required
You need an account to do that. Sign in or create one — it only takes a minute.
This page went stale
Your security token was rejected, usually because the page sat open too long or you signed in elsewhere. Nothing was saved. Reload the page and try again.
Request Failed
We encountered an issue while processing your request.
Please check your internet connection and try again.
Error Details:
Share Link
The script is trying to define a function, even though it has already been defined.
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.