Skip to content

Posts from Current questions and answers regarding the map editor.

5.0 (12 ratings)
User Avatar
#3509
Auto-translated
Rhenish, so that the monsters run across the map towards the hero, it won't work in any case (unless you consider the complex Ment's solution). Even simply moving them closer to the hero is difficult to implement in a visually appealing way. As for other options, are there any ideas about what should happen?
User Avatar
#3510
Auto-translated
Does the function `MakeHeroReturnToTavernAfterDeath("", true);` have any side effects? For example, I'm using this function in my map and have written it like this:
`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?
Кампании для 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
#3511
Auto-translated
What does "appear simultaneously" mean, and where do they appear from?
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
In reply to RedHeavenHero
User Avatar
#3512
Auto-translated
RedHeavenHero
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.
Кампании для 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
#3513
Auto-translated
Juss456
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.
Are you sure the third parameter defaults to 0? If so, then everything should work.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
In reply to RedHeavenHero
User Avatar
#3514
Auto-translated
RedHeavenHero
Is the third parameter definitely set to 0 by default? If so, then everything should work.

In Deploy, is it 0? Yes.
Кампании для 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
#3516
Auto-translated
MakeHeroReturnToTavernAfterDeath

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).
Кампании для 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
#3517
Auto-translated
Jack_of_shadows, I'm taking as a basis something that was once an unpleasant feature in Heroes 4. The hero enters the movement range of a creature, which is 6 squares. If the hero is stuck in the field and the player is forced to skip a day, then the creature approaches him, using the animation from the battle to move and attack (1 time), and at the end of that day, the player has a battle with the unit that attacked him. Creatures that chase the enemy never run away or join.
Правило во взгляде...
In reply to Rhenish
User Avatar
#3518
Auto-translated
Rhenish
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?
Кампании для 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
#3519
Auto-translated
Even the attack animation can’t be properly implemented because it’s not defined for all creature types, and some will strike bizarre poses instead of attacking. There’s also no trigger for the end of the turn, so in my example, this will happen at the beginning of the day. The only thing that can be fixed is to prevent monsters from ever fleeing or joining.

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.
User Avatar
#3520
Auto-translated
With createMonster, everything is logical; you can attack from a ship...
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.
 

К А
Стикеры GBF в Telegram
In reply to MasteR
User Avatar
#3521
Auto-translated
Juss456
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).
The second parameter should not be 1 or nil, but 1 or 0.

Added 17 minutes later
Third parameter:
1, if for an unlimited time,
0, if only until the end of the week.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
In reply to RedHeavenHero
#3522
Auto-translated
RedHeavenHero
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!
Attachments 1
1 file attached • Total size: 147.5 KB
User Avatar
#3523
Auto-translated
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.
Set the black color in the palette, and then move the transparency slider to 100%.
 

К А
Стикеры GBF в Telegram