Skip to content

Posts from Current questions and answers regarding the map editor.

5.0 (12 ratings)
In reply to RedHeavenHero
Auto-translated
RedHeavenHero
1) I didn't understand. The script name applies to the hut itself, and there's also the name of the quest.
2) You can do it like this:
function NewDay()
if GetDate(MONTH) == 25 and GetDate(WEEK) == 1 and GetDate(DAY_OF_WEEK) == 1 then
CreateMonster("monster_name", monster_type, number_of_creatures, x, y, floor, mood, courage, rotation_angle, height)
SetObjectiveState('quest_name', OBJECTIVE_ACTIVE)
startThread(killDemon)
end
end

function killDemon()
while 1 do
if not IsObjectExists("monster_name") then
SetObjectiveState("quest_name", OBJECTIVE_COMPLETED)
break
end
sleep(10)
end
end

Trigger(NEW_DAY_TRIGGER, "NewDay")
The quest should be OBJECTIVE_KIND_MANUAL, and the IsInitialyActive and IsInitialyVisible parameters should be false.

Animations: normal state, death, close combat attack, joy, taking a hit, shooting, spellcasting, special ability, panic (what creatures do in battle when you hover the cursor over them).

Added 8 minutes later
Try changing this file: \UI\MPDMLobby\presets.(DuelPresets).xdb.

Thank you! I will definitely try it. There's another problem: I tried to install a mod that adds different dwellings to the editor. But for some reason, when I copied the necessary file into the data folder, nothing changed. The editor still doesn't see them. Neither in the object window nor through shared. I tried making it an h5u file – also without result. I tried downloading another archive – it didn't help. What could be the problem?
In reply to Эритроцитоз
User Avatar
Auto-translated
Erythrocytosis
Thank you! I will definitely try it. There is another problem: I tried to install a mod that adds different dwellings to the editor. But for some reason, when copying the necessary file into the data folder, nothing changed. The editor still doesn't see them. Neither in the objects window nor through shared. I tried to convert it to h5u - also without result. I tried to download another archive - it didn't help. What could be the problem?
What mod is it?
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
In reply to RedHeavenHero
User Avatar
Auto-translated
RedHeavenHero
If you have the console enabled, check for errors there. Also, please provide screenshots or simply copy the properties of the hut and the quest in the map's properties tree.
How do I enable the console? I'll try to check for errors there.

Прокрастинирую...
"...Завтра станет лучше
но солнце так и не взошло..."
User Avatar
Auto-translated
I tried to install a mod that adds different dwellings to the editor. But for some reason, when I copied the necessary file into the data folder, nothing changed.
I had the same issue, but Death Knight gave me some obscure mod that added huts. He removed some files from it, and then it worked, but the index.bin file was affected. When I installed NCF, which also contained it, the dwellings disappeared, and I had to extract them onto the map using shared, entering long strings like
MapObjects/_(AdvMapObjectLink)/Objects-Dwellings/Orcs/T6.(AdvMapDwellingShared).
In reply to fktifzobr@mail.ru
User Avatar
Auto-translated
Hooray!!! :smile03: :smile03: :smile03: The Prophet's Hut is working!!!!!! :smile03: :smile03: :smile03: I found where the error was – I didn't set sInitialyActive and IsInitialyVisible to false in the hut, and I didn't define the reward type :D

Прокрастинирую...
"...Завтра станет лучше
но солнце так и не взошло..."
In reply to RedHeavenHero
Auto-translated
RedHeavenHero
What mod is this?

DwennilgsPack from our website: /files/10154/> (second from the top)

Added 42 minutes later
fktifzobr@mail.ru
I had the same problem, but Death Knight gave me some strange mod that added huts. He removed some files from it, and it started working, but the index.bin file was affected. When I installed NCF, where it was also affected, the dwellings disappeared, and I had to extract them onto the map using shared, entering long strings like
MapObjects/_(AdvMapObjectLink)/Objects-Dwellings/Orcs/T6.(AdvMapDwellingShared)

In my case, attempting to extract them using shared was unsuccessful. But the information about index is valuable. Thank you!
User Avatar
Auto-translated
In my case, attempting to extract items through shared storage was unsuccessful. But the information about index is valuable. Thank you!
You can extract items through shared storage if you change the dwelling on the map; items cannot be extracted through creatures or anything else.
In reply to fktifzobr@mail.ru
Auto-translated
Where can I find images of all the heroes' faces in the 512x256 size? More specifically, where does the duel preset editor get them from?
In reply to Эритроцитоз
User Avatar
Auto-translated
Erythrocytosis
Where can I find images of all the heroes' faces in the size 512x256? More specifically, where does the duel preset editor get them from?
The developers had the original artwork – drawings of the heroes, usually from the waist up. They used these to create both the hero icons and these drawings, but they only left us with some of them, so we have to choose from those, or simply enlarge the icons... :(
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
In reply to RedHeavenHero
Auto-translated
RedHeavenHero
The developers had the original source materials – artwork – drawings of the heroes, usually from the waist up. They used these to create both the hero icons and the drawings, but they only left us with some of them, so we have to choose from those, or simply enlarge the icons... :(

Developers are developers.
User Avatar
Auto-translated
How do I make a monster's corpse appear on the map? I know I need to use a script, but which one, and where do I put it? For example, if I place a griffin on the map, what exactly do I need to do?
User Avatar
Auto-translated
Give it a script name (Name in the properties tree), and write in the script:
PlayObjectAnimation("script name", "death", ONESHOT_STILL). That's it.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
Auto-translated
Sorry if I'm repeating the question. There's a random castle, and somewhere on the map, there's a random creature, for example, level 5. How do I make it so that this creature is of the same faction as the castle? That is, you play for the first time, the castle is Dungeon, so a Hydra (and an upgraded one) appears there. You start over, the castle is now Necropolis, so an Archlich or a Higher creature appears there. From this, the second question arises: how do I make sure that an upgraded version appears, and what determines the level of the upgrade? Thank you.
User Avatar
Auto-translated
It can be implemented with a script. Use `GetTownRace` to get the castle's race, and `CreateMonster` to create a mob. Assign a specific monster type for each race and create it.

Added 37 minutes later
function create5lvlmob()
local race={[0]=10; 52, 66, 80, 38, 24, 101, 126}
CreateMonster("", race[GetTownRace("script_city_name")], quantity, coordinate_x, coordinate_y, floor_0_or_1, mood, courage, rotation_angle)
end

create5lvlmob()
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
Auto-translated
Thank you. However, I'm not an expert in the editor, so where should I put this script code? And another question: how do I create a path to the Dungeon? I select any area, but it's still dark there. I placed an exit there, and when I enter the entrance, it says that everything is blocked and there's no passage.

Statistics

Welcome our newest member: Emil