Skip to content

Ask your question here if you can’t find the answer in the FAQ.

User Avatar
#384
Auto-translated
it can be done more simply.

do it like this:

hero11 = GetPlayerHeroes (1) --- find out the number of heroes for player 1 and save it in a variable. 1 is the player number, you can set it to the player you are playing as
hero1 = hero11[0] -- calls the zero value of the variable, i.e. names the first hero of player 1 from the hero11 array, which we obtained earlier. If Kha-Beleth is not your first hero, you can change the value in the square brackets
ChangeHeroStat (hero1, 7, 10000) --- and there should be no quotes around the hero.

And by the way, his name is Kha-Beleth))))

Added 1 minute ago
Damn, I was too late.

So, with my three lines, you don't have to worry about hero names)))

Whatever