Skip to content

Posts from Current questions and answers regarding the map editor.

5.0 (12 ratings)
User Avatar
#3116
Auto-translated
What exactly do you want to achieve with this? ;)
I think it will affect the gameplay, but if you run this check at the beginning of the map with a background video using BlockGame(), it might work.

Whatever
In reply to Heroist
User Avatar
#3117
Auto-translated
Heroist
What exactly do you want to achieve with this? ;)
I think it might affect the gameplay, but if you run this check at the beginning of the map with a background video using BlockGame(), it might work.

I want the monster to change its position on the map every day. I won't say why. Of course, if it gets stuck somewhere in a mountain or in a tree, it won't be ideal.

Maybe like this?

Xp={};
Yp={};
p=0;

for i=80,160 do
for j=50,120 do
if IsTilePassable(i, j, 0)==true then
Xp[p]=i;
Yp[p]=j;
p=p+1;
end;
end;
end;

function poslal()
posl=random(p);
SetObjectPosition("name", X[posl], Y[posl], 0);
end;
Кампании для 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
#3118
Auto-translated
By the way, if he gets stuck on another monster, some hero, or in a town garrison, that won't be good either, so it's ideal to check those cases as well (I'm not sure if IsTilePassable takes this into account, but probably not).
 

К А
Стикеры GBF в Telegram
In reply to Ment
User Avatar
#3119
Auto-translated
Ment
By the way, if it gets stuck on another monster, a hero, or in a city garrison, that won't be good either, so ideally, you should check those cases as well (I'm not sure if IsTilePassable takes that into account, but probably not).
Well, that goes without saying) I just didn't want to list all the exceptions here)

Added 3 minutes later
I actually have another option: delete the monster every day and create it again, and then re-apply the trigger to it. The CreateMonster function doesn't "stick" it into mountains or other creatures.

Added 3 minutes later
it doesn't seem to.
Кампании для 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
#3120
Auto-translated
You really opened my eyes with the IsTilePassable function (I didn't know it existed), and then immediately closed them by pointing out that it only considers static objects. I've been thinking for a while about moving monsters around the map, but I didn't know how to do it properly. It seems that RemoveObject and CreateMonster are the best options, as it places them correctly. The only thing I don't like about it is that we have to know all the monster's parameters in advance – for example, what its courage and mood were. But if the task is to move a completely random monster, these parameters are unknown to us.

upd: oh yes, and the most absurd option that I've come up with so far is: we call CreateMonster (or other similar functions), see in which point it appears, delete it, and move the original monster to that point. Voila.
In reply to Jack_of_shadows
User Avatar
#3121
Auto-translated
Jack_of_shadows
You really opened my eyes with the IsTilePassable function (I didn't know such a thing existed), and then immediately closed them by pointing out that it only takes static objects into account. I've been thinking for a while about moving monsters around the map, but I just didn't know how to do it properly. It seems that nothing is better than RemoveObject and CreateMonster; it places them correctly. The only thing I don't like about it is that we have to know all the monster's parameters in advance – for example, what its courage and mood were. But if the task is to move a completely random monster, these parameters are unknown to us.

upd: oh yes, and the most absurd option that I've come up with so far is to call CreateMonster (or other similar functions), see what point it appears in, delete it, and move the original monster to that point. Voila.

that's also an option) but I don't care what the monster's mood and courage are, because I "disable" it and add a trigger, so it can be done more simply)
Кампании для 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
#3122
Auto-translated
Jack_of_shadows, perhaps in the situation described above, it would be necessary to create all the monsters at the start of the map using a script, immediately placing their parameters into an array... And exclude the week of monsters. Then the mentioned problem would be resolved.
 

К А
Стикеры GBF в Telegram
User Avatar
#3123
Auto-translated
Ment, yes, if I wanted to tie the movement of monsters to some particularly important gameplay element of the map, I would have to do it this way. But considering the amount of effort involved, it's better to keep it simple – it will just be a small feature.
User Avatar
#3124
Auto-translated
Question regarding OpenPuzzleMap(player, numObelisks); If I place 6 obelisks on the map, do I need to call this function 6 times, where numObelisks is equal to 1, so that the map opens completely? Or not? Because the description mentions an effective number of obelisks of 36, etc. I'm a bit confused.
Кампании для 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
#3125
Auto-translated
virtually ”visits” the defined number of obelisks for the player.
I believe that the number you specify in the second parameter is the number of obelisks that will be visited. And the number 36 is mentioned because the game apparently cannot divide a map-puzzle into 37 or more pieces; the maximum is 36.
 

К А
Стикеры GBF в Telegram
User Avatar
#3126
Auto-translated
What is the current maximum number of quests on a single map? (I need to know what to aim for).
Кампании для 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
#3127
Auto-translated
There is unlikely to be a limit (and if there is, it should be extremely high, like 65536 or 2147 million).
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
User Avatar
#3128
Auto-translated
2147 million
what to strive for

Juss456, I'm waiting for your map! :)

Whatever
In reply to RedHeavenHero
User Avatar
#3129
Auto-translated
RedHeavenHero
There probably isn't a limit (and if there is, it should be extremely high, like 65536 or 2147 million).
No, I didn't mean it that way. Is there any record for the number of maps created?
Кампании для 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
#3130
Auto-translated
Yes, you have. ----- Actually, Dyrman could probably compete with you; he also had a lot of quests in "Journey." But it seems like it wasn't a hundred.
 

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

Statistics

Welcome our newest member: artem

Users Online 1 users 1589 guests