mail[Wesnoth-commits] r28901 - in /branches/1.4/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 23, 2008 - 22:28:
Author: esr
Date: Sat Aug 23 22:28:39 2008
New Revision: 28901

URL: http://svn.gna.org/viewcvs/wesnoth?rev=28901&view=rev
Log:
Backport some THot fixes.

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

Modified: 
branches/1.4/data/campaigns/The_Hammer_of_Thursagan/scenarios/12_The_Underlevels.cfg
URL: 
http://svn.gna.org/viewcvs/wesnoth/branches/1.4/data/campaigns/The_Hammer_of_Thursagan/scenarios/12_The_Underlevels.cfg?rev=28901&r1=28900&r2=28901&view=diff
==============================================================================
--- 
branches/1.4/data/campaigns/The_Hammer_of_Thursagan/scenarios/12_The_Underlevels.cfg
 (original)
+++ 
branches/1.4/data/campaigns/The_Hammer_of_Thursagan/scenarios/12_The_Underlevels.cfg
 Sat Aug 23 22:28:39 2008
@@ -18,6 +18,8 @@
     {STARTING_VILLAGES 4 9}
 
     turns=-1
+
+    {INITIALIZE_LICHES}
 
     [side]
         type="Dwarvish Fighter"
@@ -442,20 +444,7 @@
                     value=yes
                 [/set_variable]
 
-                [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]
+                {ACTIVATE_LICHES}
             [/then]
         [/if]
     [/event]
@@ -888,8 +877,30 @@
                     [/filter]
                     x,y=37,43
                 [/teleport]
+
+                # In case user never puts anyone through the sealed door
+                {ACTIVATE_LICHES}
             [/then]
         [/if]
+    [/event]
+
+    # This event is in case the player gets a unit through the sneak tunnel
+    # before opening the sealed doors.
+    [event]
+        name=moveto
+
+        [filter]
+            side=1
+            x=53
+            y=31
+        [/filter]
+
+        [message]
+            speaker=unit
+            message= _ "I think I hear noises, ahead of us..."
+        [/message]
+
+        {ACTIVATE_LICHES}
     [/event]
 
     [event]

Modified: branches/1.4/data/campaigns/The_Hammer_of_Thursagan/utils/macros.cfg
URL: 
http://svn.gna.org/viewcvs/wesnoth/branches/1.4/data/campaigns/The_Hammer_of_Thursagan/utils/macros.cfg?rev=28901&r1=28900&r2=28901&view=diff
==============================================================================
--- branches/1.4/data/campaigns/The_Hammer_of_Thursagan/utils/macros.cfg 
(original)
+++ branches/1.4/data/campaigns/The_Hammer_of_Thursagan/utils/macros.cfg Sat 
Aug 23 22:28:39 2008
@@ -322,3 +322,44 @@
     [/message]
 
 #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 Sat Aug 23 22:41:43 2008