Auto-translated
^The heroname argument with which GetHeroName() is called is not defined. It should be called like this - GetHeroName(GetHero(faction)), for example.
I also have a small question. I encountered a problem where it is impossible to make creatures cast certain abilities, for example, the banshee's ability, because there is simply no ID for it. I tried to specify the ability name from the creature file as an argument - ABILITY_DEATH_WAIL, but this value is also not defined. Does this mean that these abilities cannot be cast at all, or is there a way to do it?