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:
Posts from Current questions and answers regarding the map editor.
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.
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.
Is it possible to create an arena for dueling mode? If so, please tell me how.
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога
Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
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?
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.
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога
Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
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.
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога
Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога
Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
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
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.
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога
Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
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.
PlayObjectAnimation("[monster name]", "death", ONESHOT_STILL);
SetObjectEnabled([name], nil);
I'm wondering if this is all that's needed, or if something is missing.

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