Merge pull request #730 from GregoryLundberg/GL_HttT_general_improvements

HttT General Improvements
This commit is contained in:
Lari Nieminen 2016-09-15 12:21:12 +03:00 committed by GitHub
commit c11498ab89
30 changed files with 912 additions and 579 deletions

View file

@ -25,6 +25,7 @@
[event]
name=prestart
{NEED_DELFADOR (x,y=19,23)}
[objectives]
side=1
[objective]
@ -76,21 +77,6 @@
gold=100
team_name=elves
user_team_name=_"Rebels"
[unit]
id=Delfador
name= _ "Delfador"
unrenamable=yes
type=Elder Mage
profile=portraits/delfador-elvish.png
side=1
x=19
y=23
{IS_HERO}
[modifications]
{TRAIT_LOYAL}
{TRAIT_INTELLIGENT}
[/modifications]
[/unit]
[ai]
[goal]
name=target

View file

@ -79,6 +79,8 @@
profile=portraits/humans/grand-knight-2.png
side=2
# Make Kaylan's TC teal, so it fits better with the portrait.
color=teal
canrecruit=yes
team_name=elves
user_team_name=_"Rebels"
@ -103,6 +105,7 @@
name= _ "Mokolo Qimur"
profile=portraits/orcs/grunt-2.png
side=3
color=purple
canrecruit=yes
team_name=orcs
user_team_name=_"Orcs"
@ -122,9 +125,6 @@
{PLACE_IMAGE scenery/rock1.png 23 17}
# Make Kaylan's TC teal, so it fits better with the portrait.
{TEAM_COLOR_OVERRIDE id=Kaylan teal}
[unit]
type=Swordsman
x=23
@ -152,9 +152,7 @@
{IS_LOYAL}
[/unit]
[recall]
id=Delfador
[/recall]
{NEED_DELFADOR placement=leader}
[/event]
[event]
@ -224,6 +222,12 @@
{DELFADOR_MENTORING_ELF}
message= _ "Recruit troops wisely, Konrad, and remember that you can recall experienced units from past battles to help you fight again."
[/message]
[move_unit_fake]
side=1
type=Horseman
x=15,16,23
y=27,27,24
[/move_unit_fake]
[unit]
id=Haldiel
name= _ "Haldiel"
@ -231,6 +235,7 @@
x=23
y=24
side=1
facing=ne
[modifications]
{TRAIT_LOYAL}
{TRAIT_STRONG}
@ -351,6 +356,9 @@
speaker=Mokolo Qimur
message= _ "So many foul humans riding on horses! There is no way we can defeat them. Quick, we must make our escape!"
[/message]
[fire_event]
name=victory dance
[/fire_event]
[endlevel]
result=victory
bonus=no
@ -448,7 +456,8 @@
name= _ "Simyr"
x=35
y=6
side=1
ai_special=guardian
side=2
facing=sw
[modifications]
{TRAIT_LOYAL}
@ -466,12 +475,38 @@
speaker=Kaylan
message= _ "You have risked your life to defend our city. In return, I place one of my citys finest defenders in your service. Simyr, step forward. I place your lance in the service of young prince Konrad here. May you help him restore order to the country."
[/message]
[kill]
id=Simyr
[/kill]
[move_unit_fake]
side=2
type=Knight
x=33,29
y=5,7
[/move_unit_fake]
[unit]
type=Knight
id=Simyr
name= _ "Simyr"
x=29
y=7
side=1
facing=sw
[modifications]
{TRAIT_LOYAL}
{TRAIT_INTELLIGENT}
[/modifications]
{IS_LOYAL}
[/unit]
[message]
speaker=Simyr
message= _ "It is my pleasure and honor to serve, my liege."
[/message]
#endif
[fire_event]
name=victory dance
[/fire_event]
[endlevel]
result=victory
bonus=yes
@ -480,7 +515,7 @@
[/event]
[event]
name=victory
name=victory dance
[message]
speaker=Kaylan
message= _ "Thank you for the help, friends. The ship should arrive soon, it will take you to Alduin."

View file

@ -111,6 +111,12 @@
{PLACE_IMAGE scenery/rock3.png 25 30}
[disallow_recruit]
side=1
type=Mage
[/disallow_recruit]
{NEED_DELFADOR (x,y=26,12)}
[store_unit]
variable=konrad_store
kill=yes
@ -170,10 +176,6 @@
y=11,12
[/move_unit_fake]
#set Delfador's position
{VARIABLE delfador_store.x 26}
{VARIABLE delfador_store.y 12}
#show Delfador
[unstore_unit]
variable=delfador_store
@ -346,13 +348,8 @@
message= _ "Caution, young prince. It is very difficult to train inexperienced magi in combat. When they fight on the front lines of battle, you must protect magi with stronger units else the enemy will make short work of them."
[/message]
#endif
[allow_recruit]
side=1
type=Mage
[/allow_recruit]
[/then]
[/if]
{CLEAR_VARIABLE received_mages}
[kill]
id=Seimus
@ -366,4 +363,15 @@
[/event]
{campaigns/Heir_To_The_Throne/utils/deaths.cfg}
[event]
name=victory
[allow_recruit]
side=1
type=Mage
[/allow_recruit]
{CLEAR_VARIABLE received_mages}
[/event]
[/scenario]

View file

