Auto-translated
inQizitOr, you place a hero on the map, and if I'm not mistaken, in the shared section, you click "new," give it a name, and a new hero will appear in the map's archive under the "MapObjects/Castle Name" branch. You access its properties through the shared section and modify them according to your needs – you can set all parameters as for Knights, and the TownType/Specialization/several specialization descriptions as for Necromancers. Some parameters might not be changeable in the menu, so you can simply go into the map archive and manually edit the created file. If you delete the hero from the map, the created file, as far as I remember, is also deleted, so you need to be careful.