mail[Wesnoth-commits] r28837 - in /trunk/data/campaigns/The_Hammer_of_Thursagan: scenarios/12_The_Underlevels.cfg utils/macros.cfg


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

Header


Content

Posted by esr on August 22, 2008 - 04:51:
Author: esr
Date: Fri Aug 22 04:51:35 2008
New Revision: 28837

URL: http://svn.gna.org/viewcvs/wesnoth?rev=28837&view=rev
Log:
Another fix for an odd case in The Underlevels. 

Modified:
    
trunk/data/campaigns/The_Hammer_of_Thursagan/scenarios/12_The_Underlevels.cfg
    trunk/data/campaigns/The_Hammer_of_Thursagan/utils/macros.cfg

Modified: 
trunk/data/campaigns/The_Hammer_of_Thursagan/scenarios/12_The_Underlevels.cfg
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/campaigns/The_Hammer_of_Thursagan/scenarios/12_The_Underlevels.cfg?rev=28837&r1=28836&r2=28837&view=diff
==============================================================================
--- 
trunk/data/campaigns/The_Hammer_of_Thursagan/scenarios/12_The_Underlevels.cfg 
(original)
+++ 
trunk/data/campaigns/The_Hammer_of_Thursagan/scenarios/12_The_Underlevels.cfg 
Fri Aug 22 04:51:35 2008
@@ -16,6 +16,8 @@
     {STARTING_VILLAGES 5 6}
     {STARTING_VILLAGES 3 3}
     {STARTING_VILLAGES 4 9}
+
+    {INITIALIZE_LICHES}
 
     turns=-1
 
@@ -921,6 +923,9 @@
                     [/filter]
                     x,y=37,43
                 [/teleport]
+
+                # In case user never puts anyone through the sealed door
+                {ACTIVATE_LICHES}
             [/then]
         [/if]
     [/event]

Modified: trunk/data/campaigns/The_Hammer_of_Thursagan/utils/macros.cfg
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/campaigns/The_Hammer_of_Thursagan/utils/macros.cfg?rev=28837&r1=28836&r2=28837&view=diff
==============================================================================
--- trunk/data/campaigns/The_Hammer_of_Thursagan/utils/macros.cfg (original)
+++ trunk/data/campaigns/The_Hammer_of_Thursagan/utils/macros.cfg Fri Aug 22 
04:51:35 2008
@@ -312,24 +312,44 @@
 
 #enddef
 
-#define ACTIVATE_LICHES
-    [message]
-        speaker="Angarthing"
-        message=_"I sense wrongness.  Some greater evil awakens before us."
-    [/message]
-
-    [allow_recruit]
-        side=2
-        type="Blood Bat,Ghost,Wraith,Shadow,Skeleton,Skeleton 
Archer,Ghoul,Necrophage,Revenant,Deathblade,Bone Shooter"
-    [/allow_recruit]
-
-    [allow_recruit]
-        side=6
-        type="Blood Bat,Ghost,Wraith,Shadow,Skeleton,Skeleton 
Archer,Ghoul,Necrophage,Revenant,Deathblade,Bone Shooter"
-    [/allow_recruit]
-
-    [allow_recruit]
-        side=7
-        type="Blood Bat,Ghost,Wraith,Shadow,Skeleton,Skeleton 
Archer,Ghoul,Necrophage,Revenant,Deathblade,Bone Shooter"
-    [/allow_recruit]
-#enddef
+#define INITIALIZE_LICHES
+    [set_variable]
+        name=liches_active
+        value=no
+    [/set_variable]
+#enddef
+
+#define ACTIVATE_LICHES 
+    [if]
+        [set_variable]
+            name=liches_active
+            value=no
+        [/set_variable]
+        [then]
+            [message]
+                speaker="Angarthing"
+                message=_"I sense wrongness.  Some greater evil awakens 
before us."
+            [/message]
+
+            [allow_recruit]
+                side=2
+                type="Blood Bat,Ghost,Wraith,Shadow,Skeleton,Skeleton 
Archer,Ghoul,Necrophage,Revenant,Deathblade,Bone Shooter"
+            [/allow_recruit]
+
+            [allow_recruit]
+                side=6
+                type="Blood Bat,Ghost,Wraith,Shadow,Skeleton,Skeleton 
Archer,Ghoul,Necrophage,Revenant,Deathblade,Bone Shooter"
+            [/allow_recruit]
+
+            [allow_recruit]
+                side=7
+            type="Blood Bat,Ghost,Wraith,Shadow,Skeleton,Skeleton 
Archer,Ghoul,Necrophage,Revenant,Deathblade,Bone Shooter"
+            [/allow_recruit]
+
+            [set_variable]
+                name=liches_active
+                value=yes
+            [/set_variable]
+        [/then]
+    [/if]
+#enddef




Related Messages


Powered by MHonArc, Updated Fri Aug 22 10:03:37 2008