@ -103,6 +103,10 @@
[event]
name=prestart
[disallow_recruit]
side=1
type=Merman Fighter,Merman Hunter,Mermaid Initiate
[/disallow_recruit]
#
# Grant an extra enchampment tile
#
@ -125,10 +129,7 @@
[/terrain]
#endif
[recall]
id=Delfador
show=no
[/recall]
{NEED_DELFADOR placement=leader}
#the ship they came on.
{PLACE_IMAGE "units/transport/galleon.png~RC(magenta>red)" 2 34}
@ -215,14 +216,7 @@
message= _ "Very well. Be careful!"
[/message]
#Delfador leaves the party
[store_unit]
variable=delfador_store
kill=yes
[filter]
id=Delfador
[/filter]
[/store_unit]
{STORE_DELFADOR}
[/event]
#comic relief with Bugg becoming a 'sea orc'
@ -266,6 +260,14 @@
id=Bugg
[/have_unit]
[then]
[scroll_to_unit]
id=Bugg
[/scroll_to_unit]
[delay]
time=500
[/delay]
[store_unit]
variable=bugg_flip
[filter]
@ -275,6 +277,9 @@
[/store_unit]
{NAMED_LOYAL_UNIT 2 (Sea Orc) $bugg_flip.x $bugg_flip.y (Bugg) ( _ "Bugg")}
[+unit]
animate=yes
[/unit]
{CLEAR_VARIABLE bugg_flip}
@ -670,14 +675,21 @@
{KONRAD_VARIATION_ELF glad}
message= _ "At last, we have freed the mermen. Go back to the ocean and live in peace."
[/message]
[role]
type=Merman Fighter,Merman Warrior,Merman Triton,Merman Hoplite
role=ThankfulMerman
[/role]
[message]
role=ThankfulMerman
message= _ "My lord! You may need the help of some of us who have skill in the sea in future. We would like to come with you and offer you help."
[/message]
#define MERMAN_SPEAKS
[role]
role=ThankfulMerman
search_recall_list=no
type="Merman Triton,Merman Hoplite,Merman Javelineer,Merman Entangler,Mermaid Diviner,Mermaid Siren," +
"Merman Warrior,Merman Spearman,Merman Netcaster,Mermaid Priestess,Mermaid Enchantress," +
"Merman Fighter,Merman Hunter,Mermaid Initiate"
[/role]
[message]
role=ThankfulMerman
message= _ "My lord! You may need the help of some of us who have skill in the sea in future. We would like to come with you and offer you help."
[/message]
#enddef
{MERMAN_SPEAKS}
[message]
speaker=narrator
image="wesnoth-icon.png"
@ -692,13 +704,8 @@
message= _ "Now where is Delfador? I hope hes safe!"
[/message]
[unstore_unit]
variable=delfador_store
x,y=31,11
find_vacant=yes
[/unstore_unit]
# Note: do NOT clear the variable, because Delfador needs to return
# again in SoE.
{RESTORE_DELFADOR}
{NEED_DELFADOR (x,y=31,11)}
[message]
speaker=Delfador
@ -742,8 +749,13 @@
[/message]
[role]
type=Elvish Champion,Elvish Marshal,Elvish Captain,Elvish Hero,Knight,Elvish Rider,Elvish Outrider,Paladin,Mage,White Mage,Red Mage,Elvish Fighter,Elvish Archer,Elvish Shaman,Horseman
role=Supporter
search_recall_list=no
type="Elvish Sylph,Great Mage,"+
"Elvish Marshal,Elvish Champion,Elvish Avenger,Elvish Sharpshooter,Elvish Shyde,Elvish Enchantress,Elvish Outrider,Paladin,Grand Knight,Mage of Light,Arch Mage,Silver Mage,"+
"Elvish Captain,Elvish Hero,Elvish Ranger,Elvish Marksman,Elvish Druid,Elvish Sorceress,Elvish Rider,Knight,Lancer,White Mage,Red Mage,"+
"Elvish Fighter,Elvish Archer,Elvish Shaman,Elvish Scout,Horseman,Mage"
[/role]
[message]
role=Supporter
@ -767,9 +779,6 @@
speaker=Delfador
message= _ "Safe journey to you, Konrad. Until we meet again!"
[/message]
[kill]
id=Delfador
[/kill]
[endlevel]
result=victory
next_scenario=05a_Muff_Malals_Peninsula
@ -785,9 +794,6 @@
speaker=Delfador
message= _ "Safe voyage to you then, Konrad. May the weather be fair."
[/message]
[kill]
id=Delfador
[/kill]
[endlevel]
result=victory
next_scenario=05b_Isle_of_the_Damned
@ -802,13 +808,8 @@
[event]
name=time over
[unstore_unit]
variable=delfador_store
x,y=31,11
find_vacant=yes
[/unstore_unit]
# Note: do NOT clear the variable, because Delfador needs to return
# again in SoE.
{RESTORE_DELFADOR}
{NEED_DELFADOR (x,y=31,11)}
#if neither of the enemies is dead, automatically lose
[if]
@ -873,26 +874,6 @@
speaker=Delfador
message= _ "Since you have broken the orcs hegemony over the seas, going by ship would be safest. Sail along the coast, and you can land mere miles from Elensefar. Make haste!"
[/message]
[kill]
id=Delfador
[/kill]
[role]
type=Merman Fighter,Merman Warrior,Merman Triton,Merman Hoplite
role=ThankfulMerman
[/role]
[message]
role=ThankfulMerman
message= _ "My lord! You may need the help of some of us who have skill in the sea in future. We would like to come with you and offer you help."
[/message]
[message]
speaker=narrator
image="wesnoth-icon.png"
message= _ "You may now recruit the noble merfolk!"
[/message]
[allow_recruit]
side=1
type=Merman Fighter
[/allow_recruit]
[endlevel]
result=victory
bonus=no
@ -905,26 +886,6 @@
speaker=Delfador
message= _ "With the orcs controlling the seas, going by ship would not be safe. Travel by land, Elensefar is only six days march up the coast. Make haste!"
[/message]
[kill]
id=Delfador
[/kill]
[role]
type=Merman Fighter,Merman Warrior,Merman Triton,Merman Hoplite
role=ThankfulMerman
[/role]
[message]
role=ThankfulMerman
message= _ "My lord! You may need the help of some of us who have skill in the sea in future. We would like to come with you and offer you help."
[/message]
[message]
speaker=narrator
image="wesnoth-icon.png"
message= _ "You may now recruit the noble merfolk!"
[/message]
[allow_recruit]
side=1
type=Merman Fighter
[/allow_recruit]
[endlevel]
result=victory
bonus=no
@ -933,9 +894,28 @@
[/endlevel]
[/else]
[/if]
{MERMAN_SPEAKS}
[message]
speaker=narrator
image="wesnoth-icon.png"
message= _ "You may now recruit the noble merfolk!"
[/message]
[/else]
[/if]
[/event]
{campaigns/Heir_To_The_Throne/utils/deaths.cfg}
[event]
name=victory
[allow_recruit]
side=1
type=Merman Fighter
[/allow_recruit]
{RESTORE_DELFADOR}
[/event]
[/scenario]
#undef MERMAN_SPEAKS

View file

@ -84,28 +84,35 @@
{STARTING_VILLAGES 2 30}
[event]
name=start
#For Elensefar: where do we come from?
[set_variable]
name=path_muff_malal
value=yes
[/set_variable]
[/event]
[event]
name=prestart
{VARIABLE via_isle_of_the_damned no}
{CLEAR_VARIABLE moremirmu}
{PLACE_IMAGE scenery/signpost.png 8 2}
{PLACE_IMAGE scenery/rock2.png 17 20}
{STORE_DELFADOR}
[role]
type=Elvish Champion,Elvish Marshal,Elvish Captain,Elvish Hero,Knight,Elvish Rider,Elvish Outrider,Paladin,Mage,White Mage,Red Mage
role=Advisor
[auto_recall][/auto_recall]
type="Elvish Sylph,Great Mage," +
"Elvish Marshal,Elvish Champion,Elvish Avenger,Elvish Sharpshooter,Elvish Shyde,Elvish Enchantress,Elvish Outrider,Paladin,Grand Knight,Mage of Light,Arch Mage,Silver Mage," +
"Merman Triton,Merman Hoplite,Merman Javelineer,Merman Entangler,Mermaid Diviner,Mermaid Siren," +
"Elvish Captain,Elvish Hero,Elvish Ranger,Elvish Marksman,Elvish Druid,Elvish Sorceress,Elvish Rider,Knight,Lancer,White Mage,Red Mage," +
"Merman Warrior,Merman Spearman,Merman Netcaster,Mermaid Priestess,Mermaid Enchantress," +
"Elvish Fighter,Elvish Archer,Elvish Shaman,Elvish Scout,Horseman,Mage," +
"Merman Fighter,Merman Hunter,Mermaid Initiate"
[else]
[unit]
side=1
type=Elvish Fighter
role=Advisor
placement=leader
[/unit]
[/else]
[/role]
[recall]
role=Advisor
[/recall]
[/event]
[event]
@ -215,4 +222,10 @@
[/event]
{campaigns/Heir_To_The_Throne/utils/deaths.cfg}
[event]
name=victory
{RESTORE_DELFADOR}
[/event]
[/scenario]

View file

