Skip to content
User Avatar
#2283
Auto-translated
xxxRustamxxx
I need help with creating a script that will grant all the skills available in the game. I've seen this in the "Elven Song" map; if you type @gsall skillsall artefacts, the main hero receives all skills and artifacts. But I only need the skills. I can't open the map in the editor because it's not in the maps folder. And yes, people still play Heroes 5 in 2016. Also, if possible, can this script be made to work on all maps? I mean, through @DoFile. Although then I would have to edit the script file every time, because Heroes has different script names... Well, the add_skill command and others work on the selected hero, so I want to make the script work on the selected hero. I hope this is possible. In any case, thank you in advance for your help; I will be waiting for a response.
You can do it like this:
for i=1,3 do
for j=1,220 do
consoleCmd('add_skill ' .. j)
end
end
This will grant all skills to the selected hero. You can save the script to a file and call it using doFile.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

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