Skip to content

Posts from Current questions and answers regarding the map editor.

5.0 (12 ratings)
User Avatar
#3677
Auto-translated
In the map properties window, on the Script tab, click Edit Script. Passages to the Dungeon can only be created using the lower tool with a brush size of 3.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
#3678
Auto-translated
Thanks for the information about the Dungeon. As for the scripts, they don't work even before I start writing them: as soon as I click "Edit Script," I'm kicked out of the editor, and no error message is displayed. I've tried it on different maps.
User Avatar
#3679
Auto-translated
Then, in the properties tree, in the MapScript section, click New, open the created object, create a ScriptFile, and write scripts there.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
#3680
Auto-translated
I also get kicked out. What could be the problem? And another question: in the script you provided, there are a lot of numbers in the "local race" line. What do they mean, and what other options are there? Oh, and what unit is used to measure the object's rotation angle? Because 90 degrees rotated it a lot, and 270 degrees rotated it very little (I thought it was in degrees).
User Avatar
#3681
Auto-translated
:smile15:
Is it possible to influence the behavior of a specific AI hero in battle using scripts?
Because it's annoying when, for example, a Knight with a mass slow ability casts it on only one unit, or a Demon with a Phoenix summoning ability uses magic arrows. I think you understand what I mean.)
And if it's possible, where is this explained in detail?
Sorry for my noob question - I haven't been doing this for a year:smile15:

Added after 1 hour 31 minutes
Another question. How do I create my own artifact? For example, a Ring of Vampires (gives the Vampirism spell) or a heavy shield with +5 defense, like in one of the maps. And is it possible to at least gain access to the existing abilities of artifacts in order to create my own artifact based on them, which has the abilities of several existing ones?
Мои карты

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

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

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

Мои моды (скорректированы мод на чумных энтов и циклопов зомби)
User Avatar
#3682
Auto-translated
Please tell me how to make it possible in the map properties to allow the player to choose opponents for the AI, as well as cities and heroes for them (otherwise, only the player can choose for themselves, and the AI gets a completely random selection).
User Avatar
#3683
Auto-translated
The computer player should have a random town, and in the map properties, under Player Properties, each player needs to have the "Generate hero in town" checkbox checked and the town specified.

Added 6 minutes later
Markel the Imperor
:smile15:
Is it possible to influence the behavior of a specific AI hero in battle using scripts?
Because it's annoying when, for example, a knight who has mass slow casts it on only one unit, or a demon with the ability to summon a phoenix uses magic arrows. I think you understand what I mean.
And if it's possible, where is this described in detail?
Sorry for being a noob – I haven't done this in a year :smile15:

Added 1 hour 31 minutes later
Another question. How do I create my own artifact? For example, a ring of vampires (gives the Vampirism spell) or a heavy shield with +5 defense, like in one of the maps. And is it possible to at least gain access to the existing abilities of artifacts so that I can create my own artifact based on them, which has the abilities of several existing ones?
1) Yes, you can give a hero commands to cast specific spells, but this only works in single-player maps. The scripting guide describes the functions that make a hero cast spells: UnitCastAimedSpell, UnitCastGlobalSpell, UnitCastAreaSpell. 2) You cannot create your own artifact; you can only replace an existing one. Usually, they replace rarely used ones: Frída, Princess Aeliana, Ring of the Shadowed. At the same time, you can only create artifacts that change characteristics.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
In reply to RedHeavenHero
User Avatar
#3684
Auto-translated
How do you create a dungeon without walls? For example, how is it done in the "Hammers of Fate" expansion, in the campaign for Wolfshtein, mission 2?

Прокрастинирую...
"...Завтра станет лучше
но солнце так и не взошло..."
In reply to Xzibit
User Avatar
#3685
Auto-translated
Xzibit
I'm also getting kicked out. What could be the problem? And another question: in the script you provided, the "local race" line has a lot of numbers. What are they, and what other options might there be? Oh, and what unit is used to measure the object's rotation angle? Because 90 degrees rotated it a lot, but 270 degrees rotated it very little (I thought it was in degrees).
As an alternative: copy the mapscript.xdb and mapscript.lua files from any other map, edit the .lua file, and provide a link to MapScript (in the map's properties tree).

On the map, angles are measured in radians, while in the scripts, they are measured in degrees.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
#3686
Auto-translated
It still doesn't work. I tried creating a new map, and I can write scripts there without any problems. But when I open any existing map and try to write something, it immediately kicks me out.
In reply to Xzibit
User Avatar
#3687
Auto-translated
How do you create a Dungeon without walls?????????:smile45:

Прокрастинирую...
"...Завтра станет лучше
но солнце так и не взошло..."
User Avatar
#3688
Auto-translated
If I understand you correctly, you mean the chasms in the dungeons, right?
There are special objects in the SubterraObjects section: Wall_dno_down, dno_down, and the rest of this type. If they don't appear in the editor, you can find them in the AdvMapStaticShared tab, in the DungeonWalls section.

Whatever
In reply to Heroist
User Avatar
#3689
Auto-translated
Heroist
If I understand you correctly, you mean the chasms in the dungeons, right?
There are special objects in the SubterraObjects section: Wall_dno_down, dno_down, and the rest of this type. If they don't show up in the editor, you can find them in the DungeonWalls section of the AdvMapStaticShared tab.
Yes, yes, that's what I meant. But how do I use them correctly to achieve that effect? (see screenshot) I've tried them this way and that, but it doesn't work.
Attachments 1
1 file attached • Total size: 106.3 KB

Прокрастинирую...
"...Завтра станет лучше
но солнце так и не взошло..."
User Avatar
#3690
Auto-translated
I will now try to explain.



The first type of 3x3 objects is used to create platforms that hang over the abyss.
The second type of objects is necessary to create a smooth and beautiful transition between different types of platforms.
And the third type of 3x3 objects is used to fill the empty space, creating bottomless chasms.

Whatever
In reply to Heroist
User Avatar
#3691
Auto-translated
Heroist
I'll try to explain now.



The first type of 3x3 objects is used to create platforms hanging over the abyss.
The second type of objects is necessary to create a smooth and beautiful transition between different types of platforms.
And the third type of 3x3 objects is used to fill the empty space, creating bottomless chasms.
Okay, now I understand, thank you!:)

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

Statistics

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