Identity

WML ID16_The_Kalian
Default next scenario18_A_Spy_in_the_Woods
Quest overrides17a, 17b, 17c, or 17d
Map16_The_Kalian.map, 27 × 27 hexes
Theme / scheduleCutscene_Minimal, afternoon
Carryover100% through every hub departure
ArchetypeReusable quest hub / diplomatic council
Story importanceCritical
WML complexityVery high state-driven dialogue
CombatNone intended
Number of visitsInitial visit plus one return after each quest

Purpose of the scenario

The Ka’lian is one scenario file used repeatedly as the campaign’s four-quest hub. On the first visit, the elven lords debate whether the refugees should be granted land. They agree to offer the plains north and south of the Great River only after Haldric completes four tasks.

After each quest, the campaign returns to the same map and file. The hub greets the player according to the quest just completed, summarizes only unfinished work, hides completed destinations from the choice menu, and changes the council’s evaluation according to num_done.

Map and council staging

The 27 × 27 map is a forest council clearing built from deciduous woodland, grass, villages, water, bridges, and a central elven castle arrangement. Haldric’s party is teleported into a compact audience formation, with Lady Dionli, Lord Logalmier, Lord Aryad, and Lord El’Isomithir positioned as the governing council.

CharacterUnit implementationCouncil role
Lady DionliCampaign Autumn ShydeAdvocate for using and admitting the refugees
Lord LogalmierCampaign cutscene wrapper around Elvish ChampionSkeptical senior lord; assigns dragon quest
Lord AryadCore Elvish SharpshooterAssigns troll-hole quest
Lord El’IsomithirCore Elvish Marshal created as heroAssigns cursed-isle quest
Prince HaldricNoble CommanderPetitioner and quest chooser

The four quests

FlagScenarioQuest giverTask premise
the_dragon17a — The DragonLord LogalmierDefeat the Dragon of the Green Swamp and its saurian minions.
a_beach17b — Lizard BeachLady DionliStop Saurian–Naga metal trading on a nearby beach.
troll_hole17c — Troll HoleLord AryadClear a troll nest in the Brown Hills.
cursed_isle17d — Cursed IsleLord El’IsomithirRelease the cursed souls of an elven clan on the Isle of Tears.

Local option macros

Each quest option is defined once as a local macro. The option:

  1. Uses [show_if] to appear only while its completion flag is 0.
  2. Plays Haldric’s acceptance line.
  3. Ends the hub with no bonus and 100% carryover.
  4. Suppresses carryover report, linger mode, and replay save.
  5. Overrides next_scenario to the selected quest file.
#define DRAGON
    [option]
        label= _ "I think I’ll fight the dragon!"
        [show_if]
            [variable]
                name=the_dragon
                numerical_equals=0
            [/variable]
        [/show_if]
        [command]
            ...
            [endlevel]
                result=victory
                bonus=no
                {NEW_GOLD_CARRYOVER 100}
                carryover_report=no
                linger_mode=no
                next_scenario=17a_The_Dragon
                replay_save=no
            [/endlevel]
        [/command]
    [/option]
#enddef

Reusable hub macros

MacroResponsibility
DRAGON, BEACH, HOLE, ISLEDefine individual destination options.
QUEST_CHOICESPlaces all currently available options into one Haldric message.
QUESTSHas each lord describe only quests whose completion flag is still 0.
GREETUses last_done to play a quest-specific return greeting.

All seven local macros are undefined after the scenario file, preventing them from leaking into later preprocessor scope.

Visit progression

num_doneCouncil behavior
0Full first council: refugee petition, land debate, four-quest agreement, complete quest list and menu.
1Quest-specific greeting, cautious praise, remaining quest descriptions and menu.
2Quest-specific greeting, stronger approval, remaining quests and menu.
3Quest-specific greeting, near-acceptance, final remaining quest and menu.
4Land grant, Pact of Mutual Aid, Commander Aethyr’s return, cleanup, and transition to Scenario 18.

Final council outcome

After four quests, the lords grant the refugees the plains north of the Great River and the plains and hills to its south. Haldric establishes a Pact of Mutual Aid. The council warns that the new lands must be guarded and suggests future trade.

Commander Aethyr then arrives with Clearwater survivors and news that “old friends” have appeared. The hub clears all quest-state variables and moves to 18_A_Spy_in_the_Woods with 100% carryover.

State model

Initialized in Scenario 15: num_done = 0 the_dragon = 0 a_beach = 0 troll_hole = 0 cursed_isle = 0 last_done = "none" Each Scenario 17 quest: ├── marks its own flag complete ├── increments num_done ├── sets last_done └── returns to Scenario 16 Scenario 16: ├── GREET uses last_done ├── QUESTS describes flags still equal to 0 ├── QUEST_CHOICES shows flags still equal to 0 └── num_done = 4 clears all hub state and advances

The exact writes performed by all four quests are catalogued in the Ka’lian quest comparison.

Why the default next scenario is 18

The scenario header declares next_scenario=18_A_Spy_in_the_Woods, but every incomplete-quest menu option overrides the destination inside its own [endlevel]. The default becomes relevant only for the completed-hub exit, where the source also states the Scenario 18 destination explicitly.

Custom council unit types

TypeImplementationReason
Autumn ShydeCampaign level-3 elf: 46 HP, 6 movement, neutral, healer usage, custom autumn sprite and Dionli portraitDistinctive named council leader hidden from ordinary help listings
Elvish Champion KalianInherits the complete core Elvish Champion and changes only the imageCutscene-only visual identity for Lord Logalmier without duplicated stats or animations

Assets and reuse

ResourceOriginUse
Dionli, Logalmier, Aryad, Isomithir, and Aethyr portraitsCampaignCouncil identity and final messenger
Autumn Shyde and Kalian Champion spritesCampaignDistinctive council staging
Core Elvish Champion, Sharpshooter, Marshal behavior; forest terrain and villagesCore/sharedMost unit mechanics and the entire council environment
traveling_minstrels.oggCore/sharedHub music

Scenario WML · Map source · Autumn Shyde · Kalian Champion wrapper · Arc study

Lessons for campaign authors

Design interpretation. The Ka’lian is not four separate council scenes. It is a compact state-rendering system: the same map and dialogue file displays a different interface and political response according to campaign progress.
PatternReuse lesson
One scenario reused as a quest hubCentralize branching, return dialogue, and final convergence.
Separate completion count from individual flagsUse the count for broad progression and flags for menu visibility and detailed text.
Use last_done for return acknowledgementKeep greetings specific without inspecting every quest’s internal variables.
100% carryover through hub visitsDo not alter economy when the player is only selecting the next chapter.
Undefine local macrosPrevent scenario-local preprocessor helpers from polluting later files.