DM: More code cleanup

Remove unneeded redraws.
Move things around for better readability.
Use some macros.
Delete a few pieces of unnecessary code.
This commit is contained in:
sigurdfdragon 2019-06-09 22:22:10 -04:00
parent dd7f7f20f4
commit e3429026f8
20 changed files with 381 additions and 917 deletions

View file

@ -39,10 +39,10 @@
placement=leader
facing=sw
[/unit]
{NAMED_UNIT 2 (Great Mage) 8 9 "First Oracle" (_"First Oracle") (ai_special,facing,profile=guardian,se,portraits/oracle1.png)}
{NAMED_UNIT 2 (Great Mage) 10 11 "Second Oracle" (_"Second Oracle") (ai_special,facing,profile=guardian,sw,portraits/oracle2.png)}
{NAMED_UNIT 2 (Great Mage) 8 13 "Third Oracle" (_"Third Oracle") (ai_special,facing,profile=guardian,nw,portraits/oracle3.png)}
{NAMED_UNIT 2 (Great Mage) 6 11 "Fourth Oracle" (_"Fourth Oracle") (ai_special,facing,profile=guardian,ne,portraits/oracle4.png)}
{NAMED_UNIT 2 (Great Mage) 8 9 "First Oracle" (_"First Oracle") (profile=portraits/oracle1.png)} {FACING se}
{NAMED_UNIT 2 (Great Mage) 10 11 "Second Oracle" (_"Second Oracle") (profile=portraits/oracle2.png)} {FACING sw}
{NAMED_UNIT 2 (Great Mage) 8 13 "Third Oracle" (_"Third Oracle") (profile=portraits/oracle3.png)} {FACING nw}
{NAMED_UNIT 2 (Great Mage) 6 11 "Fourth Oracle" (_"Fourth Oracle") (profile=portraits/oracle4.png)} {FACING ne}
[/side]
[story]
@ -84,18 +84,14 @@
speaker=Marshal
message = _ "Come, O aspirant. The Oracles await you."
[/message]
# Delfador's entrance
[redraw][/redraw]
[delay]
time=500
[/delay]
{MOVE_UNIT id=Delfador 8 11}
[redraw][/redraw]
[delay]
time=500
[/delay]
[message]
speaker=narrator
message = _ "... thorum restro targa thorum..."
@ -142,7 +138,6 @@
speaker=Marshal
message = _ "DELFADOR, open your eyes. And open them again!"
[/message]
[message]
speaker=Delfador
message = _ ". ."
@ -183,30 +178,23 @@
speaker=Marshal
message = _ "Your name journey begins. Methor will lead you from this place."
[/message]
# Methors entrance
[redraw][/redraw]
[delay]
time=500
[/delay]
{MOVE_UNIT id=Methor 9 10}
[redraw][/redraw]
[delay]
time=500
[/delay]
# wmllint: recognize Methor
[message]
speaker=Methor
message = _ "But I will not see you to its end, for that is yours alone."
[/message]
{MODIFY_UNIT id=Delfador facing ne}
[redraw][/redraw]
[delay]
time=250
[/delay]
[message]
speaker=Methor
message = _ "Dangers and trials await us. When you have truly claimed the name you have been given, I will depart."
@ -215,7 +203,6 @@
speaker=Delfador
message=_"I am ready."
[/message]
# Using separate tags to ensure Methor moves first
[move_unit]
id=Methor

View file

@ -67,7 +67,6 @@
#wmllint: recognize Methor
[event]
name=start
[message]
speaker=Methor
message=_"Delfador, your time as my apprentice is now almost over. You are a fully-trained mage, and may choose your own path in life. I hope, however, that you will take my advice, and enroll yourself in the service of King Garard. I have many contacts at the court and..."

View file

@ -58,18 +58,9 @@
[/ai]
[/side]
[label]
x,y=9,4
text=_"The Great Valley"
[/label]
[label]
x,y=6,16
text=_"Fort Brell" # wmllint: no spellcheck
[/label]
[label]
x,y=21,17
text=_"Fort Miryen" # wmllint: no spellcheck
[/label]
{SET_LABEL 9 4 ( _"The Great Valley" )}
{SET_LABEL 6 16 ( _"Fort Brell" )} # wmllint: no spellcheck
{SET_LABEL 21 17 ( _"Fort Miryen" )} # wmllint: no spellcheck
[event]
name=prestart
@ -93,9 +84,6 @@
[/objectives]
[/event]
#############################
# starting dialog
#############################
[event]
name=start
{MODIFY_UNIT (id=Delfador) facing sw}
@ -139,9 +127,7 @@
[/message]
[/event]
#############################
# bowmen carp at orcs
#############################
[event]
name=attack
[filter]
@ -153,9 +139,7 @@
[/message]
[/event]
#############################
# warn player that orcs are more dangerous at night
#############################
[event]
name=turn 4
[role]
@ -170,9 +154,6 @@
[/message]
[/event]
#############################
# closing dialog
#############################
[event]
name=victory
[role]

View file

@ -66,7 +66,6 @@
recruitment_pattern=scout, mixed fighter, mixed fighter, archer
# there are a lot of close villages
villages_per_scout=6
# attack Delfador more heavily than Leollyn
leader_value=2.0
[goal]
@ -100,23 +99,6 @@
[/ai]
[/side]
#############################
# defeat player if leollyn is killed
#############################
[event]
name=die
[filter]
id=Leollyn
[/filter]
[message]
speaker=Delfador
message=_"Leollyn is slain! This is terrible... I had best give up and return home."
[/message]
[endlevel]
result=defeat
[/endlevel]
[/event]
[event]
name=prestart
[objectives]
@ -143,9 +125,6 @@
[/objectives]
[/event]
#############################
# opening dialog
#############################
[event]
name=start
[message]
@ -170,9 +149,7 @@
[/message]
[/event]
#############################
# alert player before they face poison
#############################
[event]
name=attack
[filter]
@ -230,9 +207,21 @@
[/message]
[/event]
#############################
# closing dialog
#############################
# defeat player if leollyn is killed
[event]
name=die
[filter]
id=Leollyn
[/filter]
[message]
speaker=Delfador
message=_"Leollyn is slain! This is terrible... I had best give up and return home."
[/message]
[endlevel]
result=defeat
[/endlevel]
[/event]
[event]
name=victory
[message]

View file

