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.