Posts from When I click Edit Script, the program closes.
Save and close the script editor. Open the map editor and your map again, go to Map Properties Tree => MapScript => Click on the line => 3 dots => In the properties window that appears, find the first property line on the top right and enter the path to the script file: /Maps/SingleMissions/MapName/MainScript.lua. If the line does not disappear after pressing Enter, then you have done everything correctly. Save, close the editor. Open the script editor, your map, double-click on the MainScript.lua file to open it, and then enter your script.
_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
Discord-сервер "Герои 5: S.T.A.L.K.E.R"
Сервер по модификации "Герои 5: S.T.A.L.K.E.R"
_________________
This thing doesn't work for me either, and it crashes.
But if you close the editor, open the map with an archiver, and find Maps/Multiplayer_or_whatever/scripts. (in the editor, you need to have a map script created beforehand, an empty one works fine)
http://c2n.me/4d2H7mC, you'll get something like this.
Ideally, you open it in Sublime Text or Notepad++, and you also get syntax highlighting. And you don't need to download anything, except Notepad++, which is free and useful for many things besides Heroes. At least to open *.txt and *.xml files and have a normal view, instead of the eye-straining Windows Notepad, even if your text file has nothing to do with Heroes.
By the way, after editing the script and saving, the archiver will ask if you want to update the file in the archive (yes/no), so you can edit it on the fly. But with the map editor closed.
Look in Maps/Multiplayer_or_whatever/scripts. (You need to create a map script in the editor beforehand, an empty one is fine)
http://c2n.me/4d2H7mC, something like this will appear.
_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
Discord-сервер "Герои 5: S.T.A.L.K.E.R"
Сервер по модификации "Герои 5: S.T.A.L.K.E.R"
_________________
you can write in mapscript and everything will work.
I guess I provided a good example, because many people don't even follow tabulations/indentations (although there are some here too).
You still need to create an empty mapscript in the editor.
_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
Discord-сервер "Герои 5: S.T.A.L.K.E.R"
Сервер по модификации "Герои 5: S.T.A.L.K.E.R"
_________________
_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
Discord-сервер "Герои 5: S.T.A.L.K.E.R"
Сервер по модификации "Герои 5: S.T.A.L.K.E.R"
_________________
_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
Discord-сервер "Герои 5: S.T.A.L.K.E.R"
Сервер по модификации "Герои 5: S.T.A.L.K.E.R"
_________________
When editing text in a file, you also need to close the game, but at least you don't have to open the editor 100 times, right?
_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
Discord-сервер "Герои 5: S.T.A.L.K.E.R"
Сервер по модификации "Герои 5: S.T.A.L.K.E.R"
_________________
_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
Discord-сервер "Герои 5: S.T.A.L.K.E.R"
Сервер по модификации "Герои 5: S.T.A.L.K.E.R"
_________________