Auto-translated
Hello. I would like to implement the idea of elite units that do not require the participation of an enemy hero.
The idea: on the map, there is a regular group of mixed units, which includes a leader unit that has a higher level than the rest of the units in the group (for example, a group of 100 skeleton warriors, 100 skeleton archers, and 40 archliches (leader)).
The purpose of the mod is to make the battle end in victory after the leader is killed, and not the entire group. Is it possible to implement this in the game without using combat scripts? Because if it is done through scripts, it would involve giving the main hero the ability to track all the leader units that I use on the map (and the map is large), which would mean that not only the units in the desired battle would be tracked, but all of them – this is not an option, as the map would become too large. How do I envision this? When creating a mixed group, a special checkbox would be added to indicate the "leader" of the group, and after the leader is killed, the battle would automatically end in victory.