@ -5,7 +5,7 @@
{MEMOIRS_MAP 05_Council_in_Weldyn.map}
next_scenario=06_Swamps_of_Illuven
theme=Cutscene_Minimal
{DEFAULT_SCHEDULE}
{MORNING}
{SCENARIO_MUSIC loyalists.ogg} # No story part, so no intro music
@ -35,6 +35,19 @@
{UNIT 2 (Royal Guard) 29 18 (facing=ne)}
{UNIT 2 (Royal Guard) 24 22 (facing=sw)}
{UNIT 2 (Royal Guard) 30 21 (facing=se)}
# council already present
[unit]
{LEOLLYN}
x,y=27,21
facing=ne
[/unit]
[unit]
id=Gurcyn
name=_ "Gurcyn"
type=Cavalryman
x,y=25,20
facing=se
[/unit]
[/side]
[event]
@ -43,31 +56,12 @@
[scroll_to_unit]
id=Delfador
[/scroll_to_unit]
[unit]
side=2
{LEOLLYN}
x,y=27,21
facing=ne
[/unit]
[unit]
side=2
id=Gurcyn
name=_ "Gurcyn"
type=Cavalryman
x,y=25,20
facing=se
[/unit]
[message]
speaker=narrator
message=_"Delfador and Leollyn met no more opposition in returning to Weldyn. As they entered the city, Delfador was amazed by its size, its grand walls and impressive citadel. After a nights rest, Leollyn invited him to attend a meeting with the king himself. Garard, it seemed, was anxious to hear news from the borders of Wesnoth."
image=wesnoth-icon.png
[/message]
[redraw]
[/redraw]
# Lionel's entrance
[unit]
side=2
{LIONEL}
@ -76,7 +70,6 @@
{MOVE_UNIT (id=Lionel) 26 19}
{MODIFY_UNIT (id=Lionel) facing se}
# wmllint: recognize Lionel
[message]
speaker=Garard II
message=_"Ah, now the last of my council is here. Lionel, what tidings from the north?"
@ -105,16 +98,13 @@
speaker=Garard II
message=_"Ah, young Delfador... you speak well, and Leollyn has already told me of your bravery. I accept your offer of service with gratitude, but this is a task for warriors, not magic-makers. You shall stay here with Leollyn and be Leollyns right hand as he is mine."
[/message]
{MOVE_UNIT (id=Garard II) 24 14}
[kill]
id=Garard II
[/kill]
[scroll_to_unit]
id=Delfador
[/scroll_to_unit]
# [message]
# speaker=Leollyn
# message=_"It is a pity King Garard did not accept your offer to ride with him, Delfador. More than swords and arrows will be needed to return peace to the kingdom. I am troubled by the news that the elves fear to be involved."
@ -143,6 +133,7 @@
speaker=Leollyn
message=_"Then you shall! Lionel and his men will accompany you, for you will need more than magic for protection on the road... especially where youll be going, into the wild country north of Tath. It is a chancy place at the best of times, and orcs may already be raiding south of the Ford."
[/message]
{MODIFY_UNIT id=Lionel side 1}
[endlevel]
result=victory
@ -152,10 +143,4 @@
carryover_report=no
[/endlevel]
[/event]
[event]
name=victory
{MODIFY_UNIT id=Lionel side 1}
[/event]
[/scenario]

View file

@ -5,6 +5,7 @@
{MEMOIRS_MAP 06_The_Swamps_of_Illuven.map}
next_scenario=07_Night_in_the_Swamp
turns=28
victory_when_enemies_defeated=no
{DEFAULT_SCHEDULE}
{SCENARIO_MUSIC underground.ogg} # No story part, so no intro music
@ -74,15 +75,11 @@
[/side]
{STARTING_VILLAGES 3 4}
victory_when_enemies_defeated=no
{MEMOIRS_VICTORY_POSITION 38 3 yes}
# reward for the player who defeats Garrath without paying him
[item]
x=4
y=3
image=items/chest-plain-closed.png
[/item]
{PLACE_IMAGE items/chest-plain-closed.png 4 3}
# location of the signpost
{MEMOIRS_VICTORY_POSITION 38 3 yes}
[event]
name=prestart
@ -151,12 +148,7 @@
side=2
[/kill]
# take his gold too
[remove_item]
x=4
y=3
[/remove_item]
[redraw]
[/redraw]
{REMOVE_IMAGE 4 3}
[delay]
time=500
[/delay]
@ -194,8 +186,7 @@
[event]
name=moveto
[filter]
x=4
y=3
x,y=4,3
side=1
[/filter]

View file

@ -57,42 +57,16 @@
{MEMOIRS_GENERATOR_SKELETON 18 3}
{MEMOIRS_GENERATOR_SKELETON 10 16}
#endif
#ifdef NORMAL
{MEMOIRS_GENERATOR_SKELETON 7 5}
{MEMOIRS_GENERATOR_SKELETON 11 19}
#endif
#ifdef HARD
{MEMOIRS_GENERATOR_SKELETON 18 3}
{MEMOIRS_GENERATOR_SKELETON 7 5}
{MEMOIRS_GENERATOR_SKELETON 11 19}
#endif HARD
# if the player manages to destroy all generators...
# an unlikely outcome unless we are on EASY
[event]
name=new turn
first_time_only=no
[if]
[not]
[have_unit]
side=2
[/have_unit]
[/not]
[then]
[message]
speaker=Delfador
message=_"I think thats all of them! Lets move on — the less time we spend in this swamp the better."
[/message]
[endlevel]
result=victory
bonus=yes
[/endlevel]
[/then]
[/if]
[/event]
[event]
name=prestart
{MODIFY_UNIT (id=Delfador) facing nw}
@ -206,5 +180,29 @@
[/endlevel]
[/event]
# if the player manages to destroy all generators...
# an unlikely outcome unless we are on EASY
[event]
name=new turn
first_time_only=no
[if]
[not]
[have_unit]
side=2
[/have_unit]
[/not]
[then]
[message]
speaker=Delfador
message=_"I think thats all of them! Lets move on — the less time we spend in this swamp the better."
[/message]
[endlevel]
result=victory
bonus=yes
[/endlevel]
[/then]
[/if]
[/event]
{MEMOIRS_DEATHS}
[/scenario]

View file

@ -127,7 +127,7 @@
[/objectives]
[/event]
### give the Woses a boost when their leader is first attacked
# give the Woses a boost when their leader is first attacked
[event]
name=attack
first_time_only=yes
@ -178,7 +178,6 @@
x=22,24,23,23
y=10,10,12,11
[/filter]
[message]
speaker=Delfador
message=_"Ur-Thorodor, listen to me! We are not here to take your island. If you will let just me remain here, then I promise you, on behalf of King Garard, that no Wesnothian will set foot on your island without your permission again. As a token of good faith, I command my army to return to the mainland."
@ -191,12 +190,10 @@
speaker=Delfador
message=_"Its the only way! Lionel, lead our soldiers back to the mainland. I will rejoin you when I have carried out my mission, and determined what is amiss in the world of the dead."
[/message]
[message]
speaker=Ur-Thorodor
message=_"I see I had misjudged you, human. You are not like those who came before. I accept your offer!"
[/message]
[endlevel]
result=victory
carryover_report=no
@ -208,21 +205,14 @@
name=victory
{SAVE_WESNOTH_VETERANS}
[kill]
side=2
[/kill]
[redraw][/redraw]
[scroll_to]
x,y=23,11
[/scroll_to]
{SCROLL_TO 23 11}
[delay]
time=1000
[/delay]
[heal_unit]
[filter]
id=Delfador
@ -235,7 +225,6 @@
[/heal_unit]
{MOVE_UNIT (id=Delfador) 23 11}
{MODIFY_UNIT (id=Delfador) facing sw}
[delay]
time=500
[/delay]
@ -247,7 +236,6 @@
But as Delfadors meditation deepened, and the woses sank into their timeless dreams of earth and trees, something else stirred on the island — for a few orcish scouts had indeed crossed the Ford of Abez..."
image=wesnoth-icon.png
[/message]
[message]
speaker=Delfador
message=_"Ommmmmmm..." # wmllint: no spellcheck
@ -256,7 +244,6 @@ But as Delfadors meditation deepened, and the woses sank into their timeless
[delay]
time=800
[/delay]
[move_unit_fake]
type=Goblin Knight
side=3
@ -264,7 +251,6 @@ But as Delfadors meditation deepened, and the woses sank into their timeless
y=8,9,9,10,10,11
[/move_unit_fake]
{NAMED_UNIT 3 (Goblin Knight) 24 11 Gurbash _"Gurbash" (facing=sw)}
[move_unit_fake]
type=Orcish Warrior
side=3
@ -273,19 +259,14 @@ But as Delfadors meditation deepened, and the woses sank into their timeless
[/move_unit_fake]
{NAMED_UNIT 3 (Orcish Warrior) 23 10 Pruark _"Pruark" (facing=sw)}
[redraw]
[/redraw]
[delay]
time=800
[/delay]
[message]
side=3
speaker=Pruark
message=_"A human mage... is it dead?"
[/message]
[message]
side=3
speaker=Gurbash
message=_"Easy to find out... thump it and see if it wakes up!"
[/message]
@ -294,27 +275,15 @@ But as Delfadors meditation deepened, and the woses sank into their timeless
message=_"<i>Thump</i>!"
image=wesnoth-icon.png
[/message]
[color_adjust]
red=-32
green=-32
blue=-32
[/color_adjust]
{COLOR_ADJUST -32 -32 -32}
[delay]
time=250
[/delay]
[color_adjust]
red=-64
green=-64
blue=-64
[/color_adjust]
{COLOR_ADJUST -64 -64 -64}
[delay]
time=250
[/delay]
[color_adjust]
red=-128
green=-128
blue=-128
[/color_adjust]
{COLOR_ADJUST -128 -128 -128}
[delay]
time=250
[/delay]

