Цикл кампаний "Дыхание Смерти" из трёшки в четвёртом исполнении
Учебная карта
Астралия
За Королеву!
Подземелья и Дьяволы
Отголоски войны
Освобождение
New here? I'm Roha — want a quick tour?
Using SetRegionBlocked with a condition didn't work – the computer-controlled hero still passes through the blocked area.
If he tries to move to an adjacent region (nearby) that activates a blocking region, the hero will pass through the block. However, if I modify the script for my own purposes, I can't pass through.
Moreover, in this case, I need to limit the area of one computer-controlled hero without affecting other heroes belonging to the same player.
You can’t make this hero a new player-ally, right?
TB_BLACKSMITH
TB_DWELLING_1
TB_DWELLING_2
TB_DWELLING_3
TB_DWELLING_4
TB_DWELLING_5
TB_DWELLING_6
TB_DWELLING_7
TB_FORT
TB_GRAIL
TB_MAGIC_GUILD
TB_MARKETPLACE
TB_SHIPYARD
TB_SPECIAL_0
TB_SPECIAL_1
TB_SPECIAL_2
TB_SPECIAL_3
TB_SPECIAL_4
TB_SPECIAL_5
TB_SPECIAL_6
TB_TAVERN
TB_TOWN_HALLBuildings that do not meet the construction requirements will not be built.
You could try using SetAIHeroAttractor.
However, it's not entirely clear how far it will allow the object to move away...