Auto-translated
Azgalor, thank you so much! You really helped me out! I wanted to ask about StartCombat() and SiegeTown(). Am I correct in understanding that I cannot pass additional parameters, such as the enemy hero and their army, to the SiegeTown() function? I'm thinking of implementing the battle using StartCombat() and specifying a siege arena. I just can't find the file. Is it possible to implement SiegeTown() with additional parameters?
'/Scenes/CombatArenas/Boss_c6m5_Biara.xdb#xpointer(/AdventureFlybyScene)'). This is a snippet of code from the final mission of the original Zehir Campaign, where you need to defeat Biara and the Master. You can take a look at how it all works there; it contains scripts for the siege of the city (battles with Biara) and for battles on a custom arena (with a shield and catapult) with the Master.
Regarding using StartCombat as a siege - I looked through the files and understand that the siege through this function is only implemented for the battle with the Master, for which a special combat arena folder has been created. It is located at Arenas/CombatArena/FinalCombat. So, if you need to create a unique siege, you can see how it is implemented on that arena. However, just below, I will explain how to find links to siege maps, and you can try using them for StartCombat(), but if you just need a scripted siege, it is easier to use SiegeTown(). You can place the city itself (if it is not planned to be present with the desired opponent) somewhere outside the visible area, and during the battle, at the initial stage, simply spawn units for the opponent, or spawn them even before the battle.
I'm searching along the path /Arenas/CombatArena/Stronghold_arena, but I only see textures, materials, and objects of the arena. Hence the question: where should I look for the arena file (what should its extension be?)
Всякое/карты:
Добавление недостающей музыки гномам