Here is the campaign template. Each file has its own functionality.
1. campaign.xdb - the campaign itself.
Tags to fill in:
InternalName - the internal name of the campaign, in this template = Asket2Campaign
NameFileRef, FullNameFileRef, NameCommentFileRef - links to the files containing the campaign name and description. The links are already specified; you only need to change the texts themselves.
DependentCampaigns - campaigns that must be completed before this one can be played. We will leave this tag empty.
Missions - the missions of the campaign. The tag consists of 1-5 Item sub-tags.
Each Item contains:
NameFileRef, NameCommentFileRef - links to the texts with the mission name and comment.
MissionTag - a link to the map-tag.xdb file; for convenience, each map (contents of maps/singlemissions/*mapname*) is located in folders M1-M5.
Bonuses - a bonus given at the start of the campaign.
The tag consists of 0-3 Item sub-tags; each Item contains:
script name of the hero receiving the bonus
E_BONUS_ARTIFACT bonus type
type and number of creatures
CREATURE_UNKNOWN
0
GOLDEN_HORSESHOE artifact
resource
0
0
0
0
0
0
0
SPELL_NONE spell
TB_TOWN_HALL buildingHeroesPool - heroes that carry over from one mission to another. Count - the number of heroes; Heroes consists of Item sub-tags:HeroScriptName - the script name of the hero
TargetCampaign - the campaign to which the hero transfers. If it is the same campaign, you can leave it empty.
TargetMission - the mission number - 1.
Next are the tags for the mission music:
startMusics - music at the start, probably of the mission
additionalAdventureMusics - additional music on the map
additionalWaitMusics - additional music during the turn
additionalCombatMusics - additional combat music
Tags for music for the entire campaign:
AdventureMusic - on the map
WinMissionMusic - victory
LoseMissionMusic - defeat
The music tags in the template are filled with the corresponding links from the "In the Name of Our Fathers" campaign.
DescriptionFileRef - campaign description
Icon - campaign icon
UserCampaign - whether the campaign is user-created.
2. M1-M5 - folders for the maps.
3. The remaining files - most of them are described in point 1.