Skip to content

Posts from Current questions and answers regarding the map editor.

5.0 (12 ratings)
User Avatar
13 years ago
Auto-translated
And if I want a certain artifact to be given to a hero when the yellow player defeats the green player, how should I write that?
______________
A map for the Dwarves, called "Crushing," is being prepared. The map is 30% complete.
In reply to mapeditor5
User Avatar
13 years ago
Auto-translated
mapeditor5
And if I want a certain hero to receive an artifact when the yellow player defeats the green player, how should I write that?
______________
Preparing the "Crushing" map for the dwarves. Map progress - 30%

If the green player is player number 3 and the yellow player is player number 4, you can do it like this (you can change the numbers if needed):

Trigger(PLAYER_REMOVE_HERO_TRIGGER, 3, "RemoveF");

function RemoveF(looser, winner)
if GetObjectOwner(winner)==4 then
GiveArtefact(winner, nArtID); --// nArttID - ID of the artifact, you can find it and other IDs in the Editor Documentation folder, in the HOMM5_IDs_for_Scripts file.
Trigger(PLAYER_REMOVE_HERO_TRIGGER, 3, nil);
end;
end;

Added 2 minutes later
mapeditor5
What are the if-then, do blocks, and functions?
I already shared the Scripts document; everything is described in detail there
Кампании для 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
13 years ago
Auto-translated
How can I place town buildings as objects in the editor? I only found their models, but for some reason, they are invisible.

Whatever
In reply to Heroist
User Avatar
13 years ago
Auto-translated
Heroist
How can I place town buildings as objects in the editor? I only found their models, but they are invisible for some reason.
Create an object of the "dwell" type, assign the models of town buildings to it, adjust the coordinates (their center is very far away), and adjust the tiles. Also, there is a mod for unique dwellings – it has that feature.
Моды для HeroesV:
NHF 0.90 : NHF - группа в VK

Карты для HeroesV:
Путешествие , Условие крови , Рука судьбы.Часть 1: В поход , Рука судьбы.Часть 2: Отчаянье , Рука судьбы.Часть 3: Восхождение , Стойкость
Абсолютная власть , Иду на Вы! , Корона Ургаша , На задворках
Мир надо уничтожить... Чтобы создать свой...
User Avatar
13 years ago
Auto-translated
How can I ensure that a hero has the absolute special skill of a faction (for example, absolute necromancy)?
_____________________
A map for the Fortress faction, created by Rolf, is in progress. The map is 45% complete.
User Avatar
13 years ago
Auto-translated
Choose a hero and give them an artifact...

Dyrman, thank you!

Whatever
User Avatar
13 years ago
Auto-translated
Heroist, thank you, I fixed it, and it worked. Another question: I have an area where a hero enters, and a battle starts, but the battle takes place in the town. The town itself is level Fortress, but it also has some wall and tower damage. Is it even possible to create such a scenario? But it still doesn't work. I corrected the letter 'r' and removed an extra digit, thanks for the advice, Redhavenhero. I launched the map, and it worked; the building's function was blocked. However, when I added the text for the message from the first part of the script, nothing happened – neither the building was blocked, nor did the message box appear. Could it be the order in which I wrote the script, with the trigger first and then the function? Added after 1 hour 40 minutes: Oh, I found the function in the scripts; it's about sieges, but it doesn't include damage to the castle, but it will do. But I still can't figure out the first question. I rewrote all the scripts from scratch, and again, the blocking works, but the message doesn't appear. It's some kind of nonsense.
13 years ago
Auto-translated
I created a map, everything is ready, but there's a "small" problem – the map doesn't appear in the list of other maps, and I can't test it. I placed the map in HMMV\Maps.
In reply to Alex301092
User Avatar
13 years ago
Auto-translated
Alex301092
I created a map, everything is ready, but there's a "small" problem - the map doesn't appear in the list of other maps, and I can't test it. I placed the map in HMMV\Maps.
If the map size is not the issue, try going to map properties (by pressing M). In the Player Properties tab, specify everything for all players on the map. + in teams, if needed. Maybe there's something else, i.e., clearly "tell" the editor what players there are, what their starting cities are, etc. Save. Load the game. If all this has already been done, the map may be corrupted or the path to it is incorrect.

Added 7 minutes later
Heroist
How can I place city buildings as objects in the editor? I only found their models, but they are invisible for some reason...
I did this. I placed several city building models in one point, and that's how I created a city. I placed the coordinates approximately at -80, -80, -43. However, the video doesn't play on such a map, and the map itself is buggy. Probably because of these coordinates
Кампании для 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 Radionich
User Avatar
13 years ago
Auto-translated
Radionich


Added after 1 hour 40 minutes
[/U]Okay, I looked through the scripts and found a function; it doesn't have castle damage during a siege, but it'll do. But I still can't figure out the first question. I rewrote all the scripts, and again, the blocking works, but the message doesn't pop up. It's some kind of nonsense.

Check the message encoding; it should be in Unicode.
Мои карты:
Town
Готовится:Чума (40%), Сосиска(42%), Война Грааля
13 years ago
Auto-translated
How can I set the number of monsters on a point to be not a fixed value, but, for example, double the growth rate? Because 44 peasants and 44 assassins are not the same. I want their starting number to change depending on the creature's growth rate in the castle, for better balance. This method was used on official maps. Is this a script or just a function in the editor? I didn't find anything like that in the creature parameters.
And I'll also attach a list of problems that the editor reports. Help me understand:
Map has no restrictions for Max Hero Level
Map has no rumours!
There are towns without specialization! It's coordinates are: 10:10 85:86
Several heroes have problems with their army. Their coordinates are: at 79:85; Treasure with coordinates 94:51 has too much resources!
Treasure with coordinates 92:51 has too much resources!
Treasure with coordinates 92:50 has too much resources!
User Avatar
13 years ago
Auto-translated
I think that on multiplayer maps, a non-fixed amount should be used, and when creating the map, a specific amount is set, depending on the growth rate. However, I'm not sure if it's exactly a double growth rate; it's more likely not.
 

К А
Стикеры GBF в Telegram
13 years ago
Auto-translated
Well, I want to implement random monster generation on the map. And I want the game to change their starting number depending on the growth rate. For example, if peasants appear, there should be 44 of them – that is, a double growth rate, or even a triple one, it doesn't matter. But if assassins appear, there should be 14 of them accordingly. How can I do that?
User Avatar
13 years ago
Auto-translated
Yes, I understand. Actually, my message is about that. I don't know how to make monsters with a double growth rate without using scripts. But if you don't specify the number of monsters at all, it will also depend on the growth rate.
 

К А
Стикеры GBF в Telegram
User Avatar
13 years ago
Auto-translated
Hello! I started learning the map editor only two days ago. I read the map editor manual. I have two questions. First question: How do I create quests? I didn't understand how to do it in the manual. The manual only provides two scripts: one to give experience to a hero and another to give resources, creatures, or both resources and creatures to a hero when they enter a region. What other scripts are available? - This is my second question.

Statistics

Welcome our newest member: recijeb