Fix bug #14649...

...(SotBE - losing Flar'Tar and Al'Brock in "The Dwarvish Stand"
messes up the following scenario)

by making Flar'Tar and Al'Brock heroes who must survive from scenartio
12 to the last battle.  We can't use the rename approach as for
Thelarion and DarStang because the orc generals' names appear in the
story text for 18.
This commit is contained in:
Eric S. Raymond 2009-11-01 05:01:16 +00:00
parent d5df31d9bd
commit ae96ba90ae
9 changed files with 98 additions and 124 deletions

View file

@ -79,4 +79,4 @@
# wmllint: directory spelling Grüü Rahul Karun Shan Taum Lanbec'h Howgarth
# wmllint: directory spelling Borstep Prestim Barag Gór Tirigaz Bitok
# wmllint: directory spelling Dorset Bork Melmog Lmarig
# wmllint: directory spelling Dorset Bork Melmog Lmarig Flar'Tar Al'Brock

View file

@ -29,6 +29,14 @@
description= _ "Death of Grüü"
condition=lose
[/objective]
[objective]
description= _ "Death of Al'Brock"
condition=lose
[/objective]
[objective]
description= _ "Death of Flar'Tar"
condition=lose
[/objective]
[objective]
description= _ "Turns run out"
condition=lose
@ -63,6 +71,7 @@
recruit=Wolf Rider, Orcish Grunt, Troll Whelp, Orcish Archer, Orcish Crossbowman, Orcish Warrior
team_name=Kapoue
user_team_name=_ "Kapou'e"
{IS_HERO}
{GOLD 300 250 200}
[/side]
@ -77,6 +86,7 @@
recruit=Wolf Rider, Orcish Grunt, Troll Whelp, Orcish Archer, Orcish Crossbowman, Orcish Warrior
team_name=Kapoue
user_team_name=_ "Kapou'e"
{IS_HERO}
{GOLD 300 250 200}
[/side]
@ -249,4 +259,5 @@
[/event]
{campaigns/Son_Of_The_Black_Eye/utils/deaths.cfg}
{GENERALS_MUST_SURVIVE}
[/scenario]

View file

@ -27,6 +27,14 @@
description= _ "Death of Grüü"
condition=lose
[/objective]
[objective]
description= _ "Death of Al'Brock"
condition=lose
[/objective]
[objective]
description= _ "Death of Flar'Tar"
condition=lose
[/objective]
[objective]
description= _ "Turns run out"
condition=lose
@ -325,4 +333,5 @@
[/event]
{campaigns/Son_Of_The_Black_Eye/utils/deaths.cfg}
{GENERALS_MUST_SURVIVE}
[/scenario]

View file

@ -29,6 +29,14 @@
description= _ "Death of Grüü"
condition=lose
[/objective]
[objective]
description= _ "Death of Al'Brock"
condition=lose
[/objective]
[objective]
description= _ "Death of Flar'Tar"
condition=lose
[/objective]
[objective]
description= _ "Turns run out"
condition=lose
@ -774,57 +782,14 @@
[/not]
) side 1}
[store_unit]
[filter]
id="Al'Brock"
[/filter]
kill=yes
variable=stored_AlBrock
[/store_unit]
{MODIFY_UNIT (id="Al'Brock") side 1}
{MODIFY_UNIT (id="Al'Brock") canrecruit no}
[store_unit]
[filter]
id="Flar'Tar"
[/filter]
{MODIFY_UNIT (id="Flar'Tar") side 1}
{MODIFY_UNIT (id="Flar'Tar") canrecruit no}
kill=yes
variable=stored_FlarTar
[/store_unit]
{VARIABLE stored_AlBrock.side 1}
{VARIABLE stored_AlBrock.canrecruit no}
{VARIABLE stored_FlarTar.side 1}
{VARIABLE stored_FlarTar.canrecruit no}
[unstore_unit]
variable=stored_AlBrock
[/unstore_unit]
[unstore_unit]
variable=stored_FlarTar
[/unstore_unit]
# [store_unit]
# [filter]
# side=2
# [/filter]
#
# kill=no
# variable=AlBrock_recalls
# [/store_unit]
#
# [store_unit]
# [filter]
# side=3
# [/filter]
#
# kill=no
# variable=FlarTar_recalls
# [/store_unit]
{CLEAR_VARIABLE stored_Gruu_side,stored_Gruu,stored_trolls,stored_AlBrock,stored_FlarTar}
{CLEAR_VARIABLE stored_Gruu_side,stored_Gruu,stored_trolls}
[endlevel]
result=victory
@ -834,4 +799,5 @@
[/event]
{campaigns/Son_Of_The_Black_Eye/utils/deaths.cfg}
{GENERALS_MUST_SURVIVE}
[/scenario]

View file

