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.
function mybuilding()
while 1 do
sleep(10)
if GetTownBuildingLevel("nNameoftown", idIDofbuilding)==4 then
SetObjectiveState("nObjectivename", OBJECTIVE_COMPLETED, PLAYER_1);
end;
end;
startThread("mybuilding") orfunction 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
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.
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)
_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
Discord-сервер "Герои 5: S.T.A.L.K.E.R"
Сервер по модификации "Герои 5: S.T.A.L.K.E.R"
_________________