View file

@ -60,6 +60,7 @@
[/goal]
[/ai]
[/side]
{STARTING_VILLAGES 2 10}
[side]
side=3
@ -129,12 +130,7 @@
[/note]
[/objectives]
[item]
x=15
y=1
image=scenery/signpost.png
[/item]
{PLACE_IMAGE scenery/signpost.png 15 1}
# Don't let Delfador step on the staff before meeting the guardian
[terrain]
x,y=3,7
@ -143,6 +139,9 @@
[/terrain]
[/event]
{MEMOIRS_SECRET_PASSAGE 32 5 2 8}
{MEMOIRS_ITEM_STAFF 3 7}
[event]
name=start
[message]
@ -160,11 +159,6 @@
[/set_recruit]
[/event]
{STARTING_VILLAGES 2 10}
{MEMOIRS_SECRET_PASSAGE 32 5 2 8}
{MEMOIRS_ITEM_STAFF 3 7}
# Have Rorthin appear before Delfador can reach any of the villages
[event]
name=new turn
@ -232,7 +226,6 @@
x=$move_from[0].x,$next_to_delf.x
y=$move_from[0].y,$next_to_delf.y
[/move_unit_fake]
{NAMED_UNIT 3 (Ghost) $next_to_delf.x $next_to_delf.y Rorthin _"Rorthin" ()}
[message]

View file

@ -36,13 +36,6 @@
[/side]
{STARTING_VILLAGES 2 5}
#############################
# A bit of hackery to get the map border to look right, after
# Iliah-Malal has opened the portal. The map initially includes
# a bit of grassland to the northwest. We remove that here, but
# when the portal opens, the grassland will appear to continue
# off the edge of the map.
#############################
[event]
name=prestart
[objectives]
@ -63,6 +56,11 @@
carryover_percentage=80
[/gold_carryover]
[/objectives]
# A bit of hackery to get the map border to look right, after
# Iliah-Malal has opened the portal. The map initially includes
# a bit of grassland to the northwest. We remove that here, but
# when the portal opens, the grassland will appear to continue
# off the edge of the map.
[terrain]
terrain=Mm
x=1
@ -70,9 +68,6 @@
[/terrain]
[/event]
#############################
# starting dialog
#############################
[event]
name=start
@ -90,12 +85,10 @@
speaker=Iliah-Malal
message=_"So, this is the one my minions told me of... the living man who walks here among the dead. You have come in time to see my greatest achievement — an end to death itself!"
[/message]
[message]
speaker=Delfador
message=_"Thats impossible! You must be insane!"
[/message]
[message]
speaker=Iliah-Malal
message=_"Have not you yourself traveled between the realms of life and death? Behold!"
@ -156,7 +149,6 @@
scroll=no
message=_"Iliah-Malal has created a portal to the land of the living! How I long to go through it and see the sun again..."
[/message]
[message]
speaker=Iliah-Malal
scroll=no
@ -190,45 +182,31 @@
speaker=Delfador
message=_"This is a great evil. The dead will not find peace by passing through your gateway, Iliah-Malal, for you cannot give them life again. You have not brought an end to death, but to life itself!"
[/message]
[message]
speaker=Iliah-Malal
message=_"You will see things differently at the point of a sword, my friend. Minions! Kill the unbeliever... he will join us then."
[/message]
[/event]
#############################
# closing dialog
#############################
[event]
name=last breath
[filter]
id=Iliah-Malal
[/filter]
[message]
speaker=narrator
message=_"Iliah-Malals body lay still for a moment, then stirred!"
image=wesnoth-icon.png
[/message]
{ADVANCE_UNIT id=Iliah-Malal Necromancer}
[redraw]
[/redraw]
[delay]
time=800
[/delay]
{MOVE_UNIT id=Iliah-Malal 1 1}
[redraw]
[/redraw]
[message]
speaker=Iliah-Malal
message=_"Follow me if you dare..."
[/message]
[message]
speaker=Delfador
message=_"This portal Iliah-Malal has created is a great and terrible work of magic. I must catch him, and somehow force him to close it!"

View file

@ -68,10 +68,13 @@
[/ai]
[/side]
{STARTING_VILLAGES 3 5}
[event]
name=prestart
{CAPTURE_VILLAGES 3 33 11 1}
{CAPTURE_VILLAGES 3 21 12 1}
[/event]
#############################
# Move hero to the starting position, and eat recall list
#############################
[event]
name=prestart
[disallow_recruit]
@ -82,27 +85,14 @@
{MODIFY_UNIT (id=Delfador) facing nw}
[/event]
#############################
# starting dialog
#############################
[event]
name=start
[capture_village]
side=3
x,y=33,11
[/capture_village]
[capture_village]
side=3
x,y=21,12
[/capture_village]
[message]
speaker=narrator
message=_"As Delfador followed Iliah-Malal into the portal, a freezing wind sprung up and the air became thick with ghosts pouring through into the land of the living. The ground became icy underfoot, and soon Delfador was following the necromancers footsteps in a thick layer of snow. Eventually, even these became indistinct."
image=wesnoth-icon.png
[/message]
[message]
speaker=Delfador
message=_"Its hopeless, Ive lost all track of Iliah-Malal... and I shall freeze unless I find shelter soon. Perhaps in that forest to the north..."
@ -128,16 +118,13 @@
[/objectives]
[/event]
#############################
# Delfador first encounters the elves
#############################
[event]
name=sighted
[filter]
type=Elvish Rider,Elvish Ranger
side=3
[/filter]
[filter_second]
side=1
[/filter_second]
@ -156,7 +143,6 @@
[/filter_vision]
[/have_unit]
[/not]
[then]
[message]
speaker=unit
@ -174,9 +160,7 @@
[/if]
[/event]
#############################
# Delfador encounters Chantal
#############################
[event]
name=sighted
[filter]
@ -337,9 +321,6 @@
[/modify_side]
[/event]
#############################
# ending dialog
#############################
[event]
name=victory

View file

