I do it like this: there is a file that stores the probabilities of a hero of a certain type appearing in the tavern - HCTRAITS.TXT. For example, you dig for Jelu, set the percentage.
Added 4 minutes later
For example, like this:
Adel - belongs to the red faction
Moner - belongs to the green faction
Fiona - is in the tavern of the blue faction
Sir Mullich - is simply available
Jelu - is banned
There is such a thing: it scans your heroes, even those that are banned.
+ and another request: is it possible to search for skill combinations? for example, you need air + logistics + earth.
P.S.: The program is great, I don't know how it is with the "traffic light" - I haven't figured it out, but the tree processing part of the program is simply mind-blowing. Thank you.
P.P.S.: Digging in external taverns and cities of allies is ruining my nervous system. I think it's not just mine. Therefore, Monza, please explain how to find the file with the probability - I can't figure it out. And if you made a "hero substitution" - so that it sets the probability to 95% for the desired hero (not 100 - just in case there is a classmate in the tavern or a hero in the tavern is a companion or banned) - it would be just amazing...