Skip to content

Video clip on the map (adventure dialog).

User Avatar
#21
Auto-translated
To be honest, I hadn't made AdvMap dialogues before. But now I tried, and it worked. I don't know how to explain it in more detail than Ment'a already has.

See the attached screenshot for an example.

Is talking to a neutral creature when it gets close also a script?

1. Go to the "R..." tab in the editor. This is where you place objects and create hills, but it's further along.
2. Outline the neutral creature with a frame, enter the frame's name (region), and remember it.
3. Enter the script:
function hello(hero);
if hero == the name of your hero in quotes then
StartAdvMapDialog(0);
end;
Trigger(REGION_ENTER_AND_STOP_TRIGGER, the name of the region-frame in quotes, nil);
end;
Trigger(REGION_ENTER_AND_STOP_TRIGGER, the name of the region-frame, "hello");

This is the simplest option. Just make the frame larger so that the hero doesn't "fight" with the neutral creature.
Attachments 1
1 file attached • Total size: 139.8 KB
Карты для Heroes of Might and Magic V
Цикл "Закадычные враги": "Особенное гостеприимство, "Супероружие", "Меж молотом и наковальней"
"Падение Шантири"

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