mail[Wesnoth-commits] r33551 - /trunk/data/campaigns/The_South_Guard/scenarios/08a_Return_To_Kerlath.cfg


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

Header


Content

Posted by lari . nieminen on March 11, 2009 - 13:57:
Author: zookeeper
Date: Wed Mar 11 13:57:45 2009
New Revision: 33551

URL: http://svn.gna.org/viewcvs/wesnoth?rev=33551&view=rev
Log:
Added in some backwards-compatibility code for the removal of the dismounted 
commander.

Modified:
    trunk/data/campaigns/The_South_Guard/scenarios/08a_Return_To_Kerlath.cfg

Modified: 
trunk/data/campaigns/The_South_Guard/scenarios/08a_Return_To_Kerlath.cfg
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/campaigns/The_South_Guard/scenarios/08a_Return_To_Kerlath.cfg?rev=33551&r1=33550&r2=33551&view=diff
==============================================================================
--- trunk/data/campaigns/The_South_Guard/scenarios/08a_Return_To_Kerlath.cfg 
(original)
+++ trunk/data/campaigns/The_South_Guard/scenarios/08a_Return_To_Kerlath.cfg 
Wed Mar 11 13:57:45 2009
@@ -157,6 +157,59 @@
     [/side]
 
     [event]
+        name=prestart
+
+        [store_unit]
+            [filter]
+                id=Deoran
+            [/filter]
+
+            kill=yes
+            variable=deoran_store
+        [/store_unit]
+
+        [if]
+            [variable]
+                name=deoran_store.type
+                contains="Dismounted Commander"
+            [/variable]
+            [then]
+                [if]
+                    [variable]
+                        name=deoran_store.type
+                        equals=Dismounted Commander 1
+                    [/variable]
+                    [then]
+                        {VARIABLE deoran_type "Junior Commander"}
+                    [/then]
+                [/if]
+                [if]
+                    [variable]
+                        name=deoran_store.type
+                        equals=Dismounted Commander 2
+                    [/variable]
+                    [then]
+                        {VARIABLE deoran_type "Horseman Commander"}
+                    [/then]
+                [/if]
+                [if]
+                    [variable]
+                        name=deoran_store.type
+                        equals=Dismounted Commander 3
+                    [/variable]
+                    [then]
+                        {VARIABLE deoran_type "Mounted General"}
+                    [/then]
+                [/if]
+
+                {TRANSFORM_UNIT id=Deoran $deoran_type}
+            [/then]
+        [/if]
+
+        {CLEAR_VARIABLE deoran_store}
+    [/event]
+
+    [event]
         name=start
 
         {GENERIC_UNIT 2 Trapper 6 43}




Related Messages


Powered by MHonArc, Updated Wed Mar 11 14:00:14 2009