@ -106,6 +106,8 @@
[event]
name=prestart
{VARIABLE via_isle_of_the_damned yes}
{CLEAR_VARIABLE moremirmu}
{PLACE_IMAGE scenery/temple1.png 11 13}
{PLACE_IMAGE scenery/temple1.png 10 17}
@ -133,6 +135,7 @@
side=1
type=Thug,Poacher,Footpad
[/allow_recruit]
{STORE_DELFADOR}
# Kill the recall list except for merfolk
[store_unit]
@ -148,15 +151,15 @@
[/not]
[/filter]
[/store_unit]
[/event]
[event]
name=start
{NAMED_LOYAL_UNIT 1 (Merman Fighter) 27 12 (Kalba) ( _ "Kalba")}
{NAMED_LOYAL_UNIT 1 (Merman Fighter) 31 14 (Gnaba) ( _ "Gnaba")}
# wmllint: recognize Kalba
# wmllint: recognize Gnaba
[/event]
[event]
name=start
[message]
speaker=Konrad
@ -335,7 +338,7 @@
#enddef
[event]
name=start
name=prestart
#
# Determine the contents of the temples:
@ -442,7 +445,6 @@
[/message]
{ISLE_GALLEON_ARRIVE}
{RESTORE_RECALL_LIST}
[if]
[variable]
@ -461,40 +463,14 @@
[/then]
[/if]
[modify_side]
side=1
gold=$isle_damned_starting_gold
[/modify_side]
[message]
speaker=narrator
message= _ "You regain your lost troops and $isle_damned_starting_gold gold!"
image=wesnoth-icon.png
[/message]
{CLEAR_VARIABLE isle_damned_starting_gold}
[allow_recruit]
side=1
type=Elvish Fighter,Elvish Archer,Elvish Shaman,Elvish Scout,Mage,Horseman
[/allow_recruit]
[disallow_recruit]
side=1
type=Thug,Poacher,Footpad
[/disallow_recruit]
[endlevel]
result=victory
bonus=no
carryover_add=yes
carryover_percentage=100
[/endlevel]
[fire_event]
name=victory dance
[/fire_event]
[/event]
[event]
name=time over
{ISLE_GALLEON_ARRIVE}
{RESTORE_RECALL_LIST}
# TODO: use an existing unit as the speaker, and maybe add the message
# to the enemies defeated event too
@ -517,6 +493,42 @@
speaker=Moremirmu
message= _ "Thank you for your assistance here brothers. I will stay to continue resisting the foul undead. May fate be with you in your noble quest, and may we meet again some day!"
[/message]
[/then]
[/if]
[fire_event]
name=victory dance
[/fire_event]
[/event]
[event]
name=victory dance
[message]
speaker=narrator
message= _ "You regain your lost troops and $isle_damned_starting_gold gold!"
image=wesnoth-icon.png
[/message]
[endlevel]
result=victory
bonus=no
carryover_add=yes
carryover_percentage=100
[/endlevel]
[/event]
[event]
name=victory
{RESTORE_RECALL_LIST}
[if]
[variable]
name=moremirmu
equals=1
[/variable]
[then]
[kill]
id=Moremirmu
[/kill]
@ -528,11 +540,6 @@
gold=$isle_damned_starting_gold
[/modify_side]
[message]
speaker=narrator
message= _ "You regain your lost troops and $isle_damned_starting_gold gold!"
image=wesnoth-icon.png
[/message]
{CLEAR_VARIABLE isle_damned_starting_gold}
[allow_recruit]
@ -545,12 +552,7 @@
type=Thug,Poacher,Footpad
[/disallow_recruit]
[endlevel]
result=victory
bonus=no
carryover_add=yes
carryover_percentage=100
[/endlevel]
{RESTORE_DELFADOR}
[/event]
{campaigns/Heir_To_The_Throne/utils/deaths.cfg}

View file

@ -155,6 +155,17 @@
{PLACE_IMAGE scenery/rock1.png 13 12}
{PLACE_IMAGE scenery/rock2.png 25 28}
[disallow_recruit]
side=1
type=Thief
[/disallow_recruit]
{NEED_KALENZ (x,y=recall,recall)}
{NEED_DELFADOR (x,y=recall,recall)}
{STORE_DELFADOR}
{STORE_KALENZ}
#define ADVISOR
[role]
role=Advisor
@ -554,6 +565,10 @@
message= _ "The party rested for three days, after which an old friend returned."
[/message]
{VARIABLE delfador_store.profile "portraits/delfador.png"}
{RESTORE_DELFADOR}
{RESTORE_KALENZ}
[move_unit_fake]
type=Elder Mage
side=1
@ -561,33 +576,16 @@
y=18,17,16
[/move_unit_fake]
{VARIABLE delfador_store.x 24}
{VARIABLE delfador_store.y 16}
{VARIABLE delfador_store.profile "portraits/delfador.png"}
[recall]
id=Delfador
x,y=24,16
show=no
[/recall]
#show Delfador
[unstore_unit]
variable=delfador_store
[/unstore_unit]
{CLEAR_VARIABLE delfador_store}
[unit]
[recall]
id=Kalenz
name= _ "Kalenz"
profile=portraits/kalenz.png
unrenamable=yes
type=Elvish Lord
x=22
y=16
side=1
{IS_HERO}
random_traits=no
[modifications]
{TRAIT_LOYAL}
[/modifications]
[/unit]
[redraw]
[/redraw]
x,y=22,16
[/recall]
[message]
speaker=Delfador
@ -675,7 +673,6 @@
message= _ "We cannot go to Wesmere, for Ashevieres orcs have the approaches ringed about with steel; Kalenz and I barely escaped, and Chantal cannot get out. Until we are stronger, we must go where the orcs are not."
[/message]
{CLEAR_VARIABLE thieves_ford}
[endlevel]
result=victory
bonus=yes
@ -748,6 +745,20 @@
[/event]
{campaigns/Heir_To_The_Throne/utils/deaths.cfg}
[event]
name=victory
{CLEAR_VARIABLE thieves_ford}
[allow_recruit]
side=1
type=Thief
[/allow_recruit]
{RESTORE_DELFADOR}
{RESTORE_KALENZ}
[/event]
[/scenario]
#undef ADVISOR

View file

@ -236,14 +236,6 @@
[event]
name=start
{MODIFY_UNIT id=Konrad profile "portraits/konrad-human.png"}
[recall]
id=Delfador
[/recall]
[recall]
id=Kalenz
[/recall]
[message]
speaker=Delfador
message= _ "Here we come to the great cross-roads. We should go northeast."
@ -261,6 +253,11 @@
[event]
name=prestart
{MODIFY_UNIT id=Konrad profile "portraits/konrad-human.png"}
{NEED_DELFADOR placement=leader}
{NEED_KALENZ placement=leader}
# Here we set up an array that holds the possible ambusher unit types.
# We do this instead of just using a random type when creating the
# ambusher so that the even distribution of different types is
@ -528,6 +525,10 @@ SE — Fort Tahn"
[filter]
id=Kojun Herolm
[/filter]
[message]
speaker=Konrad
message= _ "Victory is ours, men. Let us proceed northeast!"
[/message]
[endlevel]
result=victory
bonus=yes
@ -535,14 +536,6 @@ SE — Fort Tahn"
[/endlevel]
[/event]
[event]
name=victory
[message]
speaker=Konrad
message= _ "Victory is ours, men. Let us proceed northeast!"
[/message]
[/event]
{campaigns/Heir_To_The_Throne/utils/deaths.cfg}
[/scenario]

View file

@ -143,12 +143,9 @@
{PLACE_IMAGE scenery/mine-abandoned.png 4 41}
[recall]
id=Delfador
[/recall]
[recall]
id=Kalenz
[/recall]
{NEED_DELFADOR placement=leader}
{NEED_KALENZ placement=leader}
{STORE_LISAR}
[role]
role=Advisor
[auto_recall][/auto_recall]
@ -287,8 +284,6 @@
message= _ "(Ha ha, little do they know just how many undead have wandered the northern road of late. Surely they are doomed!)"
[/message]
{CLEAR_VARIABLE trap_sprung}
[endlevel]
result=victory
bonus=yes
@ -296,6 +291,14 @@
[/endlevel]
[/event]
[event]
name=victory
{CLEAR_VARIABLE trap_sprung}
{RESTORE_LISAR}
[/event]
#define SECOND_WAVE
#ifdef EASY
[gold]
@ -323,9 +326,16 @@
name=moveto
[filter]
side=1
x=20-29
y=1-23
[/filter]
[filter_condition]
[have_location]
x,y=$x1,$y2
[and]
x,y=27,12
radius=7
[/and]
[/have_location]
[/filter_condition]
[if]
[variable]
@ -345,6 +355,15 @@
message= _ "I see that your forces draw near, impostor! Ill not be defeated in my own backyard so easily... Come forth and attack, my loyal duelist!"
[/message]
[scroll_to]
x=6
y=40
[/scroll_to]
[delay]
time=500
[/delay]
[sound]
name=dagger-swish.wav
[/sound]
@ -357,11 +376,6 @@
[/move_unit_fake]
{NAMED_LOYAL_UNIT 2 (Duelist) 6 40 (Ronry) ( _ "Ronry")}
[scroll_to_unit]
x=6
y=40
[/scroll_to_unit]
#ifdef NORMAL
{LOYAL_UNIT 2 (Fencer) 6 41}
#endif

View file

