Skip to content

Posts from Current questions and answers regarding the map editor.

5.0 (12 ratings)
User Avatar
Auto-translated
This function is only available for transforming into Necropolis. Otherwise, I'm afraid you'll have to resort to some rather unconventional methods.
 

К А
Стикеры GBF в Telegram
Auto-translated
Here is a function that changes the town type: TransformTown(townName, townTypeID)
townTypeID - the type of the new town. By the way, using this function, you can first change the town type to Haven and then destroy it.
In reply to Mostovik
Auto-translated
I managed to change the city, but how do I destroy it? Maybe a specific ID is needed? Could you please advise?
Auto-translated
want to destroy a town - do it like this:
TransformTown('town', 0)
RazeTown('town')
Auto-translated
The city changes, but it doesn't collapse. It remains a human settlement. Here's the script: function susha(heroname) OpenCircleFog(8, 25, 0, 20, 1); TransformTown("sts1", 0); RazeTown("sts1"); Trigger(OBJECT_TOUCH_TRIGGER, "musha2", nil); end; Trigger(OBJECT_TOUCH_TRIGGER, "musha2", "susha"); The map opens, the city transforms, but it doesn't turn into anything and doesn't collapse.
Auto-translated
and if
TransformTown('town', 0)
sleep(5)
RazeTown('town')
or
TransformTown('town', 5)
sleep(5)
RazeTown('town')
or
TransformTown('town', 0)
sleep(5)
RazeBuilding('town')
?
Auto-translated
I'll test it out now.

1. +
2. +
3. +

Thank you very much.
Now I need to figure out how to destroy/raze other towns, as well as buildings with creatures.
Auto-translated
to see the ruined cities of other factions, you need their models (they don't exist in the original game), and in the editor, you need to specify the path to the model in the corresponding graph...
KioM already wrote about this.
Auto-translated
And what if they simply disappeared from the map? Wouldn't that require a model? Is it possible to implement this, or would it not work?
Auto-translated
you can use it as a model for a ruined city, for example, a log or a stone. But it won't be possible to place a hero on the former outline of the city (a circle with a radius of 6).
If the methods mentioned above don't work, then I don't know any other solutions.
In reply to Mostovik
User Avatar
Auto-translated
Mostovik
you can use it as a model for a ruined city, for example, a log or a stone. But it won't be possible to position a hero on the former outline of the city (a circle with a radius of 6).
If the methods mentioned above don't work, then I don't know any more.

It will work when the destruction of the city actually changes one object (a city with blocked tiles, which is what you were talking about) to another, where the tiles don't need to be blocked. If there is no model in the new object, and the tiles are not defined, then after the city is destroyed, the game will leave an empty space where the hero can move.
Карты для Heroes V: Повелители орды:
Multiplayer: Господство, Извечное противостояние, Война за Магию, Торговая империя, Анатомия войны, Эксперимент
SingleScenario: Последний Рубеж, Трон, Элиралис, Вернуться домой!, Лабиринты разума
Campaign: Колонизация
In reply to KioM
Auto-translated
I edited the campaign, deleted the castles, and placed new random ones. But during gameplay, it's not possible to place an enemy castle or choose a hero for myself. How can I fix this?
Auto-translated
What is the name of the Wing and Haven skill in the map editor?
In reply to iBodik
User Avatar
Auto-translated
iBodik
What is the name of Wing and Haven's skill in the map editor?
You can see all of them by selecting the corresponding hero. ;)

Attachments 1
1 file attached • Total size: 152.0 KB
Моды для HeroesV:
NHF 0.90 : NHF - группа в VK

Карты для HeroesV:
Путешествие , Условие крови , Рука судьбы.Часть 1: В поход , Рука судьбы.Часть 2: Отчаянье , Рука судьбы.Часть 3: Восхождение , Стойкость
Абсолютная власть , Иду на Вы! , Корона Ургаша , На задворках
Мир надо уничтожить... Чтобы создать свой...

Statistics

Welcome our newest member: Emil