Skip to content

Current questions and answers regarding the map editor.

User Avatar
#689
Auto-translated
Duncan
And a seemingly simple task in standard maps: "defeat everyone"??? Do you know how to create it with scripts so that it also works?
And please provide a script for the prophet's hut.
I'm saying thank you in advance!:o :o :o
"Defeat everyone" - just rename it to "Killem all." It doesn't require scripts; it works as is. But when this task is completed, it triggers an autowin.

As for the script for the hut... Let's try now.

Name the hut "hut" (script name), and the quest "sobj" (script name). The quest is "visit the hut." Then the following code will work:

SetObjectEnabled('hut', false);

function sobjend(hero);
if hero== --script name of your hero-- then
SetObjectiveState('sobj', OBJECTIVE_COMPLETED);
end;
Trigger(OBJECT_TOUCH_TRIGGER, 'hut', nil);
end;
Trigger(OBJECT_TOUCH_TRIGGER, 'hut', 'sobjend', nil);

Карты для Heroes of Might and Magic V
Цикл "Закадычные враги": "Особенное гостеприимство, "Супероружие", "Меж молотом и наковальней"
"Падение Шантири"

Кампания для "Кодекса Войны"
"Выбор Сагиттеля"