Skip to content

Current questions and answers regarding the map editor.

User Avatar
#2564
Auto-translated
Agrael_Inferno_Demon, use Trigger(REGION_ENTER_AND
_STOP_TRIGGER,"region name","function name"); and MesssageBox("path to the text file");
In general, it should look like this:
function function name()
MessageBox("/Maps/SingleMissions/your map name/text name");
end;
Trigger(REGION_ENTER_AND_STOP_TRIGGER,"region name","function name");
And also:
Do not start function names with numbers.
For convenience, when using MessageBox, you can replace the entire path to the file with GetMapDataPath().."file name" when specifying the path. This is convenient because if you rename the map, the path will become invalid.
Place the text file with the message in the map. You can open the map using a zip archiver. Also, the file should be in Unicode format and in .txt format.