SoF: updated sighted location code in scenario 3

This commit is contained in:
Elvish_Hunter 2012-03-29 19:44:31 +00:00
parent f87917eb1a
commit e673bf69b2
2 changed files with 42 additions and 20 deletions

View file

@ -25,6 +25,9 @@ Version 1.11.0-svn:
* Fixed bug #19531: scroll to reinforcement units in Blackwater Port
* Legend of Wesmere:
* Fix bug #19577 - some terrain was not snow covered
* Sceptre of Fire:
* Searching for the Runecrafter: updated the "sighted location" code to
make use of [filter_vision], plus a SSF
* Son of the Black Eye:
* Removed Al'Brock and Flar'Tar death as defeat condition in objectives in
Civil War

View file

@ -267,17 +267,6 @@
x,y=$thur_x,$thur_y
terrain=Aa^Vha
[/terrain]
#this is here so that a hacky "location sighted" event can take place
#the unit will never actually be seen by the player
[unit]
side=2
type=Galleon
x,y=$thur_x,$thur_y
ai_special=guardian
[/unit]
[hide_unit]
x,y=$thur_x,$thur_y
[/hide_unit]
[/event]
[event]
@ -403,17 +392,47 @@
[/event]
[event]
name=sighted
name=moveto
[filter]
type=Galleon
side=1
[/filter]
[kill]
x,y=$x1,$y1
[/kill]
[message]
speaker=second_unit
message= _ "I see a house in the distance!"
[/message]
[filter_condition]
[have_location]
x,y=$thur_x,$thur_y
[filter_vision]
visible=yes
respect_fog=yes
side=1
[/filter_vision]
[/have_location]
[/filter_condition]
[scroll_to]
x,y=$thur_x,$thur_y
[/scroll_to]
[delay]
time=250
[/delay]
[if]
[variable]
name=unit.id
equals=Krawg
[/variable]
[then]
[message]
speaker=Krawg
#po: "I see a house in the distance!"
message= _ "Iii zeee hoose iiin eee dzztaaaneee!" # wmllint: no spellcheck
[/message]
[/then]
[else]
[message]
speaker=unit
message= _ "I see a house in the distance!"
[/message]
[/else]
[/if]
[/event]
# Birds reach Thursagan's (variable) location