Skip to content

Current questions and answers regarding the map editor.

#498
Auto-translated
Thanks for the help, I'll try to find it there. By the way, can you tell me why this script isn't working for me? It seems simple, but only the first trigger works.
function gF ()
Trigger(REGION_ENTER_AND_STOP_TRIGGER, "g", nil);
MessageBox("/Maps/SingleMissions/Map_01/gF.txt");
end;

Trigger(REGION_ENTER_AND_STOP_TRIGGER, "g", "gF");

function goF ()
Trigger(REGION_ENTER_AND_STOP_TRIGGER, "go", nil);
MessageBox("/Maps/SingleMissions/Map_01/goF.txt");
SetObjectiveState("quest", OBJECTIVE_ACTIVE);
end;

Trigger(REGION_ENTER_AND_STOP_TRIGGER, "go", "goF");

function skelF ()
Trigger(OBJECT_TOUCH_TRIGGER, "skel", nil);
RemoveObject("goD");
end;

Trigger(OBJECT_TOUCH_TRIGGER, "skel", "skelF");

Added 6 minutes ago
to be more precise, the first two triggers work, but the second one doesn't. The point is that when I approach the monster (skel) and interact with it (battle), the object (goD) is removed from the map during the interaction

Statistics

Welcome our newest member: artem

Users Online 1 users 1584 guests