Skip to content

Posts from Heroes killed in the tavern.

5.0 (1 rating)
User Avatar
6 years ago
Auto-translated
I set exceptions for hero races in the tavern, but for some reason, I can still recruit fallen enemy heroes, even though their race is blocked. Do you know how to fix this?
User Avatar
6 years ago
Auto-translated
In Map Properties => Heroes => Uncheck all heroes that could hypothetically be dead. Or use scripts.

Added after 57 seconds
IMPORTANT! You have chosen the wrong section to post your topic.
In reply to }{0TT@6bI4
User Avatar
6 years ago
Auto-translated
}{0TT@6bI4
In Map Properties => Heroes => Uncheck all heroes that could potentially be dead.
Or use scripts.

Added after 57 seconds
IMPORTANT! You have chosen the wrong section to post your topic.
If you uncheck the boxes, it will completely block that hero from appearing on the map, but I need one player to be able to recruit these heroes, while another player cannot. Recruiting new heroes is simple, but it's more complicated with fallen or surrendered heroes.
User Avatar
6 years ago
Auto-translated
Start a separate data processing thread with a check to see if the hero is alive, and then use the AllowPlayerTavernHero/AllowHeroHiringByRaceInTown/AllowHiringOfHeroInTown functions, which are executed if the check returns a negative result.
P.S. In the specified script functions, set the last parameter to false in the first two, and to 0 in the last one.

Statistics

Welcome our newest member: recijeb