Changed the way lady outlaw is handled in TRoW's Return to Oldwood scenario.

Fixing bug #10062
This commit is contained in:
Dimitar Ilccov 2007-09-27 12:27:48 +00:00
parent 6cf0b7494f
commit 571a014bca
2 changed files with 69 additions and 18 deletions

View file

@ -136,25 +136,69 @@
description=Prince Haldric
message= _ "We can't all stay here for the winter; we would starve, or freeze. Your hospitality, though generously meant, has barely sufficed. Hold - I see somebody!"
[/message]
[move_unit_fake]
type=Outlaw
side=1
gender=female
x=8,8,8,8,8,7,7,6,6
y=30,29,28,27,26,26,25,24,23,22
[/move_unit_fake]
[store_unit]
[filter]
description=Lady Outlaw
[/filter]
variable=lady_store
kill=yes
[/store_unit]
[if]
[variable]
name=lady_store.type
equals=Fugitive
[/variable]
[then]
[move_unit_fake]
type=Fugitive
side=1
gender=female
x=8,8,8,8,8,7,7,6,6
y=30,29,28,27,26,26,25,24,23,22
[/move_unit_fake]
[/then]
[else]
[move_unit_fake]
type=Outlaw
side=1
gender=female
x=8,8,8,8,8,7,7,6,6
y=30,29,28,27,26,26,25,24,23,22
[/move_unit_fake]
[/else]
[/if]
{VARIABLE lady_store.x 6}
{VARIABLE lady_store.y 22}
[unit]
type=Outlaw
gender=female
description=Lady Outlaw
user_description= _ "Lady Outlaw"
profile="portraits/lady_outlaw.png"
unrenamable=yes
side=1
x=6
y=22
[/unit]
[unstore_unit]
variable=lady_store
[/unstore_unit]
[/event]
[event]
name=start
[if]
[have_unit]
side=1
description=Lady Outlaw
[/have_unit]
[then]
[/then]
[else]
[unit]
type=Outlaw
gender=female
description=Lady Outlaw
user_description= _ "Lady Outlaw"
profile="portraits/lady_outlaw.png"
unrenamable=yes
side=1
x=6
y=22
[/unit]
[/else]
[/if]
[if]
[variable]

View file

@ -54,6 +54,13 @@
name=have_lady
value=0
[/set_variable]
[store_unit]
[filter]
description=Lady Outlaw
[/filter]
variable=lady_store
kill=yes
[/store_unit]
[/event]
[event]