function PrimaryF () while 1 do sleep(1) if GetHeroCreatures("Mihael", 9) < 1 then SetObjectiveState("Primary",OBJECTIVE_FAILED); break; end; end; end; startThread(PrimaryF);