@ -259,98 +259,6 @@
[/message]
[/event]
#define SECOND_WAVE
[unit]
id=Axhamr
name=_ "Axhamr"
type=Draug
side=3
x=48
y=27
[modifications]
{TRAIT_STRONG}
{TRAIT_RESILIENT}
[/modifications]
[/unit]
[unit]
id=Horfir
name=_ "Horfir"
type=Spectre
side=3
x=40
y=31
[modifications]
{TRAIT_STRONG}
{TRAIT_RESILIENT}
[/modifications]
[/unit]
[unit]
id=Backu
name=_ "Backu"
type=Nightgaunt
side=3
x=41
y=35
[modifications]
{TRAIT_STRONG}
{TRAIT_RESILIENT}
[/modifications]
[/unit]
[unit]
id=Camdun
name=_ "Camdun"
type=Chocobone
side=3
x=40
y=31
[modifications]
{TRAIT_STRONG}
{TRAIT_RESILIENT}
[/modifications]
[/unit]
[unit]
id=Drapug
name=_ "Drapug"
type=Wraith
side=3
x=36
y=32
[modifications]
{TRAIT_STRONG}
{TRAIT_RESILIENT}
[/modifications]
[/unit]
[unit]
id=Kalip
name=_ "Kalip"
type=Ghost
side=3
x=38
y=34
[modifications]
{TRAIT_STRONG}
{TRAIT_RESILIENT}
[/modifications]
[/unit]
[unit]
id=Abmin
name=_ "Abmin"
type=Deathblade
side=3
x=42
y=30
[modifications]
{TRAIT_STRONG}
{TRAIT_RESILIENT}
[/modifications]
[/unit]
#enddef
#define AMBUSH_WARNING X Y RADIUS
[event]
name=enter_hex
@ -373,7 +281,7 @@
[/event]
#enddef
##### Utility events used for sighting other sides
# Utility events used for sighting other sides
[event]
name=undeads
first_time_only=yes
@ -492,16 +400,14 @@
{SUBSUME_SIDE_AND_VILLAGES 4}
[scroll_to]
x,y = 39,40
[/scroll_to]
{SCROLL_TO 39 40}
[message]
speaker=narrator
message= _ "To wake up the mages, move a unit near their tower."
image=wesnoth-icon.png
[/message]
##dialog with loyalists
# dialog with loyalists
[fire_event]
name=enemies
@ -636,18 +542,22 @@
{SUBSUME_SIDE_AND_VILLAGES 5}
[/event]
#################from here on
#define TRAITS_STRONG_RESILIENT
[modifications]
{TRAIT_STRONG}
{TRAIT_RESILIENT}
[/modifications]
#enddef
# Move to 34,6 burned village (nearest keep):
# Nobody there
# from here on
# Move to 34,6 burned village (nearest keep): Nobody there
[event]
name=moveto
[filter]
side=1
x=34
y=6
x,y=34,6
[/filter]
[message]
speaker=unit
message= _ "What is going on here? This village has been burned to the ground!"
@ -663,8 +573,7 @@
name=moveto
[filter]
side=1
x=29
y=13
x,y=29,13
[/filter]
[message]
speaker=unit
@ -677,8 +586,7 @@
name=moveto
[filter]
side=1
x=31
y=10
x,y=31,10
[/filter]
[move_unit_fake]
type=Spearman
@ -691,8 +599,7 @@
id=Theorin
name= _ "Theorin"
side=1
x=31
y=9
x,y=31,9
{IS_LOYAL}
[modifications]
{TRAIT_LOYAL}
@ -726,14 +633,12 @@
[/fire_event]
[/event]
# Move to 29,24 village (northernmost in keep):
# brave Loyalists Donc, Stanis
# Move to 29,24 village (northernmost in keep): brave Loyalists Donc, Stanis
[event]
name=moveto
[filter]
side=1
x=29
y=24
x,y=29,24
[/filter]
#{NAMED_LOYAL_UNIT 1 (Heavy Infantryman) 29 23 (Donc) ( _ "Donc") }
#{NAMED_LOYAL_UNIT 1 (Halberdier) (Stanis) 29 25 ( _ "Stanis") }
@ -748,8 +653,7 @@
id=Donc
name= _ "Donc"
side=1
x=29
y=23
x,y=29,23
[modifications]
{TRAIT_RESILIENT}
{TRAIT_STRONG}
@ -766,8 +670,7 @@
id=Stanis
name= _ "Stanis"
side=1
x=29
y=25
x,y=29,25
{IS_LOYAL}
[modifications]
{TRAIT_LOYAL}
@ -801,8 +704,7 @@
name=moveto
[filter]
side=1
x=44
y=11
x,y=44,11
[/filter]
[message]
speaker=unit
@ -817,55 +719,21 @@
x=44,44
y=11,12
[/move_unit_fake]
[unit]
type=Deathblade
id=Bled
name= _ "Bled"
side=3
x=44
y=12
[modifications]
{TRAIT_INTELLIGENT}
{TRAIT_STRONG}
[/modifications]
[/unit]
{NAMED_UNIT 3 (Deathblade) 44 12 Bled _"Bled" ({TRAITS_STRONG_RESILIENT})}
[move_unit_fake]
type=Ghost
side=3
x=44,45
y=11,11
[/move_unit_fake]
[unit]
type=Ghost
id=Crod
name= _ "Crod"
side=3
x=45
y=11
[modifications]
{TRAIT_RESILIENT}
{TRAIT_STRONG}
[/modifications]
[/unit]
{NAMED_UNIT 3 (Ghost) 45 11 Crod _"Crod" ({TRAITS_STRONG_RESILIENT})}
[move_unit_fake]
type=Wraith
side=3
x=44,43
y=11,11
[/move_unit_fake]
[unit]
type=Wraith
id=Angedd
name= _ "Angedd"
side=3
x=43
y=11
[modifications]
{TRAIT_RESILIENT}
{TRAIT_STRONG}
[/modifications]
[/unit]
{NAMED_UNIT 3 (Wraith) 43 11 Angedd _"Angedd" ({TRAITS_STRONG_RESILIENT})}
[message]
speaker=Angedd
message= _ "Surprise, surprise..."
@ -878,8 +746,7 @@
name=undeads
[primary_unit]
side=1
x=44
y=11
x,y=44,11
[/primary_unit]
[/fire_event]
[/event]
@ -889,8 +756,7 @@
name=moveto
[filter]
side=1
x=29
y=26
x,y=29,26
[/filter]
#{NAMED_LOYAL_UNIT 1 (Heavy Infantryman) 29 25 Zagar (_ "Zagar")}
#{NAMED_LOYAL_UNIT 1 (Heavy Infantryman) 29 27 Brox (_ "Brox")}
@ -906,8 +772,7 @@
id=Zagar
name= _ "Zagar"
side=1
x=29
y=25
x,y=29,25
[modifications]
{TRAIT_RESILIENT}
{TRAIT_STRONG}
@ -924,14 +789,12 @@
id=Brox
name= _ "Brox"
side=1
x=29
y=27
x,y=29,27
[modifications]
{TRAIT_RESILIENT}
{TRAIT_STRONG}
[/modifications]
[/unit]
[move_unit_fake]
type=Longbowman
side=1
@ -943,8 +806,7 @@
id=Adran
name= _ "Adran"
side=1
x=28
y=26
x,y=28,26
[modifications]
{TRAIT_RESILIENT}
{TRAIT_DEXTROUS}
@ -973,8 +835,7 @@
name=moveto
[filter]
side=1
x=32
y=23
x,y=32,23
[/filter]
#{NAMED_LOYAL_UNIT 1 (Heavy Infantryman) 31 23 Axios (_ "Axios")}
#{NAMED_LOYAL_UNIT 1 (Spearman) 32 24 Ulfter (_ "Ulfter")}
@ -990,8 +851,7 @@
id=Axios
name= _ "Axios"
side=1
x=31
y=23
x,y=31,23
[modifications]
{TRAIT_RESILIENT}
{TRAIT_STRONG}
@ -1008,8 +868,7 @@
id=Ulfter
name= _ "Ulfter"
side=1
x=32
y=24
x,y=32,24
[modifications]
{TRAIT_RESILIENT}
{TRAIT_STRONG}
@ -1026,8 +885,7 @@
id=Ogdal
name= _ "Ogdal"
side=1
x=33
y=23
x,y=33,23
[modifications]
{TRAIT_RESILIENT}
{TRAIT_DEXTROUS}
@ -1051,8 +909,7 @@
name=moveto
[filter]
side=1
x=34
y=25
x,y=34,25
[/filter]
[message]
speaker=unit
@ -1065,18 +922,7 @@
x=34,34
y=25,24
[/move_unit_fake]
[unit]
type=Draug
id=Dreadred
name= _ "Dreadred"
side=3
x=34
y=24
[modifications]
{TRAIT_RESILIENT}
{TRAIT_STRONG}
[/modifications]
[/unit]
{NAMED_UNIT 3 (Draug) 34 24 Dreadred _"Dreadred" ({TRAITS_STRONG_RESILIENT})}
[message]
speaker=Dreadred
message= _ "Master said more would come!"
@ -1085,8 +931,7 @@
name=undeads
[primary_unit]
side=1
x=34
y=25
x,y=34,25
[/primary_unit]
[/fire_event]
[/event]
@ -1097,8 +942,7 @@
name=moveto
[filter]
side=1
x=24
y=11
x,y=24,11
[/filter]
[message]
speaker=unit
@ -1114,72 +958,28 @@
x=24,24
y=11,12
[/move_unit_fake]
[unit]
type=Orcish Warrior
id=Crum
name= _ "Crum"
side=2
x=24
y=12
[modifications]
{TRAIT_RESILIENT}
{TRAIT_STRONG}
[/modifications]
[/unit]
{NAMED_UNIT 2 (Orcish Warrior) 24 12 Crum _"Crum" ({TRAITS_STRONG_RESILIENT})}
[move_unit_fake]
type=Orcish Grunt
side=2
x=24,24
y=11,10
[/move_unit_fake]
[unit]
type=Orcish Grunt
id=Smalg
name= _ "Smalg"
side=2
x=24
y=10
[modifications]
{TRAIT_RESILIENT}
{TRAIT_STRONG}
[/modifications]
[/unit]
{NAMED_UNIT 2 (Orcish Grunt) 24 10 Smalg _"Smalg" ({TRAITS_STRONG_RESILIENT})}
[move_unit_fake]
type=Orcish Archer
side=2
x=24,25
y=11,11
[/move_unit_fake]
[unit]
type=Orcish Archer
id=Grubar
name= _ "Grubar"
side=2
x=25
y=11
[modifications]
{TRAIT_RESILIENT}
{TRAIT_STRONG}
[/modifications]
[/unit]
{NAMED_UNIT 2 (Orcish Archer) 25 11 Grubar _"Grubar" ({TRAITS_STRONG_RESILIENT})}
[move_unit_fake]
type=Orcish Assassin
side=2
x=24,23
y=11,11
[/move_unit_fake]
[unit]
type=Orcish Assassin
id=Ulkar
name= _ "Ulkar"
side=2
x=23
y=11
[modifications]
{TRAIT_RESILIENT}
{TRAIT_STRONG}
[/modifications]
[/unit]
{NAMED_UNIT 2 (Orcish Assassin) 23 11 Ulkar _"Ulkar" ({TRAITS_STRONG_RESILIENT})}
[message]
speaker=Crum
@ -1189,13 +989,35 @@
name=orcs
[primary_unit]
side=1
x=24
y=11
x,y=24,11
[/primary_unit]
[/fire_event]
[/event]
# Enemy deaths
# Second wave of undead
[event]
name=turn 7
{NAMED_UNIT 3 (Draug) 48 27 Axhamr _"Axhamr" ({TRAITS_STRONG_RESILIENT})}
{NAMED_UNIT 3 (Spectre) 40 31 Horfir _"Horfir" ({TRAITS_STRONG_RESILIENT})}
{NAMED_UNIT 3 (Nightgaunt) 41 35 Backu _"Backu" ({TRAITS_STRONG_RESILIENT})}
{NAMED_UNIT 3 (Chocobone) 40 31 Camdun _"Camdun" ({TRAITS_STRONG_RESILIENT})}
{NAMED_UNIT 3 (Wraith) 36 32 Drapug _"Drapug" ({TRAITS_STRONG_RESILIENT})}
{NAMED_UNIT 3 (Ghost) 38 34 Kalip _"Kalip" ({TRAITS_STRONG_RESILIENT})}
{NAMED_UNIT 3 (Deathblade) 42 30 Abmin _"Abmin" ({TRAITS_STRONG_RESILIENT})}
[if]
[variable]
name=undead_spotted
equals=yes
[/variable]
[then]
[message]
speaker=Delfador
message= _ "They have unleashed a second wave. Soldiers, stand firm and send these abominations back to the darkness!"
[/message]
[/then]
[/if]
[/event]
[event]
name=last breath
@ -1245,9 +1067,7 @@
[/then]
[/if]
[/event]
#end deaths of enemies
# Victory
[event]
name=victory
[message]
@ -1262,7 +1082,6 @@
speaker=Chantal
message= _ "Word had just arrived when I left Lintanir that the High Lord Kalenz was mustering an elvish army against the orcs, but he is not aware of the Kings movements or of any trap in wait for him. And he certainly does not know of the undead menace."
[/message]
[message]
speaker=Delfador
message= _ "Maybe we can warn the King in time. Lionel should be back in Weldyn by now; I shall send one of the garrisons message-riders to him, but I cannot spare the time to go south myself. I will gather as many troops as I can move quickly through these wildlands and head west from here."
@ -1289,25 +1108,6 @@
{CLEAR_VARIABLE undead_spotted}
[/event]
# Second wave of undead
[event]
name=turn 7
{SECOND_WAVE}
[if]
[variable]
name=undead_spotted
equals=yes
[/variable]
[then]
[message]
speaker=Delfador
message= _ "They have unleashed a second wave. Soldiers, stand firm and send these abominations back to the darkness!"
[/message]
[/then]
[/if]
[/event]
# Time over
[event]
name=time over
[message]
@ -1320,4 +1120,4 @@
[/scenario]
#undef AMBUSH_WARNING
#undef SECOND_WAVE
#undef TRAITS_STRONG_RESILIENT

