Skip to content

Current questions and answers regarding the map editor.

User Avatar
#1130
Auto-translated
Bulletin, `

function MonsterFunction(hero)
    Trigger(OBJECT_TOUCH_TRIGGER, 'Monster', nil);
    -- artifact
    GiveArtefact(hero, itemId);

    -- resource
    gold = GetPlayerResource(PLAYER_1, GOLD);
    SetPlayerResource(PLAYER_1, GOLD, gold+your amount);
end;

Trigger(OBJECT_TOUCH_TRIGGER, 'Monster', 'MonsterFunction');

in the monster's properties, give it a script name and set it so that it always joins.
Карты для Heroes V: Повелители орды:
Multiplayer: Господство, Извечное противостояние, Война за Магию, Торговая империя, Анатомия войны, Эксперимент
SingleScenario: Последний Рубеж, Трон, Элиралис, Вернуться домой!, Лабиринты разума
Campaign: Колонизация