From c613531c4acb909dada44671015b03dff64512a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20M=C3=BCller?= Date: Sat, 20 Dec 2008 22:20:53 +0000 Subject: [PATCH] LoW::7: fixed a recruitment pattern bug. --- .../scenarios/07_Elves_last_stand.cfg | 67 ++++++++++++------- 1 file changed, 44 insertions(+), 23 deletions(-) diff --git a/data/campaigns/Legend_of_Wesmere/scenarios/07_Elves_last_stand.cfg b/data/campaigns/Legend_of_Wesmere/scenarios/07_Elves_last_stand.cfg index ca1cce01aa4..2d2efb1d6d0 100644 --- a/data/campaigns/Legend_of_Wesmere/scenarios/07_Elves_last_stand.cfg +++ b/data/campaigns/Legend_of_Wesmere/scenarios/07_Elves_last_stand.cfg @@ -49,12 +49,10 @@ {GOLD 250 300 400} [ai] - #TODO finetune the ai - #time_of_day=dusk,dawn,morning,afternoon,first_watch,second_watch passive_leader=yes villages_per_scout=20 aggression=0.0 - caution=0.5 + caution=0.75 grouping=defensive [/ai] [/side] @@ -75,12 +73,9 @@ [/unit] controller=ai [ai] - #TODO finetune the ai - #time_of_day=dusk,dawn,morning,afternoon,first_watch,second_watch - #passive_leader=yes villages_per_scout=20 aggression=0.0 - caution=0.5 + caution=0.75 grouping=defensive [/ai] {GOLD 280 300 400} @@ -90,6 +85,8 @@ #enemies [side] + side=4 + team_name=orcs no_leader=yes [unit] type=Orcish Warlord @@ -100,22 +97,25 @@ x=41 y=13 [/unit] - side=4 {RECRUIT_ORC} {GOLD 550 700 850} - team_name=orcs + [ai] {NO_SCOUTS} recruitment_ignore_bad_movement=yes recruitment_pattern=scout,fighter,fighter,archer,mixed fighter + aggression=0.75 + caution=0.0 + attack_depth=5 + grouping=defensive [/ai] [ai] time_of_day=dusk,first_watch,second_watch aggression=0.75 caution=0.0 attack_depth=5 - grouping=no + grouping=offensive [/ai] {INCOME 4 8 12} [/side] @@ -151,7 +151,9 @@ {INCOME 4 8 12} [/side] [side] + side=6 no_leader=yes + team_name=orcs [unit] type=Great Troll id=Truugl @@ -160,7 +162,6 @@ x=19 y=8 [/unit] - side=6 #ifdef EASY recruit=Troll Whelp #endif @@ -173,10 +174,10 @@ {GOLD 350 520 580} {INCOME 4 8 12} - team_name=orcs [ai] {NO_SCOUTS} recruitment_ignore_bad_movement=yes + recruitment_ignore_bad_combat=yes #ifdef EASY recruitment_pattern=fighter #else @@ -184,14 +185,23 @@ #endif [/ai] [ai] + recruitment_ignore_bad_movement=yes + recruitment_ignore_bad_combat=yes +#ifdef EASY + recruitment_pattern=fighter +#else + recruitment_pattern=fighter, mixed fighter, fighter, mixed fighter, fighter +#endif time_of_day=dusk,first_watch,second_watch aggression=0.75 caution=0.0 attack_depth=5 - grouping=no + grouping=offensive [/ai] [/side] [side] + side=7 + team_name=orcs no_leader=yes [unit] type=Orcish Warlord @@ -203,9 +213,6 @@ y=42 [/unit] - side=7 - team_name=orcs - {RECRUIT_ORC} {GOLD 400 550 600} {INCOME 4 8 12} @@ -220,7 +227,7 @@ aggression=0.75 caution=0.0 attack_depth=5 - grouping=no + grouping=offensive [/ai] [/side] @@ -280,9 +287,9 @@ [event] name=start - #TODO the translation "_" is wrong at that position {SET_LABEL 33 2 (_ "River Telfar")} + #TODO - That locations should be translated. #Set locations known to the ai_controller #{AI_LOCATION ID NAME RANGE X Y} {AI_LOCATION kkalenz "Keep of Kalenz" 1 3 11} @@ -332,6 +339,11 @@ [/message] [message] id=Kalenz + + [option] + message= _ "These are hardened orc and Troll veterans. Men, prepare for a long, hard fight..." + [/option] + [option] message= _ "I see the orcish army is big but consists mostly of inexperienced fighters. This should not take too long...." ### but gave orcs some more troops.. @@ -389,11 +401,23 @@ {INCOME 4 8 12} [ai] {NO_SCOUTS} - recruitment_ignore_bad_movement=yes +#ifdef EASY recruitment_pattern=fighter +#else + recruitment_pattern=fighter, mixed fighter, fighter, mixed fighter, fighter +#endif + recruitment_ignore_bad_movement=yes + recruitment_ignore_bad_combat=yes [/ai] [ai] time_of_day=dusk,first_watch,second_watch + recruitment_ignore_bad_combat=yes + recruitment_ignore_bad_movement=yes +#ifdef EASY + recruitment_pattern=fighter +#else + recruitment_pattern=fighter, mixed fighter, fighter, mixed fighter, fighter +#endif aggression=0.75 caution=0.0 attack_depth=1 @@ -424,14 +448,11 @@ [/modify_side] [/command] [/option] - [option] - message= _ "These are hardened orc and Troll veterans. Men, prepare for a long, hard fight..." - [/option] [/message] [/event] #ask the player if he wants to controll the ai - {ASK_AI} + # {ASK_AI} ###AI_CONTROLLER FRIEND_TEAM FRIEND_SIDES ENEMY_TEAM ENEMY_SIDES {AI_CONTROLLER kalenz 1,2,3 orcs 4,5,6,7}