View file

@ -205,30 +205,14 @@
carryover_percentage=80
[/gold_carryover]
[/objectives]
[recall]
id=Clogrin
[/recall]
[recall]
id=Droni
[/recall]
[recall]
id=Artos
[/recall]
[recall]
id=Theorsten
[/recall]
[recall]
id=Igler
[/recall]
[recall]
id=Larsin
[/recall]
[recall]
id=Glen
[/recall]
[recall]
id=Aldrin
[/recall]
{RECALL Clogrin}
{RECALL Droni}
{RECALL Artos}
{RECALL Theorsten}
{RECALL Igler}
{RECALL Larsin}
{RECALL Glen}
{RECALL Aldrin}
{MODIFY_UNIT (side=1) facing se}
[/event]
@ -257,6 +241,81 @@
[/message]
[/event]
# The king usually takes care of the first wave of orcs by himself.
# They need a second wave for the player to help with.
# Since this event uses the player's turn, the orcs will not be
# able to use their gold until the following turn.
[event]
name=turn {ON_DIFFICULTY 10 9 8}
[gold]
side=4
{QUANTITY amount 140 230 320}
[/gold]
[gold]
side=5
{QUANTITY amount 120 210 300}
[/gold]
[/event]
# Extra help for Garard in case Delf and Kalenz are a bit late but only once
[event]
name=moveto
[filter]
side=3,4,5,6
x=12-17
y=20-24
[/filter]
[message]
speaker=Garard II
message= _ "The enemy is drawing near. My personal guards must join the fight. We can only hope help arrives soon."
[/message]
#define TRAITS_STRONG_RESILIENT
[modifications]
{TRAIT_STRONG}
{TRAIT_RESILIENT}
[/modifications]
#enddef
[move_unit_fake]
type=Royal Guard
side=2
x=12,12
y=19,20
[/move_unit_fake]
{NAMED_UNIT 2 (Royal Guard) 12 20 Adamar _"Adamar" ({TRAITS_STRONG_RESILIENT})} {FACING sw}
[move_unit_fake]
type=Royal Guard
side=2
x=16,17
y=23,24
[/move_unit_fake]
{NAMED_UNIT 2 (Royal Guard) 17 24 Mitbreen _"Mitbreen" ({TRAITS_STRONG_RESILIENT})} {FACING sw}
[move_unit_fake]
type=Iron Mauler
side=2
x=12,12
y=19,20,21,22,23
[/move_unit_fake]
{NAMED_UNIT 2 (Iron Mauler) 12 23 Ronduger _"Ronduger" ({TRAITS_STRONG_RESILIENT})} {FACING sw}
#undef TRAITS_STRONG_RESILIENT
{SCROLL_TO 12 20} # is this really needed?
[message]
speaker=Adamar
message= _ "For the King!"
[/message]
[/event]
[event]
name=last breath
[filter]
id=Zorlan
[/filter]
[message]
speaker=Zorlan
message=_ "Argh! It can't be, beaten by these swine!"
[/message]
[/event]
[event]
name=victory
[message]
@ -323,127 +382,5 @@
{ELVES_DEPART}
[/event]
## Extra help for Garard in case Delf and Kalenz are a bit late
# but this is only once
[event]
name=moveto
[filter]
side=3,4,5,6
x=12-17
y=20-24
[/filter]
[message]
speaker=Garard II
message= _ "The enemy is drawing near. My personal guards must join the fight. We can only hope help arrives soon."
[/message]
[move_unit_fake]
type=Royal Guard
side=2
x=12,12
y=19,20
[/move_unit_fake]
[unit]
id=Adamar
name= _ "Adamar"
type=Royal Guard
side=2
x=12
y=20
[modifications]
{TRAIT_RESILIENT}
{TRAIT_STRONG}
[/modifications]
facing=sw
[/unit]
[move_unit_fake]
type=Royal Guard
side=2
x=16,17
y=23,24
[/move_unit_fake]
[unit]
id=Mitbreen
name= _ "Mitbreen"
type=Royal Guard
side=2
x=17
y=24
[modifications]
{TRAIT_RESILIENT}
{TRAIT_STRONG}
[/modifications]
facing=sw
[/unit]
[move_unit_fake]
type=Iron Mauler
side=2
x=12,12
y=19,20,21,22,23
[/move_unit_fake]
[unit]
id=Ronduger
name= _ "Ronduger"
type=Iron Mauler
side=2
x=12
y=23
[modifications]
{TRAIT_RESILIENT}
{TRAIT_STRONG}
[/modifications]
facing=sw
[/unit]
[scroll_to_unit]
x=12
y=20
[/scroll_to_unit]
[message]
speaker=Adamar
message= _ "For the King!"
[/message]
[/event]
# The king usually takes care of the first wave of orcs by himself.
# They need a second wave for the player to help with.
# Since this event uses the player's turn, the orcs will not be
# able to use their gold until the following turn.
[event]
name=turn {ON_DIFFICULTY 10 9 8}
[gold]
side=4
{QUANTITY amount 140 230 320}
[/gold]
[gold]
side=5
{QUANTITY amount 120 210 300}
[/gold]
[/event]
[event]
name=last breath
[filter]
id=Zorlan
[/filter]
[message]
speaker=Zorlan
message=_ "Argh! It can't be, beaten by these swine!"
[/message]
[/event]
[event]
name=enemies defeated
[endlevel]
result=victory
[/endlevel]
[/event]
{MEMOIRS_DEATHS}
[/scenario]

