fix problem in nine scenario(water) UtBS

with kill eloh on hex where is picture of stoned zhul.
This commit is contained in:
Josef Redinger 2007-01-06 15:23:30 +00:00
parent 4777ab249d
commit 94b1aee7ac

View file

@ -651,14 +651,9 @@ name=prestart
name=elf_entered_water
value=0
[/set_variable]
[set_variable]
name=test_counter
value=0
[/set_variable]
[set_variable]
name=immortal_hero
name=test_counter
value=0
[/set_variable]
@ -3226,35 +3221,24 @@ first_time_only=no
[filter]
description=Zhul
[/filter]
kill=yes
kill=no
variable=Zhul_var
[/store_unit]
[set_variable]
name=temp
value=$Zhul_var.type
[/set_variable]
[store_unit]
[filter]
x,y=$Zhul_var.x,$Zhul_var.y
[/filter]
kill=yes
variable=Zhul_statue
[/store_unit]
[if]
[variable]
name=temp
equals="Desert Druid"
[/variable]
[then]
{PUT_IMG items/desert-elvish-druid-statue.png 52 15}
[/then]
[else]
{PUT_IMG items/desert-elvish-shyde-statue.png 52 15}
[/else]
[/if]
{CLEAR_VARIABLE temp}
{VARIABLE Zhul_statue.description "Zhul_statue"}
{VARIABLE Zhul_statue.status.stone "on"}
[unstore_unit]
variable=Zhul_statue
[/unstore_unit]
[/then]
[/if]
@ -4060,12 +4044,14 @@ message= _ "That was just an apparition, but if we meet again I will make her pa
[/then]
[/if]
[removeitem]
x,y=52,15
[/removeitem]
[kill]
description=Zhul_statue
animate=no
fire_event=no
[/kill]
[unstore_unit]
find_vacant=yes
find_vacant=no
variable=Zhul_var
[/unstore_unit]
@ -4130,39 +4116,6 @@ 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