Skip to content

Posts from Current questions and answers regarding the map editor.

5.0 (12 ratings)
User Avatar
#3267
Auto-translated
Here it is:
Go to the game folder/profiles/editor_a2.cfg, open it with Notepad. Change the line setvar map_editor_mode = 0 to setvar map_editor_mode = 1. Open the editor and press View->GameDatabase->New Window. A new window will appear. Right-click on the border, select Tables, choose the desired resources from the list using checkboxes, and press OK. Go to the desired resource in the dropdown list.
You've probably done this before, so it should be easy to remember.
 

К А
Стикеры GBF в Telegram
User Avatar
#3268
Auto-translated
Shouldn't you change 1 to 0 there as well?
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
User Avatar
#3269
Auto-translated
I think I wrote correctly when I was creating the FAQ. But if there's anything wrong, please correct me.
----
Yes, I just checked, and I did make a mistake.
 

К А
Стикеры GBF в Telegram
User Avatar
#3270
Auto-translated
That's why I'm sitting here, looking at this beauty and thinking... but why, actually? XD I just changed it to zero, and now it's working fine.
Правило во взгляде...
User Avatar
#3271
Auto-translated
By the way, I've been wondering for a long time – how can I make it so that a hero can cast Fireball, so that its power increases with the hero's level, and so that it doesn't harm the hero's troops?
Кампании для 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
#3272
Auto-translated
In the extended editor mode, you can find the settings for this spell, and it seems there’s even a dependency on the hero’s main stats. But as for damaging your own troops… the spell itself is implemented at the game engine level, as far as I understand. For ourselves (our team), we only left the option to edit the damage.

Whatever
User Avatar
#3273
Auto-translated
How to make such a trap: When capturing a town, it burns down and then turns into the ruins of a town? The ruins are among the .towns objects.
And the second issue: when a hero, Remisa, passes through a two-way portal, there is no return entrance to the portal for that hero.
Правило во взгляде...
In reply to Rhenish
User Avatar
#3274
Auto-translated
This is the first one. ``` function capture_prt() Trigger(5, "prt", nil) RazeBuilding("cityname") end Trigger(5, "prt", "capture_prt") ```

Added 14 minutes later
The second one. ``` points={{x1, y1, f1}, {x2, y2, f2}} function tch_portal(hero, portal) if portal == "name_of_first_portal" then SetObjectPosition(hero, points[2][1], points[2][2], points[2][3]) elseif portal == "name_of_second_portal" and hero ~= "Remisa" then SetObjectPosition(hero, points[1][1], points[1][2], points[1][3]) end end Trigger(4, "name_of_first_portal", "tch_portal") Trigger(4, "name_of_second_portal", "tch_portal") SetObjectEnabled("name_of_first_portal", nil) SetObjectEnabled("name_of_second_portal", nil) ``` x1, x2, y1, y2, f1, f2 are the coordinates of the point near the first and second portals, where the hero will be teleported.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
In reply to Heroist
User Avatar
#3275
Auto-translated
Heroist
In the extended editor mode, you can find the settings for this spell, and it seems there's even a dependency on the hero's main stats. But as for harming your own troops... the spell itself is implemented at the game engine level, as far as I understand. For ourselves (us), we only left the option to edit the damage.

But how do you give this spell to a hero?
Кампании для 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
#3276
TeachHeroSpell не катит?

Whatever
User Avatar
#3277
Auto-translated
Thanks to everyone! I'll test it a second time with the AI enhancement patch and let you know if it helped.
YAAAHOOOOOOO:smile14:
In reply to Heroist
User Avatar
#3278
Auto-translated
Heroist
Is TeachHeroSpell not working?

TeachHeroSpell("xxx", 239); - when I enter it like this, the console displays an error.

TeachHeroSpell("xxx", SPELL_DEMON_SOVEREIGN_FX); - when I enter it like this, there is no error, but nothing appears in the spellbook either.
Кампании для 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
#3279
Auto-translated
What kind of error are you referring to?

Whatever
In reply to Heroist
User Avatar
#3280
Auto-translated
Heroist
What kind of error?

Incorrect value for the second parameter - ID.
Кампании для 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
#3281
Auto-translated
So, the function doesn't recognize the Fireball as a spell. You could try giving the hero a scroll or the spell itself at the beginning.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

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