Skip to content

Posts from Current questions and answers regarding the map editor.

5.0 (12 ratings)
In reply to Lucan_Porri
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:
What do you mean by diagonally? I know that each object has a rotation property, where the angle is specified in radians.
In reply to deathangel908
User Avatar
Auto-translated
deathangel908
What do you mean by "diagonally"? I know that each object has a rotation property, which specifies the angle in radians.
Well, I meant rotating the object by an arbitrary angle.

Прокрастинирую...
"...Завтра станет лучше
но солнце так и не взошло..."
In reply to Lucan_Porri
Auto-translated
^-^Furry^-^
Well, I meant rotating the object by an arbitrary angle.
Then I think I have answered your question.
Auto-translated
How do you get a list of spells from a hero? You can do it like this:
for spellID = 1, 239 do
flag = KnowHeroSpell(heroname, spellID);
end;
But there's a problem: many numbers in this range are not spells, and if you pass them to the function, it will throw an error and the thread will die. And as I understand it, there's no way to catch the exception because pcall was removed from Lua.
In reply to deathangel908
Auto-translated
Is it possible to create an arena for dueling mode? If so, please tell me how.
In reply to Эритроцитоз
User Avatar
Auto-translated
Erythrocytosis
Is it possible to create an arena for dueling mode? If so, please tell me how.
Yes, it is possible. For each battle arena, you need two objects: AdvMapDesc and AdventureFlybyScene. The first is the arena itself with decorations, and the second is a pointer to the grid position on the battlefield, on the AdvMapDesc, as well as some minor details. Then, you need to add the AdventureFlybyScene to the list of dueling arenas.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
In reply to RedHeavenHero
Auto-translated
RedHeavenHero
Yes, it's possible. For each battle arena, you need two objects: AdvMapDesc and AdventureFlybyScene. The first is the arena itself with decorations, and the second is a pointer to the grid position on the battlefield, which refers to the AdvMapDesc, as well as some minor details. Then, you need to add the AdventureFlybyScene to the list of duel arenas.

Dear RedHeavenHero, could you please provide more details, if it's not too much trouble:
1) As I understand it, the arena itself with decorations needs to be created in the map editor. What size should it be (tiny, small, or does it not matter?)
2) What size should the battle space be?
3) How do I mark it out?
These are at least the questions I can ask right now because I don't quite understand the subject, but I really want to. I saw a mod by Zenithale that adds a lot of new arenas, but I couldn't find a working link to it. I downloaded another mod and tried to figure it out, but I didn't understand much.
4) Could you please tell me where these duel arenas are located in the TOE game so that I can look at all the necessary files and try to understand them?
User Avatar
Auto-translated
1) In the extended map editor. Size doesn't matter.
2) The battle space is always the same - 10x12, for sieges - 14x14.
3) In AdventureFlybyScene, you need to set MountPoint - the reference point, which approximately corresponds to the location of the attacking hero.
4) The list of dueling arenas is located directly in data.pak. Each arena has its own entry containing the following fields:
CombatScene - a link to AdventureFlybyScene.
ArenaName - the name of the battle arena ("Cave of Corpses", "Last Refuge", "Obsidian Fields", etc.)
Pic - an image depicting the arena, type - Texture. Size - 214x160.
TownType - the type of the town native to this arena.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
In reply to RedHeavenHero
Auto-translated
RedHeavenHero
1) In the extended map editor. Size doesn't matter.
2) The battle space is always the same - 10x12, for sieges - 14x14.
3) In AdventureFlybyScene, you need to set the MountPoint - the reference point, which roughly corresponds to the location of the attacking hero.
4) The list of duel arenas is located directly in data.pak. Each arena has its own entry containing the following fields:
CombatScene - a link to AdventureFlybyScene.
ArenaName - the name of the battle arena ("Crypt of the Dead", "Last Stand", "Obsidian Fields", etc.)
Pic - an image depicting the arena, type - Texture. Size - 214x160.
TownType - the type of town native to this arena.

Thank you very much! I think I've figured it out. I found a similar mod online, dissected it, and did everything in a similar way. Your explanations were very helpful. If you're interested, take a look at my first arena. I hope it's attached.
Attachments 1
1 file attached • Total size: 32.8 KB
In reply to RedHeavenHero
Auto-translated
RedHeavenHero
It works.

Which is great!

Tell me, can I place an obstacle: not obstacles that appear randomly, but a specific stone in a certain location on the arena? Because if you simply place it in the editor, creatures will pass through it. Perhaps there needs to be some way to mark it as an obstacle?

Added after 57 seconds
RedHeavenHero
The arena looks pretty good, quite picturesque.
By the way, it would be nice to pack the files into a pak or h5u archive.

Thank you! I want to create more arenas.
User Avatar
Auto-translated
You create your own ArenaObstaclesGroup and set FixedObstacles to true within it. After that, you add an item to the links section where you can set the blocked cells. You can see an example of how this is done in AbyssArena. If the objects are fixed obstacles, then they need to be placed directly on the map.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
Auto-translated
Inspired by the discussion about creating combat arenas, I dug up my old projects :)
2 arenas, screenshots
http://s30.postimg.org/s4bpo7dn5/image.jpg
http://s23.postimg.org/tr3yekm4r/image.jpg
http://s3.postimg.org/cckwilayb/image.jpg
http://s30.postimg.org/5ancspec1/image.jpg
And the archive
http://rghost.ru/56987866
It's for public use, feel free to use it in your creative projects :) I think you'll figure out what, how, and where to use it.
In reply to JonnyP
User Avatar
Auto-translated
I searched the forum and found a thread about "Dead monsters on the map." I wrote down what I found in my notebook:
PlayObjectAnimation("[monster name]", "death", ONESHOT_STILL);
SetObjectEnabled([name], nil);
I'm wondering if this is all that's needed, or if something is missing.

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

Statistics

Welcome our newest member: Emil