View file

@ -121,9 +121,6 @@
[/objectives]
[/event]
#############################
# opening dialog
#############################
[event]
name=start
[message]
@ -161,9 +158,7 @@
[scroll_to_unit]
id=Delfador
[/scroll_to_unit]
{DELFADOR_LIGHTNING}
[message]
speaker=Delfador
message=_"I am Delfador. And you are dust!"
@ -185,16 +180,12 @@
[/message]
[/event]
#############################
# closing dialog
#############################
[event]
name=victory
[message]
speaker=Ulrek
message=_"Human, ye ha fought well. I am Ulrek, chieftain o the clan of Norlund. My house is in yer debt today. But who are ye and what do ye do in these lands?"
[/message]
[message]
speaker=Delfador
message=_"I am Delfador. Friends, a great evil has been unleashed. A portal has been opened to the land of the dead near the northernmost extent of these hills, nearly under the eaves of Lintanir Forest. I must close it, or else we are all doomed."
@ -219,9 +210,7 @@
{DWARVES_FOLLOW_DELFADOR}
[/event]
###############################################
# defeat player if Ulrek or Relgorn is killed #
###############################################
# defeat player if Ulrek or Relgorn is killed
[event]
name=die
[filter]

View file

@ -17,23 +17,9 @@
# fight with trolls or something during Delfador's odyssey through
# the tunnels. This does not have to be a picnic excursion.
[item]
x=2
y=19
image=scenery/mine-abandoned.png
[/item]
[item]
x=20
y=20
image=scenery/summoning-center.png
[/item]
[item]
x=19
y=22
image=scenery/summoning-center.png
[/item]
{PLACE_IMAGE scenery/mine-abandoned.png 2 19}
{PLACE_IMAGE scenery/summoning-center.png 20 20}
{PLACE_IMAGE scenery/summoning-center.png 19 22}
[story]
[part]
@ -89,11 +75,11 @@
[/leader]
[ai]
aggression=0.0
#recruitment_pattern=scout, mixed fighter, archer
# recruitment_pattern=scout, mixed fighter, archer
# there are a lot of close villages
#villages_per_scout=6
# villages_per_scout=6
# attack Delfador heavily
# attack Delfador heavily
leader_value=2.0
[goal]
name=target
@ -129,9 +115,9 @@
[/leader]
[ai]
aggression=0.0
#recruitment_pattern=scout, mixed fighter, archer
# recruitment_pattern=scout, mixed fighter, archer
# there are a lot of close villages
#villages_per_scout=6
# villages_per_scout=6
# attack Delfador heavily
leader_value=2.0
@ -202,24 +188,14 @@
[/gold_carryover]
[/objectives]
# Capturing 2,18 is because Ulrek is likely to materialize on top of
# this village, and it's just silly for him to have to step
# out and back to capture it.
[capture_village]
x,y=2,18
side=1
[/capture_village]
# Capture this one because Ulrek is likely to materialize on top of it,
# and it's just silly for him to have to step out and back to capture it.
{CAPTURE_VILLAGES 1 02 18 1}
# We have mercy on the player and don't make him slog a unit
# through mountains to get this one.
[capture_village]
x,y=2,21
side=1
[/capture_village]
{CAPTURE_VILLAGES 1 02 21 1}
[/event]
#############################
# opening dialog
#############################
[event]
name=start
[message]
@ -243,12 +219,125 @@
[/delay]
[/event]
[event]
name=iliah-malal
# Materialize the bad guy on his keep
[unit]
side=4
{ILIAH_MALAL (Ancient Lich)}
canrecruit=yes
x,y=18,3
facing=sw
[/unit]
{NAMED_UNIT 4 (Draug) 18 4 Samun _"Samun" (facing=sw)}
{NAMED_UNIT 4 (Banebow) 17 3 Skoogal _"Skoogal" (facing=sw)}
{NAMED_UNIT 4 (Deathblade) 17 4 Skulrag _"Skulrag" (facing=sw)}
{NAMED_UNIT 4 (Nightgaunt) 19 4 Idthom _"Idthom" (facing=sw)}
{NAMED_UNIT 4 (Chocobone) 16 2 Hyvrun _"Hyvrun" (facing=sw)}
{NAMED_UNIT 4 (Blood Bat) 14 2 Blud _"Blud" (facing=sw)}
[modify_side]
side=4
hidden=no
{INCOME 10 20 30}
[/modify_side]
[message]
speaker=Iliah-Malal
message= _ "Whats going on here? Is this Delfador? Welcome to your doom, Delfador!"
[/message]
[message]
speaker=Delfador
message= _ "They have reinforcements. Hurry, we must close the portal before we are overrun!"
[/message]
[message]
speaker=Iliah-Malal
message= _ "Slay them all!"
[/message]
[/event]
[event]
name=turn 9
[fire_event]
name=iliah-malal
[/fire_event]
[/event]
# Isolate special effects from story logic for testing.
[event]
name=close_portal
# First, a flash of light
[sound]
name=lightning.ogg
[/sound]
{COLOR_ADJUST 100 100 100}
[delay]
time=10
[/delay]
{COLOR_ADJUST 0 0 0}
# Then, turn the Ethereal Abyss tiles to lava chasm
[terrain]
x=20,20,21,21,21,21
y=21,22,20,21,22,23
terrain=Ql
[/terrain]
# Next, remove the summoning circles
{REMOVE_IMAGE 20 20}
{REMOVE_IMAGE 19 22}
# Now, crumble the castle
[terrain]
x=19,19,20,20,21,21,18,18,19,19,20,20,21,21
y=17,18,17,18,18,19,23,24,24,25,23,24,24,25
terrain=Chr
[/terrain]
[terrain]
x=20,19
y=19,23
terrain=Khr
[/terrain]
[/event]
[event]
name=die
[filter_second]
id=Delfador
[/filter_second]
[scroll_to_unit]
id=Delfador
[/scroll_to_unit]
{DELFADOR_LIGHTNING}
[message]
speaker=Delfador
message= _ "Out of my way, foul creatures!"
[/message]
[/event]
[event]
name=last breath
first_time_only=no
[filter]
id=Iliah-Malal
[/filter]
[message]
speaker="Iliah-Malal"
message=_ "Fool! You could not kill me in the land of the dead, nor can you in the land of the living! I transcend both death and life, and I will destroy you!"
[/message]
[message]
speaker=Delfador
message= _ "We cannot defeat him now. We must carry out our mission first, so we will be able to defeat him later."
[/message]
# He gets a full heal, not an advance, otherwise we'd have to make sure we ported him to the next scenario properly
[heal_unit]
[filter]
id=Iliah-Malal
[/filter]
[/heal_unit]
[/event]
[event]
name=moveto
[filter]
id=Delfador
x=19
y=21
x,y=19,21
[/filter]
[fire_event]
@ -262,20 +351,16 @@
[scroll_to_unit]
id=Delfador
[/scroll_to_unit]
[fire_event]
name=close_portal
[/fire_event]
[delay]
time=1500
[/delay]
[message]
speaker=Iliah-Malal
message=_"Portal, reopen! No! What have you done?"
[/message]
{MODIFY_UNIT (id=Delfador) facing nw}
[message]
speaker=Delfador
@ -344,8 +429,7 @@
first_time_only=no
[filter]
side=1
x=2
y=19
x,y=2,19
[not]
id=Delfador
[/not]
@ -359,13 +443,10 @@
[event]
name=moveto
first_time_only=no
[filter]
id=Delfador
x=2
y=19
x,y=2,19
[/filter]
[if]
[have_unit]
side=1
@ -380,6 +461,7 @@
[/message]
[/then]
[else]
# victory dialog
[message]
speaker=Delfador
message=_"Were in. Now: Earth, seal this entrance!"
@ -387,26 +469,14 @@
[scroll_to_unit]
id=Delfador
[/scroll_to_unit]
[sound]
name=lightning.ogg
[/sound]
[color_adjust]
red=100
green=100
blue=100
[/color_adjust]
{COLOR_ADJUST 100 100 100}
[delay]
time=10
[/delay]
[color_adjust]
red=0
green=0
blue=0
[/color_adjust]
{COLOR_ADJUST 0 0 0}
[endlevel]
result=victory
[/endlevel]
@ -415,153 +485,5 @@
[/event]
[/event]
[event]
name=die
[filter_second]
id=Delfador
[/filter_second]
[scroll_to_unit]
id=Delfador
[/scroll_to_unit]
{DELFADOR_LIGHTNING}
[message]
speaker=Delfador
message= _ "Out of my way, foul creatures!"
[/message]
[/event]
#############################
# closing dialog
#############################
# [event]
# name=victory
#
# [/event]
[event]
name=iliah-malal
# Materialize the bad guy on his keep
[unit]
side=4
{ILIAH_MALAL (Ancient Lich)}
canrecruit=yes
x,y=18,3
facing=sw
[/unit]
{NAMED_UNIT 4 (Draug) 18 4 Samun _"Samun" (facing=sw)}
{NAMED_UNIT 4 (Banebow) 17 3 Skoogal _"Skoogal" (facing=sw)}
{NAMED_UNIT 4 (Deathblade) 17 4 Skulrag _"Skulrag" (facing=sw)}
{NAMED_UNIT 4 (Nightgaunt) 19 4 Idthom _"Idthom" (facing=sw)}
{NAMED_UNIT 4 (Chocobone) 16 2 Hyvrun _"Hyvrun" (facing=sw)}
{NAMED_UNIT 4 (Blood Bat) 14 2 Blud _"Blud" (facing=sw)}
[modify_side]
side=4
hidden=no
{INCOME 10 20 30}
[/modify_side]
[message]
speaker=Iliah-Malal
message= _ "Whats going on here? Is this Delfador? Welcome to your doom, Delfador!"
[/message]
[message]
speaker=Delfador
message= _ "They have reinforcements. Hurry, we must close the portal before we are overrun!"
[/message]
[message]
speaker=Iliah-Malal
message= _ "Slay them all!"
[/message]
[/event]
[event]
name=turn 9
[fire_event]
name=iliah-malal
[/fire_event]
[/event]
[event]
name=last breath
first_time_only=no
[filter]
id=Iliah-Malal
[/filter]
[message]
speaker="Iliah-Malal"
message=_ "Fool! You could not kill me in the land of the dead, nor can you in the land of the living! I transcend both death and life, and I will destroy you!"
[/message]
[message]
speaker=Delfador
message= _ "We cannot defeat him now. We must carry out our mission first, so we will be able to defeat him later."
[/message]
# He gets a full heal, not an advance, otherwise we'd have to make sure we ported him to the next scenario properly
[heal_unit]
[filter]
id=Iliah-Malal
[/filter]
[/heal_unit]
[/event]
# Isolate special effects from story logic for testing.
[event]
name=close_portal
[sound]
name=lightning.ogg
[/sound]
[color_adjust]
red=100
green=100
blue=100
[/color_adjust]
[delay]
time=10
[/delay]
[color_adjust]
red=0
green=0
blue=0
[/color_adjust]
# First, turn the Ethereal Abyss tiles to lava chasm
[terrain]
x=20,20,21,21,21,21
y=21,22,20,21,22,23
terrain=Ql
[/terrain]
# Next, remove the summoning circles
[remove_item]
x=20
y=20
image=scenery/summoning-center.png
[/remove_item]
[remove_item]
x=19
y=22
image=scenery/summoning-center.png
[/remove_item]
# Now, crumble the castle
[terrain]
x=19,19,20,20,21,21,18,18,19,19,20,20,21,21
y=17,18,17,18,18,19,23,24,24,25,23,24,24,25
terrain=Chr
[/terrain]
[terrain]
x=20,19
y=19,23
terrain=Khr
[/terrain]
[/event]
{MEMOIRS_DEATHS}
[/scenario]

