Then it would be logical to assume that the HERMIT behavior specified in the player settings also applies to them?
Added 2 minutes ago
In addition, there is a separate scripting function to block interaction with a specific AI hero.
Added 9 hours 30 minutes ago
After a series of experiments, I came to the conclusion that a combination of active heroes from the reserve (not running to one point) and an AFK hero in the castle under the control of one player is practically unviable. I set different behaviors for the player as a whole, and not for a specific hero through a script. I reread the documentation again - the function for blocking interaction with a specific AI hero is essentially only one - the one I wrote about above - SetHeroRoleMode (HERMIT). As a result, only two options remain:
- replace the reserve heroes with regular tavern heroes; they behave as expected even with an AFK hero in the castle.
- remove the AFK hero from the castle, and the reserve heroes will become more active.
Сценарии:
"Холм мертвецов"
"Священное древо"