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 stated 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 good, 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)
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)