Skip to content
User Avatar
#913
Auto-translated
Heroist
No, I'm not that clueless about scripts.
Here's the full file path:
('/Maps/SingleMissions/NewRandomMap21/CombatScript.xdb#xpointer(/Script)')

It's strange, but it seems like the path is incorrect:
SetHeroCombatScript(hero1, '/CombatScript.xdb#xpointer(/Script)')
The problem is that the full path should not be /Maps/SingleMissions/NewRandomMap21/CombatScript.xdb#xpointer(/Script), but rather /CombatScript.xdb#xpointer(/Script), meaning the xdb file should not be in any folder at all.

Here's an example of what the map archive should look like.
Attachments 1
1 file attached • Total size: 422 B
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

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