Author: elvish_hunter
Date: Thu Mar 29 21:44:31 2012
New Revision: 53692
URL: http://svn.gna.org/viewcvs/wesnoth?rev=53692&view=rev
Log:
SoF: updated sighted location code in scenario 3
Modified:
trunk/changelog
trunk/data/campaigns/Sceptre_of_Fire/scenarios/3_Searching_for_the_Runecrafter.cfg
Modified: trunk/changelog
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/changelog?rev=53692&r1=53691&r2=53692&view=diff
==============================================================================
--- trunk/changelog (original)
+++ trunk/changelog Thu Mar 29 21:44:31 2012
@@ -25,6 +25,9 @@
* 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
Modified:
trunk/data/campaigns/Sceptre_of_Fire/scenarios/3_Searching_for_the_Runecrafter.cfg
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/data/campaigns/Sceptre_of_Fire/scenarios/3_Searching_for_the_Runecrafter.cfg?rev=53692&r1=53691&r2=53692&view=diff
==============================================================================
---
trunk/data/campaigns/Sceptre_of_Fire/scenarios/3_Searching_for_the_Runecrafter.cfg
(original)
+++
trunk/data/campaigns/Sceptre_of_Fire/scenarios/3_Searching_for_the_Runecrafter.cfg
Thu Mar 29 21:44:31 2012
@@ -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 dâzztaaanâeee!" #
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
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits