Asket2,
Here, I've made a campaign template. Each file has its own functionality.
1. campaign.xdb - the campaign itself.
Tags to fill in:
InternalName - internal name of the campaign, in this template = Asket2Campaign
NameFileRef, FullNameFileRef, NameCommentFileRef - links to files with the campaign name and description. The links are set, you only need to change the texts themselves.
DependentCampaigns - campaigns that must be fully completed for this one to work. Leave this tag empty.
Missions - campaign missions. The tag consists of 1-5 Item subtags.
Each Item contains:
NameFileRef, NameCommentFileRef - links to texts with the mission name and its comment.
MissionTag - link to the map-tag.xdb file; for convenience, each map (contents of maps/singlemissions/*mapname*/) is located in folders M1-M5.
Bonuses - bonus awarded before the start of the campaign.
The tag consists of 0-3 Item subtags, each Item contains:
<Target>
<Hero/> скриптовое имя героя, получающего бонус
</Target>
<Type>E_BONUS_ARTIFACT</Type> тип бонуса
<BonusArmy> тип и кол-во существ
<Creature>CREATURE_UNKNOWN</Creature>
<Count>0</Count>
</BonusArmy>
<BonusArtifactID>GOLDEN_HORSESHOE</BonusArtifactID> артефакт
<BonusResources> ресурс
<Wood>0</Wood>
<Ore>0</Ore>
<Mercury>0</Mercury>
<Crystal>0</Crystal>
<Sulfur>0</Sulfur>
<Gem>0</Gem>
<Gold>0</Gold>
</BonusResources>
<BonusSpellID>SPELL_NONE</BonusSpellID> заклинание
<Building>TB_TOWN_HALL</Building> строение
HeroesPool - heroes that carry over from one mission to another. Count - the number, Heroes consists of Items:
HeroScriptName - script name of the hero
TargetCampaign - the campaign the hero moves to. If it's the same one, it can be left empty.
TargetMission - mission number minus 1.
Next are the tags for mission music:
startMusics - music at the start, presumably of the mission
additionalAdventureMusics - additional music on the map
additionalWaitMusics - additional music during the computer player's turn
additionalCombatMusics - additional battle music
Music tags 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 campaign "In Honor of Our Fathers".
DescriptionFileRef - campaign description
Icon - campaign icon
UserCampaign - whether the campaign is user-made.
2. M1-M5 - folders for maps.
3. The remaining files - mostly described in item 1.