Skip to content
#2104
Auto-translated
Jack_of_shadows
Bravo1853, in the editor, within the Map Properties Tree, there's a section called MapScript – this is the main script for the map and it runs automatically when the map starts. If it's empty, you need to specify the path to the file or create a new one. Write all the code in this single file; the ones that are linked in the properties of monsters and other objects are not used in practice. Once you understand how the file works, it's best to edit it using Notepad or MapScriptsEditor, as many users experience crashes when accessing it through the editor.
I created a MapScript.lua file using MSE, added the script to it, and specified the file path. How do I now make a monster on the map be dead?