@ -202,12 +202,8 @@
{PLACE_IMAGE scenery/rock3.png 30 34}
{PLACE_IMAGE scenery/rock4.png 37 39}
[recall]
id=Delfador
[/recall]
[recall]
id=Kalenz
[/recall]
{NEED_DELFADOR placement=leader}
{NEED_KALENZ placement=leader}
[recall]
id=Moremirmu
[/recall]
@ -331,6 +327,9 @@
message= _ "Whew! That was a difficult battle, but they are retreating at last!"
[/message]
[fire_event]
name=victory dance
[/fire_event]
[endlevel]
result=victory
bonus=no
@ -352,6 +351,9 @@
[event]
name=enemies defeated
[fire_event]
name=victory dance
[/fire_event]
[endlevel]
result=victory
bonus=yes
@ -360,7 +362,7 @@
[/event]
[event]
name=victory
name=victory dance
[message]
speaker=Delfador
message= _ "Yes! We have fought them off!"
@ -374,6 +376,9 @@
numerical_equals=1
[/variable]
[have_unit]
id=Moremirmu
[/have_unit]
[then]
[message]
speaker=Konrad
@ -436,6 +441,10 @@
[/message]
[/else]
[/if]
[/event]
[event]
name=victory
[if]
[variable]

View file

@ -18,6 +18,8 @@
[event]
name=prestart
{VARIABLE eggs_done no}
[objectives]
side=1
[objective]
@ -25,6 +27,9 @@
condition=win
[/objective]
[objective]
[show_if]
{CHECK_VARIABLE eggs_done no}
[/show_if]
{BONUS_OBJECTIVE_CAPTION}
description= _ "Defeat the mother gryphon before the enemy does"+{OBJECTIVE_FOOTNOTE _"(special bonus)"}
condition=win
@ -115,12 +120,9 @@
[event]
name=prestart
[recall]
id=Delfador
[/recall]
[recall]
id=Kalenz
[/recall]
{CLEAR_VARIABLE get_gryphons}
{NEED_DELFADOR placement=leader}
{NEED_KALENZ placement=leader}
{NAMED_LOYAL_UNIT 3 (Sleeping Gryphon) 12 18 (Graak) ( _ "Graak")}
{NAMED_LOYAL_UNIT 3 (Sleeping Gryphon) 16 16 (Grook) ( _ "Grook")}
@ -181,6 +183,7 @@
[/set_variable]
{REMOVE_IMAGE 13 16}
{PLACE_IMAGE scenery/nest-empty.png 13 16}
{VARIABLE eggs_done yes}
[/event]
[event]
@ -212,6 +215,7 @@
{VARIABLE_OP gryphon_disposition sub 1}
{REMOVE_IMAGE 13 16}
{PLACE_IMAGE scenery/nest-empty.png 13 16}
{VARIABLE eggs_done yes}
[/event]
[event]
name=attack
@ -415,7 +419,6 @@
message= _ "Let us continue onward!"
[/message]
{CLEAR_VARIABLE gryphon_disposition}
[endlevel]
result=victory
bonus=yes
@ -423,6 +426,12 @@
[/endlevel]
[/event]
[event]
name=victory
{CLEAR_VARIABLE gryphon_disposition,eggs_done}
[/event]
# Sleeping Gryphons will counter if attacked, then wake up and
# morph to new Gryphons (a different unit type). The new unit will
# then usually fly away because the AI thinks your attacking unit

View file

@ -133,6 +133,7 @@
[side]
side=4
hidden=yes
no_leader=yes
team_name=creature
user_team_name=_"Monsters"
@ -187,12 +188,9 @@
{FORD_GUARD 3 27}
{FORD_GUARD 4 28}
[recall]
id=Delfador
[/recall]
[recall]
id=Kalenz
[/recall]
{NEED_DELFADOR placement=leader}
{NEED_KALENZ placement=leader}
{STORE_LISAR}
[/event]
[event]
@ -300,50 +298,84 @@
[/set_variable]
[/event]
#if the players marches over to Li'sar's keep, reinforcements appear
#if someone marches over to Li'sar's keep, reinforcements appear
[event]
name=moveto
[filter]
side=1
x=0-16
y=23-34
[not]
side=2
[/not]
[/filter]
[filter_condition]
[have_unit]
id="Lisar"
[/have_unit]
[have_location]
x,y=$x1,$y1
[and]
x,y=5,27
radius=11
[/and]
[not]
terrain="Wo,Ww"
[/not]
[/have_location]
[/filter_condition]
[message]
type=Royal Guard
message= _ "Stop! You shall not pass!"
[/message]
{FORD_GUARD 1 29}
{FORD_GUARD 1 29}
{FORD_GUARD 1 29}
{FORD_GUARD 1 29}
{FORD_GUARD 1 29}
{FORD_GUARD 1 29}
{FORD_GUARD 1 29}
{FORD_GUARD 1 29}
{FORD_GUARD 1 29}
{FORD_GUARD 1 29}
{FORD_GUARD 1 27}
{FORD_GUARD 1 25}
{FORD_GUARD 7 24}
{FORD_GUARD 9 25}
{FORD_GUARD 9 27}
{FORD_GUARD 9 29}
{FORD_GUARD 7 30}
{FORD_GUARD 5 31}
{FORD_GUARD 3 30}
[/event]
#getting closer --> more reinforcements
[event]
name=moveto
[filter]
side=1
x=2-9
y=24-30
[not]
side=2
[/not]
[/filter]
[filter_condition]
[have_unit]
id="Lisar"
[/have_unit]
[have_location]
x,y=$x1,$y1
[and]
x,y=5,27
radius=4
[/and]
[not]
terrain="Wo,Ww"
[/not]
[/have_location]
[/filter_condition]
[message]
side=2
[not]
id="Li'sar"
[/not]
message= _ "Stop! You shall not pass! Quick, reinforcements, protect the Princess!"
message= _ "Quick, reinforcements, protect the Princess!"
[/message]
{FORD_GUARD 1 27}
{FORD_GUARD 1 27}
{FORD_GUARD 1 27}
{FORD_GUARD 1 27}
{FORD_GUARD 1 27}
{FORD_GUARD 1 27}
{FORD_GUARD 5 25}
{FORD_GUARD 7 26}
{FORD_GUARD 7 28}
{FORD_GUARD 5 29}
{FORD_GUARD 3 28}
{FORD_GUARD 3 26}
[/event]
#if the player dares attack Li'sar's escort, they are pounced on by
#if anyone dares attack Li'sar's escort, they are pounced on by
#many Royal Guards
[event]
name=attack
@ -352,14 +384,33 @@
[/filter_second]
[message]
speaker=second_unit
message= _ "Stop! You shall not pass! Quick, reinforcements, protect the Princess!"
message= _ "Quick, reinforcements!"
[/message]
{FORD_GUARD 5 27}
{FORD_GUARD 5 27}
{FORD_GUARD 5 27}
{FORD_GUARD 5 27}
{FORD_GUARD 5 27}
{FORD_GUARD 5 27}
{FORD_GUARD $x1 $y1}
{FORD_GUARD $x1 $y1}
{FORD_GUARD $x1 $y1}
{FORD_GUARD $x1 $y1}
{FORD_GUARD $x1 $y1}
[/event]
#Geez, talk about not taking a hint ...
[event]
name=attack
[filter_second]
id="Li'sar"
[/filter_second]
[message]
side=2
[not]
id="Li'sar"
[/not]
message= _ "Protect the Princess!"
[/message]
{FORD_GUARD $x1 $y1}
{FORD_GUARD $x1 $y1}
{FORD_GUARD $x1 $y1}
{FORD_GUARD $x1 $y1}
{FORD_GUARD $x1 $y1}
[/event]
# Defeating Li'sar just sends her away
@ -368,6 +419,9 @@
[filter]
id="Li'sar"
[/filter]
[filter_second]
side=1
[/filter_second]
[message]
speaker="Li'sar"
{LISAR_VARIATION defeat}
@ -459,7 +513,6 @@
[/then]
[/if]
{CLEAR_VARIABLE lisar_still_here}
[endlevel]
result=victory
bonus=yes
@ -467,6 +520,13 @@
[/endlevel]
[/event]
[event]
name=victory
{CLEAR_VARIABLE lisar_still_here}
{RESTORE_LISAR}
[/event]
{campaigns/Heir_To_The_Throne/utils/deaths.cfg}
[/scenario]

View file

