Auto-translated
Good afternoon, please tell me how I can implement the following idea using a script: There are 2 secondary quests (SO-1), to capture a neutral city and it is initially included in the tasks, and (SO-2), to control the surrounding mines, which is a hidden quest. The goal is to make quest SO-2 visible immediately after capturing the neutral city. I tried to do something similar, but it turned out to be not very clear, and is it possible to get a tutorial on this problem?
function detencion()
if GetObjectOwner("Dwarftown")==PLAYER_1 then
SetObjectiveVisible("SO-2", bVisible, "nPlayerID = 1")
Trigger(OBJECT_CAPTURE_TRIGGER,"Dwarftown1", "detencion")
end
end
Trigger(OBJECT_CAPTURE_TRIGGER, "Dwarftown1", nil)
Because the second parameter of the SetObjectiveVisible function is nil or not nil (false or true), and not the variable bVisible. And if you are using Novik's Manual, then look at the lowercase letters before the parameters; 'b' means boolean.
To make it visible, set the second parameter to true (not nil).
С уважением, }{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"
_________________