DW, scenario 1: avoid zombie spawning if the village from the starting sequence get's recaptured midgame

This commit is contained in:
Severin Glöckner 2016-12-11 18:26:46 +01:00 committed by Lari Nieminen
parent b4ee041f2e
commit 0a7e147759
2 changed files with 17 additions and 6 deletions

View file

@ -454,6 +454,17 @@
[event]
name=turn 2
# Because of the manual spawning we have to add this village
# manually to the list, to avoid the event below working on it again
[set_variable]
name=zombified_villages[$number_of_captured_villages].location
value=35_20
[/set_variable]
[set_variable]
name=number_of_captured_villages
add=1
[/set_variable]
# Pop up a couple zombies when the bad guys capture a village
# for the first time. (Recapturing doesn't do anything.)
[event]
@ -568,11 +579,6 @@
[/do]
[/repeat]
[set_variable]
name=number_of_captured_villages
add=1
[/set_variable]
# The second time this happens, warn the player that this will
# keep happening (in case it's not obvious yet):
[if]
@ -593,7 +599,11 @@
[/then]
[/if]
#{CLEAR_VARIABLE number_of_zombies}
[set_variable]
name=number_of_captured_villages
add=1
[/set_variable]
{CLEAR_VARIABLE zombie_variation}
{CLEAR_VARIABLE already_zombified}
{CLEAR_VARIABLE village_location}

View file

@ -17,4 +17,5 @@
cost=1
usage=scout
hide_help=yes
do_not_list=yes
[/unit_type]