1#textdomain wesnoth-low
2[scenario]
3    id=06_Acquaintance_in_Need
4    next_scenario=07_Elves_Last_Stand
5
6    random_start_time=no
7    allow_new_game=no
8    force_lock_settings=yes
9
10    experience_modifier=100
11    name= _ "Acquaintance in Need"
12    {LOW_MAP 06_Acquaintance_in_Need.map}
13    {TURNS 35 30 25}
14
15    {DEFAULT_SCHEDULE}
16
17    {INTRO_AND_SCENARIO_MUSIC frantic.ogg wanderer.ogg}
18    {EXTRA_SCENARIO_MUSIC knalgan_theme.ogg}
19    {EXTRA_SCENARIO_MUSIC legends_of_the_north.ogg}
20    {EXTRA_SCENARIO_MUSIC northerners.ogg}
21
22    [story]
23        [part]
24            story= _ "To evade the saurians blocking the eastern approaches to Wesmere, Kalenz and his war-band moved to enter Wesmere Forest from a different direction..."
25            delay=4000
26            {LOW_BIGMAP}
27            {FLIGHT_COMPLETE}
28            {TREASURY_STAGE3}
29        [/part]
30    [/story]
31
32#define PLAYER_GOLD
33    {GOLD 700 600 500}
34#enddef
35#define MULTIPLAYER_GOLD
36    {GOLD 250 225 200}
37#enddef
38
39    #### Kalenz's code ####
40    [side]
41        side=1
42        {PLAYABLE}
43        save_id=Kalenz
44        disallow_shuffle=yes
45
46        {KALENZ}
47        x=17
48        y=38
49
50#ifndef MULTIPLAYER
51        {PLAYER_GOLD}
52        [unit]
53            {LANDAR}
54            x=22
55            y=39
56        [/unit]
57        [unit]
58            {CLEODIL}
59            x=14
60            y=39
61        [/unit]
62#else
63        {MULTIPLAYER_GOLD}
64#endif
65    [/side]
66    [event]
67        name=prestart
68        {RECALL_LOYALS}
69    [/event]
70
71    # wmllint: skip-side
72    {MP_SIDE 2 (
73        {PLAYABLE}
74        save_id=Landar
75        disallow_shuffle=yes
76        {MULTIPLAYER_GOLD}
77
78        no_leader=yes
79        [unit]
80            {LANDAR}
81        [/unit]
82    )}
83
84    # wmllint: skip-side
85    {MP_SIDE 3 (
86        {PLAYABLE}
87        save_id=Cleodil
88        disallow_shuffle=yes
89        {MULTIPLAYER_GOLD}
90
91        no_leader=yes
92        [unit]
93            {CLEODIL}
94        [/unit]
95    )}
96
97    #### Olurf's code ####
98    [side]
99        side=4
100        persistent=yes
101        save_id=Olurf
102
103        allow_player=no
104        controller=ai
105
106        no_leader=yes
107        [unit]
108            {OLURF}
109            x=20
110            y=25
111        [/unit]
112
113        {GOLD 120 160 200}
114        {INCOME 4 8 12}
115        {PLAYER_TEAM}
116        {FLAG_VARIANT knalgan}
117
118        [ai]
119            {AI_SIMPLE_ALWAYS_ASPECT recruitment_pattern "fighter,fighter,mixed fighter"}
120        [/ai]
121    [/side]
122    #### /Olurf's code ####
123
124    [side]
125        side=5
126
127        allow_player=no
128        controller=ai
129        type=Orcish Warlord
130        id=Urug-Tar
131        name=_ "Urug-Tar"
132        canrecruit=yes
133        {GOLD 150 230 270}
134        {INCOME 4 8 12}
135        team_name=orcs
136        user_team_name= _ "Enemies"
137        {ORC_SETUP}
138#ifdef EASY
139        recruit=Orcish Archer, Orcish Assassin, Orcish Grunt, Wolf Rider, Orcish Crossbowman, Goblin Pillager, Goblin Knight
140#endif
141#ifdef NORMAL
142        recruit=Orcish Archer, Orcish Assassin, Orcish Grunt, Wolf Rider, Orcish Crossbowman, Goblin Pillager, Goblin Knight, Orcish Slayer
143#endif
144#ifdef HARD
145        recruit=Orcish Archer, Orcish Assassin, Orcish Grunt, Wolf Rider, Orcish Crossbowman, Goblin Pillager, Goblin Knight, Orcish Slayer, Orcish Warrior
146#endif
147        [ai]
148            {AI_NO_SCOUTS}
149            {AI_SIMPLE_ALWAYS_ASPECT recruitment_pattern "fighter, archer, scout, fighter, fighter, archer, mixed fighter"}
150            {AI_SIMPLE_ALWAYS_ASPECT grouping offensive}
151            {AI_SIMPLE_ALWAYS_ASPECT aggression 0.75}
152        [/ai]
153    [/side]
154
155    [side]
156        side=6
157        allow_player=no
158        controller=ai
159        type=Orcish Warlord
160        id=Graur-Tan
161        name=_ "Graur-Tan"
162        canrecruit=yes
163        {GOLD 150 270 300}
164        {INCOME 4 8 12}
165        team_name=orcs
166        user_team_name= _ "Enemies"
167        {ORC_SETUP}
168#ifdef EASY
169        recruit=Orcish Archer, Orcish Assassin, Orcish Grunt, Wolf Rider, Orcish Crossbowman, Goblin Knight, Goblin Pillager
170#endif
171#ifdef NORMAL
172        recruit=Orcish Archer, Orcish Assassin, Orcish Grunt, Wolf Rider, Orcish Crossbowman, Goblin Knight, Goblin Pillager, Orcish Slayer
173#endif
174#ifdef HARD
175        recruit=Orcish Archer, Orcish Assassin, Orcish Grunt, Wolf Rider, Orcish Crossbowman, Goblin Knight, Goblin Pillager, Orcish Slayer, Orcish Warrior
176#endif
177        [ai]
178            {AI_NO_SCOUTS}
179            {AI_SIMPLE_ALWAYS_ASPECT recruitment_pattern "scout,fighter,fighter,archer,mixed fighter"}
180        [/ai]
181    [/side]
182
183    [side]
184        side=7
185        allow_player=no
186        controller=ai
187        type=Troll Warrior
188        id=Traur
189        name=_ "Traur"
190        canrecruit=yes
191#ifdef EASY
192        recruit=Troll Whelp
193#endif
194#ifdef NORMAL
195        recruit=Troll Whelp, Troll
196#endif
197#ifdef HARD
198        recruit=Troll Whelp, Troll, Troll Warrior
199#endif
200        {INCOME 4 8 12}
201        {GOLD 152 175 210}
202        team_name=orcs
203        user_team_name= _ "Enemies"
204        {TROLL_SETUP}
205        [ai]
206            {AI_NO_SCOUTS}
207            {AI_SIMPLE_ALWAYS_ASPECT recruitment_pattern "fighter"}
208        [/ai]
209    [/side]
210
211    [event]
212        name=prestart
213        {RECALL_LOYALS}
214    [/event]
215
216    [event]
217        name=prestart
218
219        [objectives]
220            side=0
221            [objective]
222                description= _ "Defeat all enemy leaders"
223                condition=win
224            [/objective]
225            [objective]
226                description= _ "Death of Kalenz"
227                condition=lose
228            [/objective]
229            [objective]
230                description= _ "Death of Landar"
231                condition=lose
232            [/objective]
233            [objective]
234                description= _ "Death of Olurf"
235                condition=lose
236            [/objective]
237            [objective]
238                description= _ "Death of Cleodil"
239                condition=lose
240            [/objective]
241
242            {TURNS_RUN_OUT}
243
244            [gold_carryover]
245                bonus=yes
246                carryover_percentage=40
247            [/gold_carryover]
248
249            [note]
250                description= _ "Try to save leveled dwarf units"
251            [/note]
252        [/objectives]
253    [/event]
254
255    [event]
256        name=start
257
258        [message]
259            id=Kalenz
260            message= _ "What’s this? It appears the orcs have surrounded a dwarvish enclave. And by the sound of the bellowing I hear, I think our old friend, Olurf, is here."
261        [/message]
262        [message]
263            id=Olurf
264            message= _ "You again? Maybe ye were not completely wrong when ye predicted the orcs would attack us. We ha’ been forced from our home and are now surrounded."
265        [/message]
266        [message]
267            id=Cleodil
268            message= _ "Let us give them aid — it’s clear they need it!"
269        [/message]
270        [message]
271            id=Landar
272            message= _ "Help them? They would not even let us pass through their land to avoid the trolls. You remember, Kalenz?"
273        [/message]
274        [message]
275            id=Kalenz
276            message= _ "Our enemy is the orcs, not the dwarves. Besides, the orcs are in our way. Olurf, we cannot let you have all the fun here!"
277        [/message]
278        [message]
279            id=Olurf
280            message= _ "For an elf, you think like a dwarf! I think I like you! " + {WHISPER _"whisper^—For an elf..."}
281        [/message]
282
283        {AI_CONTROLLER_ALLOW_LEADER_CONTROL 1 2}
284    [/event]
285
286    [event]
287        name=scenario_end
288        [filter_condition]
289            [proceed_to_next_scenario]
290            [/proceed_to_next_scenario]
291        [/filter_condition]
292        [message]
293            id=Olurf
294            message= _ "The orcs ha’ been defeated. My lord, we are in your debt."
295        [/message]
296        [message]
297            id=Kalenz
298            message= _ "We must put aside our differences and ally against the orcish menace. Olurf, join us!"
299        [/message]
300        [message]
301            id=Olurf
302            message= _ "Dwarves, ally with elves? I owe ye a debt, but my kin willna’ be happy at the thought."
303        [/message]
304        [message]
305            id=Kalenz
306            message= _ "There will be a big fight with the orcs in Wesmere very soon. If you can cover our flank to the north, I will pay you 400 gold."
307        [/message]
308        [message]
309            id=Olurf
310            message= _ "A proper contract for good money? That’s a different matter; I’m sure I can find some o’ my people willing to fight on those terms!"
311        [/message]
312        [message]
313            id=Landar
314            message= _ "What? Kalenz, are you out of your mind? Surely you will not throw away 400 gold on this scheming mercenary!"
315        [/message]
316        [message]
317            id=Olurf
318            message= _ "Where there’s a contract, our honor is involved. We will be there to cover your northern flank or else I will return your gold!"
319        [/message]
320        [message]
321            id=Cleodil
322            message=_ "I sense no falsity behind his speech, my lord."
323        [/message]
324        [message]
325            id=Kalenz
326            message= _ "I, too, believe him. Dwarves may be... rough... by our standards, but they are not liars. I think he knows that if he does not honor his contract, next time we will not be there to come to his aid."
327        [/message]
328
329#ifdef MULTIPLAYER
330        [gold]
331            side=1
332            amount=-200
333        [/gold]
334        [gold]
335            side=2
336            amount=-200
337        [/gold]
338#else
339        [gold]
340            side=1
341            amount=-400
342        [/gold]
343#endif
344        [sound]
345            name=gold.ogg
346        [/sound]
347    [/event]
348
349    {DEFAULT_VICTORY 0.4}
350    {campaigns/Legend_of_Wesmere/utils/deaths.cfg}
351[/scenario]
352
353#undef PLAYER_GOLD
354#undef MULTIPLAYER_GOLD
355