HttT Debug choose_level works

This commit is contained in:
Gregory A Lundberg 2016-08-06 13:00:00 -05:00
parent 533e872578
commit 7778e6f45c
29 changed files with 581 additions and 433 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

@ -152,9 +152,7 @@
{IS_LOYAL}
[/unit]
[recall]
id=Delfador
[/recall]
{NEED_DELFADOR placement=leader}
[/event]
[event]
@ -358,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
@ -503,6 +504,9 @@
[/message]
#endif
[fire_event]
name=victory dance
[/fire_event]
[endlevel]
result=victory
bonus=yes
@ -511,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'
@ -710,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
@ -790,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
@ -808,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
@ -825,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]
@ -896,19 +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]
{MERMAN_SPEAKS}
[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
@ -921,19 +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]
{MERMAN_SPEAKS}
[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
@ -942,11 +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

@ -87,10 +87,12 @@
[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]
role=Advisor
[auto_recall][/auto_recall]
@ -220,4 +222,10 @@
[/event]
{campaigns/Heir_To_The_Throne/utils/deaths.cfg}
[event]
name=victory
{RESTORE_DELFADOR}
[/event]
[/scenario]

View file

@ -107,6 +107,7 @@
[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}
@ -134,6 +135,7 @@
side=1
type=Thug,Poacher,Footpad
[/allow_recruit]
{STORE_DELFADOR}
# Kill the recall list except for merfolk
[store_unit]
@ -149,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
@ -336,7 +338,7 @@
#enddef
[event]
name=start
name=prestart
#
# Determine the contents of the temples:
@ -443,7 +445,6 @@
[/message]
{ISLE_GALLEON_ARRIVE}
{RESTORE_RECALL_LIST}
[if]
[variable]
@ -462,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
@ -518,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]
@ -529,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]
@ -546,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]

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!"
@ -439,6 +441,10 @@
[/message]
[/else]
[/if]
[/event]
[event]
name=victory
[if]
[variable]

View file

@ -120,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")}
@ -422,7 +419,6 @@
message= _ "Let us continue onward!"
[/message]
{CLEAR_VARIABLE gryphon_disposition,eggs_done}
[endlevel]
result=victory
bonus=yes
@ -430,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

@ -188,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]
@ -516,7 +513,6 @@
[/then]
[/if]
{CLEAR_VARIABLE lisar_still_here}
[endlevel]
result=victory
bonus=yes
@ -524,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

@ -164,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]
@ -193,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."
@ -237,18 +248,6 @@
# If you have outlaws in your party, you have the chance to
# find a special unit
#
[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]
[if]
[have_unit]
role=Outlaw_Advisor
@ -576,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
@ -602,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
@ -682,7 +687,7 @@
[/event]
[event]
name=victory
name=victory dance
[message]
speaker=narrator
@ -704,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

@ -240,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
@ -652,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"
@ -675,7 +669,6 @@
[/then]
[/if]
{CLEAR_VARIABLE get_gryphons}
[endlevel]
result=victory
bonus=no
@ -683,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

@ -158,24 +158,19 @@
[/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?"

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]
@ -380,7 +378,6 @@
role=merman-advisor
id=$unit.id
[/role]
{CLEAR_VARIABLE dialog}
[endlevel]
next_scenario=19c_Cliffs_of_Thoria
@ -413,8 +410,6 @@
id=Urug-Telfar
[/filter]
{CLEAR_VARIABLE dialog}
[endlevel]
next_scenario=19a_Snow_Plains
result=victory
@ -429,8 +424,6 @@
id="Unan-Ka'tall"
[/filter]
{CLEAR_VARIABLE dialog}
[endlevel]
next_scenario=19b_Swamp_Of_Dread
result=victory
@ -438,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

@ -186,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
@ -210,24 +210,14 @@
[/unit]
[/else]
[/role]
[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
@ -245,6 +235,10 @@
poisoned=yes
[/status]
[/unit]
[/event]
[event]
name=start
[message]
speaker=narrator
image=wesnoth-icon.png
@ -426,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]
@ -451,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]
@ -943,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
@ -952,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

@ -688,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