View file

@ -228,7 +228,6 @@
[event]
name=start
[message]
speaker=Iliah-Malal
message= _ "So we meet again, Delfador. You were a fool to turn down my offer. None of your allies will save you now."
@ -275,7 +274,6 @@
[filter]
race=undead
[/filter]
# Most likely facings for this dialog, as recall of undead will probably happen turn 1 or 2
{MODIFY_UNIT (id=Lionel) facing nw}
[message]
@ -295,12 +293,10 @@
speaker=Delfador
message= _ "I have prepared some holy water. Sprinkle it on your weapons and smash those foul creatures into dust!"
[/message]
[message]
speaker=Iliah-Malal
message= _ "Powers of darkness, enshroud this field!"
[/message]
[place_shroud]
side=1,2
[/place_shroud]
@ -309,6 +305,7 @@
clear_shroud=yes
[/redraw]
[/event]
[event]
name=turn 3
{MODIFY_UNIT (id=Delfador) facing nw}
@ -316,7 +313,6 @@
speaker=Delfador
message= _ "Darkness shall be dispelled!"
[/message]
[remove_shroud]
side=1,2
[/remove_shroud]
@ -337,13 +333,11 @@
speaker=Delfador
message= _ "Your mindless minions will be no match for the spirit and fire of the living."
[/message]
{MODIFY_UNIT (id=Lionel) facing nw}
[message]
speaker=Lionel
message= _ "Delfador, as the King ordered I place all troops under your command. They will follow you to death, if necessary, and so will I!"
[/message]
{MODIFY_UNIT (id=Delfador) facing se}
[message]
speaker=Delfador
@ -384,7 +378,6 @@
[filter_second]
race=undead
[/filter_second]
[message]
speaker=Delfador
message= _ "Now your days are ended!"
@ -398,9 +391,7 @@
message= _ "Not this time. For I have gazed upon the dark heart of necromancy in the Book of Crelanu, and found there your final doom at the hands of the dead themselves."
[/message]
{DELFADOR_LIGHTNING}
# We're counting on the lich-scream as Ihiah-Malal
# dies to end the scene.
# We're counting on the lich-scream as Ihiah-Malal dies to end the scene.
[/event]
# Delfador can kill him
@ -412,7 +403,6 @@
[filter_second]
id=Delfador
[/filter_second]
[message]
speaker=Delfador
message= _ "Now your days are ended!"
@ -426,9 +416,7 @@
message= _ "Not this time. For I have gazed upon the dark heart of necromancy in the Book of Crelanu, AND I REMAIN OF THE LIGHT!"
[/message]
{DELFADOR_LIGHTNING}
# We're counting on the lich-scream as Ihiah-Malal
# dies to end the scene.
# We're counting on the lich-scream as Ihiah-Malal dies to end the scene.
[/event]
# But nobody else can.
@ -446,30 +434,17 @@
race=undead
[/not]
[/filter_second]
[message]
speaker="Iliah-Malal"
message=_ "The power of death is mine! When you strike me down I arise stronger than before!"
[/message]
# He gets the standard +3 hitpoints and full heal.
{ADVANCE_UNIT (id="Iliah-Malal") ()}
[/event]
[event]
name=enemies defeated
[endlevel]
result=victory
bonus=no
carryover_percentage=0
[/endlevel]
[/event]
# wmllint: recognize Kalenz
[event]
name=victory
[message]
speaker=Delfador
message= _ "Evil has been vanquished on this day. May this victory bring lasting peace."

