Skip to content

Posts from Current questions and answers regarding the map editor.

5.0 (12 ratings)
User Avatar
#4200
Auto-translated
it had a different name
OverrideObjectTooltipNameAndDescription()
it didn't perform its function
SetObjectEnabled('script_name', nil);
Trigger(OBJECT_TOUCH_TRIGGER, 'script_name', 'name_of_your_touch_handler');

I'm not sure if this will work for an outpost, but the general approach is this.
User Avatar
#4201
Auto-translated
How do you edit a Dungeon? When I go in there, it's dark, it's hard on the eyes, and I can't see what tiles I'm placing. Only the objects are visible. Is there a way to adjust this?
Справедливость - авторский глобальный мод

ColouredText - список заклинаний и их уровень в описании существ-колдунов
User Avatar
#4202
Auto-translated
Hello everyone!
I've decided to create a map, and maybe even a campaign later on. However, it turns out that I'm a complete newbie in the editor and with scripts:smile32:. I have a few questions:
1) How can I make it so that the dungeon isn't just solid black, but so that the tiles are visible? Otherwise, it's unclear how I navigated the path. Only objects are visible.
2) How can I rename a building and disable its core function?
3) How can I make it so that a message appears on the map right at the beginning of the game? And in general, how can I make a message appear when you arrive at a specific location?
4) How can I make it so that when you approach a monster, it says something to you and joins your party, but without any notification about it?
5) How can I make it so that an enemy hero doesn't appear on the map immediately, but after a certain number of days?
Справедливость - авторский глобальный мод

ColouredText - список заклинаний и их уровень в описании существ-колдунов
In reply to Андраил
User Avatar
#4203
Auto-translated
1) How do I make it so that in the Dungeon, it's not just solid black, but so that the tiles are visible? Otherwise, it's unclear how I traveled. Only objects are visible.
In the map settings, you need to temporarily set the lighting in the Dungeon to be the same as on the surface. Save and click the map reload button.
How do I rename a building and disable its core function?
You can disable the standard function of an object using SetObjectEnabled.
You can edit the text values of an object in the Shared option.
How do I make it so that a message appears on the map immediately at the beginning of the game? And in general, how do I make it so that a message appears when you arrive at a specific location?
MessageBox - a message with an "OK" button.
ShowFlyingSign - a floating message.
REGION_ENTER_AND_STOP_TRIGGER and REGION_ENTER_WITHOUT_STOP_TRIGGER - a hero enters a specific location on the map.
How do I make it so that, for example, when you approach a monster, it says something to you and joins your party, but without a notification about it?
A message when interacting with an object. Remove the object from the map. Add the object to the hero's army.
How do I make it so that an enemy hero appears on the map not immediately, but after a certain number of days?
NEW_DAY_TRIGGER - a trigger for a new day, and add an object to the map.

==========
More details can be found in the forum topics, in the maps created by other users.
And here are a few useful files for the map editor:
1. The necessary documentation for scripts.
2. libhomm3 scripts - simple, standard scripts similar to those in Heroes 3 (with my improvements to the base regarding morale and luck in one battle).
3. A script editor that you MUST use.

P.S. And one more thing: before you start experimenting with scripts and changing objects, create an empty test map and work there. Be prepared for long hours of testing
Всё, что сейчас происходит во мне, тоже является частью Вселенной. (с) Иванов Александр.
Цикл кампаний "Дыхание Смерти" из трёшки в четвёртом исполнении
Учебная карта
Астралия
За Королеву!
Подземелья и Дьяволы
Отголоски войны
Освобождение
In reply to Андраил
User Avatar
#4204
Auto-translated
my editor crashes after I click on "edit script".
Справедливость - авторский глобальный мод

ColouredText - список заклинаний и их уровень в описании существ-колдунов
In reply to Андраил
User Avatar
#4205
Auto-translated
My editor crashes after I click on "edit script".
I've added the most important tool for scriptwriters to my post.
Всё, что сейчас происходит во мне, тоже является частью Вселенной. (с) Иванов Александр.
Цикл кампаний "Дыхание Смерти" из трёшки в четвёртом исполнении
Учебная карта
Астралия
За Королеву!
Подземелья и Дьяволы
Отголоски войны
Освобождение
In reply to Андраил
#4206
Auto-translated
Please help! The filter is completely empty, and I can't place any objects! What should I do?
In reply to Квант
User Avatar
#4207
Auto-translated
Kvant
Added the most important tool for a script writer to his post.

How do you use it?
Справедливость - авторский глобальный мод

ColouredText - список заклинаний и их уровень в описании существ-колдунов
In reply to Андраил
User Avatar
#4208
Auto-translated
How do they work?
You open your map. You create a file called "MapScript.lua" and get started!
Всё, что сейчас происходит во мне, тоже является частью Вселенной. (с) Иванов Александр.
Цикл кампаний "Дыхание Смерти" из трёшки в четвёртом исполнении
Учебная карта
Астралия
За Королеву!
Подземелья и Дьяволы
Отголоски войны
Освобождение
In reply to Квант
User Avatar
#4209
Auto-translated
Quant
You open your map. You create a file called "MapScript.lua" and get started.
Well, I'll try to figure it out.

Added 43 seconds later
It doesn't work with the Dungeon. The ground is still dark.
Справедливость - авторский глобальный мод

ColouredText - список заклинаний и их уровень в описании существ-колдунов
In reply to Андраил
User Avatar
#4210
Auto-translated
It doesn't work with the Dungeon. The ground is still dark.
Did the sky become brighter?
And did you go to lower on x3 before placing the objects (in the Tiles tab)?
Всё, что сейчас происходит во мне, тоже является частью Вселенной. (с) Иванов Александр.
Цикл кампаний "Дыхание Смерти" из трёшки в четвёртом исполнении
Учебная карта
Астралия
За Королеву!
Подземелья и Дьяволы
Отголоски войны
Освобождение
In reply to Квант
User Avatar
#4211
Auto-translated
Kvant
Did the sky become brighter?
And did you set the lower level to x3 before placing the objects (in the Tiles tab)?
Everything is fine.
Thank you.
Справедливость - авторский глобальный мод

ColouredText - список заклинаний и их уровень в описании существ-колдунов
In reply to Андраил
User Avatar
#4212
Auto-translated
Andrail
How do I edit a dungeon?
When I go in there, it's dark, it's hard on the eyes, and I can't see what tiles I'm working with. I can only see the objects.
Is there a way to adjust this?
There are at least two options: either set a different lighting type for the dungeon in the map settings, or add your own light sources (you can add them to any object; look for the parameter with the word "light" in the properties tree).
User Avatar
#4215
Auto-translated
I want to create a campaign in the HoF version, but it lacks the function of combining maps into a single campaign. Question: is there any way to fix this, or is it impossible?
User Avatar
#4216
Auto-translated
Just download ToE and you're good to go :)
Справедливость - авторский глобальный мод

ColouredText - список заклинаний и их уровень в описании существ-колдунов

Statistics

Welcome our newest member: Фёдор Фёдорович