mail[Wesnoth-commits] r40484 - /trunk/data/campaigns/Under_the_Burning_Suns/scenarios/06b_In_the_Domain_of_Dwarves.cfg


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

Header


Content

Posted by Majora700 on December 31, 2009 - 22:10:
Author: espreon
Date: Thu Dec 31 22:10:05 2009
New Revision: 40484

URL: http://svn.gna.org/viewcvs/wesnoth?rev=40484&view=rev
Log:
Made it so that UtBS does not abort if the player kills the Vengeful Dwarf 
after he manages to kill Grog.

Modified:
    
trunk/data/campaigns/Under_the_Burning_Suns/scenarios/06b_In_the_Domain_of_Dwarves.cfg

Modified: 
trunk/data/campaigns/Under_the_Burning_Suns/scenarios/06b_In_the_Domain_of_Dwarves.cfg
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/campaigns/Under_the_Burning_Suns/scenarios/06b_In_the_Domain_of_Dwarves.cfg?rev=40484&r1=40483&r2=40484&view=diff
==============================================================================
--- 
trunk/data/campaigns/Under_the_Burning_Suns/scenarios/06b_In_the_Domain_of_Dwarves.cfg
 (original)
+++ 
trunk/data/campaigns/Under_the_Burning_Suns/scenarios/06b_In_the_Domain_of_Dwarves.cfg
 Thu Dec 31 22:10:05 2009
@@ -978,34 +978,42 @@
             animate=no
         [/kill]
 
-        [message]
-            speaker=Grog
-            message= _ "Thank you. Grog got lost and there were so many 
smelly dwarves. If you hadn't come Grog would have been killed. Grog owes you 
his life."
-        [/message]
-
-        [store_unit]
-            [filter]
+        [if]
+            [have_unit]
                 id=Grog
-            [/filter]
-
-            variable=trollstats
-        [/store_unit]
-
-        [set_variable]
-            name=trollstats.side
-            value=1
-        [/set_variable]
-
-        [set_variable]
-            name=trollstats.moves
-            value=5
-        [/set_variable]
-
-        [unstore_unit]
-            variable=trollstats
-        [/unstore_unit]
-
-        {CLEAR_VARIABLE trollstats}
+            [/have_unit]
+
+            [then]
+                [message]
+                    speaker=Grog
+                    message= _ "Thank you. Grog got lost and there were so 
many smelly dwarves. If you hadn't come Grog would have been killed. Grog 
owes you his life."
+                [/message]
+
+                [store_unit]
+                    [filter]
+                        id=Grog
+                    [/filter]
+
+                    variable=trollstats
+                [/store_unit]
+
+                [set_variable]
+                    name=trollstats.side
+                    value=1
+                [/set_variable]
+
+                [set_variable]
+                    name=trollstats.moves
+                    value=5
+                [/set_variable]
+
+                [unstore_unit]
+                    variable=trollstats
+                [/unstore_unit]
+
+                {CLEAR_VARIABLE trollstats}
+            [/then]
+        [/if]
     [/event]
 
     # Event 3: Tunnel cave-ins




Related Messages


Powered by MHonArc, Updated Thu Dec 31 23:40:13 2009