@ -40,6 +40,14 @@
condition=lose
description= _ "Death of Grüü"
[/objective]
[objective]
description= _ "Death of Al'Brock"
condition=lose
[/objective]
[objective]
description= _ "Death of Flar'Tar"
condition=lose
[/objective]
[objective]
condition=lose
description=_ "Turns run out"
@ -672,4 +680,5 @@
[/event]
{campaigns/Son_Of_The_Black_Eye/utils/deaths.cfg}
{GENERALS_MUST_SURVIVE}
[/scenario]

View file

@ -25,20 +25,28 @@
[objectives]
side=1
[objective]
condition=win
description=_ "Defeat all enemy leaders"
condition=win
[/objective]
[objective]
condition=lose
description=_ "Death of Kapou'e"
condition=lose
[/objective]
[objective]
condition=lose
description= _ "Death of Grüü"
condition=lose
[/objective]
[objective]
description= _ "Death of Al'Brock"
condition=lose
[/objective]
[objective]
description= _ "Death of Flar'Tar"
condition=lose
[/objective]
[objective]
description=_ "Turns run out"
condition=lose
[/objective]
note= _ "The Great Horde: upkeep cost of every unit decreased by one." + "
@ -336,4 +344,5 @@
[/event]
{campaigns/Son_Of_The_Black_Eye/utils/deaths.cfg}
{GENERALS_MUST_SURVIVE}
[/scenario]

View file

@ -28,6 +28,14 @@
condition=lose
description=_ "Death of Kapou'e"
[/objective]
[objective]
description= _ "Death of Al'Brock"
condition=lose
[/objective]
[objective]
description= _ "Death of Flar'Tar"
condition=lose
[/objective]
[objective]
condition=lose
description= _ "Death of Grüü"
@ -807,48 +815,10 @@
variable=stored_AlBrock
[/store_unit]
[store_unit]
[filter]
id="Flar'Tar"
[/filter]
kill=yes
variable=stored_FlarTar
[/store_unit]
{VARIABLE stored_AlBrock.side 1}
{VARIABLE stored_AlBrock.canrecruit no}
{VARIABLE stored_FlarTar.side 1}
{VARIABLE stored_FlarTar.canrecruit no}
[unstore_unit]
variable=stored_AlBrock
[/unstore_unit]
[unstore_unit]
variable=stored_FlarTar
[/unstore_unit]
# [store_unit]
# [filter]
# side=2
# [/filter]
#
# kill=no
# variable=AlBrock_recalls
# [/store_unit]
#
# [store_unit]
# [filter]
# side=3
# [/filter]
#
# kill=no
# variable=FlarTar_recalls
# [/store_unit]
{CLEAR_VARIABLE stored_AlBrock,stored_FlarTar}
{MODIFY_UNIT (id="Al'Brock") side 1}
{MODIFY_UNIT (id="Al'Brock") canrecruit no}
{MODIFY_UNIT (id="Flar'Tar") side 1}
{MODIFY_UNIT (id="Flar'Tar") canrecruit no}
[/event]
[event]
@ -891,4 +861,5 @@
[/event]
{campaigns/Son_Of_The_Black_Eye/utils/deaths.cfg}
{GENERALS_MUST_SURVIVE}
[/scenario]

View file

@ -201,42 +201,17 @@
x,y=11,10
[/recall]
{MODIFY_UNIT (id="Al'Brock") side 2}
{MODIFY_UNIT (id="Al'Brock") canrecruit yes}
[recall]
id="Flar'Tar"
x,y=33,10
[/recall]
[store_unit]
[filter]
id="Al'Brock"
[/filter]
variable=stored_AlBrock
kill=yes
[/store_unit]
[store_unit]
[filter]
id="Flar'Tar"
[/filter]
variable=stored_FlarTar
kill=yes
[/store_unit]
{VARIABLE stored_AlBrock.side 2}
{VARIABLE stored_AlBrock.canrecruit yes}
{VARIABLE stored_FlarTar.side 3}
{VARIABLE stored_FlarTar.canrecruit yes}
[unstore_unit]
variable=stored_AlBrock
[/unstore_unit]
[unstore_unit]
variable=stored_FlarTar
[/unstore_unit]
{CLEAR_VARIABLE stored_AlBrock,stored_FlarTar}
{MODIFY_UNIT (id="Flar'Tar") side 3}
{MODIFY_UNIT (id="Flar'Tar") canrecruit yes}
[recall]
id=Grüü

View file

@ -129,3 +129,27 @@
[/then]
[/if]
[/event]
#define GENERALS_MUST_SURVIVE
# It is only critical that the allied generals survive until the
# last scenario. They can die during the last scenario without a
# coninuity problem.
[event]
name=die
[filter]
id="Al'Brock"
[/filter]
[endlevel]
result=defeat
[/endlevel]
[/event]
[event]
name=die
[filter]
id="Flar'Tar"
[/filter]
[endlevel]
result=defeat
[/endlevel]
[/event]
#enddef