mail[Wesnoth-commits] r20142 - /trunk/data/campaigns/The_South_Guard/scenarios/06a_Tidings_Good_And_Ill.cfg


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

Header


Content

Posted by esr on September 06, 2007 - 07:38:
Author: esr
Date: Thu Sep  6 07:37:28 2007
New Revision: 20142

URL: http://svn.gna.org/viewcvs/wesnoth?rev=20142&view=rev
Log:
WML fix for bug #9944; create some new elvish units in that situation.

Modified:
    
trunk/data/campaigns/The_South_Guard/scenarios/06a_Tidings_Good_And_Ill.cfg

Modified: 
trunk/data/campaigns/The_South_Guard/scenarios/06a_Tidings_Good_And_Ill.cfg
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/campaigns/The_South_Guard/scenarios/06a_Tidings_Good_And_Ill.cfg?rev=20142&r1=20141&r2=20142&view=diff
==============================================================================
--- 
trunk/data/campaigns/The_South_Guard/scenarios/06a_Tidings_Good_And_Ill.cfg 
(original)
+++ 
trunk/data/campaigns/The_South_Guard/scenarios/06a_Tidings_Good_And_Ill.cfg 
Thu Sep  6 07:37:28 2007
@@ -143,10 +143,12 @@
                     variable=elvish_fighters[$X]
                     find_vacant=yes
                 [/unstore_unit]
+
+               {VARIABLE elves_recalled "yes"}
             [/then]
         [/if]
         {NEXT X}
-        {CLEAR_VARIABLE elvish_fighers}
+        {CLEAR_VARIABLE elvish_fighters}
 
         {FOREACH elvish_healers X}
         [if]
@@ -162,10 +164,75 @@
                     variable=elvish_healers[$X]
                     find_vacant=yes
                 [/unstore_unit]
+
+               {VARIABLE elves_recalled "yes"}
             [/then]
         [/if]
         {NEXT X}
         {CLEAR_VARIABLE elvish_healers}
+
+        # Fallback.  If user has no surviviving elves,
+        # give him some.
+        [if]
+            [not]
+               [variable]
+                   name=elves_recalled
+                   equals="yes"
+               [/variable]
+            [/not]
+            [then]
+               [unit]
+                   side=1
+                   type=Elvish Hero
+                   x=15
+                   y=25
+                   description=Thirian
+                   user_description= _ "Thirian"
+                   upkeep=full
+                   animate=yes
+               [/unit]
+               [unit]
+                   side=1
+                   type=Elvish Fighter
+                   x=15
+                   y=24
+                   description=Ardolan
+                   user_description= _ "Ardolan"
+                   upkeep=full
+                   animate=yes
+               [/unit]
+               [unit]
+                   side=1
+                   type=Elvish Archer
+                   x=16
+                   y=23
+                   description=Nyldar
+                   user_description= _ "Nyldar"
+                   upkeep=full
+                   animate=yes
+               [/unit]
+               [unit]
+                   side=1
+                   type=Elvish Shaman
+                   x=14
+                   y=25
+                   description=Lirané
+                   user_description= _ "Lirané" 
+                   upkeep=full
+                   animate=yes
+               [/unit]
+               [unit]
+                   side=1
+                   type=Elvish Shaman
+                   x=14
+                   y=25
+                   description=Elendra
+                   user_description= _ "Elendra"
+                   upkeep=full
+                   animate=yes
+               [/unit]
+            [/then]
+        [/if]
     [/event]
 
     #start




Related Messages


Powered by MHonArc, Updated Thu Sep 06 08:40:21 2007