It's exactly the same. Don't forget about the animation – you need to remove it, otherwise the game will crash.
Posts from Scripts
Where can I find the caravan to change the model?
You need to find the desired model through the property tree (MapPropertyTree), using the Shared tab.
How can I make creature models for heroes, but only so that this script works on the map where I create it?
Could you please tell me if battle scripts work in multiplayer? I've heard that they don't work, or that they work, but not quite as intended. I've never written any, so I wanted to know if it's worth learning about them!
Specifically, I'm interested in two things. First, I want to create an artifact similar to the Amulet of Absorption, but instead of returning 50%, it would return 20%.
Second, I want to create an ability similar to Garuna's: for each enemy creature killed, the army's initiative increases by 1. Using GiveHeroBattleBonus, you can grant a bonus that appears during the battle (e.g., a minute after the start), but unfortunately, I haven't been able to track the death of a unit yet.
Hello!
Could you please tell me if combat scripts work in Multiplayer? I've heard for a long time that they don't work, or they work, but not quite as they should. I've never written them, so I wanted to know if it's worth learning about them?!
Basically, I'm interested in two things. First, I want to create an artifact similar to the Amulet of Absorption, but instead of returning 50%, it would return 20%.
Second, I want to create an ability similar to Garuna's: for each enemy creature killed, the army's initiative increases by 1. Using GiveHeroBattleBonus, you can give a bonus that appears directly during the battle (for example, a minute after the start of the battle), but unfortunately, I haven't been able to track the death of a unit yet.
Hello!
They work in Multiplayer. But some functions are not available. You can track it using the tactical function: AttackerCreatureDeath or DefenderCreatureDeath; the name of the monster (not a global one) is passed as the first and only parameter, and it is set when the tactical map is loaded. To avoid complications, I used to assign each stack of creatures its own name at the beginning of the battle, and then call one or the other as needed.
Multiplayer: Господство, Извечное противостояние, Война за Магию, Торговая империя, Анатомия войны, Эксперимент
SingleScenario: Последний Рубеж, Трон, Элиралис, Вернуться домой!, Лабиринты разума
Campaign: Колонизация
Good afternoon!
Please tell me, do battle scripts work in Multiplayer? I've heard for a long time that they don't work, or they work but not quite as needed. I haven't written any of them myself, so I wanted to know - is it worth learning about them?!
1) Some scripts can be used in battles and in multiplayer, but it’s difficult to bind them to events on the arena in real time as you would like (either they don’t work, or they work poorly).
2) During online simultaneous play, the likelihood of desynchronization due to these scripts increases; save files may break, and the TalkBox function also breaks them. (They say this applies to regular network games too, but I don’t know for sure).
3) I conducted experiments to diversify the NHF mod. But I couldn’t achieve adequate control. So I abandoned this hopeless endeavor. If someone manages to achieve good control with a normal response time, that would be great.
4) It’s a pity that the hero’s army decreases at the end of the battle on the global map, rather than during the battle. You could increase something for the hero directly in the battle with a delay from the global map: for example, mana. But the delay gives different results on different computers :(
5) When trying to use battle scripts, the console complains about them, saying that they cannot be used. If there was a relative time delay for the game process itself, not the processor, maybe something would work.
P.S. A thousand devils! (this is the one-thousandth message on ХВ) :)
GiveHeroBattleBonus
NHF 0.90 : NHF - группа в VK
Карты для HeroesV:
Путешествие , Условие крови , Рука судьбы.Часть 1: В поход , Рука судьбы.Часть 2: Отчаянье , Рука судьбы.Часть 3: Восхождение , Стойкость
Абсолютная власть , Иду на Вы! , Корона Ургаша , На задворках
Мир надо уничтожить... Чтобы создать свой...
Thank you for saving me time – I won’t be studying combat scripts.
If you’re interested, definitely take a look. You might be the one who solves some of the problems described above.
Multiplayer: Господство, Извечное противостояние, Война за Магию, Торговая империя, Анатомия войны, Эксперимент
SingleScenario: Последний Рубеж, Трон, Элиралис, Вернуться домой!, Лабиринты разума
Campaign: Колонизация
Is it possible to display hero textures (faces) through messages, for example, using ShowFlyingSign or MessageBox?