Author: shadowmaster
Date: Tue Sep  2 06:25:03 2008
New Revision: 29180

URL: http://svn.gna.org/viewcvs/wesnoth?rev=29180&view=rev
Log:
* Backported 29179
* Optimized implicit units/ image paths

Modified:
    
branches/1.4/data/campaigns/The_South_Guard/scenarios/01_Born_To_The_Banner.cfg

Modified: 
branches/1.4/data/campaigns/The_South_Guard/scenarios/01_Born_To_The_Banner.cfg
URL: 
http://svn.gna.org/viewcvs/wesnoth/branches/1.4/data/campaigns/The_South_Guard/scenarios/01_Born_To_The_Banner.cfg?rev=29180&r1=29179&r2=29180&view=diff
==============================================================================
--- 
branches/1.4/data/campaigns/The_South_Guard/scenarios/01_Born_To_The_Banner.cfg 
(original)
+++ 
branches/1.4/data/campaigns/The_South_Guard/scenarios/01_Born_To_The_Banner.cfg 
Tue Sep  2 06:25:03 2008
@@ -126,10 +126,10 @@
         [/objectives]
 
 #ifdef EASY
-        [variable]
+        [set_variable]
             name=leader_attacked
             value=false
-        [/variable]
+        [/set_variable]
 #endif
 
         # Add a useful village on 'trivial' difficulty'.
@@ -326,12 +326,12 @@
         [/message]
         [message]
             speaker=narrator
-            image="human-loyalists/bowman-ranged-7.png~RC(magenta>red)"
+            image="units/human-loyalists/bowman-ranged-7.png~RC(magenta>red)"
             message= _ "Bowmen have a strong ranged attack, and are very 
effective against units that lack a ranged attack, like Thieves and Thugs. They 
also carry a sword and can defend themselves against melee attacks."
         [/message]
         [message]
             speaker=narrator
-            image="human-loyalists/spearman-defend.png~RC(magenta>red)"
+            image="units/human-loyalists/spearman-defend.png~RC(magenta>red)"
             message= _ "Spearmen have a strong melee attack, and are effective 
against most units. They also have a weak ranged attack. They form the backbone 
of the South Guard."
         [/message]
         [message]
@@ -458,7 +458,7 @@
 #ifdef EASY
         [message]
             speaker=narrator
-            image="merfolk/hunter-defend.png~RC(magenta>red)"
+            image="units/merfolk/hunter-defend.png~RC(magenta>red)"
             message= _ "You may now recruit Merman Hunters. Mermen are aquatic 
creatures. Keep them in rivers and swamps and they will fight well! Put them on 
dry land and they're in trouble!"
         [/message]
 #endif
@@ -598,10 +598,10 @@
         [filter_second]
             description=Urza Mathin
         [/filter_second]
-        [variable]
+        [set_variable]
             name=leader_attacked
             value=true
-        [/variable]
+        [/set_variable]
     [/event]
 
     [event]
@@ -609,7 +609,9 @@
         [if]
             [variable]
                 name=leader_attacked
-                not_equals=true
+                [not]
+                    boolean_equals=true
+                [/not]
             [/variable]
             [then]
                 [scroll_to_unit]
@@ -617,7 +619,7 @@
                 [/scroll_to_unit]
                 [message]
                     speaker=narrator
-                    image="human-outlaws/bandit.png~RC(magenta>red)"
+                    image="units/human-outlaws/bandit.png~RC(magenta>red)"
                     message= _ "Remember, your job is to defeat Urza Mathin. 
He should be your main target. Archers will be especially effective against 
him, because he has no ranged attack. Surround him, and kill him!"
                 [/message]
             [/then]
@@ -659,5 +661,9 @@
             image=portraits/deoran-sad.png
             message= _ "This is worse than even my darkest fears. We must ride 
to Westin at once, and hope that Sir Loris is there and well! Come men! Ride 
for Westin!"
         [/message]
+
+        [clear_variable]
+            name=leader_attacked
+        [/clear_variable]
     [/event]
 [/scenario]


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to