Skip to content

Posts from Current questions and answers regarding the map editor.

5.0 (12 ratings)
In reply to RedHeavenHero
User Avatar
#3753
Auto-translated
Is it possible to find out the actual name of a hero in battle? The GetDefender/AttackerHero function in the console just prints "defender hero" / "attacker hero". But it doesn't display the actual name (in my case, "Nemor"). I just want to write a universal script that works for a specific hero, regardless of whether it's a computer-controlled or human-controlled hero, and whether they are attacking or defending. Or is this already beyond the scope of what's possible?:confused: Added after 10 minutes Never mind, I found it. GetHeroName
Мои карты

Возрождённый v 1.5 (обновление от 25/09/2016) :smile24:

готовится продолжение.

Великая Пустыня ( 25%) - про Маркела
Тьма над Иролланом (0%) - про Николаса

Мои моды (скорректированы мод на чумных энтов и циклопов зомби)
User Avatar
#3754
Auto-translated
GetHeroName(unit)
returns the standard script name of a hero based on its combat name.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
In reply to Markel the Imperor
User Avatar
#3755
Auto-translated
Is it possible to determine the level of a specific hero in battle? I tried the following: GetHeroLevel(GetHeroName(GetDefenderHero())); And also: GetHeroLevel("Nemor"); But in the combat script, it returns NIL. As I understand it, it doesn't recognize these functions at all in the combat script. If it were possible to determine the hero's level in battle, it would be possible to create some abilities. For example, for Deirdre, an army of Banshees could be summoned (in a quantity equal to the hero's level / 4 + 1), and in general, all standard abilities are tied to the levels of heroes.
Мои карты

Возрождённый v 1.5 (обновление от 25/09/2016) :smile24:

готовится продолжение.

Великая Пустыня ( 25%) - про Маркела
Тьма над Иролланом (0%) - про Николаса

Мои моды (скорректированы мод на чумных энтов и циклопов зомби)
User Avatar
#3756
Auto-translated
You can save a hero's level to a global game variable using SetGameVar and retrieve its value during a battle using GetGameVar.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
In reply to RedHeavenHero
User Avatar
#3757
Auto-translated
Does anyone know what Isabella's ability from the Hammers of Fate does (the one called "Favored by the Gods") :smile36:? There's no text description of it.
Мои карты

Возрождённый v 1.5 (обновление от 25/09/2016) :smile24:

готовится продолжение.

Великая Пустыня ( 25%) - про Маркела
Тьма над Иролланом (0%) - про Николаса

Мои моды (скорректированы мод на чумных энтов и циклопов зомби)
#3758
Auto-translated
Hello everyone, I tried searching for information on the forum, but I couldn't find anything. In the editor itself, I create a random map, edit it a bit, and add a couple of chests and a mentor. I save it, and errors appear in the screenshots. After that, neither multiplayer nor single-player can recognize the map. What am I doing wrong? What should I do?
Attachments 2
2 files attached • Total size: 112.2 KB
In reply to ionisss
User Avatar
#3759
Auto-translated
ionisss
Hello everyone, I tried to find information on the forum, but I couldn't find anything.

In the editor, I create a random map, edit it a bit, and add a couple of chests and a mentor. I save it, and errors appear in the screenshots. Then, neither multiplayer nor single-player can see the map.

What am I doing wrong? What should I do?

Most of these errors appeared because you assigned specific spells to the magic altars. They don't affect the game in any way; everything works normally. There are also reports that the heroes don't have an initial army assigned. And the game probably doesn't see the map because, in the editor, in the map properties window (Map properties, opened by pressing M), in the Player Properties tab, you haven't set the starting conditions for each player.
Кампании для 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
#3760
Auto-translated
city teleportation

I've encountered this problem.

According to the map's storyline, I need Nicholas to turn human city ruins into a Necropolis when he approaches them.

I looked into the map where Zephyr teleports his city, and I used the MakeTownMovable function; everything works fine.

MakeTownMovable("Morton");

But when you teleport a city from a dungeon (which is very desirable), it teleports along with a piece of the landscape, which then floats in the air.
RemoveObject('Morton_ruins');
SetObjectPosition('Morton', 48, 45, 0);

Is there any way to prevent this?

--
And another question:
On the map, can you force creatures to play their animations?
PlayObjectAnimation('Cleric','happy',ONESHOT);
Can you do the same with heroes who are on the map?

If I do:
PlayObjectAnimation('Nikolay','happy',ONESHOT);
it doesn't work, even though I've added all possible animations to his advanced animations.

And most importantly, I remember that in the Warlords Campaign, at the end, Orlando roars and then runs to his city, so it's definitely possible. Also, when Warlocks perform a ritual, they also move right on the map.
Мои карты

Возрождённый v 1.5 (обновление от 25/09/2016) :smile24:

готовится продолжение.

Великая Пустыня ( 25%) - про Маркела
Тьма над Иролланом (0%) - про Николаса

Мои моды (скорректированы мод на чумных энтов и циклопов зомби)
User Avatar
#3761
Auto-translated
1) Try placing the town on the surface, for example, outside the map, by manually setting its coordinates to negative values. 2) No, you can't do that with heroes.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
In reply to RedHeavenHero
User Avatar
#3762
Auto-translated
Thank you very much!

