Skip to content

Posts from Current questions and answers regarding the map editor.

5.0 (12 ratings)
User Avatar
#3206
Auto-translated
Tell me, how do I make a Dungeon so that it doesn't appear as a black square, but so that everything is visible? How can I do this? Help me!!!

Added 5 minutes later
Tell me, where can I find the manual?
User Avatar
#3207
Auto-translated
Could you tell me if there are any scripts that allow you to assign any reward in the Dragon Utopia or Sunken Temple? An artifact, money, or a spell?
YAAAHOOOOOOO:smile14:
In reply to ggroy
User Avatar
#3208
Auto-translated
ggroy
Please tell me how to make a Dungeon so that it doesn't appear as a black square, but so that everything is visible! How can I do this? Help me!!!

Added 5 minutes ago
Tell me, where can I find the Manuals?

Probably the hundredth similar question in this topic. In the editor, in the small window on the right, where you get the objects, there are also several more tabs. The second tab is Tiles; you need to click on it, select the Lower tool, and be sure to click on the x3 parameter. Then, all that remains is to create caves in the Dungeon, simply by clicking on the surface in the place you want.

Added 11 minutes ago
MARKELL KRAMMER
Tell me, are there any scripts that allow you to assign any reward in the Dragon Utopia or Sunken Temple? An artifact, money, or a spell?

Of course, there are. First, you need to give this building a name. For example, let's call it DragonTreasury. Now, you need to disable this object using the command SetObjectEnabled("DragonTreasury", nil). Attach a trigger to this object: Trigger(4, "DragonTreasury", "DragonTreasuryF")

DragonTreasuryF is the function that will be called when the hero touches the object.

It looks something like this:
function DragonTreasuryF(heroname, id)
StartCombat(heroname, nil, 4, 76, 300, 76, 300, 76, 300, 76, 300, nil, "windragonF", nil, 1);
end

StartCombat starts a battle between the hero and some troops. The first number in the parentheses is the number of stacks of the enemy, and the rest of the numbers are in pairs, the first of which is the ID of the creature, and the second is the number of creatures in the stack.
windragonF is the function that will run after the battle is over.

function windragonF(heroname, bwin)
if bwin then --- checks if the hero won the battle
...
end
end
In this function, you can give the hero all sorts of rewards, for example:

TeachHeroSpell( sHeroName, nSpellID ) - teach the hero a spell
GiveHeroSkill( sHeroName, nSkillID ) - teach a skill
GiveArtefact( sHeroName, nArtID, nBindToHero = 0 ) - give an artifact
and so on.

Added 5 minutes ago
Here /files/10086/> you can find all the Manuals for creating scripts and more
Кампании для 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
#3209
Auto-translated
Thank you very much! I'll experiment with it.
YAAAHOOOOOOO:smile14:
User Avatar
#3210
Auto-translated
Is there any point to the Weather tab in the map properties tree? Because this "weather" is only displayed in the editor, but not in the game.

Added 6 minutes later
I would also like to know about Wind, PreLight, and Moons – these properties are completely unclear.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
User Avatar
#3211
Auto-translated
the clouds seem to be floating around. I'm talking about the weather. I don't know about the wind, maybe a slightly stronger breeze is ruffling the flags?) I don't know about the rest – I haven't tried it.

Whatever
User Avatar
#3212
Auto-translated
But the clouds are supposed to be flying. I'm talking about the weather.
That's the thing, they don't fly. They only appear in the editor, but not in the game.
As for the wind, maybe it just makes the flags flutter a little more.
It seems like the developers have given up on that. There's a WindAffected property for effects, but it's set to false for all of them. And there's no wind mask either.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
User Avatar
#3213
Auto-translated
Could you please tell me if it's possible to add music to a multiplayer map so that it plays during the game and creates a more immersive atmosphere?
YAAAHOOOOOOO:smile14:
User Avatar
#3214
Auto-translated
Yes, but only through a mod. The battle, siege, AI, and town music, etc., can be found in /sounds/_(music)/TableRaceMusic.xdb. The music that plays on the map is also in the texture files for the map terrain, MapObjects/_(AdvMapTile)/... Additionally, you can assign music to each hero in their type properties.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
User Avatar
#3215
Auto-translated
Awesome! I just need to figure it out. Does it mean you can't access everything without a mod?
YAAAHOOOOOOO:smile14:
User Avatar
#3216
Auto-translated
As for the music – yes. Without mods, you can only control the music in dialogues and campaigns.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
In reply to MARKELL KRAMMER
User Avatar
#3217
Auto-translated
MARKELL KRAMMER
Great! I just need to figure it out. Does it mean you can't access everything without a mod? Is a mod necessary?

Not all music is suitable for the game. If you replace the music on one map, it will change on all other maps as well. And if the music file is deleted, there will be silence during the game. So, after playing, you'll have to delete the map.
Кампании для 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
#3218
Auto-translated
I also have a question: how can I make it so that in the map editor, a catapult (not during castle capture, but just like that) fires projectiles and destroys a fortress or units, or at least an enemy castle? This is possible when completing campaigns! Please advise!
In reply to ggroy
User Avatar
#3219
Auto-translated
ggroy
I also have a question: how do I make it so that in the map editor, a catapult (not when capturing a Castle, but just like that) fires projectiles and destroys a fort or units, or, at worst, an enemy Castle? This is possible when completing campaigns! Please advise!

Place a catapult on the map. Make sure it has the necessary animation (rangeattack). You can do this by going to the Shared section of this object and opening the animations tab in the upper right corner. Next, you need to add a trigger to a region or creature and write a function for the trigger - what should happen for the catapult to "work". To make the catapult fire, you need to add the line PlayObjectAnimation("Katap", "rangeattack", IDLE); - so that the catapult fires continuously, or PlayObjectAnimation("Katap", "rangeattack", ONESHOT); - so that it fires once, where Katap is the name of the catapult, which you must assign in its properties tree. The death of creatures and the destruction of buildings are also done with scripts, for example, using these functions:
PlayObjectAnimation("soldat", "death", ONESHOT_STILL); - death animation for creatures;
DestroyTownBuildingToLevel("Town", 1, 0, 0); - destruction of a fort in the town "Town"
RazeTown( sTownName ) - destroy a town
RemoveObject( sObjectName ) - remove an object from the map
and many others. I have already posted a link to the Manuals.
Кампании для 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
#3220
Auto-translated
Sorry for asking so many questions, but I have a request. Could you provide a manual on scripts, where everything is clearly explained about how to use them, and if possible, make it easy to understand? But please, provide a manual for a beginner (noob) who doesn't understand anything about scripts. Please!! I read some manual and didn't understand anything because I don't know how to use them (where to insert them, how to write them correctly, etc.). PLEASE, KIND PEOPLE!!!