View file

@ -158,7 +158,6 @@
y=4,16
radius=2
[/lift_fog]
[message]
speaker=Kalenz
message= _ "Generals of Wesnoth: you have attacked defenseless elvish land. You must leave immediately. I am Kalenz, High Lord of the Elves. Delfador the Great will confirm the treaty between us."
@ -178,13 +177,11 @@
[filter]
id=Eldred
[/filter]
# Keep his unit on the board
{MODIFY_UNIT id=Eldred hitpoints 1}
[delay]
time=500
[/delay]
# wmllint: recognize Delfador
{DELFADOR_ARRIVES 26 20}
[move_unit]
@ -193,7 +190,6 @@
to_y=19,19,18,17,16
[/move_unit]
{MODIFY_UNIT (id=Delfador) facing ne}
[endlevel]
result=victory
[/endlevel]
@ -201,13 +197,10 @@
[event]
name=victory
[scroll_to_unit]
id=Delfador
[/scroll_to_unit]
{DELFADOR_LIGHTNING}
[message]
speaker=Delfador
message= _ "Peace, friends! I have been riding nonstop for days to prevent this madness! Eldred, I have direct orders from the King to take you back to the Palace, where you will be reprimanded for your inexcusable actions. Kalenz, the King offers his deepest apologies for these events and promises to do anything in his power to make amends."

View file

@ -98,7 +98,7 @@
facing=sw
[/leader]
[ai]
#recruitment_pattern=fighter,archer,mixed fighter,scout
# recruitment_pattern=fighter,archer,mixed fighter,scout
aggression=1.0
caution=0.0
[goal]
@ -188,7 +188,7 @@
message= _ "Elves! And that traitor, Delfador is with them! Riders, quickly, go alert the queen. And guards, prepare to strike them down!"
[/message]
{HIGHLIGHT_IMAGE 1 19 scenery/signpost.png ()}
{HIGHLIGHT_IMAGE 1 19 scenery/signpost.png ()}
{HIGHLIGHT_IMAGE 18 33 scenery/signpost.png ()}
[/event]
@ -364,12 +364,11 @@
side=1
x,y=32,8
[/filter]
[music]
name=northerners.ogg
play_once=yes
[/music]
# victory dialog
[message]
speaker=unit
message= _ "This looks like a secret door. Lets see where it leads..."
@ -497,6 +496,7 @@
result=defeat
[/endlevel]
[/event]
[event]
name=moveto
[filter]

View file

@ -127,12 +127,12 @@
message= _ "Only one bottle, Kalenz. Choose carefully who will take it."
[/message]
[/event]
[event]
name=sighted
[filter]
id=Sagus
[/filter]
[message]
speaker="Sagus"
message= _ "So, we meet again, Delfador! This time you will not steal what is mine!"
@ -141,7 +141,6 @@
speaker=Delfador
message= _ "Who are you, and what did I ever steal from you?"
[/message]
[message]
speaker="Sagus"
message= _ "I am the one whose place you took in the court of Wesnoth. But my daughter brought me what you seek, and I have seized the power of it."
@ -204,12 +203,10 @@
[filter]
id="Sagus"
[/filter]
[message]
speaker=Delfador
message= _ "The book is recovered, but the damage is done. Friends, thank you. Now lets get out of here!"
[/message]
[endlevel]
result=victory
carryover_report=no

View file

@ -22,8 +22,8 @@
name=prestart
[endlevel]
result=victory
replay_save=no
linger_mode=no
replay_save=no
[/endlevel]
[/event]
[/scenario]