Skip to content

NHF – new heroes for Heroes V 3.1.

User Avatar
#1342
Auto-translated
I suggest the following: process the map.xdb file, give names to unnamed garrisons and Preserves, and save these names in a separate Lua file, which will be the same for each map but have the same name. This file will contain an array of names, including those given by the author. If necessary, I can also process the default maps, although not manually.

Added 5 minutes later
Thus, the file Maps/Multiplayer/***/NHF-Names.lua will contain something like this: NHF_UNNAMED_OBJECTS = {
DWARVEN_WARREN = {
'NHF-DwarvenWarren-0001',
'NHF-DwarvenWarren-0002',
},
GARRISON = {
'gar1',
'gar2',
'NHF-Garrison-0001',
'NHF-Garrison-0002',
'NHF-Garrison-0003',
'NHF-Garrison-0004',
},
}
The sequential numbers can be replaced with random ones.

Added 7 minutes later
To save memory, unnamed objects can be excluded from the array, and only the number of these objects can be written. NHF_UNNAMED_OBJECTS = {
DWARVEN_WARREN = {
NAMED = {
},
UNNAMED_N = 2,
},
GARRISON = {
NAMED = {
'gar1',
'gar2',
},
UNNAMED_N = 4,
},
}
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

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