mail[Wesnoth-commits] r34057 - /trunk/data/campaigns/tutorial/scenarios/1_Tutorial.cfg


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by patrick_X99 on March 22, 2009 - 23:01:
Author: sapient
Date: Sun Mar 22 23:01:55 2009
New Revision: 34057

URL: http://svn.gna.org/viewcvs/wesnoth?rev=34057&view=rev
Log:
fix awkward/nonstandard ConditionalWML spotted by silene
- much more exists

Modified:
    trunk/data/campaigns/tutorial/scenarios/1_Tutorial.cfg

Modified: trunk/data/campaigns/tutorial/scenarios/1_Tutorial.cfg
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/campaigns/tutorial/scenarios/1_Tutorial.cfg?rev=34057&r1=34056&r2=34057&view=diff
==============================================================================
--- trunk/data/campaigns/tutorial/scenarios/1_Tutorial.cfg (original)
+++ trunk/data/campaigns/tutorial/scenarios/1_Tutorial.cfg Sun Mar 22 
23:01:55 2009
@@ -261,38 +261,28 @@
         [allow_undo][/allow_undo]
         [filter]
             side=1
+            [filter_location]
+                [not]
+                    find_in=target_hex
+                [/not]
+            [/filter_location]
         [/filter]
-
         [if]
             [variable]
                 name=target_hex.is_set
-                equals=yes
+                boolean_equals=yes
             [/variable]
             [then]
-                [if]
-                    [variable]
-                        name=x1
-                        equals=$target_hex.x
-                    [/variable]
-                    [variable]
-                        name=y1
-                        equals=$target_hex.y
-                    [/variable]
-                    [then]
-                    [/then]
-                    [else]
-                        [redraw][/redraw]
-                        [message]
-                            speaker=narrator
-                            #wmllint: display on
-                            message=_ "*Oops!
+                [redraw][/redraw]
+                [message]
+                    speaker=narrator
+                    #wmllint: display on
+                    message=_ "*Oops!
 You moved to the wrong place! After this message, you can press 'u' to undo, 
then try again." +
-                            _ "
-*Left click or press spacebar to continue..."
-                            #wmllint: display off
-                        [/message]
-                    [/else]
-                [/if]
+                    _ "
+*Left click or press spacebar to continue..."
+                    #wmllint: display off
+                [/message]
             [/then]
         [/if]
     [/event]




Related Messages


Powered by MHonArc, Updated Sun Mar 22 23:40:26 2009