sta=GetHeroStats(vh, 7);
ChangeHeroStat(vh, 7, -sta);
why isn't this piece of the function working and how do I fix it?
vh is a variable containing the hero's name. The idea is to reset the hero's move points
Added after 50 minutes
Another question: Is there a function that returns an array of creature IDs in the hero's army?
2) array — no, there is a function that returns a list with IDs:
_1, _2, _3, _4, _5, _6, _7 = GetHeroCreaturesTypes(hero)
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога
Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4