Auto-translated
I came up with a way to dig for heroes with 2500 gold.
1) Initially, the program was designed to dig for heroes with the maximum army size. This is what is currently implemented. Therefore, we load the starting save, skip a few turns (it's best to collect gold for one day) to get 5000 gold, run the hero digger, and dig up all available heroes. We look at the table and develop a general strategy for the rest of the game.
2) Now for the most interesting part! We run the save with 2500 gold, run the hero digger, and dig for a hero. The program saves the save file + a photo of the hero that is underneath, accessible by right-clicking. The fact is that the army of the heroes will be unchanged, and we already know it in advance (when digging with 5000 gold), which means we only need to know the photo of the hero.
Dear Monza, is it possible to implement point 2?
P.S. This is not about hacking the save file; the program simply clicks the mouse button and saves the image.
Sincerely, VDV_forever