mail[Wesnoth-commits] r20602 - /trunk/data/campaigns/The_South_Guard/scenarios/05_Choice_In_The_Fog.cfg


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

Header


Content

Posted by lari . nieminen on September 19, 2007 - 21:43:
Author: zookeeper
Date: Wed Sep 19 21:43:10 2007
New Revision: 20602

URL: http://svn.gna.org/viewcvs/wesnoth?rev=20602&view=rev
Log:
Fix Urza Afalas being unable to move when you ally with him (and also prevent 
him from moving when under AI control in a prettier way).

Modified:
    trunk/data/campaigns/The_South_Guard/scenarios/05_Choice_In_The_Fog.cfg

Modified: 
trunk/data/campaigns/The_South_Guard/scenarios/05_Choice_In_The_Fog.cfg
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/campaigns/The_South_Guard/scenarios/05_Choice_In_The_Fog.cfg?rev=20602&r1=20601&r2=20602&view=diff
==============================================================================
--- trunk/data/campaigns/The_South_Guard/scenarios/05_Choice_In_The_Fog.cfg 
(original)
+++ trunk/data/campaigns/The_South_Guard/scenarios/05_Choice_In_The_Fog.cfg 
Wed Sep 19 21:43:10 2007
@@ -65,11 +65,6 @@
         description=Urza Afalas
         user_description= _ "Urza Afalas"
         profile=portraits/urza-afalas-masked.png
-
-        [modifications]
-            {TRAIT_RESILIENT}
-            {TRAIT_INTELLIGENT}
-        [/modifications]
 
         {GOLD 50 70 90}
         {INCOME 2 3 5}
@@ -161,28 +156,6 @@
         recruit=Skeleton, Revenant, Deathblade, Skeleton Archer, Bone 
Shooter, Ghoul
 #endif
     [/side]
-
-    # Scenario Prestart
-
-    [event]
-        name=prestart
-        [store_unit]
-            [filter]
-                description=Urza Afalas
-            [/filter]
-            variable=urza_store
-        [/store_unit]
-
-        # Prevent the Bandit leader from moving so his sighted event will 
fire correctly
-        {VARIABLE urza_store.movement_costs.castle 20}
-        {VARIABLE urza_store.movement_costs.grassland 20}
-        {VARIABLE urza_store.movement_costs.forest 30}
-        {VARIABLE urza_store.movement_costs.shallow_water 80}
-        [unstore_unit]
-            variable=urza_store
-        [/unstore_unit]
-        {CLEAR_VARIABLE urza_store}
-    [/event]
 
     # Scenario Start
     [event]
@@ -305,6 +278,36 @@
         [/message]
     [/event]
 
+    # This event prevents the AI-controlled Urza from moving before he's
+    # sighted. Should be removed if there is no problem with his sighted 
event
+    # when he's allowed to move
+
+    [event]
+        name=ai turn
+        first_time_only=no
+
+        [if]
+            [variable]
+                name=side_number
+                equals=2
+            [/variable]
+
+            [variable]
+                name=side_with_bandits
+                not_equals=no
+            [/variable]
+
+            [variable]
+                name=side_with_bandits
+                not_equals=yes
+            [/variable]
+
+            [then]
+                {MODIFY_UNIT (description=Urza Afalas) moves 0}
+            [/then]
+        [/if]
+    [/event]
+
     # The adventurers locate the bandits: a choice must be made
 
     [event]
@@ -421,12 +424,19 @@
                         variable=stored_Urza_Afalas
                     [/store_unit]
 
-                    {VARIABLE stored_Urza_Afalas.overlays 
"misc/hero-icon.png"}
-                    {VARIABLE stored_Urza_Afalas.canrecruit 0}
-
-                    [unstore_unit]
-                        variable=stored_Urza_Afalas
-                    [/unstore_unit]
+                    [unit]
+                        side=1
+                        type=Outlaw
+                        description=Urza Afalas
+                        user_description= _ "Urza Afalas"
+                        x,y=$stored_Urza_Afalas.x,$stored_Urza_Afalas.y
+                        profile=portraits/urza-afalas.png
+                        {IS_HERO}
+                        facing=$stored_Urza_Afalas.facing
+                        experience=$stored_Urza_Afalas.experience
+                    [/unit]
+
+                    {CLEAR_VARIABLE stored_Urza_Afalas}
 
                     [redraw]
                     [/redraw]




Related Messages


Powered by MHonArc, Updated Wed Sep 19 22:00:40 2007