Auto-translated
The specialization is defined in the executable file of the heroes; in general, you can change the table of specializations in the binary code of the game, but you need the skills to do so. See here: http://forum.df2.ru/index.php?showtopic=6803&view=findpost&p=431051. Note: HE:X needs to be checked in the Heroes of Might and Magic reference guide; I recommend the one by Dracolich: http://dracolich.narod.ru/rus.htm.
Инфа о разных моих проектах, по большей части геройских, тут http://phomm.narod.ru