Auto-translated
Martha, Reply => Advanced Mode => Attachments (visual button), this is how you can attach images.
Here is an excerpt from one of the guides:
First, create a new lua and xdb file for the script, which will contain the combat script, and
link it to the hero. This action is performed for all heroes whose specialization
works in combat.
To create a new xdb file, open the map and find Map Properties Tree => MapScript.
Click on this line, select the current content, and copy it to the clipboard (Ctrl+C).
Then, click New => Enter the name CombatScript => OK. You can, of course, simply re-enter Map
Properties Window => Script => Edit Script and continue editing the combat script
from there, but it often crashes, so I strongly recommend using the script editor. Save and close the map, open it in the script editor. In any folder, create a new lua file (File=>New *.lua) and save it, then close it.
Now, open the map in the editor again, MapScript => … => FileName => … => In the file explorer, go to
Editor/H5Mods/Map Name/Maps/SingleMissions/MapName/=> Select your lua file from here.
Or from wherever you put it. Save and close the editor and return to the script editor. So, the general preparations for creating the combat script are complete.
Now, in the main script of the map, write
SetHeroCombatScript('Hero',
'/Maps/SingleMissions/MapName/CombatScript.xdb#xpointer(/Script)').
This action attaches the script that will be executed each time the hero Hero
enters combat. Also, before creating combat scripts, I recommend that you familiarize yourself with
the combat script guide.
I think this is a fairly complete answer!
Here is an excerpt from one of the guides:
First, create a new lua and xdb file for the script, which will contain the combat script, and
link it to the hero. This action is performed for all heroes whose specialization
works in combat.
To create a new xdb file, open the map and find Map Properties Tree => MapScript.
Click on this line, select the current content, and copy it to the clipboard (Ctrl+C).
Then, click New => Enter the name CombatScript => OK. You can, of course, simply re-enter Map
Properties Window => Script => Edit Script and continue editing the combat script
from there, but it often crashes, so I strongly recommend using the script editor. Save and close the map, open it in the script editor. In any folder, create a new lua file (File=>New *.lua) and save it, then close it.
Now, open the map in the editor again, MapScript => … => FileName => … => In the file explorer, go to
Editor/H5Mods/Map Name/Maps/SingleMissions/MapName/=> Select your lua file from here.
Or from wherever you put it. Save and close the editor and return to the script editor. So, the general preparations for creating the combat script are complete.
Now, in the main script of the map, write
SetHeroCombatScript('Hero',
'/Maps/SingleMissions/MapName/CombatScript.xdb#xpointer(/Script)').
This action attaches the script that will be executed each time the hero Hero
enters combat. Also, before creating combat scripts, I recommend that you familiarize yourself with
the combat script guide.
I think this is a fairly complete answer!
С уважением, }{0TT@6bI4
_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
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"
_________________