@ -168,12 +168,8 @@
[/unit]
[/else]
[/role]
[recall]
id=Delfador
[/recall]
[recall]
id=Kalenz
[/recall]
{NEED_DELFADOR placement=leader}
{NEED_KALENZ placement=leader}
[/event]
[event]
@ -417,7 +413,6 @@
[/else]
[/if]
{CLEAR_VARIABLE turn_limit}
[endlevel]
result=victory
bonus=yes
@ -425,5 +420,11 @@
[/endlevel]
[/event]
[event]
name=victory
{CLEAR_VARIABLE turn_limit}
[/event]
{campaigns/Heir_To_The_Throne/utils/deaths.cfg}
[/scenario]

View file

@ -132,6 +132,7 @@
side=5
no_leader=yes
controller=ai
hidden=yes
[/side]
{STARTING_VILLAGES 2 20}
@ -163,13 +164,11 @@
[/event]
[event]
name=start
[recall]
id=Delfador
[/recall]
[recall]
id=Kalenz
[/recall]
name=prestart
{NEED_DELFADOR placement=leader}
{NEED_KALENZ placement=leader}
{STORE_LISAR}
[recall]
id=Haldiel
[/recall]
@ -192,9 +191,22 @@
[/unit]
[/else]
[/role]
[recall]
id=Delurin
[/recall]
[role] # If Delurin was just recalled, this will select him.
role=Outlaw_Advisor
[auto_recall][/auto_recall]
type="Highwayman,Fugitive,Huntsman,Ranger," +
"Bandit,Outlaw,Trapper," +
"Thug,Footpad,Poacher"
[/role]
[/event]
[event]
name=start
[redraw]
[/redraw]
[message]
speaker=Delfador
message= _ "At last, this is the entrance to the dwarven tunnels."
@ -236,14 +248,6 @@
# If you have outlaws in your party, you have the chance to
# find a special unit
#
[role]
type=Footpad,Thug,Poacher,Outlaw,Trapper,Bandit,Fugitive,Ranger,Huntsman,Highwayman
role=Outlaw_Advisor
[/role]
[recall]
role=Outlaw_Advisor
[/recall]
[if]
[have_unit]
role=Outlaw_Advisor
@ -312,8 +316,15 @@
[event]
name=die
[filter]
side=2,3,4
[/filter]
[filter_second]
id=Haldiel
side=1
id=Haldiel,Simyr
[or]
type=Paladin
[/or]
[/filter_second]
[message]
speaker=second_unit
@ -564,6 +575,9 @@
speaker=Konrad
message= _ "Pray that we live to see sunlight again."
[/message]
[fire_event]
name=victory dance
[/fire_event]
[endlevel]
result=victory
bonus=yes
@ -590,6 +604,9 @@
speaker=Konrad
message= _ "Pray that we live to see sunlight again."
[/message]
[fire_event]
name=victory dance
[/fire_event]
[endlevel]
result=victory
bonus=yes
@ -644,7 +661,23 @@
message= _ "A monster was hiding in that lake!"
[/message]
[role]
type=Thief,Rogue,Mage,Elvish Shaman,Elvish Druid,Elvish Archer,Elvish Fighter,Elvish Captain,Elvish Marshal,Horseman,Elvish Lord
type="Thief," +
"Poacher,Footpad,Thug," +
"Horseman," +
"Elvish Scout,Elvish Archer,Elvish Fighter," +
"Fighter," +
"Rogue," +
"Trapper,Outlaw,Bandit," +
"Lancer,Knight," +
"Elvish Rider,Elvish Marksman,Elvish Ranger,Elvish Hero,Elvish Captain," +
"Elvish Lord," +
"Commander," +
"Assassin," +
"Ranger,Huntsman,Fugitive,Highwayman," +
"Grand Knight,Paladin," +
"Elvish Outrider,Elvish Sharpshooter,Elvish Avenger,Elvish Champion,Elvish Marshal," +
"Elvish High Lord," +
"Lord"
role=whiner
[/role]
[message]
@ -654,7 +687,7 @@
[/event]
[event]
name=victory
name=victory dance
[message]
speaker=narrator
@ -676,9 +709,16 @@
speaker="Li'sar"
message= _ "Whew! We make our way through the dangerous fog of the mountains, and now there is all this chaos before us! Come on, men! We must make it to the caves that lie ahead of us!"
[/message]
[/event]
[event]
name=victory
{CLEAR_VARIABLE true_entrance_location}
{CLEAR_VARIABLE outlaw_advisor_store}
{CLEAR_VARIABLE outlaw_name}
{RESTORE_LISAR}
[/event]
{campaigns/Heir_To_The_Throne/utils/deaths.cfg}

View file

@ -37,6 +37,10 @@
description= _ "Death of Kalenz"
condition=lose
[/objective]
[gold_carryover]
carryover_percentage=100
[/gold_carryover]
{HAS_NO_TURN_LIMIT}
[/objectives]
[/event]
@ -61,6 +65,7 @@
[side]
side=2
no_leader=yes
hidden=yes
[ai]
{ATTACK_DEPTH 4 5 5}
aggression=1.0
@ -235,14 +240,13 @@
[event]
name=prestart
[recall]
id=Delfador
show=no
[/recall]
[recall]
id=Kalenz
show=no
[/recall]
{NEED_DELFADOR placement=leader}
{NEED_KALENZ placement=leader}
[disallow_recruit]
side=1
type=Gryphon Rider
[/disallow_recruit]
[place_shroud]
side=1
@ -647,11 +651,6 @@
y=19,18,17,18,17,18,18,19,20,21,22,22,23,24,24,25,26
[/move_unit_fake]
[allow_recruit]
side=1
type=Gryphon Rider
[/allow_recruit]
[message]
speaker=narrator
image="wesnoth-icon.png"
@ -670,7 +669,6 @@
[/then]
[/if]
{CLEAR_VARIABLE get_gryphons}
[endlevel]
result=victory
bonus=no
@ -678,6 +676,23 @@
[/endlevel]
[/event]
[event]
name=victory
[if]
[variable]
name=get_gryphons
numerical_equals=1
[/variable]
[then]
[allow_recruit]
side=1
type=Gryphon Rider
[/allow_recruit]
[/then]
[/if]
[/event]
#a secret passage
[event]
name=moveto

View file

@ -115,14 +115,22 @@
{PLACE_IMAGE scenery/whirlpool.png 13 22}
{PLACE_IMAGE scenery/whirlpool.png 7 23}
[event]
name=prestart
{NEED_DELFADOR placement=leader}
{NEED_KALENZ placement=leader}
[allow_recruit]
side=1
type=Dwarvish Fighter,Dwarvish Thunderer
[/allow_recruit]
[disallow_recruit]
side=1
type=Dwarvish Guardsman
[/disallow_recruit]
[/event]
[event]
name=start
[recall]
id=Delfador
[/recall]
[recall]
id=Kalenz
[/recall]
[message]
speaker=Delfador
message= _ "We are now in the main dwarvish caverns."
@ -131,10 +139,6 @@
speaker=Delfador
message= _ "Underground roads once led to the different parts of the complex, but now everything lies in ruins."
[/message]
[allow_recruit]
side=1
type=Dwarvish Fighter,Dwarvish Thunderer
[/allow_recruit]
[/event]
[event]

View file

@ -134,19 +134,18 @@
user_team_name=_"Evil"
[/side]
[event]
name=prestart
{NEED_DELFADOR placement=leader}
{NEED_KALENZ placement=leader}
{NEED_LISAR (x,y=recall,recall)}
{STORE_LISAR}
[/event]
[event]
name=start
[recall]
id=Delfador
[/recall]
[recall]
id=Kalenz
[/recall]
[redraw]
[/redraw]
[message]
speaker=Konrad
message= _ "Where are we? Which way now? I am tired of this darkness!"
@ -390,32 +389,6 @@
message= _ "Thank you, Princess. Come, men. Let us find the Sceptre!"
[/message]
[store_unit]
[filter]
id="Li'sar"
[/filter]
kill=yes
variable=stored_Lisar
[/store_unit]
[unit]
side=1
id="Li'sar"
name= _ "Lisar"
unrenamable=yes
profile=portraits/lisar.png
type=$stored_Lisar.type
experience=$stored_Lisar.experience
{IS_HERO}
random_traits=no
[modifications]
{TRAIT_LOYAL}
[/modifications]
[/unit]
{CLEAR_VARIABLE stored_Lisar}
[endlevel]
result=victory
bonus=yes
@ -423,6 +396,25 @@
[/endlevel]
[/event]
[event]
name=victory
[modify_unit]
[filter]
id="Li'sar"
[/filter]
side=1
canrecruit=no
{IS_HERO}
[modifications]
{TRAIT_LOYAL}
[/modifications]
[/modify_unit]
{CLEAR_VARIABLE stored_Lisar}
[/event]
#deaths.cfg only handles death of Li'sar is shes on side '1', so handle
#it explicitly here.
[event]

