Skip to content

Posts from Current questions and answers regarding the map editor.

5.0 (12 ratings)
User Avatar
Auto-translated
SetRegionBlocked("region name", true, PLAYER_N)

Added after 32 seconds
Replace N with the player's number.
Справедливость - авторский глобальный мод

ColouredText - список заклинаний и их уровень в описании существ-колдунов
In reply to Алеха
User Avatar
Auto-translated
Aleha
During map verification, I encountered an unknown issue: for some reason, water appeared in areas of the map where it shouldn't be. I don't know how to explain it more clearly; here are some screenshots.
The water issue might occur if you select water and the "up" parameter; in that case, water will only be visible on the minimap.
Мои мини-моды

Мод RTF

Мои NCF существа
In reply to Андраил
User Avatar
Auto-translated
Andrail
SetRegionBlocked("region name", true, PLAYER_N)

Added after 32 seconds
Replace N with the player number

Thank you, another question. Does the script only work on AI? I switched to the enemy hero (player 8) to check if it worked, but it didn't. I wrote it like this: SetRegionBlocked("un", true, PLAYER_8);
Okay, it worked. I just needed to remove the spaces, thanks :)

Added after 14 hours 23 minutes
Also, here's another question: I want to make it so that after losing a battle, the enemy hero always appears in their own town. (Like in the "Hammers of Fate" campaign for Wulfstan. There, Lorenzo and other red knights had this ability.) I've been looking for the right script, but I haven't found it. Maybe someone knows it?
In reply to Miss Stark
User Avatar
Auto-translated
so that the enemy hero, after losing a battle, always reappears in their city.

There are 2 options.
1) Force him to reliably reappear in the tavern after defeat. See the MakeHeroReturnToTavernAfterDeath function.
2) Place the hero in reserve and create a trigger for his loss. At the beginning of the game, and after each of his losses, deploy him (see DeployReserveHero) to a specific location on the map.
Мои карты

Возрождённый v 1.5 (обновление от 25/09/2016) :smile24:

готовится продолжение.

Великая Пустыня ( 25%) - про Маркела
Тьма над Иролланом (0%) - про Николаса

Мои моды (скорректированы мод на чумных энтов и циклопов зомби)
In reply to Markel the Imperor
User Avatar
Auto-translated
Markel the Imperor
a specific location on the map.

Thank you. I think the second option suits me. And will all the hero's skills/experience be preserved?
Auto-translated
Hey guys. I have a problem. I'm generating a random map in the editor. If I don't change anything on it, we can play online with friends without any issues. But if I change something, for example, create alliances, then no one can join my game on that map. Also, when saving the map, it says: "As you've changed this map, the rmg marker will be lost, and multiplayer regeneration won't work." How can I fix this?
User Avatar
Auto-translated
You can open the map using an archiver and manually edit the map.xdb (or map-tag.xdb) file inside. I haven't done this in ages, but there's a line that says something like "random map" or similar. In any case, you can simply compare the files.
 

К А
Стикеры GBF в Telegram
User Avatar
Auto-translated
PlayObjectAnimation ('object name', attack01, IDLE)
What should I put instead of 'object name'?
For example, I need an armored knight. Should I put 6, or ID_6, or something else?
Справедливость - авторский глобальный мод

ColouredText - список заклинаний и их уровень в описании существ-колдунов
Auto-translated
Ment, thank you! It worked out. Just in another section, the value needed to be changed. Can I ask another question? How do I disable the ability to create portals before generating a map? They ruin the whole game.
User Avatar
Auto-translated
I don't know... Perhaps you need to find suitable templates, or use the IRMG editor; maybe the "zones" work differently there.
 

К А
Стикеры GBF в Telegram
User Avatar
Auto-translated
How to disable fog in the map editor?
Справедливость - авторский глобальный мод

ColouredText - список заклинаний и их уровень в описании существ-колдунов
In reply to Андраил
User Avatar
Auto-translated
Andrail
How do I disable the fog in the map editor?
If you're talking about the fog of war, you can remove it using a script:

for floor = 0, GetMaxFloor() do
OpenCircleFog(0, 0, floor, 1000, PLAYER_1)
end
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
User Avatar
Auto-translated
No, not about him.
I meant the fog over the land.
Справедливость - авторский глобальный мод

ColouredText - список заклинаний и их уровень в описании существ-колдунов
In reply to Андраил
User Avatar
Auto-translated
Andrail
No, not about him.
I meant the fog over the land.
Choose lighting without fog or remove it in the existing lighting by adjusting the DistanceFog property.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4

Statistics

Welcome our newest member: Emil