Skip to content

Posts from Scripts

4.8 (8 ratings)
In reply to Олегарх
User Avatar
#742
Auto-translated
Oligarch
Is there a command to change a hero's name?

Changing the name (scripted) is only possible by creating a copy of the hero with a new name.
Карты для Heroes V: Повелители орды:
Multiplayer: Господство, Извечное противостояние, Война за Магию, Торговая империя, Анатомия войны, Эксперимент
SingleScenario: Последний Рубеж, Трон, Элиралис, Вернуться домой!, Лабиринты разума
Campaign: Колонизация
In reply to KioM
User Avatar
#743
Auto-translated
I don't need to change the scripted name; I need to change the name that is set in the hero's properties.
Мои карты:
Town
Готовится:Чума (40%), Сосиска(42%), Война Грааля
User Avatar
#744
Auto-translated
and this isn't done in the scripts.
Маласса ждёт...
Маласса знает...
Маласса за всеми наблюдает...
In reply to Sanctuary
User Avatar
#745
Auto-translated
Sanctuary
This isn't done through scripts.
I need it to change during gameplay.
Мои карты:
Town
Готовится:Чума (40%), Сосиска(42%), Война Грааля
User Avatar
#746
Auto-translated
Could you tell me what it's for? Maybe you can just replace the heroes with teleporters, and that's it?
 

К А
Стикеры GBF в Telegram
In reply to Ment
User Avatar
#747
Auto-translated
Ment
Could you tell me what it's for? Maybe you can just replace the heroes with teleporters, and that's it?
This is an option, but then you would have to copy the army from the old hero to the new one.
Мои карты:
Town
Готовится:Чума (40%), Сосиска(42%), Война Грааля
User Avatar
#748
Auto-translated
This is an option, but then you would have to copy the army from the old hero to the new one.
Well, it's not that difficult ;)
 

К А
Стикеры GBF в Telegram
#749
Auto-translated
How can I change the model of an object displayed on the map using a script, without causing bugs or lag, or using mods?
In reply to Polegche
User Avatar
#750
Auto-translated
Polegche
How can I change the model of an object displayed on the map using a script, without causing bugs or lag, or requiring mods?
Could you provide more details?
Мои карты:
Town
Готовится:Чума (40%), Сосиска(42%), Война Грааля
#751
Auto-translated
To be more specific, you need to place a demon on the map, which is one of the quest monsters, but it is disguised as a tree. The player can kill the demoness to make the illusion disappear, or find it themselves by listening to rumors in the tavern. The problem is that I can't change the quest type when I change the quest mob, so this task can only be accomplished by changing its model display on the map. All my attempts ended with a crash to the desktop.
In reply to Polegche
User Avatar
#752
Auto-translated
Easier
To be more specific, you need to place a demon on the map, which is one of the quest monsters, but it is disguised as a tree. The player can kill the demoness to make the illusion disappear, or find it themselves by listening to rumors in the tavern. The problem is that I can't change the quest type when I change the quest mob, so this task can only be done by changing its model display on the map. All my attempts ended with a crash to the desktop.
Or create 2 objects? One demon with a tree model, and another regular demon, and when the illusion disappears, simply replace them? Of course, for the tree-demon, we remove the animation ;)
Моды для HeroesV:
NHF 0.90 : NHF - группа в VK

Карты для HeroesV:
Путешествие , Условие крови , Рука судьбы.Часть 1: В поход , Рука судьбы.Часть 2: Отчаянье , Рука судьбы.Часть 3: Восхождение , Стойкость
Абсолютная власть , Иду на Вы! , Корона Ургаша , На задворках
Мир надо уничтожить... Чтобы создать свой...
#753
Auto-translated
The problem is that I can't change the quest type when I change the quest mob, so this task can only be accomplished by changing its model display on the map. All my attempts ended with a crash to the desktop.
In reply to Polegche
#754
Auto-translated
Easier
The problem is that I can't change the quest type when I change the quest mob.
That's strange. It should be possible to do it with scripts.
#755
Auto-translated
Here's another feature I'd like to implement. There's a caravan, but I also need to disguise it, but this time it should look like golems. (When the turn is skipped, the player will definitely be surprised when a legion crosses their path).
In reply to Polegche
User Avatar
#756
Auto-translated
Polegche
The problem is that I can't change the quest type when I change the quest mob, so this task can only be accomplished by changing its model display on the map. All my attempts ended with a crash to the desktop.
What are you inventing? A real solution is given. No script-based substitutions are needed:confused::rolleyes:

Added 1 minute ago
Polegche
Here's another thing I'd like to implement. There's a caravan, but I need to disguise it too, but this time it should look like golems. (When the turn passes, the player will definitely be surprised when a legion crosses his path).
It's exactly the same. Don't forget about the animation - you need to remove it, otherwise it will crash.
Моды для HeroesV:
NHF 0.90 : NHF - группа в VK

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

Statistics

Welcome our newest member: Emil