Skip to content

Posts from Current questions and answers regarding the map editor.

5.0 (12 ratings)
User Avatar
11 years ago
Auto-translated
Regarding the race: In the map properties tree, follow the specified path and try changing the value of the Race field for each computer player. Either from TOWN_NO_TYPE to TOWN_RANDOM, or vice versa. This might help. The Grail is created by scripts in single-player mode.
Attachments 2
2 files attached • Total size: 198.2 KB
In reply to MasteR
11 years ago
Auto-translated
Nothing worked. With the faction, I changed not only the two specified positions but also tried setting specific ones (e.g., Necropolis) – but even then, when launching the game, a completely random faction would appear (e.g., when I set Necropolis, I got Dwarves). I don't even have any ideas – I clicked on everything I could in the tree... And with the Ash's Tear, I tried to overwrite the script, but out of 30 attempts, all 30 resulted in the message "program does not work." Does it seem like I have problems with the game? Should I download and install a different version?
11 years ago
Auto-translated
Dear forum members, please advise – has anyone encountered a problem where the map freezes on day 1, week 3, month 3? Could this be due to the lack of a victory condition against the opponent (impossibility of winning)? Thank you in advance for your advice.
User Avatar
11 years ago
Auto-translated
Could you please tell me how to create a single-player map where there is only one player? Like in Heroes 5, in the Queen campaign, mission 1.
In reply to Ghost Archer
User Avatar
11 years ago
Auto-translated
Ghost Archer
Could you please tell me how to create a single-player map where there is only one player? Like in Heroes 5, in the Queen campaign, mission 1.
You create a map with only 1 player, and that's it. However, the map won't launch if it's not part of a campaign.
User Avatar
11 years ago
Auto-translated
But you can create a dummy player and disable it, yes.
User Avatar
11 years ago
Auto-translated
How can I make the camera move like when entering a wizard's hut? I need a specific area to be displayed, but the camera shouldn't rotate or jump; instead, it should immediately focus on the desired location.
User Avatar
11 years ago
Параметр noMotion = 1.
MoveCamera(x, y, floorID, zoom, pitch, yaw, noZoom, noRotate, noMotion)
User Avatar
10 years ago
Auto-translated
Could you please remind me how to create an ally and assign a SPECIFIC castle in the editor? The problem is that even if the alliance works, assigning it to a castle doesn't. Or vice versa.
If needed, I can show a video or screenshots. Some maps simply refuse to form an alliance at all.
User Avatar
10 years ago
Auto-translated
How do I add custom music to a map?
User Avatar
10 years ago
Auto-translated
in the map properties tree (at the bottom), there is a line called "Music"; select a melody there.

Added 50 seconds later
if you need your own music, create your own file.
In reply to fktifzobr@mail.ru
User Avatar
10 years ago
Auto-translated
fktifzobr@mail.ru
In the map properties tree (at the bottom), there is a "Music" line; select a melody there.

Added 50 seconds later
If you need your own music, create your own file.
Actually, it doesn't work.

Added 1 hour 57 minutes later
Markel the Imperor
How do I add custom music to the map?
Depending on where it will be played (in battle / on the map / in dialogues...), the method of adding it will differ.
User Avatar
10 years ago
Auto-translated
I'm interested in both combat and the map. My own.
In reply to Markel the Imperor
User Avatar
10 years ago
Auto-translated
Firstly, any music requires an ogg file, which should be placed in the music folder. Secondly, you need an xdb-type pointer called Music, which will contain the path to the music file (examples can be found in the developer files). On the map, music can be taken from two places: the hero's music and the surface type music (grass, lava, etc.). In the first case, you only need to create a link to the file pointer in the AdventureMusic property of the hero's AdvMapHeroShared. The second case is the same, but the object type is AdvMapTile. The music during battles is controlled by the TableRaceMusic.xdb file, specifically combatMusics and SiegeMusic. Each faction has its own tracks.
User Avatar
10 years ago
Auto-translated
Here's another question...
If I script a hero's behavior in battle, what do I need to do to prevent the log from displaying "defense" after their turn?
For example:

function DefenderHeroMove(heroName)
print ("SPELL_PRAYER!");
UnitCastGlobalSpell(GetDefenderHero(), SPELL_PRAYER);
defender_turn = defender_turn +1;
return not nil;
end;

The spell is cast, but the battle log under the map shows:
Prayer...
and then, Randall: defense.
Ideally, he should just end his turn after casting the spell.
Of course, it's not a major issue, but it's annoying.

I tried adding a sleep command afterward, but it doesn't help.

Statistics

Welcome our newest member: recijeb