Skip to content
User Avatar
#949
Auto-translated
Heroist
How can you check if a unit can shoot during a battle? (Is it a ranged unit?). CommandShot naturally throws an error if you try to make a peasant shoot...
a) Put the IDs of all ranged units into an array and check as needed whether the unit that needs to shoot is a ranged unit.
b) Forget about it and put it in a separate thread.

Added 6 minutes later
Dyrman
Implementation of Tessa's special ability in NHF. So that it affects both friendly and enemy heroes in cities, or when the hero is in the city, or when someone is entering the city, etc...
Another global trigger. There don't seem to be any other ways for a hero to interact with a city besides MakeHeroInteractWithObject and MoveHeroRealTime...:(
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4

Statistics

Welcome our newest member: Фёдор Фёдорович