Should this be written directly in the unit's function?
Posts from Current questions and answers regarding the map editor.
All scripts are written to the MapScript.lua file, or split into separate files as needed and connected using doFile(). All code written "without a wrapper" is executed when the map starts; everything inside functions is executed only when the function is called.
Thank you, I figured it out, it works ;)
Added after 17 hours 22 minutes
How does doFile work?
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога
Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
Have you tried using a brush size of 3 for the lower setting?
Is it risky to create maps with sizes of 256x256 and 320x320? Is it risky because these maps cannot be completed?
Many 320x320 maps cause the game to crash when launched. I don't know about 256x256, but they work, albeit with some lag. Also, the map editor often crashes when you try to open such maps. :(
Added after 2 hours 18 minutes
What should I do? When I adjust the lighting in GroundAmbientLights, the lighting on the map automatically changes. How can I "turn it off" and make it "turn on" only with a script?
Guys, I really need your help. I have a problem: I'm a newbie in the map editor, but I decided to try creating my own campaign. When testing the first mission, I noticed that the creatures that join the party, for some reason, don't say the message I wrote for them. What's the problem?
Did you write a script for that creature?