Auto-translated
Thank you. By the way, do you know if it's possible to give a hero of one class perks from another class (GiveHeroSkill can grant a skill of the first level, but it refuses to grant abilities) using only scripts? Or do you need to change something in GameMechanics in the hero's structure?[/QUOTE]
I'm not entirely sure how GiveHeroSkill works, but it can be used to grant and increase skills. Regarding perks, it seems to only grant perks that the hero can learn right now, and it must be a racial skill for the hero.
I might be wrong, but it seems that you can only set foreign skills with perks in the editor.