Skip to content

Posts from Scripts

4.8 (8 ratings)
In reply to Ment
User Avatar
#1369
Auto-translated
Ment
TakeAwayHeroExp( heroName, exp )
The LockMinHeroSkillsAndAttributes( heroName ) function can be useful with her if you need to lock certain skills so they can't be reduced.
Thank you very much! Everything works now.
Кампании для Heroes V 3.1 (Трилогия):

Пробуждение зла
Нашествие из Преисподней
Смена эпох

Скачать все кампании одним архивом: Яндекс.Диск Google.Диск

You can download the set of 3 Campaigns (English version) here


Одиночные сценарии Heroes V 3.1:


Незваные гости
Красный кристалл
Синий кристалл
Закат тьмы

Мультиплеерные карты для Heroes V 3.1:

Легендарная война
Сердце вулкана
Передел мира
User Avatar
#1370
Auto-translated
I apologize, doesn't this function sometimes cause issues? At least, I remember (though I don't recall the specific version) that after downgrading a hero to level 1 using this method, they would no longer be able to level up (they wouldn't reach level 2, etc.).

Whatever
User Avatar
#1371
Auto-translated
I don't know, I successfully added it to the script for the NHF version of Fagus, so if it's buggy, expect some glitches. But it seems like it was tested, and maybe even by someone else, and no one complained.
 

К А
Стикеры GBF в Telegram
In reply to Heroist
User Avatar
#1372
Auto-translated
Heroist
I apologize, doesn't this function sometimes cause issues? At least, at some point (I don't remember the version), after reducing a hero to level 1 in this way, they could no longer level up (they wouldn't reach level 2, etc.).
I just checked it myself, in two different scenarios. Everything works fine now. In one of the scenarios, the hero had 9000 experience points, and 30000 were deducted. There are no glitches.
Кампании для Heroes V 3.1 (Трилогия):

Пробуждение зла
Нашествие из Преисподней
Смена эпох

Скачать все кампании одним архивом: Яндекс.Диск Google.Диск

You can download the set of 3 Campaigns (English version) here


Одиночные сценарии Heroes V 3.1:


Незваные гости
Красный кристалл
Синий кристалл
Закат тьмы

Мультиплеерные карты для Heroes V 3.1:

Легендарная война
Сердце вулкана
Передел мира
User Avatar
#1373
Auto-translated
i.e. - after reducing the level to 1, upon gaining 1000 experience points, did the hero receive a congratulatory message for reaching level 2 and a choice of skills?

Whatever
User Avatar
#1374
Auto-translated
after that, he received 10,000 experience points (in another location), and he immediately gained several levels.

Added 2 minutes later
so, everything seems to be standard. Only the skills are removed, not according to the principle of FIRST IN - LAST OUT.
Кампании для Heroes V 3.1 (Трилогия):

Пробуждение зла
Нашествие из Преисподней
Смена эпох

Скачать все кампании одним архивом: Яндекс.Диск Google.Диск

You can download the set of 3 Campaigns (English version) here


Одиночные сценарии Heroes V 3.1:


Незваные гости
Красный кристалл
Синий кристалл
Закат тьмы

Мультиплеерные карты для Heroes V 3.1:

Легендарная война
Сердце вулкана
Передел мира
User Avatar
#1375
Auto-translated
Okay, thank you for the clarification. I just had some issues with this on older maps, but it seems like that was version 3.0.
Thank you.

Whatever
User Avatar
#1376
Auto-translated
In general, it would be interesting to know the function (code) that determines how the MENTOR works in the game. After all, it probably operates on a similar principle.
Кампании для Heroes V 3.1 (Трилогия):

Пробуждение зла
Нашествие из Преисподней
Смена эпох

Скачать все кампании одним архивом: Яндекс.Диск Google.Диск

You can download the set of 3 Campaigns (English version) here


Одиночные сценарии Heroes V 3.1:


Незваные гости
Красный кристалл
Синий кристалл
Закат тьмы

Мультиплеерные карты для Heroes V 3.1:

Легендарная война
Сердце вулкана
Передел мира
User Avatar
#1377
Auto-translated
Is it possible to determine the player's race or the city they control?
502 Bad Gateway
__________________________________
nginx/0.8.54
User Avatar
#1378
GetPlayerRace(playerID)
GetTownRace ('objectname')

Whatever
User Avatar
#1379
Auto-translated
Returning to the topic with TakeAwayHeroExp, I found the cause of the error. If this command runs almost simultaneously with the hero gaining experience (for example, at the end of a battle), then a bug does occur, and subsequent levels are not granted.
Кампании для Heroes V 3.1 (Трилогия):

Пробуждение зла
Нашествие из Преисподней
Смена эпох

Скачать все кампании одним архивом: Яндекс.Диск Google.Диск

You can download the set of 3 Campaigns (English version) here


Одиночные сценарии Heroes V 3.1:


Незваные гости
Красный кристалл
Синий кристалл
Закат тьмы

Мультиплеерные карты для Heroes V 3.1:

Легендарная война
Сердце вулкана
Передел мира
User Avatar
#1380
Auto-translated
Yeah, that's what I thought! I remember that there was more to it than meets the eye. Thanks for the info.

Whatever
User Avatar
#1381
Auto-translated
Why isn't this function working?

Trigger(2, 2, "removelF");

function removelF(herolos, herowin)
if herolos=="Grok" then
SetObjectiveState("Sec17", 3, 1);
sleep(3);
...
end;
end;

"..." - this is a verified piece of script, so there definitely shouldn't be any issues with it.
The hero Grok belongs to the second player. His name is Grok. When I defeat him, nothing happens.
Кампании для Heroes V 3.1 (Трилогия):

Пробуждение зла
Нашествие из Преисподней
Смена эпох

Скачать все кампании одним архивом: Яндекс.Диск Google.Диск

You can download the set of 3 Campaigns (English version) here


Одиночные сценарии Heroes V 3.1:


Незваные гости
Красный кристалл
Синий кристалл
Закат тьмы

Мультиплеерные карты для Heroes V 3.1:

Легендарная война
Сердце вулкана
Передел мира
In reply to MasteR
User Avatar
#1382
Auto-translated
Does the console display any messages?
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
User Avatar
#1383
Auto-translated
in total, 0 reactions
Кампании для Heroes V 3.1 (Трилогия):

Пробуждение зла
Нашествие из Преисподней
Смена эпох

Скачать все кампании одним архивом: Яндекс.Диск Google.Диск

You can download the set of 3 Campaigns (English version) here


Одиночные сценарии Heroes V 3.1:


Незваные гости
Красный кристалл
Синий кристалл
Закат тьмы

Мультиплеерные карты для Heroes V 3.1:

Легендарная война
Сердце вулкана
Передел мира

Statistics

Welcome our newest member: leyu