Skip to content

Posts from NHF – new heroes for Heroes V 3.1. Auto-translated

4.9 (16 ratings)
In reply to Dyrman
User Avatar
#215
Auto-translated
Avran. To use the script, you need a hero named "Avran" and place the texts in the appropriate location (see the script).
Attachments 1
1 file attached • Total size: 2.6 KB
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
In reply to RedHeavenHero
User Avatar
#216
Auto-translated
RedHeavenHero
Avran. To use the script, you need a hero named "Avran" and place the texts in the correct location (see the script).
Okay, thanks for posting it here. The Megaphones provider has banned several file-sharing services and even some websites. We'll add it to the list ;)

Ment, how is that hero doing?

Avran (Latin: *Gratíola*) is a genus of perennial herbaceous poisonous plants from the Plantain family (Plantaginaceae). :D

Added 3 hours 9 minutes ago
The Avran script needs to be reworked. Unfortunately, in the Multiplayer mode, you cannot use widely used, non-addressed, general triggers; here, we have a trigger for a new day.
And all global variables and functions must contain the prefix "NHF_" to avoid conflicts with map scripts; I'm renaming them myself.
If any other map uses this trigger, there will be script errors. And it is used very often.
Convert the trigger to a separate While loop.

In general, the ideal solution would be to not use triggers at all, except for a custom ability – I haven't seen a Multiplayer map using it yet.
Моды для HeroesV:
NHF 0.90 : NHF - группа в VK

Карты для HeroesV:
Путешествие , Условие крови , Рука судьбы.Часть 1: В поход , Рука судьбы.Часть 2: Отчаянье , Рука судьбы.Часть 3: Восхождение , Стойкость
Абсолютная власть , Иду на Вы! , Корона Ургаша , На задворках
Мир надо уничтожить... Чтобы создать свой...
In reply to Dyrman
User Avatar
#217
Auto-translated
Dyrman
Avran's script needs to be reworked. Unfortunately, in the multiplayer mode, it's not possible to use widely used, non-addressed, general triggers; here, we have a trigger for a new day.
And all global variables and functions must contain the prefix "NHF_," to avoid having the same names as map scripts; I'm renaming them myself for now.
If this trigger is used in any other map, there will be script errors. And it's used quite a lot.
Convert the trigger to a separate-thread While loop.
Reworked.

I suggest the following progression:
Fundamentals of Logistics --> Reconnaissance.
Attachments 1
1 file attached • Total size: 2.6 KB
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
In reply to RedHeavenHero
User Avatar
#218
Auto-translated
RedHeavenHero
I've reworked it.

I suggest the following upgrade path:
Fundamentals of Logistics --> Scouting.
Well, I don't know... what about Leadership and Treasury? Logically, it fits a bit better, as the hero, even if mediocre, still brings in money. For now, Scouting will remain.
Моды для HeroesV:
NHF 0.90 : NHF - группа в VK

Карты для HeroesV:
Путешествие , Условие крови , Рука судьбы.Часть 1: В поход , Рука судьбы.Часть 2: Отчаянье , Рука судьбы.Часть 3: Восхождение , Стойкость
Абсолютная власть , Иду на Вы! , Корона Ургаша , На задворках
Мир надо уничтожить... Чтобы создать свой...
User Avatar
#219
Auto-translated
Dyrman, I have an idea for a new hero. Race: Warlock (dark elf), name: Darkblood (English: dark blood). He can steal a portion of mana from a nearby hero (preferably an enemy) and convert it into additional units for his own army (the higher the hero's level, the more units he creates, and the higher the level of the city the units come from). His intelligence increases every 3 or 5 levels. If you are interested in creating this hero, I can also provide a biography.
In reply to sarkkot55555
User Avatar
#220
Auto-translated
sarkkot55555
Dyrman, I have an idea for a new hero. Race: Necromancer (Dark Elf), name: Darkblood. He can steal mana from nearby heroes (preferably from enemy heroes) and turn it into additional units for his army. (The higher the hero's level, the more units he creates, and the higher the level of the city's units). His intelligence increases every 3 or 5 levels. If you are interested in this hero, I can also provide a biography.
A similar idea has already been suggested (a hero who is like a demon, stealing mana), where mana is stolen from the enemy before a battle. However, Dark Elves already have enough mana-dependent processes, including a new hero (see the first post in this thread). True, the stolen mana is not used to create new units; only Necromancers in Ashan possess the secrets of transforming units, and perhaps humans, with some reservations.
We could give this ability to a Necromancer and call him "Body Snatcher," but that would be another iteration of necromancy, which already exists. There was also the idea of simply luring the weakest enemy unit to the hero's side if there are free slots, but again, this would require either restoring strength for each unit or manually managing a group. There is also an option for the Academics: they create elementals from mana. Many similar special abilities can be imagined, but everything needs to be properly developed so that, firstly, there are few similarities, secondly, they are well-usable, and thirdly, they are suitable for the race.

Added 1 hour 22 minutes ago
When running the script and simulating various situations, various errors appear (they are very clearly visible in the console). These need to be fixed.
The mana theft should occur once a week; otherwise, I am asked about it every day, and the goblins are constantly running away.

I have attached a map for testing this hero.
Attachments 1
1 file attached • Total size: 20.8 KB
Моды для HeroesV:
NHF 0.90 : NHF - группа в VK

Карты для HeroesV:
Путешествие , Условие крови , Рука судьбы.Часть 1: В поход , Рука судьбы.Часть 2: Отчаянье , Рука судьбы.Часть 3: Восхождение , Стойкость
Абсолютная власть , Иду на Вы! , Корона Ургаша , На задворках
Мир надо уничтожить... Чтобы создать свой...
In reply to Dyrman
User Avatar
#221
Auto-translated
It seems to be working. In the description of the spell, it should be noted that the hero needs to be closer to the enemy town than to his own or an allied town.
Dyrman
The goblins are constantly running away.
It was just very lucky.
Attachments 1
1 file attached • Total size: 28.0 KB
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
In reply to RedHeavenHero
User Avatar
#222
Auto-translated
RedHeavenHero
It seems to be working. In the description of the spell, it should be specified that the hero needs to be closer to the enemy city than to his own or an allied city.

It was just very lucky.;)
There are still errors related to file paths in dialogues.
It no longer happens constantly.
Also: the message about the theft for the unfortunate player, whose gold was stolen, is displayed one day later; it should be displayed one day earlier, i.e., first, the former owner of the gold learns about the theft, considering that the player is still alive.
Моды для HeroesV:
NHF 0.90 : NHF - группа в VK

Карты для HeroesV:
Путешествие , Условие крови , Рука судьбы.Часть 1: В поход , Рука судьбы.Часть 2: Отчаянье , Рука судьбы.Часть 3: Восхождение , Стойкость
Абсолютная власть , Иду на Вы! , Корона Ургаша , На задворках
Мир надо уничтожить... Чтобы создать свой...
In reply to Dyrman
User Avatar
#223
Auto-translated
What does the console display when these errors occur?
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
In reply to RedHeavenHero
User Avatar
#224
Auto-translated
RedHeavenHero
What does the console say when these errors occur?
Why don't you check it yourself? :)
error extended
last token read: '\' at line 1 it string "DoStringScript" after the window appears, stating that the opponent was robbed... etc.
P.S. After fixing it, please test all situations directly on the map, so that nothing goes wrong again... :o

Added after 13 hours 49 minutes
UP Build 28
Added
Kubera
Elmandr

FIX
Falmer --> Hafaad, Shagrat, Sandro
Моды для HeroesV:
NHF 0.90 : NHF - группа в VK

Карты для HeroesV:
Путешествие , Условие крови , Рука судьбы.Часть 1: В поход , Рука судьбы.Часть 2: Отчаянье , Рука судьбы.Часть 3: Восхождение , Стойкость
Абсолютная власть , Иду на Вы! , Корона Ургаша , На задворках
Мир надо уничтожить... Чтобы создать свой...
In reply to Dyrman
User Avatar
#225
Auto-translated
Checked. This does not affect the script's functionality. The error is related to the construction of the text.
For example:
MessageBoxForPlayers(GetPlayerFilter(1), '/test.txt') – no errors.
MessageBoxForPlayers(GetPlayerFilter(1), {'/test.txt'; a=1}) – error.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
In reply to RedHeavenHero
User Avatar
#226
Auto-translated
RedHeavenHero
I checked. This doesn't affect the script's functionality. The error is related to the construction of the text.
For example:
MessageBoxForPlayers(GetPlayerFilter(1), '/test.txt')--no errors.
MessageBoxForPlayers(GetPlayerFilter(1), {'/test.txt'; a=1})--error.
It's quite possible. However, after the error, it said that the script was completely stopped. Did you redo the rest?
Моды для HeroesV:
NHF 0.90 : NHF - группа в VK

Карты для HeroesV:
Путешествие , Условие крови , Рука судьбы.Часть 1: В поход , Рука судьбы.Часть 2: Отчаянье , Рука судьбы.Часть 3: Восхождение , Стойкость
Абсолютная власть , Иду на Вы! , Корона Ургаша , На задворках
Мир надо уничтожить... Чтобы создать свой...
In reply to Dyrman
User Avatar
#227
Auto-translated
Dyrman
Also: the message about the theft for the unfortunate player, whose gold was stolen, should be displayed one day later, but it should actually be displayed one day earlier, meaning the former owner of the gold should find out about the theft first, considering the player is still alive.
Then all events should happen one day earlier, meaning immediately after the turn of the player with Avran ends?
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
In reply to RedHeavenHero
User Avatar
#228
Auto-translated
RedHeavenHero
Then all events should happen one day earlier, that is, immediately after the player with Avran finishes their turn?
It also depends on which player goes first, so the events will differ, and it might not be possible to implement this successfully.
The main point: the message about the money being stolen from me should appear between sending the goblins on their mission and their return. Otherwise, it happens like this: they leave, then they return, and only then do they steal. Currently, this message is displayed last. This is not critical, but it is a bit unaesthetic, and if it is difficult to implement, then it can be ignored.
Моды для HeroesV:
NHF 0.90 : NHF - группа в VK

Карты для HeroesV:
Путешествие , Условие крови , Рука судьбы.Часть 1: В поход , Рука судьбы.Часть 2: Отчаянье , Рука судьбы.Часть 3: Восхождение , Стойкость
Абсолютная власть , Иду на Вы! , Корона Ургаша , На задворках
Мир надо уничтожить... Чтобы создать свой...
User Avatar
#229
Auto-translated
UPBuild 29
Ilmirn
Mirazel
Моды для HeroesV:
NHF 0.90 : NHF - группа в VK

Карты для HeroesV:
Путешествие , Условие крови , Рука судьбы.Часть 1: В поход , Рука судьбы.Часть 2: Отчаянье , Рука судьбы.Часть 3: Восхождение , Стойкость
Абсолютная власть , Иду на Вы! , Корона Ургаша , На задворках
Мир надо уничтожить... Чтобы создать свой...