mail[Wesnoth-commits] r33559 - /trunk/data/campaigns/Eastern_Invasion/utils/journey.cfg


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

Header


Content

Posted by esr on March 11, 2009 - 17:44:
Author: esr
Date: Wed Mar 11 17:44:00 2009
New Revision: 33559

URL: http://svn.gna.org/viewcvs/wesnoth?rev=33559&view=rev
Log:
[switch] within [part] doesn't work.

Modified:
    trunk/data/campaigns/Eastern_Invasion/utils/journey.cfg

Modified: trunk/data/campaigns/Eastern_Invasion/utils/journey.cfg
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/campaigns/Eastern_Invasion/utils/journey.cfg?rev=33559&r1=33558&r2=33559&view=diff
==============================================================================
--- trunk/data/campaigns/Eastern_Invasion/utils/journey.cfg (original)
+++ trunk/data/campaigns/Eastern_Invasion/utils/journey.cfg Wed Mar 11 
17:44:00 2009
@@ -321,32 +321,34 @@
 #define TO_NORTHERN_OUTPOST
     background="eastern-invasion-map.png"
     {JOURNEY1_COMPLETE}
-    [switch]
-        variable=first_fork
-        [case]
-            value=west
+    [if]
+        [variable]
+            name=first_fork
+            equals=east
+        [/variable]
+        [then]
+            {JOURNEY3_STAGE3}
+        [/then]
+        [else]
             {JOURNEY2_STAGE2}
-        [/case]
-        [case]
-            value=east
-            {JOURNEY3_STAGE3}
-        [/case]
-    [/switch]
+        [/else]
+    [/if]
 #enddef
 
 #define FROM_NORTHERN_OUTPOST
     {JOURNEY1_COMPLETE}
-    [switch]
-        variable=first_fork
-        [case]
-            value=west
+    [if]
+        [variable]
+            name=first_fork
+            equals=east
+        [/variable]
+        [then]
+            {JOURNEY3_COMPLETE}
+        [/then]
+        [else]
             {JOURNEY2_COMPLETE}
-        [/case]
-        [case]
-            value=east
-            {JOURNEY3_COMPLETE}
-        [/case]
-    [/switch]
+        [/else]
+    [/if]
 #enddef
 
 #define TO_TWO_PATHS
@@ -373,33 +375,35 @@
     background="eastern-invasion-map.png"
     {FROM_NORTHERN_OUTPOST}
     {JOURNEY4_COMPLETE}
-    [switch]
-        variable=second_fork
-        [case]
-            value=west
+    [if]
+        [variable]
+            name=second_fork
+            equals=west
+        [/variable]
+        [then]
             {JOURNEY5_STAGE2}
-        [/case]
-        [case]
-            value=north
+        [/then]
+        [else]
             {JOURNEY6_STAGE2}
-        [/case]
-    [/switch]
+        [/else]
+    [/if]
 #enddef
 
 #define FROM_TRAINING_THE_OGRES
     {FROM_NORTHERN_OUTPOST}
     {JOURNEY4_COMPLETE}
-    [switch]
-        variable=second_fork
-        [case]
-            value=west
+    [if]
+        [variable]
+            name=second_fork
+            equals=west
+        [/variable]
+        [then]
             {JOURNEY5_COMPLETE}
-        [/case]
-        [case]
-            value=east
+        [/then]
+        [else]
             {JOURNEY6_COMPLETE}
-        [/case]
-    [/switch]
+        [/else]
+    [/if]
 #enddef
 
 #define TO_XENOPHOBIA




Related Messages


Powered by MHonArc, Updated Wed Mar 11 20:00:16 2009