Actually, the negative coordinates on the surface somehow caused the editor to crash. I tried making them positive, but only up to the size of the map – now everything is perfect, and the editor doesn't crash, and the city is outside the map)))
Мои карты

Возрождённый v 1.5 (обновление от 25/09/2016) :smile24:

готовится продолжение.

Великая Пустыня ( 25%) - про Маркела
Тьма над Иролланом (0%) - про Николаса

Мои моды (скорректированы мод на чумных энтов и циклопов зомби)
In reply to Markel the Imperor
User Avatar
#3763
Auto-translated
How to set up a battle with a neutral hero? For example, how was it done in the campaign with the neutral hero Kha-Beleth?
Мои карты

Возрождённый v 1.5 (обновление от 25/09/2016) :smile24:

готовится продолжение.

Великая Пустыня ( 25%) - про Маркела
Тьма над Иролланом (0%) - про Николаса

Мои моды (скорректированы мод на чумных энтов и циклопов зомби)
User Avatar
#3764
Auto-translated
Reserve a hero and start the battle using the StartCombat function.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
In reply to RedHeavenHero
User Avatar
#3765
Auto-translated
and can you reserve a spot for a neutral player?
--
never mind, I figured it out.
Мои карты

Возрождённый v 1.5 (обновление от 25/09/2016) :smile24:

готовится продолжение.

Великая Пустыня ( 25%) - про Маркела
Тьма над Иролланом (0%) - про Николаса

Мои моды (скорректированы мод на чумных энтов и циклопов зомби)
In reply to Markel the Imperor
User Avatar
#3766
Auto-translated
Is it possible to implement a feature where, after all the original creatures are defeated, the summoned creatures don't automatically die, but still need to be killed to end the battle? For example, creatures summoned using the SummonCreatures function.
Мои карты

Возрождённый v 1.5 (обновление от 25/09/2016) :smile24:

готовится продолжение.

Великая Пустыня ( 25%) - про Маркела
Тьма над Иролланом (0%) - про Николаса

Мои моды (скорректированы мод на чумных энтов и циклопов зомби)
In reply to Markel the Imperor
User Avatar
#3767
Auto-translated
Hey everyone!
Please don't judge me too harshly, this is my first time here, and I don't really understand much.
To prevent dissatisfaction – there was already a similar question, and there are many pages with answers, it's impossible to read them all.
Could you please tell me how to open an existing scenario in the map editor to make changes, specifically to add allies?
I'm used to the editors for games 3 and 4 – everything was simple and clear there.
Thank you very much!

Statistics

Welcome our newest member: Фёдор Фёдорович