View file

@ -57,6 +57,8 @@
[event]
name=prestart
{VARIABLE moved_too_close false}
[objectives]
side=1
[objective]
@ -88,6 +90,9 @@
[/gold_carryover]
[note]
[show_if]
{VARIABLE_CONDITIONAL moved_too_close boolean_equals false}
[/show_if]
description= _ "If Delfador rests, he can concentrate on the location of the Sceptre of Fire."
[/note]
[/objectives]
@ -150,29 +155,22 @@
[/foreach]
{CLEAR_VARIABLE adjacent_to_starting_loc}
{VARIABLE moved_too_close false}
[/event]
[event]
name=start
name=prestart
#
# Initialize the lava growing effect
#
{NEXT_LAVA}
{CLEAR_VARIABLE sceptre}
{NEED_DELFADOR placement=leader}
{NEED_KALENZ placement=leader}
{NEED_LISAR placement=leader}
[/event]
[event]
name=start
[recall]
id=Delfador
[/recall]
[recall]
id=Kalenz
[/recall]
[recall]
id="Li'sar"
[/recall]
[message]
speaker=Konrad
message= _ "The Sceptre must be getting close now! Where shall we go?"
@ -317,37 +315,6 @@
message= _ "I sense we are quite near the Sceptre; in fact, we should be able to see it right about now..."
[/message]
[objectives]
side=1
[objective]
description= _ "Capture the Sceptre of Fire with Konrad or Lisar"
condition=win
[/objective]
[objective]
description= _ "Death of Konrad"
condition=lose
[/objective]
[objective]
description= _ "Death of Delfador"
condition=lose
[/objective]
[objective]
description= _ "Death of Lisar"
condition=lose
[/objective]
[objective]
description= _ "Death of Kalenz"
condition=lose
[/objective]
{TURNS_RUN_OUT}
[gold_carryover]
bonus=yes
carryover_percentage=40
[/gold_carryover]
[/objectives]
{VARIABLE moved_too_close true}
[/event]

View file

@ -151,19 +151,17 @@
{STARTING_VILLAGES 3 8}
[event]
name=start
name=prestart
{VARIABLE dialog no}
[recall]
id=Delfador
[/recall]
[recall]
id="Li'sar"
[/recall]
[recall]
id=Kalenz
[/recall]
{NEED_DELFADOR placement=leader}
{NEED_LISAR placement=leader}
{NEED_KALENZ placement=leader}
[/event]
[event]
name=start
[if]
[variable]
@ -295,8 +293,8 @@
[/message]
[if]
[variable]
name=path_muff_malal
equals=yes
name=via_isle_of_the_damned
not_equals=yes
[/variable]
[then]
[message]
@ -376,7 +374,10 @@
[option]
label= _ "Our need for speed outweighs the danger. With the Merfolk to help us, we will win through."
[command]
{CLEAR_VARIABLE dialog}
[role]
role=merman-advisor
id=$unit.id
[/role]
[endlevel]
next_scenario=19c_Cliffs_of_Thoria
@ -409,8 +410,6 @@
id=Urug-Telfar
[/filter]
{CLEAR_VARIABLE dialog}
[endlevel]
next_scenario=19a_Snow_Plains
result=victory
@ -425,8 +424,6 @@
id="Unan-Ka'tall"
[/filter]
{CLEAR_VARIABLE dialog}
[endlevel]
next_scenario=19b_Swamp_Of_Dread
result=victory
@ -434,4 +431,10 @@
{NEW_GOLD_CARRYOVER 40}
[/endlevel]
[/event]
[event]
name=victory
{CLEAR_VARIABLE dialog}
[/event]
[/scenario]

View file

@ -96,21 +96,20 @@
{STARTING_VILLAGES 2 7}
[event]
name=start
name=prestart
#For Home of the Northern Elves: where do we come from?
[set_variable]
name=A_Choice_Was_Made
value=a
[/set_variable]
[recall]
id=Delfador
[/recall]
[recall]
id=Kalenz
[/recall]
[recall]
id="Li'sar"
[/recall]
{NEED_DELFADOR placement=leader}
{NEED_KALENZ placement=leader}
{NEED_LISAR placement=leader}
[/event]
[event]
name=start
[message]
speaker=Kalenz
message= _ "These fields of snow were once the home of my people. We left here centuries ago. Legends say a great sword of fire was left behind."

View file

@ -181,22 +181,21 @@
{STARTING_VILLAGES 6 7}
[event]
name=start
name=prestart
#For Home of the Northern Elves: where do we come from?
[set_variable]
name=A_Choice_Was_Made
value=b
[/set_variable]
[recall]
id=Delfador
[/recall]
[recall]
id="Li'sar"
[/recall]
[recall]
id=Kalenz
[/recall]
{NEED_DELFADOR placement=leader}
{NEED_LISAR placement=leader}
{NEED_KALENZ placement=leader}
[/event]
[event]
name=start
[message]
speaker=Delfador
message= _ "This land is cursed. Liches have existed here for ages, luring adventurers and soldiers to their deaths and amassing great armies and fortunes."
@ -384,16 +383,21 @@
{KONRAD_VARIATION mad}
message= _ "Enough! I can listen to no more of this. Princess, you may want to end your mothers rule, but I will end her life as she ended the life of my father and my brothers. Ashevieres masterwork of treachery will end, and it will end by my blade!"
[/message]
{CLEAR_VARIABLE temp_armor_x}
{CLEAR_VARIABLE temp_armor_y}
{CLEAR_VARIABLE armor_taken}
{CLEAR_VARIABLE armored_knight,dk_kill_count}
[endlevel]
result=victory
bonus=yes
{NEW_GOLD_CARRYOVER 40}
[/endlevel]
[/event]
[event]
name=victory
{CLEAR_VARIABLE temp_armor_x}
{CLEAR_VARIABLE temp_armor_y}
{CLEAR_VARIABLE armor_taken}
{CLEAR_VARIABLE armored_knight,dk_kill_count}
[/event]
[/scenario]
#undef SWAMP_DREAD_AI_PARAMS

View file

