Skip to content

Posts from Current questions and answers regarding the map editor.

5.0 (12 ratings)
User Avatar
Auto-translated
Okay, I didn't quite understand the part about changing the animation. Where is this done, and how is it installed? Also, could you check if the script for my map is written correctly? It gave me some strange output when I tried to run it in the game.
Правило во взгляде...
User Avatar
Auto-translated
Well, I wrote the animation function for you. In the script, you just write this line where needed, and that's it. I'll try to check it.

Whatever
User Avatar
Auto-translated
That is, it is written in the creature's script?... Yes, I'm an idiot.
function InitBuildings() for i, building in GetObjectNamesByType"PEASANT_HUT" do Trigger(5, building, "TransformBuilding") end for i, building in GetObjectNamesByType"ARCHERS_HOUSE" do Trigger(5, building, "TransformBuilding") end for i, building in GetObjectNamesByType"BARRACKS" do Trigger(5, building, "TransformBuilding") end for i, building in GetObjectNamesByType"HEAVEN_MILITARY_POST" do Trigger(5, building, "TransformBuilding") end end function TransformBuilding(_, _, hero, building) if hero == "Pelt" then ReplaceDwelling(building, TOWN_NECROMANCY) end end function TransformHavenTown(_, _, hero) if hero == "Pelt" then TransformTown("Sian", TOWN_NECROMANCY) sleep(10) SetObjectPosition("Pelt", GetObjectPosition("Sian")) end end startThread(InitBuildings) Trigger(5, "Sian", "TransformHavenTown") function InitDungeonCreatures() for i, mob in GetObjectNamesByType"CREATURE" do local type = GetObjectArmySlotCreature(mob, 0) if (type >= CREATURE_SCOUT and type <= CREATURE_BLACK_DRAGON) or (type >= CREATURE_STALKER and type <= CREATURE_RED_DRAGON) then SetObjectEnabled(mob, nil) Trigger(4, mob, "TouchDundeonCreature") end end end function TouchDundeonCreature(hero, monster) if hero == "Dalom" then SetMonsterCourageAndMood(monster, 1, 0, 0) end SetObjectEnabled(monster, 1) Trigger(4, monster, nil) sleep(1) MakeHeroInteractWithObject(hero, monster) end startThread(InitDungeonCreatures)
And regarding the region... he just selected a region for me, and that's it. I can't access its properties, and the tree doesn't react to it...
Правило во взгляде...
In reply to Rhenish
User Avatar
Auto-translated
As for the region... he assigned me a region, and that's it. I can't trigger any properties, and the tree doesn't react to it...
That's how it should be. Click on the name, write what you want in English, then enable "edit script" and write the necessary script, and then insert the region name where needed. I hope I'm not mistaken.
User Avatar
Auto-translated
Now, of course, I'll try... but I don't understand anything about scripts. I just need to write them where they need to be, and my editor often suggests writing not in the map script, but in the personal field of each object...
Правило во взгляде...
User Avatar
Auto-translated
This isn't written in the creature's script.

Added 1 minute ago
What's this! A Russianized editor. Expect many errors.

Added 2 minutes ago
By the way, what kind of nonsense is it spitting out?
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
User Avatar
Auto-translated
Otherwise, I wouldn't have figured it out at all. This is actually my first map in Heroes of Might and Magic V, and I decided to make it as a gift for my favorite player...
Yes, I've already encountered these errors. Sometimes the water doesn't disappear, and sometimes it tells me that an object is on the wrong level, even though I access the map through the game and can visit that object without any problems... So, where should I go and what should I write to make certain lava dragons breathe fire in front of them? Sorry for the silly questions from a newbie girl).

Added 1 minute ago
The game itself generated the error. It opened the map at some point and completely froze. Maybe I didn't specify something correctly in the script, like the conditions after the events. Because I asked for advice on two different topics and received two different scripts, which I then added one after the other.
Правило во взгляде...
User Avatar
Auto-translated
Give the dragon a short name, and write
PlayObjectAnimation("name", "attack00", 3)
in the script at the desired location. If, instead of breathing fire, the dragon will be "as if paralyzed," you should also change the LOD animation to the arena one.

Added 2 minutes later
I think I wrote Dungeon as Dundeon.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
User Avatar
Auto-translated
So, if I correct the word "Dundeon" to "Dungeon", will it work?
Правило во взгляде...
User Avatar
Auto-translated
Okay, I'll check my system. It's an old laptop, maybe that's why it's acting up (it's the first time I'm using a 320x320 map).
Правило во взгляде...
User Avatar
Auto-translated
Without any changes to the script, but after cleaning the registry, the map launched successfully. It hasn't been tested yet how the scripts work – I'm currently checking something else at the same time.

Added 21 minutes later
The script for changing the animation didn't work; the dragons remained standing, swaying.
Правило во взгляде...
User Avatar
Auto-translated
The function plays the animation only once with sound and effects (flames), or, if you replace 3 with IDLE, it plays in a loop, but without sound and flames.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
User Avatar
Auto-translated
and when does it show? in the first seconds of entering the map? then no one will see it. and can it be done periodically with sound and flames? for example, every 10 seconds?

Added after 48 seconds
there are also questions: 1 - I couldn't insert personal music into the map (in .ogg format) and 2 - how do I make a chasm in the Dungeon?
Правило во взгляде...

Statistics

Welcome our newest member: Emil