Posts from Current questions and answers regarding the map editor.
The list of allowed heroes is here: /MapObjects/_(AdvMapSharedGroup)/Heroes/Any.xdb
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога
Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
OverrideObjectTooltipNameAndDescription(script name of the object, name of the object in the window, description of the object in the window)
The last two parameters are paths to the texts.
Пробуждение зла
Нашествие из Преисподней
Смена эпох
Скачать все кампании одним архивом: Яндекс.Диск Google.Диск
You can download the set of 3 Campaigns (English version) here
Одиночные сценарии Heroes V 3.1:
Незваные гости
Красный кристалл
Синий кристалл
Закат тьмы
Мультиплеерные карты для Heroes V 3.1:
Легендарная война
Сердце вулкана
Передел мира
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога
Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
They have their own - SetMonsterNames, as well as in the property tree: SingleMonsterNameFileRef (for a single creature) and MultipleMonstersNameFileRef (for an "army").
Пробуждение зла
Нашествие из Преисподней
Смена эпох
Скачать все кампании одним архивом: Яндекс.Диск Google.Диск
You can download the set of 3 Campaigns (English version) here
Одиночные сценарии Heroes V 3.1:
Незваные гости
Красный кристалл
Синий кристалл
Закат тьмы
Мультиплеерные карты для Heroes V 3.1:
Легендарная война
Сердце вулкана
Передел мира
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога
Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
For single-player, it's where there's only one stack. You can give the same link to both points.
SetMonsterNames has three parameters: monster name, text, and monster type (single, army, or both), but I don't remember the order. Check the script manual; it should be there.
I've tested everything now, and it works with creatures, but not with objects:( The console doesn't show any errors, but the objects to which the function was applied have lost their name and description; there's just an empty space left.
Here's an example: OverrideObjectTooltipNameAndDescription("Tavern1", "tavn", "tavo"); Of course, the text files with these names exist, and they are all in the correct format.
Пробуждение зла
Нашествие из Преисподней
Смена эпох
Скачать все кампании одним архивом: Яндекс.Диск Google.Диск
You can download the set of 3 Campaigns (English version) here
Одиночные сценарии Heroes V 3.1:
Незваные гости
Красный кристалл
Синий кристалл
Закат тьмы
Мультиплеерные карты для Heroes V 3.1:
Легендарная война
Сердце вулкана
Передел мира
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога
Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
You need to provide the complete path, just like in a message box.
Added after 5 hours and 34 minutes
In one of the Hammers of Fate maps (I think), there was a mission with a caravan. I've seen a function that creates a caravan, but I don't know how to move this caravan each turn, how to prevent the computer player from attacking it, and how to trigger a battle when it is attacked. Has anyone done something similar?
Пробуждение зла
Нашествие из Преисподней
Смена эпох
Скачать все кампании одним архивом: Яндекс.Диск Google.Диск
You can download the set of 3 Campaigns (English version) here
Одиночные сценарии Heroes V 3.1:
Незваные гости
Красный кристалл
Синий кристалл
Закат тьмы
Мультиплеерные карты для Heroes V 3.1:
Легендарная война
Сердце вулкана
Передел мира
The caravan moves on its own each turn. The AI will attack it if the opportunity arises, but you can place impassable static objects around the caravan during its turn, blocking its path, and remove them during the player's turn. Only standard hero interaction with the caravan is possible; a touch trigger does not affect it.
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога
Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
Пробуждение зла
Нашествие из Преисподней
Смена эпох
Скачать все кампании одним архивом: Яндекс.Диск Google.Диск
You can download the set of 3 Campaigns (English version) here
Одиночные сценарии Heroes V 3.1:
Незваные гости
Красный кристалл
Синий кристалл
Закат тьмы
Мультиплеерные карты для Heroes V 3.1:
Легендарная война
Сердце вулкана
Передел мира
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога
Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
Juss456, when adding an army using AddObjectCreatures, make sure to include a sleep(1) between creating the caravan and adding the army. If needed, there was a similar quest in the Mercenaries map – a caravan was created, which needed to be killed before reaching a certain location.
Thank you all! I'll try to create the mission tomorrow. I always insert sleeps in questionable places; otherwise, I've already had trouble creating creatures and working with them.
Added after 14 hours 33 minutes
There is a function called EnableHeroAI(sHeroName, bEnable). Is there a function that checks the state of bEnable? Something like IsEnableHeroAI?
Пробуждение зла
Нашествие из Преисподней
Смена эпох
Скачать все кампании одним архивом: Яндекс.Диск Google.Диск
You can download the set of 3 Campaigns (English version) here
Одиночные сценарии Heroes V 3.1:
Незваные гости
Красный кристалл
Синий кристалл
Закат тьмы
Мультиплеерные карты для Heroes V 3.1:
Легендарная война
Сердце вулкана
Передел мира
____________________
Всех моих врагов я беспощадно рву в клочья :mad: !