@ -161,6 +161,7 @@
no_leader=yes
controller=ai
canrecruit=no
hidden=yes
[ai]
{ATTACK_DEPTH 5 5 6}
[avoid]
@ -176,6 +177,7 @@
side=4
no_leader=yes
controller=ai
hidden=yes
canrecruit=no
team_name=elves
user_team_name=_"Rebels"
@ -184,7 +186,7 @@
[/side]
[event]
name=start
name=prestart
#For Home of the Northern Elves: where do we come from?
#the position where we are - impassable mountains, looking for a way out
#the sunk loyalist fleet with the flag of wesnoth
@ -195,29 +197,27 @@
[/set_variable]
[role]
role=merman-advisor
type=Merman Triton,Merman Hoplite,Mermaid Diviner,Siren,Merman Javelineer,Merman Entangler,Merman Warrior,Mermaid Priestess,Mermaid Enchantress,Merman Spearman,Merman Netcaster,Merman Fighter,Mermaid Initiate,Merman Hunter
type="Merman Triton,Merman Hoplite,Merman Javelineer,Merman Entangler,Mermaid Diviner,Mermaid Siren," +
"Merman Warrior,Merman Spearman,Merman Netcaster,Mermaid Priestess,Mermaid Enchantress," +
"Merman Fighter,Merman Hunter,Mermaid Initiate"
reassign=no
[auto_recall][/auto_recall]
[else]
[unit]
type=Merman Fighter
role=merman-advisor
placement=leader
[/unit]
[/else]
[/role]
[recall]
role=merman-advisor
[/recall]
[recall]
id=Delfador
[/recall]
[recall]
id=Kalenz
[/recall]
[recall]
id="Li'sar"
[/recall]
{NEED_DELFADOR placement=leader}
{NEED_KALENZ placement=leader}
{NEED_LISAR placement=leader}
{VARIABLE sergeant_sighted no}
{VARIABLE waterfall_sighted no}
{OBJ_TRIDENT_STORM 17 11 cot_stormtrident}
{PLACE_IMAGE items/gohere.png 55 3}
[/event]
[event]
name=start
[unit]
type=Injured Sergeant
side=4
@ -235,6 +235,10 @@
poisoned=yes
[/status]
[/unit]
[/event]
[event]
name=start
[message]
speaker=narrator
image=wesnoth-icon.png
@ -286,7 +290,7 @@
message= _ "Delfador is right. We must go on!"
[/message]
[delay]
time=5000
time=1000
[/delay]
[move_unit_fake]
type=Armageddon Drake
@ -416,7 +420,7 @@ Soooo... It is you who sent your subordinates to attack us. Now when weve des
[/event]
[event]
name=start
name=prestart
[store_locations]
terrain=*^V* # wmllint: ignore
[and]
@ -441,7 +445,7 @@ Soooo... It is you who sent your subordinates to attack us. Now when weve des
[/event]
[event]
name=start
name=prestart
[store_locations]
terrain=*^V* # wmllint: ignore
[and]
@ -933,7 +937,6 @@ Soooo... It is you who sent your subordinates to attack us. Now when weve des
speaker=Konrad
message= _ "Everybody inside..."
[/message]
{CLEAR_VARIABLE sergeant_sighted,waterfall_sighted,drake_bases}
[endlevel]
result=victory
bonus=yes
@ -942,4 +945,10 @@ Soooo... It is you who sent your subordinates to attack us. Now when weve des
[/then]
[/if]
[/event]
[event]
name=victory
{CLEAR_VARIABLE sergeant_sighted,waterfall_sighted,drake_bases}
[/event]
[/scenario]

View file

@ -348,19 +348,13 @@
[/event]
[event]
name=start
name=prestart
#
# Allow the player to have some >6MP loyal units to compensate for the loss of recruiting
#
[recall]
id=Delfador
[/recall]
[recall]
id=Kalenz
[/recall]
[recall]
id="Li'sar"
[/recall]
{NEED_DELFADOR placement=leader}
{NEED_KALENZ placement=leader}
{NEED_LISAR placement=leader}
[recall]
id=Haldiel
[/recall]
@ -375,6 +369,10 @@
[/recall]
[redraw]
[/redraw]
[/event]
[event]
name=start
[message]
speaker=Kalenz
@ -773,6 +771,9 @@
y= 1- 8, 9-14, 15,16-17,18-20, 21,22-25,26-28
[/have_unit]
[then]
[fire_event]
name=victory dance
[/fire_event]
[endlevel]
result=victory
bonus=yes
@ -799,6 +800,9 @@
y= 1- 8, 9-14, 15,16-17,18-20, 21,22-25,26-28
[/have_unit]
[then]
[fire_event]
name=victory dance
[/fire_event]
[endlevel]
result=victory
bonus=yes
@ -815,7 +819,7 @@
[/event]
[event]
name=victory
name=victory dance
[if]
[have_unit]
id="El'rien"

View file

@ -162,17 +162,15 @@
{FLAG_VARIANT wood-elvish}
[/side]
[event]
name=prestart
{NEED_DELFADOR placement=leader}
{NEED_LISAR placement=leader}
{NEED_KALENZ placement=leader}
[/event]
[event]
name=start
[recall]
id=Delfador
[/recall]
[recall]
id="Li'sar"
[/recall]
[recall]
id=Kalenz
[/recall]
[message]
speaker=narrator
image=wesnoth-icon.png

View file

@ -53,7 +53,7 @@
[/side]
[event]
name=start
name=prestart
[music]
name=silvan_sanctuary.ogg
@ -61,24 +61,9 @@
append=no
[/music]
[recall]
id=Delfador
x=10
y=13
show=no
[/recall]
[recall]
id=Kalenz
x=10
y=9
show=no
[/recall]
[recall]
id="Li'sar"
x=11
y=14
show=no
[/recall]
{NEED_DELFADOR (x,y=10,13)}
{NEED_KALENZ (x,y=10,9)}
{NEED_LISAR (x,y=11,14)}
[unit]
type=Elvish Champion
x=11
@ -104,8 +89,11 @@
id=Everlore
name= _ "Everlore"
[/unit]
[redraw]
[/redraw]
[/event]
[event]
name=start
[message]
speaker=Uradredia
message= _ "Greetings, and welcome to our capital. You should feel honored. It has been half a century — a generation in the way your race counts time — since any man has been considered Elf-friend enough to stand here in Elensiria."
@ -305,7 +293,6 @@
speaker=Parandra
message= _ "Yes, rest. Your soldiers will be tended to and refreshed. We have made sure you will leave our protection with the resources to finish your journey."
[/message]
{CLEAR_VARIABLE sceptre}
[endlevel]
result=victory
bonus=no

View file

@ -160,19 +160,18 @@
{STARTING_VILLAGES 4 10}
[event]
name=start
name=prestart
{PLACE_IMAGE scenery/rock1.png 16 26}
[recall]
id=Delfador
[/recall]
[recall]
id=Kalenz
[/recall]
[recall]
id="Li'sar"
[/recall]
{NEED_DELFADOR placement=leader}
{NEED_KALENZ placement=leader}
{NEED_LISAR placement=leader}
[/event]
[event]
name=start
[message]
speaker=Malatus
message= _ "Halt! Who goes there?"

View file

@ -28,15 +28,14 @@
#ifdef HARD
{VARIABLE units_to_slay 50}
#endif
[recall]
id=Delfador
[/recall]
[recall]
id=Kalenz
[/recall]
[recall]
id="Li'sar"
[/recall]
{CLEAR_VARIABLE clan_alric,clan_bayar,clan_daryn,clan_ruga}
{NEED_DELFADOR placement=leader}
{NEED_KALENZ placement=leader}
{NEED_LISAR placement=leader}
[disallow_recruit]
side=1
type=Knight
[/disallow_recruit]
[objectives]
side=1
[objective]
@ -466,7 +465,6 @@
# wmllint: local spelling Elnar
message= _ "We should not speak of it now. Instead come with me, Konrad and Lisar, to the top of mount Elnar. To look at Weldyn. To make plans for the battle, and to talk."
[/message]
{CLEAR_VARIABLE units_to_slay}
[endlevel]
result=victory
bonus=yes
@ -474,6 +472,12 @@
[/endlevel]
#enddef
[event]
name=victory
{CLEAR_VARIABLE units_to_slay}
[/event]
[event]
name=last breath
first_time_only=no

View file

@ -214,25 +214,20 @@
{NAMED_LOYAL_UNIT 1 (Grand Knight) 39 8 (Sir Alric) (_ "Sir Alric")}
[/then]
[/if]
{CLEAR_VARIABLE clan_alric,clan_bayar,clan_daryn,clan_ruga}
[/event]
[event]
name=start
[recall]
id=Delfador
[/recall]
[recall]
id=Kalenz
[/recall]
[recall]
id="Li'sar"
[/recall]
{NEED_DELFADOR placement=leader}
{NEED_KALENZ placement=leader}
{NEED_LISAR placement=leader}
[role]
type=Grand Knight
side=1
role=clanboss
[/role]
[/event]
[event]
name=strart
[message]
speaker=Asheviere
message= _ "So, these rebels come at last to face me, while most of my army is off fighting the fickle clans."

View file

