Auto-translated
I also have a question: how do I make it so that in the map editor, a catapult (not when capturing a Castle, but just like that) fires projectiles and destroys a fort or units, or, at worst, an enemy Castle? This is possible when completing campaigns! Please advise!
Place a catapult on the map. Make sure it has the necessary animation (rangeattack). You can do this by going to the Shared section of this object and opening the animations tab in the upper right corner. Next, you need to add a trigger to a region or creature and write a function for the trigger - what should happen for the catapult to "work". To make the catapult fire, you need to add the line PlayObjectAnimation("Katap", "rangeattack", IDLE); - so that the catapult fires continuously, or PlayObjectAnimation("Katap", "rangeattack", ONESHOT); - so that it fires once, where Katap is the name of the catapult, which you must assign in its properties tree. The death of creatures and the destruction of buildings are also done with scripts, for example, using these functions:
PlayObjectAnimation("soldat", "death", ONESHOT_STILL); - death animation for creatures;
DestroyTownBuildingToLevel("Town", 1, 0, 0); - destruction of a fort in the town "Town"
RazeTown( sTownName ) - destroy a town
RemoveObject( sObjectName ) - remove an object from the map
and many others. I have already posted a link to the Manuals.
Кампании для Heroes V 3.1 (Трилогия):
Пробуждение зла
Нашествие из Преисподней
Смена эпох
Скачать все кампании одним архивом: Яндекс.Диск Google.Диск
You can download the set of 3 Campaigns (English version) here
Одиночные сценарии Heroes V 3.1:
Незваные гости
Красный кристалл
Синий кристалл
Закат тьмы
Мультиплеерные карты для Heroes V 3.1:
Легендарная война
Сердце вулкана
Передел мира
Пробуждение зла
Нашествие из Преисподней
Смена эпох
Скачать все кампании одним архивом: Яндекс.Диск Google.Диск
You can download the set of 3 Campaigns (English version) here
Одиночные сценарии Heroes V 3.1:
Незваные гости
Красный кристалл
Синий кристалл
Закат тьмы
Мультиплеерные карты для Heroes V 3.1:
Легендарная война
Сердце вулкана
Передел мира