Skip to content

Current questions and answers regarding the map editor.

User Avatar
#3103
Auto-translated
I would copy the map-tag from another map and then embed it into this map. Then, you can open this file with Notepad, and it will contain text similar to this:

AdvMapDescTag
AdvMapDesc href="map.xdb#xpointer(/AdvMapDesc)"/>
NameFileRef href="name.txt"/>
DescriptionFileRef href="description.txt"/>
TileX>256
TileY>256
MapGoal href="MapGoalText.txt"/>
CustomMapGoal>false
teams>
Item>1
Item>1
Item>1
/teams>
thumbnailImages/>
HasUnderground>true
RandomMap>false
CustomGameMap>false
Version>3
/AdvMapDescTag
Each line also starts with the "<" character. It's not difficult to figure out what's what. You just need to change all the settings to match your map. Is there an easier way?

Added 4 minutes later
RedHeavenHero
There isn't such a function, but it's not difficult to create one.
local enable_hero_ai = EnableHeroAI
local disabled = {}
function EnableHeroAI(hero, enable)
%enable_hero_ai(hero, enable)
%disabled[hero] = not enable
end

function IsHeroEnabled(hero)
return not %disabled[hero]
end

and if the AI for a hero is already disabled, and I "disable" it again by calling the EnableHeroAI function, will that cause an error?
Кампании для Heroes V 3.1 (Трилогия):

Пробуждение зла
Нашествие из Преисподней
Смена эпох

Скачать все кампании одним архивом: Яндекс.Диск Google.Диск

You can download the set of 3 Campaigns (English version) here


Одиночные сценарии Heroes V 3.1:


Незваные гости
Красный кристалл
Синий кристалл
Закат тьмы

Мультиплеерные карты для Heroes V 3.1:

Легендарная война
Сердце вулкана
Передел мира