Hello, I have a simple task: create a script in the map editor that, for example, grants X experience to any hero who kills a neutral creature.
However, I can't seem to implement it. What's the error here?
GetPlayerHeroes(0);
SetGameVar(whotoup, 0);
whotoup = GetPlayerHeroes(0);
ChangeHeroStat(whotoup[0], 0, 999999999)