Posts from How do I specify in the quest which artifact needs to be obtained?
Auto-translated
function artifact_objective()
while 1 do
if HasArtefact("Script name of the hero") then
SetObjectiveState("Script name of the quest", OBJECTIVE_COMPLETED);
break
end;
sleep(2)
end;
end;
startThread(artifact_objective)It's easier to write this in the script than to mess around with setting up quests in the editor.
_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
Discord-сервер "Герои 5: S.T.A.L.K.E.R"
Сервер по модификации "Герои 5: S.T.A.L.K.E.R"
_________________
Set KIND_MANUAL, and write the following in the script:It's easier to write this in the script than to mess around with setting up quests in the editor.function artifact for OSH_objective()
while 1 do
* if HasArtefact("Script name of the hero") then
* * SetObjectiveState("Script name of the quest", OBJECTIVE_COMPLETED);
* * break
* end;
sleep(2)
end;
end;
startThread(artifact_objective)
Thank you very much. And what should be specified in the task itself: the shared artifact or its ID?
_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
Discord-сервер "Герои 5: S.T.A.L.K.E.R"
Сервер по модификации "Герои 5: S.T.A.L.K.E.R"
_________________
UPDATE: Thanks to everyone, I figured it out.