Posts from Current questions and answers regarding the map editor.
Auto-translated
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)
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...
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?
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога
Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
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.
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.
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога
Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога
Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога
Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
Added 21 minutes later
The script for changing the animation didn't work; the dragons remained standing, swaying.
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога
Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
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?