UtBS: fixed scenario 9 Zhul death bug
This commit is contained in:
parent
001a639349
commit
7ca277464a
9 changed files with 96 additions and 9 deletions
|
@ -729,6 +729,11 @@ name=prestart
|
|||
value=4
|
||||
[/set_variable]
|
||||
#endif
|
||||
|
||||
[set_variable]
|
||||
name=immortal_hero
|
||||
value=0
|
||||
[/set_variable]
|
||||
|
||||
# set starting scenario objectives
|
||||
|
||||
|
|
|
@ -293,6 +293,11 @@ name=prestart
|
|||
name=hit_by_special_attack
|
||||
value=0
|
||||
[/set_variable]
|
||||
|
||||
[set_variable]
|
||||
name=immortal_hero
|
||||
value=0
|
||||
[/set_variable]
|
||||
|
||||
# at each increase 1 extra alien minion is produced each turn
|
||||
|
||||
|
|
|
@ -3487,7 +3487,7 @@ first_time_only=no
|
|||
#that I cover the entire map
|
||||
radius=1000
|
||||
[filter]
|
||||
description=Roaming Undead
|
||||
description="Roaming Undead"
|
||||
side=4
|
||||
[/filter]
|
||||
variable=locs
|
||||
|
|
|
@ -4431,6 +4431,8 @@ value=$unit_var.description
|
|||
|
||||
{CLEAR_VARIABLE unit_var}
|
||||
|
||||
# if cloaked figure was delaying victory event from firing
|
||||
|
||||
[if]
|
||||
[variable]
|
||||
name=delay_victory
|
||||
|
@ -4547,7 +4549,6 @@ name=victory
|
|||
{CLEAR_VARIABLE saw_interrogators}
|
||||
{CLEAR_VARIABLE saw_sergeant}
|
||||
|
||||
{CLEAR_VARIABLE immortal_hero}
|
||||
{CLEAR_VARIABLE enemy_in_hex}
|
||||
{CLEAR_VARIABLE ally_in_hex}
|
||||
{CLEAR_VARIABLE unslow_kaleh}
|
||||
|
|
|
@ -469,6 +469,11 @@ name=prestart
|
|||
value=0
|
||||
[/set_variable]
|
||||
|
||||
[set_variable]
|
||||
name=immortal_hero
|
||||
value=0
|
||||
[/set_variable]
|
||||
|
||||
# create AI=guardian units. They can't move unless an enemy
|
||||
# moves nearby. I create them at the beginning because when the
|
||||
# player sees them, events will fire.
|
||||
|
|
|
@ -467,6 +467,11 @@ name=prestart
|
|||
name=took_belt
|
||||
value=0
|
||||
[/set_variable]
|
||||
|
||||
[set_variable]
|
||||
name=immortal_hero
|
||||
value=0
|
||||
[/set_variable]
|
||||
|
||||
# Pre-set units
|
||||
|
||||
|
|
|
@ -845,6 +845,11 @@ name=prestart
|
|||
name=saw_valley_river
|
||||
value=0
|
||||
[/set_variable]
|
||||
|
||||
[set_variable]
|
||||
name=immortal_hero
|
||||
value=0
|
||||
[/set_variable]
|
||||
|
||||
#remove shroud surrounding starting position
|
||||
[remove_shroud]
|
||||
|
|
|
@ -656,6 +656,11 @@ name=prestart
|
|||
name=test_counter
|
||||
value=0
|
||||
[/set_variable]
|
||||
|
||||
[set_variable]
|
||||
name=immortal_hero
|
||||
value=0
|
||||
[/set_variable]
|
||||
|
||||
#remove shroud surrounding starting position
|
||||
[remove_shroud]
|
||||
|
@ -4125,6 +4130,39 @@ message= _ "Peace Zhul, we can discuss theology later. We still have work to do.
|
|||
[/then]
|
||||
[/if]
|
||||
|
||||
# A bug seems to cause Zhul to die after this event happens
|
||||
# this flag prevents Zhul from dying
|
||||
[set_variable]
|
||||
name=immortal_hero
|
||||
value=1
|
||||
[/set_variable]
|
||||
|
||||
[/event]
|
||||
|
||||
# if Zhul causes the immortal_hero variable to be set to 1, her death event
|
||||
# should reset it back to 0. But just in case it doesn't, this event
|
||||
# resets the variable at the start of the next turn
|
||||
|
||||
[event]
|
||||
name=new turn
|
||||
first_time_only=no
|
||||
|
||||
[if]
|
||||
[variable]
|
||||
name=immortal_hero
|
||||
numerical_equals=1
|
||||
[/variable]
|
||||
|
||||
[then]
|
||||
|
||||
[set_variable]
|
||||
name=immortal_hero
|
||||
value=0
|
||||
[/set_variable]
|
||||
|
||||
[/then]
|
||||
[/if]
|
||||
|
||||
[/event]
|
||||
|
||||
# Event 9: Meeting and Death of Tanstafaal
|
||||
|
|
|
@ -50,14 +50,37 @@ name=die
|
|||
description=Zhul
|
||||
[/filter]
|
||||
|
||||
[message]
|
||||
speaker=unit
|
||||
message= _ "Eloh protect us, I have fallen."
|
||||
[/message]
|
||||
[if]
|
||||
#if immortal_hero=1, then don't cause defeat, turn flag off
|
||||
[variable]
|
||||
name=immortal_hero
|
||||
numerical_equals=1
|
||||
[/variable]
|
||||
|
||||
[then]
|
||||
|
||||
[set_variable]
|
||||
name=immortal_hero
|
||||
value=0
|
||||
[/set_variable]
|
||||
|
||||
[/then]
|
||||
|
||||
[else]
|
||||
|
||||
[message]
|
||||
speaker=unit
|
||||
message= _ "Eloh protect us, I have fallen."
|
||||
[/message]
|
||||
|
||||
[endlevel]
|
||||
result=defeat
|
||||
[/endlevel]
|
||||
|
||||
[/else]
|
||||
|
||||
[/if]
|
||||
|
||||
[endlevel]
|
||||
result=defeat
|
||||
[/endlevel]
|
||||
[/event]
|
||||
|
||||
# Elyssa death
|
||||
|
|
Loading…
Add table
Reference in a new issue