I need your help again, oh wise ones in the intricacies of the editor:smile41:)
Now, let's get down to business. Once again, I'm having trouble with the scripts, and there are also some misunderstandings in the quests. Specifically, I created a task where, like in all campaigns, the hero must survive:
Name Primary
Kind HERO_MUST_SURVIVE
Parameters Mihael
Along with the Hero, the monk in his army must not die. Therefore, I attached a script that a kind person suggested to me:
function PrimaryF
while 1 do
if GetHeroCreatures("Mihael","9")<1 then
SetObjectiveState("Primary",OBJECTIVE_FAILED);
break;
end;
end;
end;
startThread("PrimaryF);
Thank you in advance.
You don't have to bother with SetObjectiveState; you can simply write Loose() when something happens that should result in a loss. It's simple, but very convenient in many situations. This is only relevant for Single Player. By the way, parentheses should be placed after all function names. You can create a function for losing a hero using the corresponding trigger, making the quest KIND-MANUAL. But this is just in case you need it sometime
Пробуждение зла
Нашествие из Преисподней
Смена эпох
Скачать все кампании одним архивом: Яндекс.Диск Google.Диск
You can download the set of 3 Campaigns (English version) here
Одиночные сценарии Heroes V 3.1:
Незваные гости
Красный кристалл
Синий кристалл
Закат тьмы
Мультиплеерные карты для Heroes V 3.1:
Легендарная война
Сердце вулкана
Передел мира