Skip to content

Posts from Current questions and answers regarding the map editor.

5.0 (12 ratings)
In reply to RedHeavenHero
User Avatar
Auto-translated
How do I add new neutral creatures to the game? Where should I copy them to?
Мои карты

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

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

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

Мои моды (скорректированы мод на чумных энтов и циклопов зомби)
User Avatar
Auto-translated
NCF?

Added 2 minutes later
In the corresponding thread in the mods section for the game, it is written how to install it.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
In reply to RedHeavenHero
User Avatar
Auto-translated
to start, at least those from psatha. I find the file with the .pak extension and put it in the data folder, but they don't appear in the editor...

oh, they are also NCF files, okay, I'll read about it.
Мои карты

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

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

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

Мои моды (скорректированы мод на чумных энтов и циклопов зомби)
In reply to RedHeavenHero
User Avatar
Auto-translated
I installed the core, and I figured it out. However, the creature icons are not displayed in the editor. Another question: How did you create Varrens in your map "Ambassador"? That is, how did you add a completely new hero, rather than modifying an existing one? Because NCF is not used there. I've already used up two dialogue heroes in my map, and there aren't that many of them...
Мои карты

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

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

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

Мои моды (скорректированы мод на чумных энтов и циклопов зомби)
In reply to Markel the Imperor
User Avatar
Auto-translated
This is the typical way to create new heroes. This method can also be applied to many other objects.
Attachments 1
1 file attached • Total size: 171.2 KB
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
Auto-translated
Hello everyone, what needs to be specified in the map template scheme so that when generating maps, Dragon Utopias are created, and the castles have Fortresses?
In reply to с210нт
User Avatar
Auto-translated
Is it possible to set the week during gameplay, depending on the plot? And not in advance, setting all weeks when creating the map. For example, monks appear, and if they are alive, then starting from their appearance, and until they are killed, weeks unfavorable for the player begin. Week of Light, Week of Repose, etc. Or, if you are playing as Markel, it would be possible, through some quest, to forcibly set undead weeks. In short, to manually implement an astrologer's tower, with a random choice of week. :smile16: The example with Agrail doesn't work because the trigger at the beginning of the week simply spawns creatures in predetermined locations if the druids are alive, and it doesn't announce the week.
Мои карты

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

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

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

Мои моды (скорректированы мод на чумных энтов и циклопов зомби)
User Avatar
Auto-translated
The following questions have arisen, gentlemen:
1. How can I change the city description and its specialization? For example, in my map version, I want to create a city for the Knights with a specialization that provides +X to the growth of Archangels...
2. How can I make the week change upon building the Grail? (like the weeks of demons in Heroes 3), and also, so that after construction, the growth increases ONLY for a SPECIFIC type of creature, without changing the growth bonus for the others? (for example, we build a Grail in a Knight city with an Archangel specialization - we get a growth bonus of +1 from the city specialization + +3 from the Grail + all weeks become Archangel or Elrath weeks...).
3. How can I make changes to the city construction so that obelisks are added to increase the growth of creatures for other races? (see how the Necromancers have an obelisk that increases the growth of Black Dragons).
User Avatar
Auto-translated
1. Select a town → space → Town Specialization.
1, 2. Specialization for Archangels:

function AddArchangelsSpecialization()
if GetObjectDwellingCreatures('town_name', CREATURE_ANGEL) ~= -1 then
local add = 1
if grail_built == 1 then
add = add + 3
end
SetObjectDwellingCreatures('town_name', CREATURE_ANGEL, GetObjectDwellingCreatures('town_name', CREATURE_ANGEL) + add)
end
end

function NewDay()
-- ... --
if GetDate(DAY_OF_WEEK) == 1 then
AddArchangelsSpecialization()
end
-- ... --
end

Trigger(NEW_DAY_TRIGGER, 'NewDay')

grail_built = 0

function WaitForBuildGrail()
while GetTownBuildingLevel('town_name', ID_BUILDING_TEARS_OF_ASHA) == 0 do
sleep(10)
end
grail_built = 1
end

startThread(WaitForBuildGrail)
You can also add the appearance of [Arch]angels on the map, but nothing can be done about the interface.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
Auto-translated
Please help. I was using the editor normally, and suddenly when I open it, there are no tools in the toolbar, no artifacts, no towns, etc. What should I do?
User Avatar
Auto-translated
RedHeavenHero, am I correct in understanding that the code needs to be written in the script of the city itself? Thank you for the code, I'll try it out.
User Avatar
Auto-translated
I'm asking for help in finding a map; I know it's not on-topic, but I couldn't find anywhere else to ask, so please forgive me. The map is very large, seems to be a single-player map. You start with the red color in the upper left corner on a mountain. The starting faction is Haven. The map had a night effect or was simply dark, and there were also garrisons with troops.
I found the map; it's called Demon Hunter.
User Avatar
Auto-translated
RedHeavenHero, yeah, I understand. And how do I find out the city name and the ID_BUILDING_OF_TEARS_OF_ASH? As far as I understand, they are stored in text or in data? --- upd. I tried it - the game crashes after loading the map =( I placed the Human Castle without any city bonuses. The map is attached... Here is the code:
function AddArchangelsSpecialization()
if GetObjectDwellingCreatures('Angelat', CREATURE_ANGEL) ~= -1 then
local add = 1
if grail_built == 1 then
add = add + 3
end
SetObjectDwellingCreatures('Angelat', CREATURE_ANGEL, GetObjectDwellingCreatures('Angelat', CREATURE_ANGEL) + add)
end
end

function NewDay();
-- ... --
if GetDate(DAY_OF_WEEK) == 1 then
AddArchangelsSpecialization()
end
-- ... --
end

Trigger(NEW_DAY_TRIGGER, 'NewDay')

grail_built = 0

function WaitForBuildGrail()
while GetTownBuildingLevel('Angelat', ID_14) == 0 do
sleep(10)
end
grail_built = 1
end

startThread(WaitForBuildGrail)
Attachments 1
1 file attached • Total size: 583.7 KB

Statistics

Welcome our newest member: Emil