Posts from Current questions and answers regarding the map editor.
`MakeHeroReturnToTavernAfterDeath("hero1", true);`
`MakeHeroReturnToTavernAfterDeath("hero2", true);`
`MakeHeroReturnToTavernAfterDeath("hero3", true, 1);`
`MakeHeroReturnToTavernAfterDeath("hero4", true, 1);`
All 4 heroes appear on the map at the same time, then they can die in a random order and be re-hired by the AI. Will there be any errors in this situation that I'm not aware of?
Пробуждение зла
Нашествие из Преисподней
Смена эпох
Скачать все кампании одним архивом: Яндекс.Диск 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
What does "appear simultaneously" mean, and where do they come from?
These heroes were reserved.
Next, the function DeployReserveHero("", x, y, 0); is executed for all of them.
Then, sleep(1); and UnreserveHero(""); are executed, followed by another sleep, and all the functions described above.
After that, they are free to move around.
Пробуждение зла
Нашествие из Преисподней
Смена эпох
Скачать все кампании одним архивом: Яндекс.Диск Google.Диск
You can download the set of 3 Campaigns (English version) here
Одиночные сценарии Heroes V 3.1:
Незваные гости
Красный кристалл
Синий кристалл
Закат тьмы
Мультиплеерные карты для Heroes V 3.1:
Легендарная война
Сердце вулкана
Передел мира
These heroes were reserved.
After that, the function DeployReserveHero("", x, y, 0); works for everyone.
Then, sleep(1); and UnreserveHero(""); then another sleep, and all the functions described above are executed.
That's it, after that they are free to move.
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога
Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
Is the third parameter definitely set to 0 by default? If so, then everything should work.
In Deploy, is it 0? Yes.
Пробуждение зла
Нашествие из Преисподней
Смена эпох
Скачать все кампании одним архивом: Яндекс.Диск 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
Hero's name
Parameter that allows ("true") the hero to be placed in the tavern after defeat, or prohibits ("nil") it.
Parameter that determines the hero's indefinite stay in the tavern, awaiting subsequent hiring by the player (if it is not equal to 0).
For two heroes, the third parameter is equal to 1, for the other two, it is not specified (I assumed that there are 2 places in the tavern).
Пробуждение зла
Нашествие из Преисподней
Смена эпох
Скачать все кампании одним архивом: Яндекс.Диск Google.Диск
You can download the set of 3 Campaigns (English version) here
Одиночные сценарии Heroes V 3.1:
Незваные гости
Красный кристалл
Синий кристалл
Закат тьмы
Мультиплеерные карты для Heroes V 3.1:
Легендарная война
Сердце вулкана
Передел мира
Jack_of_shadows, I'm taking as a basis something that was once an unpleasant feature in Heroes of Might and Magic 4. The hero enters the movement range of a creature, which is 6 squares. If the hero gets stuck in the range and the player is forced to change the day, the creature runs up to him, using the animation from a battle to move and attack (once), and at the end of that day, the player has a battle with the unit that attacked him. Creatures that chase an enemy never run away or join.
The animation of the creature's movement will not play on the global map. And even if it does, the creature will not move anywhere. This can only be done in cutscenes. The only possible movement of the creature is to move it from one square to another using the SetObjectPosition function. Even with the animation added, it will all look absurd, and implementing all of this will be very tedious.
The only option that seems somewhat reasonable was suggested by Ment, by modifying the hero to be like a creature. But is it really necessary to go through all that trouble? Maybe we can find another way to achieve the desired effect?
Пробуждение зла
Нашествие из Преисподней
Смена эпох
Скачать все кампании одним архивом: Яндекс.Диск Google.Диск
You can download the set of 3 Campaigns (English version) here
Одиночные сценарии Heroes V 3.1:
Незваные гости
Красный кристалл
Синий кристалл
Закат тьмы
Мультиплеерные карты для Heroes V 3.1:
Легендарная война
Сердце вулкана
Передел мира
By the way, there was once a question about whether SetObjectPosition can place a monster anywhere, even inside a mountain, while CreateMonster is smarter and checks where it places them. Today, I noticed that CreateMonster can place a stack on water (a river), where it will naturally be inaccessible. Although, this might be normal.
Regarding the end of the day/beginning of the day: you can implement a cycle with a check of the current player, as I did in my non-working code; in that case, the battle will take place at the end of the day. However, this option consumes more resources.
MakeHeroReturnToTavernAfterDeath
Hero name
Parameter that allows ("true") the hero to return to the tavern after defeat, or prevents it ("nil").
Parameter that determines whether the hero stays in the tavern for an unlimited time, waiting for the player to hire him again (if it is not equal to 0).
For two heroes, the third parameter is 1, and for the other two, it is not specified. (I assumed that there are 2 places in the tavern).
Added 17 minutes later
Third parameter:
1, if for an unlimited time,
0, if only until the end of the week.
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога
Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
Removed the background and filled it with completely transparent black.
I sincerely apologize, but could you please help me with the hero image one more time? I still don't understand what a transparent black background means. :o
Here's a photo of another friend of mine, in tga format.
Thank you very much in advance!
I sincerely apologize, but could you please help me with the hero's image one more time? I still haven't figured out what a black transparent background means.