Skip to content

Current questions and answers regarding the map editor.

User Avatar
#6003
Auto-translated
Kartoshechka_Pro

Good evening. In Lua, a function has been implemented that allows you to initiate a transition to strategic mode (StartCombat) with a lot of parameters, including the selection of an arena for the battle. The question is, is there a simple way to set the battle arena for all battles in the game (for example, I need the battle to take place not on the type of terrain where the hero is currently located)? Of course, I don't want to replace the arenas in the files by making a mod from the map.

Console command
arena_override path_to_arena
for example
consoleCmd('arena_override /GameMechanics/CombatArenaTypes/Lava_Big_01.xdb#xpointer(/AdventureFlybyScene)')

to return the arenas to their normal state, you can specify any invalid path to the arena.

However, the effect of the command is saved only for the current game session, so in a map where it is used, it will most likely have to be executed in a loop with a pause to resume its effect when the game is loaded.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4