Author: fendrin
Date: Wed Nov 26 22:37:12 2008
New Revision: 31099
URL: http://svn.gna.org/viewcvs/wesnoth?rev=31099&view=rev
Log:
changed the way the events that conrol the teams in LoW 2. This was suggested
by zookeeper.
Modified:
trunk/data/campaigns/Legend_of_Wesmere/scenarios/02_Hostile_mountains.cfg
Modified:
trunk/data/campaigns/Legend_of_Wesmere/scenarios/02_Hostile_mountains.cfg
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/data/campaigns/Legend_of_Wesmere/scenarios/02_Hostile_mountains.cfg?rev=31099&r1=31098&r2=31099&view=diff
==============================================================================
--- trunk/data/campaigns/Legend_of_Wesmere/scenarios/02_Hostile_mountains.cfg
(original)
+++ trunk/data/campaigns/Legend_of_Wesmere/scenarios/02_Hostile_mountains.cfg
Wed Nov 26 22:37:12 2008
@@ -41,7 +41,6 @@
[/side]
[side]
side=2
- #colour=black
{OLURF}
# wmllint: recognize Olurf
controller=ai
@@ -63,26 +62,21 @@
id=Grugl
name=_ "Grugl"
side=3
- #colour=purple
+ team_name=trolls
canrecruit=yes
-
#ifdef EASY
recruit=Troll Whelp
#endif
-
#ifdef NORMAL
recruit=Troll Whelp, Troll, Troll Rocklobber
#endif
-
#ifdef HARD
recruit=Troll Whelp, Troll, Troll Rocklobber, Troll Warrior
#endif
-
{GOLD 170 240 270}
- team_name=trolls
+
[ai]
{NO_SCOUTS}
- recruitment_ignore_bad_movement=yes
recruitment_pattern=fighter
aggression=0.75
[target]
@@ -194,10 +188,30 @@
#On easy and normal, the dwarves cross their territory
#on hard, they only defend their territory
- [modify_side]
+ [store_side]
side=2
- team_name=kalenz
- [/modify_side]
+ variable=olurf_side
+ [/store_side]
+
+ [if]
+ [variable]
+ name=olurf_side.team_name
+ equals=trolls
+ [/variable]
+ # the elves have stepped onto already
+ [then]
+ [modify_side]
+ side=2
+ team_name=dwarves
+ [/modify_side]
+ [/then]
+ [else]
+ [modify_side]
+ side=2
+ team_name=kalenz
+ [/modify_side]
+ [/else]
+ [/if]
#ifndef HARD
[modify_side]
@@ -222,6 +236,32 @@
message= _ "Those lying elves have stepped on OUR land! Attack!"
[/message]
+ [store_side]
+ side=2
+ variable=olurf_side
+ [/store_side]
+
+ [if]
+ [variable]
+ name=olurf_side.team_name
+ equals=kalenz
+ [/variable]
+ [then]
+ [modify_side]
+ side=2
+ team_name=dwarves
+ [/modify_side]
+ [/then]
+ [else]
+ [modify_side]
+ side=2
+ team_name=trolls
+ [/modify_side]
+ [/else]
+ [/if]
+
+ {CLEAR_VARIABLE olurf_side}
+
[modify_side]
side=2
team_name=trolls
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits