Heh... Ment was working on such a special ability (though it seems to be only for a Dwarf), but he eventually abandoned it. So, it's currently on hold.
Posts from NHF – new heroes for Heroes V 3.1.
I have a suggestion for a hero (or rather, for an ability).
Aenain: Mage
Specialty: Time Warper: at the beginning of the battle, he can change the distribution of creatures on the initiative bar and move a creature of his choice on the initiative bar.
I'll explain the ability: At the beginning of the battle, all creatures are randomly distributed on the initiative bar, and Aenain can change this distribution (i.e., redistribute the creatures on the bar again, but again randomly). In addition, he can move his creature (of his choice) forward on the initiative bar or move an enemy creature (of his choice) backward on the initiative bar (0.1 + 0.1 for every three levels of the hero, respectively, forward and backward). If the hero likes the arrangement on the initiative bar, he can simply click on "Wait" and simply get the opportunity to go half a turn earlier.
How the ability is used: at the very beginning of the battle, the hero uses it on any creature on the initiative bar, and if it is an enemy creature, he moves it backward, if it is his creature, he moves it forward, and at the same time, the distribution on the initiative bar is randomized again (i.e., two actions together, it is not possible to use only one of them).
The ability already exists and can simply be added as a mod, but I don't know how to make it dependent on the hero's level.
Sincerely, Haosfortum
It already exists in Timkhan's game resources (although Timkhan is better, as he is the Lord of Time). The developers didn't want to use it on the maps.
The developers' abilities will be added last... this is very desirable, but not necessary.
NHF 0.90 : NHF - группа в VK
Карты для HeroesV:
Путешествие , Условие крови , Рука судьбы.Часть 1: В поход , Рука судьбы.Часть 2: Отчаянье , Рука судьбы.Часть 3: Восхождение , Стойкость
Абсолютная власть , Иду на Вы! , Корона Ургаша , На задворках
Мир надо уничтожить... Чтобы создать свой...
Yes, all of this can be done. The main thing is to avoid problems like the one with Falmer. Special abilities that trigger events for all heroes are not very good: they can negatively affect others at any moment. I initially didn't want to make Eymund like that.
Can you give a more specific example?
The catch isn't in that.:smile52:
In my opinion, such a function would work. It returns the index with the smallest value.
Assuming that the index of the argument passed to the function is the name of the city, and the value is the distance. That is, it will return the name of the nearest city (from those that were in the array).
DesiredCity = nil;
MinDistance = 999;
For i, city in array_of_cities do
Distance = (city_xyz - hero_xyz);
If Distance < MinDistance then
MinDistance = Distance
DesiredCity = City
End
End
This is the entire code for selecting the nearest city; all that remains is to translate it from "Olbansky" and add a couple of conditions. You can also add a filter for enemy affiliation (filtering allied players in the team) and immediately find the ID of the player who owns the object. Added 7 minutes later
For example, the reward will be calculated as if the treasure was cleared "at a level higher." Of course, in the case of treasure rooms at the maximum level, some special level will have to be introduced for the hero. Another option is a percentage increase in the reward (but there will be a problem with artifacts).
It is necessary to first compile a list of objects to which such an attitude will apply.
It's a hassle, so it's better to leave it for the second 32-bit version. I would like to release the alpha version of the first 32 new ones earlier, and then add up to 64. Therefore, the special feature will not disappear, but its implementation will be postponed to another time.
I remind you that the first date for the implementation of all 64 new heroes is December 21, 2012 - right before the end of the world :)
But, most likely, the date will be postponed slightly.
P.S. I would like to release the 32-bit version at the beginning of October; in principle, for the alpha, the presence of familiar icons is not very important (but they need to be made different so that they don't repeat, for example, temporarily borrowed from companion factions)
NHF 0.90 : NHF - группа в VK
Карты для HeroesV:
Путешествие , Условие крови , Рука судьбы.Часть 1: В поход , Рука судьбы.Часть 2: Отчаянье , Рука судьбы.Часть 3: Восхождение , Стойкость
Абсолютная власть , Иду на Вы! , Корона Ургаша , На задворках
Мир надо уничтожить... Чтобы создать свой...
Well, it's even simpler than that.That's the whole code; all that's left is to translate it from "Olbanian."Towns = array of towns;
xyzHero = hero's coordinates;
TargetTown = nil;
MinDistance = 999;
For i, town in towns
Distance = (xyzTown - xyzHero);
If Distance < MinDistance then
MinDistance = Distance
TargetTown = Town
End
End
I probably don't know "Olbanian" very well, but the translation into Lua should be decent.:)
function FindClosestEnemyTown()
local towns = GetObjectNamesByType('TOWN');
if IsHeroAlive('Avran') then
if GetHeroTown('Avran') then
return nil;
end;
else
return nil;
end;
local hx, hy, hz = GetObjectPosition('Avran');
local dist = {};
for i, town in towns do
local tx, ty, tz = GetObjectPosition(town);
if tz == hz then
local s = sqrt((tx - hx) * (tx - hx) + (ty - hy) * (ty - hy));
dist[town] = s;
end;
end;
local targetTown = min(dist);
if GetObjectOwner(targetTown) == GetObjectOwner('Avran') then
return nil;
else
return targetTown;
end;
end;
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога
Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
The name sounds very elven.
She is present in the game's resources by Timkhan (although Timekhan is better, as he is the lord of time). The developers didn't want to use him on the maps.
The developers' abilities will be added last... this is very desirable, but not necessary.
I know it exists in the game, but I suggest a modified version (+level-dependent and repelling hostile creatures). The name was in the Conflux castle in Heroes of Might and Magic III, and IMHO, it's not at all elven.
NHF 0.90 : NHF - группа в VK
Карты для HeroesV:
Путешествие , Условие крови , Рука судьбы.Часть 1: В поход , Рука судьбы.Часть 2: Отчаянье , Рука судьбы.Часть 3: Восхождение , Стойкость
Абсолютная власть , Иду на Вы! , Корона Ургаша , На задворках
Мир надо уничтожить... Чтобы создать свой...
I think here it's worth choosing one: either rebalance the scale or give a single, powerful kick. Otherwise, the idea is interesting.
P.S. I can be an assistant in coming up with names/descriptions for heroes/abilities.
I think the ability should depend on the hero's level, and a simple "kick" won't be enough.
P.S. I can help with coming up with names/descriptions for heroes/abilities.
Added 2 minutes later
This option is better. Otherwise, it's like traveling from Moscow to St. Petersburg via Cape Town.
I probably don't know Albanian very well, but the translation into Lua should be decent. :)
NHF 0.90 : NHF - группа в VK
Карты для HeroesV:
Путешествие , Условие крови , Рука судьбы.Часть 1: В поход , Рука судьбы.Часть 2: Отчаянье , Рука судьбы.Часть 3: Восхождение , Стойкость
Абсолютная власть , Иду на Вы! , Корона Ургаша , На задворках
Мир надо уничтожить... Чтобы создать свой...
This is a local array. That is, it is cleared after the function finishes, and it is created anew each time.
I'm worried about what will happen when we come up with a hero who builds cities, and the script breaks.
HOW??? There is definitely no function that creates cities.
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога
Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
This is a local array. That is, it is deleted after the function finishes, and it is created anew each time.
HOW??? There definitely isn't a function that creates cities.
Although, I remember seeing a clever way to build a city on some forum... I should check it out.
NHF 0.90 : NHF - группа в VK
Карты для HeroesV:
Путешествие , Условие крови , Рука судьбы.Часть 1: В поход , Рука судьбы.Часть 2: Отчаянье , Рука судьбы.Часть 3: Восхождение , Стойкость
Абсолютная власть , Иду на Вы! , Корона Ургаша , На задворках
Мир надо уничтожить... Чтобы создать свой...
Anyone can contribute ideas right here. Whichever option the community likes best will be chosen. Of course, within certain limits.
I'm just worried that if we come up with a hero who builds cities, it will break the script.
But it works.
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога
Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
Can we come up with descriptions and names for the abilities of already created heroes?
What prevents us from giving this hero the "Summon Il-Hijra" ability with a corresponding city?
Added 1 minute ago
In what sense does it "work"?
NHF 0.90 : NHF - группа в VK
Карты для HeroesV:
Путешествие , Условие крови , Рука судьбы.Часть 1: В поход , Рука судьбы.Часть 2: Отчаянье , Рука судьбы.Часть 3: Восхождение , Стойкость
Абсолютная власть , Иду на Вы! , Корона Ургаша , На задворках
Мир надо уничтожить... Чтобы создать свой...