Auto-translated
If you simply use a MessageBox, it will only work at the beginning of the mission. If you need the message to appear when you enter a region after a garrison, insert the MessageBox into this function, before SetObjectOwner.
That is, it should be somewhere like this:
EnableHeroAI('Duncan',false);
function garrison(hero)
if hero=='Giovanni' then
MessageBox("/Maps/SingleMissions/ExampleMaP/msg.txt");
SetObjectOwner('Duncan',PLAYER_1);
end;
Trigger(REGION_ENTER_AND_STOP_TRIGGER, 'reg', nil);
end;
Trigger(REGION_ENTER_AND_STOP_TRIGGER, 'reg', 'garrison', nil);
Карты для Heroes of Might and Magic V
Цикл "Закадычные враги": "Особенное гостеприимство, "Супероружие", "Меж молотом и наковальней"
"Падение Шантири"
Кампания для "Кодекса Войны"
"Выбор Сагиттеля"
Цикл "Закадычные враги": "Особенное гостеприимство, "Супероружие", "Меж молотом и наковальней"
"Падение Шантири"
Кампания для "Кодекса Войны"
"Выбор Сагиттеля"