Skip to content

Posts from Current questions and answers regarding the map editor. Auto-translated

5.0 (12 ratings)
User Avatar
#3191
Auto-translated
Has anyone played a multiplayer map where the time of day changes every day?

I made one, but I didn't officially release it. After playing for a long time, it starts to get a little annoying.

Whatever
In reply to MARKELL KRAMMER
User Avatar
#3192
Auto-translated
MARKELL KRAMMER
has anyone played a multiplayer map where the time of day changes every day?) I've only seen one such map.
I'm planning to do this in my map, but I haven't had the time yet. It's a pity that the idea turned out to be not original. :)
In reply to MasteR
User Avatar
#3193
Auto-translated
Juss456
Thank you. So, it will be useful if there is a need to move the monster. I have already managed to do everything a little bit differently.
Here, the function GetObjectsFromPath(hero_name, x, y, floor) might also be useful, which returns an array of objects located on the path of the hero to the specified point.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
User Avatar
#3194
Auto-translated
Hey guys, does anyone know if there’s a command in the map editor that completely removes a selected object? In my case, it’s the “fire glow” effect; I’ve added a ton of them, but they don’t show up in the game. I hope there’s a way to delete them all at once, because picking out hundreds of them individually is not an option.
YAAAHOOOOOOO:smile14:
In reply to MARKELL KRAMMER
User Avatar
#3195
Auto-translated
MARKELL KRAMMER
Guys, does anyone know if there's a command in the map editor that completely removes a selected object? In my case, it's the "fire glow" effect; I've added a lot of them, but they don't appear in the game. I hope it's possible to delete them all at once, because picking them out one by one is not an option...

I'm afraid you'll have to pick them out one by one, or open the map with an archiver, find the map.xdb file, open it with a text editor, use the search function to find these effects, and delete everything from the opening tag to the closing tag, which contains the effect. I haven't tried it myself, but I think it will work.
Or, in the editor, use the search function (the button with the binoculars icon), enter the name of the effect, click on each one, and delete it.
Кампании для Heroes V 3.1 (Трилогия):

Пробуждение зла
Нашествие из Преисподней
Смена эпох

Скачать все кампании одним архивом: Яндекс.Диск Google.Диск

You can download the set of 3 Campaigns (English version) here


Одиночные сценарии Heroes V 3.1:


Незваные гости
Красный кристалл
Синий кристалл
Закат тьмы

Мультиплеерные карты для Heroes V 3.1:

Легендарная война
Сердце вулкана
Передел мира
In reply to MasteR
User Avatar
#3196
Auto-translated
In the editor, there is also a search function for objects by type – the rightmost button in the toolbar. It immediately displays all found objects as a list, and clicking on an item from this list highlights it and moves the camera to it. Then you can delete it.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
User Avatar
#3197
Auto-translated
Alternatively, you can use CTRL+D as a cheat code after enabling cheats. It has the same effect, if I'm not mistaken. But use this method only as a last resort...
In reply to Eleondor
User Avatar
#3198
Auto-translated
Eleondor
as an alternative, you can use the cheat code CTRL+D after enabling cheats. It has the same effect, if I'm not mistaken. But use this method only as a last resort...

This cheat does not remove static objects.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
User Avatar
#3199
Auto-translated
Thanks, guys!)))) I used the object search function by type))) and deleted everything))) I didn't think it was possible!)))))
YAAAHOOOOOOO:smile14:
User Avatar
#3200
Auto-translated
Until today, I was sure there was a function that returns the town level, something like GetTownLevel, but to my surprise, I couldn't find anything like that in the manual. Does such a function exist? Of course, I could create it myself, but I don't want to go through all that again.
Кампании для Heroes V 3.1 (Трилогия):

Пробуждение зла
Нашествие из Преисподней
Смена эпох

Скачать все кампании одним архивом: Яндекс.Диск Google.Диск

You can download the set of 3 Campaigns (English version) here


Одиночные сценарии Heroes V 3.1:


Незваные гости
Красный кристалл
Синий кристалл
Закат тьмы

Мультиплеерные карты для Heroes V 3.1:

Легендарная война
Сердце вулкана
Передел мира
User Avatar
#3201
Auto-translated
The developers haven't implemented such a feature. But I'll give you a hint: this function is available in NHF. ;)
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
User Avatar
#3202
Auto-translated
So, here's a question: in the function GetTownBuildingLevel(sTownName, nBuildingID), can the second parameter be a constant of the type TOWN_BUILDING_TOWN_HALL? If a Town Hall is built in the town, will this function return the number 4?
Кампании для Heroes V 3.1 (Трилогия):

Пробуждение зла
Нашествие из Преисподней
Смена эпох

Скачать все кампании одним архивом: Яндекс.Диск Google.Диск

You can download the set of 3 Campaigns (English version) here


Одиночные сценарии Heroes V 3.1:


Незваные гости
Красный кристалл
Синий кристалл
Закат тьмы

Мультиплеерные карты для Heroes V 3.1:

Легендарная война
Сердце вулкана
Передел мира
User Avatar
#3203
Auto-translated
0 - this value is not possible in this case
1 - Elder Council
2 - Town Hall
3 - Magistrate
4 - Capitol
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
In reply to RedHeavenHero
User Avatar
#3204
Auto-translated
RedHeavenHero
0 - in this case, it doesn't exist
1 - Elder's Hall
2 - Town Hall
3 - Magistrate
4 - Capitol

Is the same principle applied to all other buildings as well?

GetTownBuildingLevel("Town", TOWN_BUILDING_DWELLING_7) - is there no error in this notation?
Кампании для Heroes V 3.1 (Трилогия):

Пробуждение зла
Нашествие из Преисподней
Смена эпох

Скачать все кампании одним архивом: Яндекс.Диск Google.Диск

You can download the set of 3 Campaigns (English version) here


Одиночные сценарии Heroes V 3.1:


Незваные гости
Красный кристалл
Синий кристалл
Закат тьмы

Мультиплеерные карты для Heroes V 3.1:

Легендарная война
Сердце вулкана
Передел мира
In reply to MasteR
User Avatar
#3205
Auto-translated
Juss456
The same principle applies to all other buildings, right?

Is there an error in this notation: GetTownBuildingLevel("Town", TOWN_BUILDING_DWELLING_7)?
Yes. 0 - not built, 1 - built, 2-5 - upgraded.

No errors.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4