Skip to content

Current questions and answers regarding the map editor.

User Avatar
#1132
Auto-translated
KioM
where did you get this from? I don't have these functions in the official manuals.
This is from a manual by ValexAV. And crystals are just an example.

Ah, okay, it worked now.
function regF()
sulfur=GetPlayerResource(1, 4);
if sulfur>=3 then
SetPlayerResource(1, 4, sulfur-10);
end;
end;
Trigger(REGION_ENTER_AND_STOP_TRIGGER, "reg", "regF");

Added 57 minutes later
In the World of Enroth map, there was an object - a UFO. How do I place it on the map?