@ -160,8 +160,8 @@
#define JOURNEY_06_NEW
[if]
[variable]
name=path_muff_malal
equals=yes
name=via_isle_of_the_damned
not_equals=yes
[/variable]
[then]
{JOURNEY_05A_OLD}
@ -195,8 +195,8 @@
#define JOURNEY_06_OLD
[if]
[variable]
name=path_muff_malal
equals=yes
name=via_isle_of_the_damned
not_equals=yes
[/variable]
[then]
{JOURNEY_05A_OLD}
@ -534,10 +534,12 @@
#enddef
#define JOURNEY_20A_NEW
[switch]
variable=A_Choice_Was_Made
[case]
value=a
[if]
[variable]
name=A_Choice_Was_Made
not_equals=b
[/variable]
[then]
{JOURNEY_19A_OLD}
{JOURNEY 909 183}
{JOURNEY 920 192}
@ -557,9 +559,8 @@
{JOURNEY 1079 333}
{JOURNEY 1095 336}
{NEW_BATTLE 1110 338}
[/case]
[case]
value=b
[/then]
[else]
{JOURNEY_19B_OLD}
{JOURNEY 836 341}
{JOURNEY 851 344}
@ -580,15 +581,17 @@
{JOURNEY 1080 346}
{JOURNEY 1095 342}
{NEW_BATTLE 1110 338}
[/case]
[/switch]
[/else]
[/if]
#enddef
#define JOURNEY_20A_OLD
[switch]
variable=A_Choice_Was_Made
[case]
value=a
[if]
[variable]
name=A_Choice_Was_Made
not_equals=b
[/variable]
[then]
{JOURNEY_19A_OLD}
{OLD_JOURNEY 909 183}
{OLD_JOURNEY 920 192}
@ -608,9 +611,8 @@
{OLD_JOURNEY 1079 333}
{OLD_JOURNEY 1095 336}
{OLD_BATTLE 1110 338}
[/case]
[case]
value=b
[/then]
[else]
{JOURNEY_19B_OLD}
{OLD_JOURNEY 836 341}
{OLD_JOURNEY 851 344}
@ -631,8 +633,8 @@
{OLD_JOURNEY 1080 346}
{OLD_JOURNEY 1095 342}
{OLD_BATTLE 1110 338}
[/case]
[/switch]
[/else]
[/if]
#enddef
#define JOURNEY_20B_NEW

View file

@ -47,6 +47,36 @@
#
#define OBJ_SWORD_FIRE X Y ID
# Give a hint the first time a unit stops in a hex near the sword.
# There is a village right there, so that's probably when it will occur,
# but anywhere nearby will do.
[event]
name=moveto
[filter]
side=1
[/filter]
[filter_condition]
[have_location]
x,y=$x1,$y1
[and]
x,y={X},{Y}
radius=2
[/and]
[not]
x,y={X},{Y}
[/not]
[/have_location]
[/filter_condition]
[message]
speaker=narrator
image="wesnoth-icon.png"
message= _ "Nearby is a clearing with a huge tree standing alone in the center."
[/message]
[/event]
[event]
name=moveto
@ -56,6 +86,11 @@
y={Y}
[/filter]
[message]
speaker=narrator
image="wesnoth-icon.png"
message= _ "A large tree stands alone in a clearing. Driven into the trunk is a huge sword with flames dancing along its blade. Stangely, while the trunk near the sword is blackened and scorched, the tree seems otherwise unaffected by the flames."
[/message]
{PLACE_IMAGE items/flame-sword.png ({X}) ({Y})}
{VARIABLE sword_taken 0}
[event]
@ -80,7 +115,7 @@
[message]
speaker=narrator
image="wesnoth-icon.png"
message= _ "Do you want this unit to pick up the sword?"
message= _ "Should $unit.name| attempt to pick up the sword?"
[option]
label= _ "Yes"
[command]
@ -101,16 +136,17 @@
x,y={X},{Y}
[/remove_item]
[message]
speaker=narrator
speaker=$unit.id|
image="wesnoth-icon.png"
message= _ "As you place your hand around the glittering leather hilt, the sword roars to life! Strangely, you feel no heat once you pick it up, yet the grass at your feet bursts into flame as you test the heft of this mighty weapon."
caption=""
male_message= _ "As $unit.name| places his hand around the glittering leather hilt, the sword roars to life! Strangely, he feels no heat once he picks it up, yet the grass at his feet bursts into flame as he tests the heft of this mighty weapon."
female_message= _ "As $unit.name| places her hand around the glittering leather hilt, the sword roars to life! Strangely, she feels no heat once she picks it up, yet the grass at her feet bursts into flame as she tests the heft of this mighty weapon."
[/message]
{VARIABLE sword_taken 1}
[/then]
[effect]
apply_to=attack
range=melee #includes Li'sar's saber
type=blade #excludes Paladin's lance
name=sword,saber
set_description= _ "flaming sword"
set_icon=attacks/sword-flaming.png
set_type=fire
@ -162,7 +198,7 @@
[message]
speaker=narrator
image="wesnoth-icon.png"
message= _ "Do you want this unit to pick up the armor?"
message= _ "Should $unit.name| attempt to pick up the armor?"
[option]
label= _ "Yes"
[command]
@ -183,9 +219,11 @@
x,y={X},{Y}
[/remove_item]
[message]
speaker=narrator
speaker=$unit.id|
image="wesnoth-icon.png"
message= _ "You struggle to lift and don the heavy plate. Once worn, however, it is amazingly comfortable. You have increased resistance to all physical damage!"
caption=""
male_message= _ "$unit.name| struggles to lift and don the heavy plate. Once worn, however, it is amazingly comfortable. He feels an increased resistance to all physical damage!"
female_message= _ "$unit.name| struggles to lift and don the heavy plate. Once worn, however, it is amazingly comfortable. She feels an increased resistance to all physical damage!"
[/message]
{VARIABLE armor_taken 1}
@ -650,3 +688,155 @@ fire: +10%"
equals={VALUE}
[/variable]
#enddef
#define NEED_DELFADOR PLACEMENT
[unit]
id=Delfador
name= _ "Delfador"
profile=portraits/delfador-elvish.png
unrenamable=yes
type=Elder Mage
{PLACEMENT}
{IS_HERO}
[modifications]
{TRAIT_LOYAL}
{TRAIT_INTELLIGENT}
[/modifications]
[/unit]
#enddef
#define NEED_KALENZ PLACEMENT
[unit]
id=Kalenz
name= _ "Kalenz"
profile=portraits/kalenz.png
unrenamable=yes
type=Elvish Lord
{PLACEMENT}
{IS_HERO}
random_traits=no
[modifications]
{TRAIT_LOYAL}
[/modifications]
[/unit]
#enddef
#define NEED_LISAR PLACEMENT
[unit]
id="Li'sar"
name= _ "Li'sar"
profile=portraits/lisar.png
unrenamable=yes
type=Princess
{PLACEMENT}
{IS_HERO}
random_traits=no
[modifications]
{TRAIT_LOYAL}
[/modifications]
[/unit]
#enddef
#define STORE_DELFADOR
[if]
[have_unit]
id=Delfador
search_recall_list=yes
[/have_unit]
[then]
[store_unit]
[filter]
id=Delfador
[/filter]
kill=yes
variable=delfador_store
[/store_unit]
[/then]
[/if]
#enddef
#define RESTORE_DELFADOR
[if]
[variable]
name=delfador_store.id
equals="Delfador"
[/variable]
[then]
[unstore_unit]
variable=delfador_store
x,y=recall,recall
[/unstore_unit]
{CLEAR_VARIABLE delfador_store}
[/then]
[/if]
#enddef
#define STORE_KALENZ
[if]
[have_unit]
id=Kalenz
search_recall_list=yes
[/have_unit]
[then]
[store_unit]
[filter]
id=Kalenz
[/filter]
kill=yes
variable=kalenz_store
[/store_unit]
[/then]
[/if]
#enddef
#define RESTORE_KALENZ
[if]
[variable]
name=kalenz_store.id
equals="Kalenz"
[/variable]
[then]
[unstore_unit]
variable=kalenz_store
x,y=recall,recall
[/unstore_unit]
{CLEAR_VARIABLE kalenz_store}
[/then]
[/if]
#enddef
#define STORE_LISAR
[if]
[have_unit]
side=1
id="Li'sar"
search_recall_list=yes
[/have_unit]
[then]
[store_unit]
[filter]
side=1
id="Li'sar"
[/filter]
kill=yes
variable=lisar_store
[/store_unit]
[/then]
[/if]
#enddef
#define RESTORE_LISAR
[if]
[variable]
name=lisar_store.id
equals="Li'sar"
[/variable]
[then]
[unstore_unit]
variable=lisar_store
x,y=recall,recall
[/unstore_unit]
{CLEAR_VARIABLE lisar_store}
[/then]
[/if]
#enddef