Skip to content

Current questions and answers regarding the map editor.

User Avatar
#5096
Auto-translated
Iriri


Added 12 hours 28 minutes ago
There are more and more questions...
Please tell me how to correctly set the parameters for the OBJECTIVE_KIND_BUILD_BUILDING_IN_TOWN task, which requires building a capitol in a town. If I set the town name in Parameter [0], the task is completed immediately when the map starts. If I add anything else, it stops being related to that town. I've already racked my brains over it.
Write something like this in the script:
function mybuilding()
while 1 do
sleep(10)
if GetTownBuildingLevel("nNameoftown", idIDofbuilding)==4 then
SetObjectiveState("nObjectivename", OBJECTIVE_COMPLETED, PLAYER_1);
end;
end;

startThread("mybuilding")
or
function newday()
if GetTownBuildingLevel("nNameoftown", idIDofbuilding)==4 then
SetObjectiveState("nObjectivename", OBJECTIVE_COMPLETED, PLAYER_1);
end;
end;
Trigger(NEW_DAY_TRIGGER, "newday")
This can only be done with scripts (most likely), since the capitol does not have its own ID. Before writing a script, try entering Town Hall Level 4 (possibly Level 3, I don't know all the IDs by heart) in the Parameters tab. If that doesn't help, enter TOWN_BUILDING_TOWN_HALL or TOWN_BUILDING_TOWN_HALL_LEVEL_4. If that doesn't help either, then use scripts.

Added 3 minutes ago
If you are going to use scripts, set OBJECTIVE_KIND_MANUAL

Added 14 minutes ago
Iriri
Thank you. It seems to be working)
Then another question. How to correctly change the hero's model? That is, let's say I want a swordsman to run around instead of a Knight hero, and he should be recolored. I found and recolored the model, but I need only the hero to be recolored, and not all swordsmen.
First, select the hero's parameters (AdvMapHeroShared) and click the three dots. A window will appear, and it will have many tabs. We need Model, AnimSet, and all tabs containing the word ...Character... In all these tabs, select the parameters corresponding to the swordsman; it will not be difficult to find them. For all the mentioned parameters, select the swordsman's parameters from the (AdvMapMonsterShared) tab, which are .../Haven/Swordsman/ or .../Rampart/Swordsman/. If you really want a recolored swordsman instead of a regular hero, I will explain in detail how to do this. You will have to copy files, and a lot of them, and also create Texture files in a new way, sending the recolored textures there. Therefore, I recommend being content with a regular swordsman.
By the way, if you suddenly have a choice, choose either a simple file or a file with the LOD suffix, choose the simple one. You will understand what I mean.

Added 2 minutes ago
If it helped, click something in the lower right corner of my answer next to the happy eagle)
С уважением, }{0TT@6bI4
_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
Discord-сервер "Герои 5: S.T.A.L.K.E.R"
Сервер по модификации "Герои 5: S.T.A.L.K.E.R"
_________________