Skip to content

Current questions and answers regarding the map editor.

User Avatar
#5511
Auto-translated
Alinksolo
Here is
Attachment 66218
I advise you to write the task condition manually. The task type is OBJECTIVE_KIND_MANUAL.
function Brem_Defeat(hero)
if hero=="Brem" then
SetObjectiveState("task name", OBJECTIVE_COMPLETED)
Trigger(PLAYER_REMOVE_HERO_TRIGGER, player number, nil)
print("123")
end
end

Trigger(PLAYER_REMOVE_HERO_TRIGGER, player number, "Brem_Defeat")

Again, there may be errors here