Skip to content

Posts from The script is trying to define a function, even though it has already been defined.

No ratings yet — be the first to rate!
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.
In reply to }{0TT@6bI4
Auto-translated
}{0TT@6bI4
Could you please provide the error message?
Here it is:
Function D not defined, line 5
Function Acc not defined, line 9
Function Den not defined, line 13
Function OrcsF not defined, line 19
Function Key not defined, line 25
Function Vic not defined, line 30

Statistics

Welcome our newest member: Emil