Skip to content

Posts from Current questions and answers regarding the map editor.

5.0 (12 ratings)
In reply to RedHeavenHero
User Avatar
#3569
Auto-translated
It's me again.
How do I create nighttime lighting? I go into the map properties, open the lighting list, and there are so many options:smile07: Is there a "night" option among them? Or should I use dungeon lighting instead?

Прокрастинирую...
"...Завтра станет лучше
но солнце так и не взошло..."
User Avatar
#3570
Auto-translated
Here is an example:
Lights\_(AmbientLight)\Scenes\TaigaNight.xdb
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
In reply to RedHeavenHero
User Avatar
#3571
Auto-translated
RedHeavenHero
Here's an example:
\Lights\_(AmbientLight)\Scenes\TaigaNight.xdb
Excellent! This is exactly what I needed! :smile54: Thank you!

Прокрастинирую...
"...Завтра станет лучше
но солнце так и не взошло..."
User Avatar
#3572
Auto-translated
Thank you, I figured out how to solve my problem.
In reply to Eleondor
User Avatar
#3573
Auto-translated
Well, it's me again. Perhaps this question has already been asked, but I'll ask it again. How can I remove the limit of 999 creatures in an army, so that I can have any number of creatures? Or is it impossible to do?

Прокрастинирую...
"...Завтра станет лучше
но солнце так и не взошло..."
In reply to Lucan_Porri
User Avatar
#3574
Auto-translated
^-^Furry^-^
Basically, it's me again.
This question might have already been asked, but I'll ask it again. How can I make it so that when setting the number of creatures in an army, there's no limit of 999? Or is it impossible?

You can assign an army of 1 creature to a hero. And using scripts, you can give him as many as you need.
Кампании для 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 Lucan_Porri
User Avatar
#3575
Auto-translated
^-^Furry^-^
Basically, it's me again.
This question might have already been asked, but I'll ask it again. How can I make it so that there's no limit of 999 creatures in an army when setting the number of creatures? Or is it impossible?
In the object's properties tree, you can change the number without any limitations (armySlots).
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
In reply to RedHeavenHero
User Avatar
#3576
MasteR, RedHeavenHero, Спасибо вам!

Прокрастинирую...
"...Завтра станет лучше
но солнце так и не взошло..."
In reply to Lucan_Porri
User Avatar
#3577
Auto-translated
Hello again!
I have 2 questions:
1) Is it possible to change the amount of resources mined in mines?
2) How do I rotate an object diagonally? I read that you need to press the Ctrl key, but it doesn't work:smile27:

Прокрастинирую...
"...Завтра станет лучше
но солнце так и не взошло..."
#3578
Auto-translated
I have a hero in the dungeon, and I need to set a condition under which he can be released. That is, so that when someone approaches the dungeon, the prisoner does not immediately come out, but only if certain requirements are met, for example, if 2 artifacts are brought. It should look something like this: artId=23 # my art's id art2Id=24 # If (HasArtifact(getCurrentHero(),artId) and HasArtifact(getCurrentHero(),art2Id) ) then RemoveArtefact(getCurrentHero(), artId); RemoveArtefact(getCurrentHero(), art2Id); FreeHero(prisonedHerO) else showmessage("an artifact is needed"); end; However, I can't find how to get the name of the hero who visits the dungeon (there is no such function as getCurrentHero()) and how to make it so that when visiting the dungeon, the hero is released only if my IF condition is met. (FreeHero(prisonedHerO) - ??)
User Avatar
#3579
Auto-translated
Place a trigger, first disabling the dungeon.
Trigger(OBJECT_TOUCH_TRIGGER, dungeon name, function name)
The function that the trigger will launch will receive the hero's name as an argument.
The dungeon must be disabled using SetObjectEnabled (or something similar, but check the manual), and then enabled again at the appropriate time using the same function.
You will also need MakeHeroInteractWithObject so that the hero interacts with the dungeon after it is enabled. However, you can simply place a new hero on the map using a script, as you have done.
 

К А
Стикеры GBF в Telegram
User Avatar
#3580
Auto-translated
The map editor crashes. When I select the size and name, click "Done," and after a while, it crashes before it can generate the world. Does anyone know or have any idea what might be wrong with the editor?
Бака-бака-бака
In reply to Ment
#3581
Auto-translated
Thank you, it worked! Could you please provide a function to remove/dismiss a hero, preferably so that he doesn't appear in the tavern anymore. Also, a function to get a list of runes from a hero, or to check if a hero has learned a specific rune, and a function to teach a hero a rune.
In reply to Lucan_Porri
User Avatar
#3582
Auto-translated
^-^Furry^-^
Hello again!
I have 2 questions:
1) Is it possible to change the amount of resources mined in mines?
2) How do I rotate an object diagonally? I read that you need to press the Ctrl key, but it doesn't work:smile27:
1) Not directly, unless you use script-based simulations.
2) Select the object, hold down Ctrl, and click on the cell to which the object should be rotated.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
In reply to RedHeavenHero
User Avatar
#3583
Auto-translated
RedHeavenHero
1) Directly - no, unless through scripted imitations.
2) Select the object, hold down Ctrl, and click on the cell to which the object should be rotated.
1) Oh, it's a shame that it's so complicated. (I'm not good with scripts.)
2) Oh, thank you!

Прокрастинирую...
"...Завтра станет лучше
но солнце так и не взошло..."