Posts from NHF – new heroes for Heroes V 3.1.
Added 1 hour 38 minutes ago
and what is the current state of the mod? is development frozen, or is someone still working on it?
Holy cow, if something like this had happened even five years ago, it would have been amazing...
Will this be used in a mod to greatly expand its capabilities? If so, I would like to participate in the development - I am proficient in both regular and combat scripts, and I have extensive experience working with them.

---------------------------------------------
Неудачное планирование ведёт к неудаче ...
NCF - мод, добавляющий дополнительных существ в HeroesV 3.1
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога
Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
Hmm, that was certainly something to consider. Is the script applied to both heroes? And would a rule stating that a script on the attacking hero is sufficient work here?
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога
Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
The problem isn't that. The patch launches a combat script for each client, even if it's only attached to one hero or is an auto-executing script.
Is it possible or there is a better solution?
If scripts are executed twice in PvP.... What if the script is told to be executed owner if the owner of the script is the attacker. The game can differentiate between attacker and defender so adding this rule will make one of the games to not execute the script.
Is it possible or there is a better solution?
My proposed solution is to call StartCombat with every hero with different owners with the latter script:
SetGameVar('execution_thread', '1')
Break()Instead of '1' here could be the number of player who possess the hero.When PvP battle starts, each script decides whether it should execute or not.
For example: if game var 'execution_thread' is less than the owner of one of the heroes, it will refuse to work.
Note that SetGameVar during multiplayer battles is separated from adventure map (so, another hack is needed, and as part of it, I already sent patch to dredknight). And is separated from game vars on other players' computers.
To circumvent adventure map - combat barrier for game vars, consoleCmd('@SetGameVar(...)') should be used instead with already mentioned patch.
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога
Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4