Skip to content
User Avatar
#1522
Auto-translated
Heroist
Is it possible to create a hero using scripts? And if not, will the game lag if I place a lot of heroes on the map, but they are all disabled?
I just need a random hero to appear in a specific location.

Question 2: Is it possible to determine the level of a monster using a script? I don't have the manuals handy right now, and I don't know/remember if there's a function for that...
1. Reserve them and then place them. ;)
2. GetGuardsTier(object) returns an array where each element is equal to the level of the object's creature multiplied by 2 and added to 1, if it is upgraded. For example, for a zombie, it will be 12, for a titan - 15, for an obsidian gargoyle - 5.
The only problem is that this function doesn't work with heroes.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

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