Author: ai0867
Date: Sun Apr 19 20:07:12 2009
New Revision: 35061

URL: http://svn.gna.org/viewcvs/wesnoth?rev=35061&view=rev
Log:
[objectives][show_if] testcase.

Modified:
    trunk/data/scenario-test.cfg

Modified: trunk/data/scenario-test.cfg
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/scenario-test.cfg?rev=35061&r1=35060&r2=35061&view=diff
==============================================================================
--- trunk/data/scenario-test.cfg (original)
+++ trunk/data/scenario-test.cfg Sun Apr 19 20:07:12 2009
@@ -252,6 +252,46 @@
         [show_objectives]
             side=1
         [/show_objectives]
+    [/event]
+    [event]
+        name=start
+        [objectives]
+            [objective]
+                condition=win
+                description= _ "Defeat the enemy leader (he's at 29,16!)"
+                [show_if]
+                    [have_unit]
+                        x,y,canrecruit,side=29,16,yes,2
+                    [/have_unit]
+                [/show_if]
+            [/objective]
+            [objective]
+                condition=win
+                description= _ "Defeat the enemy leader (he's at 28,18!)"
+                [show_if]
+                    [have_unit]
+                        x,y,canrecruit,side=28,18,yes,2
+                    [/have_unit]
+                [/show_if]
+            [/objective]
+            [objective]
+                condition=win
+                description= _ "Defeat the enemy leader (I have no clue where 
he is)"
+                [show_if]
+                    [not]
+                        [have_unit]
+                            canrecruit,side=yes,2
+                            [and]
+                                x,y=29,16
+                                [or]
+                                    x,y=28,18
+                                [/or]
+                            [/and]
+                        [/have_unit]
+                    [/not]
+                [/show_if]
+            [/objective]
+        [/objectives]
     [/event]
 
     [event]


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

Reply via email to