Author: fendrin
Date: Sat Apr 11 19:10:49 2009
New Revision: 34726

URL: http://svn.gna.org/viewcvs/wesnoth?rev=34726&view=rev
Log:
LoW: 19: Changed scenario objective to fit the story:
The player must wipe out the saurians by killing every single unit and destroy 
all villages.

Modified:
    trunk/data/campaigns/Legend_of_Wesmere/scenarios/19_Costly_Revenge.cfg

Modified: trunk/data/campaigns/Legend_of_Wesmere/scenarios/19_Costly_Revenge.cfg
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/campaigns/Legend_of_Wesmere/scenarios/19_Costly_Revenge.cfg?rev=34726&r1=34725&r2=34726&view=diff
==============================================================================
--- trunk/data/campaigns/Legend_of_Wesmere/scenarios/19_Costly_Revenge.cfg 
(original)
+++ trunk/data/campaigns/Legend_of_Wesmere/scenarios/19_Costly_Revenge.cfg Sat 
Apr 11 19:10:49 2009
@@ -151,14 +151,26 @@
     {STARTING_VILLAGES_ALL 2}
     {STARTING_VILLAGES 3 20}
 
+    ##### Scenario objectives #####
     [event]
         name=prestart
         [objectives]
             side=1
-            [objective]
-                description= _ "Defeat all enemies"
+            #[objective]
+            #    description= _ "Defeat all enemies"
+            #    condition=win
+            #[/objective]
+            #note= _ "and"
+            [objective]
+                description= _ "Defeat every enemy unit"
                 condition=win
             [/objective]
+            note= _ "and"
+            [objective]
+                description= _ "Destroy all villages"
+                condition=win
+            [/objective]
+
             [objective]
                 description= _ "Death of Kalenz"
                 condition=lose
@@ -175,36 +187,107 @@
                 description= _ "Turns run out"
                 condition=lose
             [/objective]
-            #TODO: Make this working
-            #{NO_GOLD_CARRYOVER_NOTE}
+            note={NO_GOLD_CARRYOVER_NOTE}
         [/objectives]
     [/event]
 
+    victory_when_enemies_defeated=no
+
     [event]
         name=start
         [message]
-            id=Kalenz
+            side=1
+            [not]
+                id=Kalenz
+            [/not]
+            [not]
+                id=Landar
+            [/not]
             message= _ "We have finally reached Saurgrath, their capitol. 
Remember whose side they have taken in the war against us."
-        [/message]
-        [message]
-            id=Cleodil
-            message= _ "I fear this will be a bloodbath..."
         [/message]
         [message]
             id=Landar
             message= _ "It is our chance to finish them off..."
             #(and make Turin happy)...
         [/message]
-    [/event]
-
-    [event]
-        name=enemies defeated
-        [endlevel]
-            result=victory
-            bonus=no
-            save=no
-            carryover_percentage=0
-        [/endlevel]
+        [message]
+            id=Kalenz
+            message= _ "I fear this will be a bloodbath..."
+        [/message]
+        [message]
+            #TODO for ESR: Reprose please.
+            id=Landar
+            message= _ "Destroy their homes and bring death to all of them!" 
+        [/message]
+    [/event]
+
+    # every time one of the saurian gets killed this event checks if it was 
the last one and if there are any villages left.
+
+#define VICTORY_CONDITIONAL
+    [if]
+        [not]
+            [have_unit]
+                side=2
+                [or]
+                    side=3
+                [/or]
+            [/have_unit]    
+        [/not]
+        [not]
+            [have_location]
+                terrain=*^V*
+            [/have_location]
+        [/not]
+        [then]
+            #TODO for ESR: add some speech.
+            [endlevel]
+                result=victory
+                bonus=no
+                save=no
+                carryover_percentage=0
+            [/endlevel]           
+        [/then]
+    [/if]
+#enddef
+
+    [event]
+        name=die
+        first_time_only=no
+        [filter]
+            side=2
+            [or]
+                side=3
+            [/or]
+        [/filter]
+        {VICTORY_CONDITIONAL}
+    [/event]
+
+    # capture event lifted from IftU.
+    [event]
+        name=capture
+        first_time_only=no
+        [filter]
+            side=1
+        [/filter]
+
+        {PLAY_SOUND "torch.ogg"}
+
+        {DELAY 200}
+
+        {PLAY_SOUND "wose-die.ogg"}
+
+        [terrain]
+            x=$x1
+            y=$y1
+            terrain=Dd^Dr
+            layer=overlay
+        [/terrain]
+
+        #        {ADD_GOLD $unit.side 9 14 20}
+
+        {REDRAW}
+
+        {VICTORY_CONDITIONAL}
     [/event]
 
     [event]


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to