Skip to content
User Avatar
#1558
Auto-translated
Juss456
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?
1) extra s. Not Stats, but Stat
2) array — no, there is a function that returns a list with IDs:
_1, _2, _3, _4, _5, _6, _7 = GetHeroCreaturesTypes(hero)
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

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