Skip to content

Posts from Current questions and answers regarding the map editor.

5.0 (12 ratings)
14 years ago
Auto-translated
Is there a script that teleports a hero to another region when they enter a specific region?
In reply to HAndOS
User Avatar
14 years ago
Auto-translated
zehir12
Is there a script that teleports a hero to another region when they enter a specific region?
SetObjectPosition
Моды для HeroesV:
NHF 0.90 : NHF - группа в VK

Карты для HeroesV:
Путешествие , Условие крови , Рука судьбы.Часть 1: В поход , Рука судьбы.Часть 2: Отчаянье , Рука судьбы.Часть 3: Восхождение , Стойкость
Абсолютная власть , Иду на Вы! , Корона Ургаша , На задворках
Мир надо уничтожить... Чтобы создать свой...
In reply to Dyrman
User Avatar
14 years ago
Auto-translated
Guys, how do I delete a piece of a bridge that's hanging off the edge of the map by accident? :mad:
Or can I just ignore it, and will it not cause any problems?
In reply to Markel the Imperor
User Avatar
14 years ago
Auto-translated
Markel the Imperor
Guys, how do I delete a piece of a bridge that's hanging off the edge of the map by accident???:mad:
Try using the search function to delete it or select it by object.
Моды для HeroesV:
NHF 0.90 : NHF - группа в VK

Карты для HeroesV:
Путешествие , Условие крови , Рука судьбы.Часть 1: В поход , Рука судьбы.Часть 2: Отчаянье , Рука судьбы.Часть 3: Восхождение , Стойкость
Абсолютная власть , Иду на Вы! , Корона Ургаша , На задворках
Мир надо уничтожить... Чтобы создать свой...
User Avatar
14 years ago
Auto-translated
Dyrman, Ment, Winner, thank you for the advice.
In reply to Ment
User Avatar
14 years ago
Auto-translated
Ment
Not sure... But moving cities, like Zephyr did in Tribes of the East, is possible.
Ment
So, can this problem be solved by hiding several cities in an inaccessible and invisible location in the Dungeon, and then summoning them as needed?
That's the idea.
Can you elaborate? Cities cannot be moved just like that, and they don't even have the IsRemovable property (:eek:)... How can this be done?
User Avatar
14 years ago
Auto-translated
I looked at the developers' scripts. It's done like this:
pos.x, pos.y, pos.floor = GetObjectPosition(townName);
MakeTownMovable(townName);
SetObjectRotation(townName, newRotation);
SetObjectPosition(townName, newX, newY, newFloor);
SetObjectOwner(ZehirTownName, PLAYER_1);

Plus, you can apply various effects. The full script is located at data.pak\scripts\A2_Zehir\A2_Zehir.lua
 

К А
Стикеры GBF в Telegram
In reply to Ment
User Avatar
14 years ago
Auto-translated
Thank you, I'll try it now.

Added 7 minutes later
Hmm... I don't know why they made it so complicated...
I was helped by a single script function, MakeTownMovable(townName), which makes the town movable (it sets the IsRemovable property to true).
In general, that piece of script looks like this:
MakeTownMovable(townName);
SetObjectPosition(townName, newX, newY, newFloor);
SetObjectOwner(townName, 1);
User Avatar
14 years ago
Auto-translated
Yeah, that’s exactly what they did. They just tied everything to Zephyr’s abilities and added various visual effects.
 

К А
Стикеры GBF в Telegram
In reply to Ment
User Avatar
14 years ago
Auto-translated
And one more question – which function plays a video on the map? (not a dialogue, but a video). And what should the exact file path be?
User Avatar
14 years ago
Auto-translated
StartDialogScene is described in the manual.
Or are you referring to something else? There is also StartAdvMapDialog.
 

К А
Стикеры GBF в Telegram
User Avatar
14 years ago
Auto-translated
StartDialogScene, found it in the manual...
Now, the second question arises: what should the file path to the video be?
In reply to 32MeTpa
User Avatar
14 years ago
Auto-translated
32MeTpa
StartDialogScene, found it in the manual...
Now, the second question arises: what should the path to the video file be?
path to the xdb file containing the video (located inside the map file):
StartDialogScene("/dial/DialogScene.xdb#xpointer(/DialogScene)");
Мои карты:
Town
Готовится:Чума (40%), Сосиска(42%), Война Грааля
User Avatar
14 years ago
Auto-translated
Thanks, I didn't know which ending should be.
StartDialogScene("/dial/DialogScene.xdb#xpointer(/DialogScene)";


Added 16 hours and 38 minutes ago
All the texts in the videos suddenly renamed themselves... Is there a way to prevent this?
User Avatar
14 years ago
Auto-translated
32Metra, this will happen if you change files within the map archive. And an error will occur when you edit the archive later. You can rename the files, but I don't know what principle to follow. You can open it in the editor again and manually enter the dialogue lines in the menu using the "spacebar," but then you'll have to redo the cameras, as they will be messed up.
Карты для Heroes of Might and Magic V
Цикл "Закадычные враги": "Особенное гостеприимство, "Супероружие", "Меж молотом и наковальней"
"Падение Шантири"

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

Statistics

Welcome our newest member: recijeb