Skip to content

Commit

Permalink
TSG S5: Duo leader setup for the zombies
Browse files Browse the repository at this point in the history
This adds on the one hand a second leader with secons keep in the same caslte.
for the same side, on the other hand ich changes the speack when they die.
They adverturers are not assuming they killed the undead masters anymore if they
saw the lich before.

(mentioned in #1954)

[ci skip]
  • Loading branch information
sevu committed Aug 27, 2018
1 parent 7c89b10 commit f1a465b
Show file tree
Hide file tree
Showing 2 changed files with 135 additions and 35 deletions.
4 changes: 2 additions & 2 deletions data/campaigns/The_South_Guard/maps/05_Choice_in_the_Fog.map
Expand Up @@ -35,8 +35,8 @@ Gd^Fp, Gd^Fp, Hhd, Gd^Fp, Hhd, Gd^Fp, Gd^Fp, Hhd, Hhd, Gd^Fp, Hh, Gs^Fp, Hhd, Gd
Gd^Fp, Gd^Fp, Gd^Fp, Hhd, Hh, Gd^Fp, Gd^Fp, Hh, Hh, Hh, Mm, Hh, Gs^Fp, Hh, Gs^Fp, Gs^Fp, Gs, Hh, Hh, Mm, Hh, Gs^Fp, Hh, Gs, Hh, Gs^Fp, Gs^Fp, Gs^Fp, Gs^Fp, Gs^Fp, Gs, Gs^Fp, Gs^Fp, Hh, Hh, Gg, Gs^Fp, Gs^Fp, Ww, Ww, Ss, Ss, Gll^Fp, Gll^Fp, Gll^Fp, Gll^Fp, Rr, Rr, Gll^Fp, Rr, Gll^Fp, Re, Gll^Fp, Gll^Fp, Gll^Fp, Gll^Fp, Gll^Fp, Gll^Fp, Gll^Fp, Gll^Fp, Gll^Fp, Gll^Fp
Gd^Fp, Gd^Fp, Hhd, Gd^Fp, Hh, Mm, Mm, Hh, Mm, Mm, Mm, Mm, Mm, Gs^Fp, Hh, Gs^Fp, Gs, Hh, Hh, Mm, Mm, Gs, Hh, Hh, Gs^Fp, Gs^Fp, Ss, Gs^Fp, Gs^Fp, Gs^Fp, Gs, Gs^Fp, Gs^Fp, Gs^Fp, Hh, Gs^Fp, Gs^Fp, Gs^Fp, Ww, Ww, Ww, Gll^Fp, Gll^Fp, Gll^F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 33 deletions data/campaigns/The_South_Guard/scenarios/05_Choice_In_The_Fog.cfg
Expand Up @@ -89,6 +89,9 @@
type=Soulless
id=Gruth
name= _ "Gruth"
canrecruit=yes
overlays="misc/leader-expendable.png"
facing=se

team_name=undead
user_team_name=_"Undead"
Expand All @@ -97,7 +100,16 @@
{GOLD 30 50 80}
{INCOME 5 10 15}

canrecruit=yes
# Second leader:
[unit]
type=Soulless
id=Gerd
name=_ "Gerd"
canrecruit=yes
overlays="misc/leader-expendable.png"
facing=ne
x,y=21,38
[/unit]
[ai]
recruitment_pattern=fighter
{NO_SCOUTS}
Expand Down Expand Up @@ -345,58 +357,141 @@
[/objectives]
[/event]

# The adventurers defeat the zombie leader
# The adventures defeat the first zombie leader

[event]
name=die
[filter]
id=Gruth
side=3
canrecruit=yes
[/filter]

[if]
[filter_second]
side=1
[/filter_second]
[filter_condition]
[have_unit]
x,y=$x2,$y2
side=3
canrecruit=yes
[/have_unit]
[/filter_condition]

[not]
id=Ethiliel
[/not]
[message]
speaker=second_unit
# po: This message is shown when the frist zombie leader died.
# po: There is a second one, a few hexes next to him, the player most likely saw him already.
message= _ "He was not alone."
[/message]
[/event]

[not]
id=Minister Hylas
[/not]
# The adventurers defeat the second zombie leader

[not]
id=Deoran
[/not]
[/have_unit]
[event]
name=die
[filter]
side=3
canrecruit=yes
[/filter]
[filter_second]
side=1
[/filter_second]
[filter_condition]
[not]
[have_unit]
side=3
canrecruit=yes
[/have_unit]
[/not]
[/filter_condition]

[if]
[variable]
name=know_about_lich
boolean_equals=no
[/variable]

[then]
[if]
[have_unit]
x,y=$x2,$y2
[not]
id=Ethiliel,Minister Hylas,Deoran
[/not]
[/have_unit]

[then]
[message]
speaker=second_unit
# po: Note that masters is in plural.
message= _ "The masters of the undead are defeated!"
[/message]
[/then]

[else]
[message]
speaker=Sir Gerrick
# po: Note that masters is in plural.
message= _ "The masters of the undead are defeated!"
[/message]
[/else]
[/if]

[message]
speaker=second_unit
message= _ "The master of the undead is defeated!"
speaker=Minister Hylas
message= _ "No... I fear there is still much evil present."
[/message]

[message]
speaker=Deoran
# po: Note that servants is in plural.
message= _ "Surely the undead infestation cannot be dispatched so easily. We have merely destroyed servants of a far darker master."
[/message]
[/then]

[elseif]
[have_unit]
id="Mal M'Brin"
[/have_unit]

[then]
[if]
[have_unit]
x,y=$x2,$y2

[not]
id=Ethiliel,Minister Hylas
[/not]
[/have_unit]

[then]
[message]
speaker=second_unit
message= _ "Two undead leaders have fallen…"
[/message]
[message]
speaker=Minister Hylas
message= _ "Though we have merely destroyed the servants of a far darker master…"
[/message]
[/then]

[else]
[message]
speaker=Minister Hylas
message= _ "They were just servants of a far darker master…"
[/message]
[/else]
[/if]
[/then]
[/elseif]
[else]
[message]
speaker=Sir Gerrick
message= _ "The master of the undead is defeated!"
speaker=second_unit
message= _ "One less evil in this forest…"
[/message]
[/else]
[/if]

[message]
speaker=Minister Hylas
message= _ "No... I fear there is still much evil present."
[/message]

[message]
speaker=Deoran
message= _ "Surely the undead infestation cannot be dispatched so easily. We have merely destroyed a servant of a far darker master."
[/message]
[/event]

# the adventurers see the Lich, or the Lich moves in their vision area
# The adventurers see the Lich, or the Lich moves in their vision area
[event]
name=sighted

Expand All @@ -416,6 +511,7 @@
scroll=no
message= _ "We found the lich!"
[/message]
{VARIABLE know_about_lich yes}
[/event]

# The adventurers locate the bandits: a choice must be made
Expand Down Expand Up @@ -740,6 +836,10 @@
speaker=Urza Afalas
message= _ "Fools! That lich will be the death of us all! You have sealed our doom!"
[/message]
# Questionable if this should be enough to change the talk
# when killing the zombie leaders (it is currently set when
# sighting the lich before killing the zombies)
# {VARIABLE know_about_lich yes}
[/then]
[/elseif]
[else]
Expand Down Expand Up @@ -834,7 +934,7 @@
image=portraits/deoran-sad.png
message= _ "Then we shall retreat towards Westin and prepare for the oncoming battle. I pray our only chance at victory was not lost today."
[/message]
{CLEAR_VARIABLE side_with_bandits,found_urza_afalas,has_mermen}
{CLEAR_VARIABLE side_with_bandits,found_urza_afalas,has_mermen,know_about_lich}
[endlevel]
result=victory
next_scenario=06b_The_Long_March
Expand Down Expand Up @@ -932,7 +1032,7 @@
speaker=Sir Gerrick
message= _ "Fare well, Deoran! I will be there to greet you when you return to Kerlath Province."
[/message]
{CLEAR_VARIABLE side_with_bandits,found_urza_afalas}
{CLEAR_VARIABLE side_with_bandits,found_urza_afalas,know_about_lich}
[endlevel]
result=victory
next_scenario=06a_Tidings_Good_and_Ill
Expand Down

0 comments on commit f1a465b

Please sign in to comment.