Skip to content

Current questions and answers regarding the map editor.

User Avatar
#5967
Auto-translated
}{0TT@6bI4
Then it would be logical to assume that the HERMIT behavior specified in the player settings also applies to them?
If we rely on the documentation, SetHeroRoleMode should work for a specific hero, but not for the player as a whole. But I remembered that you can try looking in the player settings in the map properties; there seemed to be something similar for the entire player.

Added 2 minutes ago
AstralLein
In addition, there is a separate scripting function to block interaction with a specific AI hero.
But what function are you talking about? I couldn't find it in the documentation.

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.

Сценарии:
"Холм мертвецов"
"Священное древо"