Auto-translated
Okay, I understand. I don't know how to make it look nice, but a clumsy approach is always at your service. First, call `hero=GetTownHero(town name)`. Then, do the following:
if `HasHeroSkill(hero, ID of the main class skill of Knights, for example)` then
`CreateMonster('m1', ID of some Knights, quantity, two coordinates separated by a comma, level number (top 0, bottom 1), aggressiveness, possibility of joining, rotation angle);`
end;
Similarly for all other cases. All IDs can be found in the manual, in the Editor_Documentation folder.
if `HasHeroSkill(hero, ID of the main class skill of Knights, for example)` then
`CreateMonster('m1', ID of some Knights, quantity, two coordinates separated by a comma, level number (top 0, bottom 1), aggressiveness, possibility of joining, rotation angle);`
end;
Similarly for all other cases. All IDs can be found in the manual, in the Editor_Documentation folder.