Skip to content

Current questions and answers regarding the map editor.

User Avatar
#4698
Auto-translated
Help, I wrote a script, and it seems to be correct:
SetRegionBlocked("Block1", true, 2);
function Blockers()
PlayObjectAnimation("BlockCap", "happy", ONESHOT);
sleep(10);
PlayObjectAnimation("Blockus1", "attack00", ONESHOT);
sleep(5);
RazeBuilding("Blocker1");
PlayObjectAnimation("Blockus2", "attack00", ONESHOT);
sleep(5);
RazeBuilding("Blocker2");
sleep(5);
RemoveObject("BlockCap");
RemoveObject("Blockus1");
RemoveObject("Blockus2");
sleep(3);
SetObjectPosition("Maeve", 30, 34, -1);
Trigger(REGION_ENTER_AND_STOP_TRIGGER, "Blocking", nil);
end
Trigger(REGION_ENTER_AND_STOP_TRIGGER, "Blocking", "Blockers");
function EndRain()
SetAmbientLight(1, "Lights\_(AmbientLight)\AdvMap\C1M1xdb#xpointer(AmbientLight)", true, 10);
end
Trigger(NEW_DAY_TRIGGER, 2);
But the console says I have an error:
(Script) ERROR: expected;
last token read `2' at line 1 in string "parse"
I don't understand what the error is, but it seems to be correct :mad:
It's like it was expecting a semicolon; the last character read was in that line.

Added 2 minutes ago
Godric's Hollow
Well, yeah.
I either needed to use a script to open the map, turn off the obelisk afterward, or not turn it off at all