Skip to content
User Avatar
#468
Auto-translated
Dear Ment, have you had a chance to look more closely at the AllowHeroHiringByRaceInTown() command? It seems to be working strangely. I want to set it up so that, for example, in two towns (a human town and an elven town), heroes can only be hired based on the town's race. I'm writing:
AllowHeroHiringByRaceInTown('humanTown', TOWN_HEAVEN, 1);
AllowHeroHiringByRaceInTown('elvenTown', TOWN_PRESERVE, 1);
and I'm also using a loop to prevent the hiring of heroes of other races in these towns. As a result, in the first town where the player starts (e.g., the human town), heroes of the human race can be hired, and everything is normal, but in the second town, there are no heroes at all. I'm not sure what the problem is.
Карты для Heroes V: Повелители орды:
Multiplayer: Господство, Извечное противостояние, Война за Магию, Торговая империя, Анатомия войны, Эксперимент
SingleScenario: Последний Рубеж, Трон, Элиралис, Вернуться домой!, Лабиринты разума
Campaign: Колонизация