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] [event]
name=prestart name=prestart
{NEED_DELFADOR (x,y=19,23)}
[objectives] [objectives]
side=1 side=1
[objective] [objective]
@ -76,21 +77,6 @@
gold=100 gold=100
team_name=elves team_name=elves
user_team_name=_"Rebels" 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] [ai]
[goal] [goal]
name=target name=target

View file

@ -152,9 +152,7 @@
{IS_LOYAL} {IS_LOYAL}
[/unit] [/unit]
[recall] {NEED_DELFADOR placement=leader}
id=Delfador
[/recall]
[/event] [/event]
[event] [event]
@ -358,6 +356,9 @@
speaker=Mokolo Qimur 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= _ "So many foul humans riding on horses! There is no way we can defeat them. Quick, we must make our escape!"
[/message] [/message]
[fire_event]
name=victory dance
[/fire_event]
[endlevel] [endlevel]
result=victory result=victory
bonus=no bonus=no
@ -503,6 +504,9 @@
[/message] [/message]
#endif #endif
[fire_event]
name=victory dance
[/fire_event]
[endlevel] [endlevel]
result=victory result=victory
bonus=yes bonus=yes
@ -511,7 +515,7 @@
[/event] [/event]
[event] [event]
name=victory name=victory dance
[message] [message]
speaker=Kaylan speaker=Kaylan
message= _ "Thank you for the help, friends. The ship should arrive soon, it will take you to Alduin." 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} {PLACE_IMAGE scenery/rock3.png 25 30}
[disallow_recruit]
side=1
type=Mage
[/disallow_recruit]
{NEED_DELFADOR (x,y=26,12)}
[store_unit] [store_unit]
variable=konrad_store variable=konrad_store
kill=yes kill=yes
@ -170,10 +176,6 @@
y=11,12 y=11,12
[/move_unit_fake] [/move_unit_fake]
#set Delfador's position
{VARIABLE delfador_store.x 26}
{VARIABLE delfador_store.y 12}
#show Delfador #show Delfador
[unstore_unit] [unstore_unit]
variable=delfador_store 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= _ "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] [/message]
#endif #endif
[allow_recruit]
side=1
type=Mage
[/allow_recruit]
[/then] [/then]
[/if] [/if]
{CLEAR_VARIABLE received_mages}
[kill] [kill]
id=Seimus id=Seimus
@ -366,4 +363,15 @@
[/event] [/event]
{campaigns/Heir_To_The_Throne/utils/deaths.cfg} {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] [/scenario]

View file

@ -103,6 +103,10 @@
[event] [event]
name=prestart name=prestart
[disallow_recruit]
side=1
type=Merman Fighter,Merman Hunter,Mermaid Initiate
[/disallow_recruit]
# #
# Grant an extra enchampment tile # Grant an extra enchampment tile
# #
@ -125,10 +129,7 @@
[/terrain] [/terrain]
#endif #endif
[recall] {NEED_DELFADOR placement=leader}
id=Delfador
show=no
[/recall]
#the ship they came on. #the ship they came on.
{PLACE_IMAGE "units/transport/galleon.png~RC(magenta>red)" 2 34} {PLACE_IMAGE "units/transport/galleon.png~RC(magenta>red)" 2 34}
@ -215,14 +216,7 @@
message= _ "Very well. Be careful!" message= _ "Very well. Be careful!"
[/message] [/message]
#Delfador leaves the party {STORE_DELFADOR}
[store_unit]
variable=delfador_store
kill=yes
[filter]
id=Delfador
[/filter]
[/store_unit]
[/event] [/event]
#comic relief with Bugg becoming a 'sea orc' #comic relief with Bugg becoming a 'sea orc'
@ -710,13 +704,8 @@
message= _ "Now where is Delfador? I hope hes safe!" message= _ "Now where is Delfador? I hope hes safe!"
[/message] [/message]
[unstore_unit] {RESTORE_DELFADOR}
variable=delfador_store {NEED_DELFADOR (x,y=31,11)}
x,y=31,11
find_vacant=yes
[/unstore_unit]
# Note: do NOT clear the variable, because Delfador needs to return
# again in SoE.
[message] [message]
speaker=Delfador speaker=Delfador
@ -790,9 +779,6 @@
speaker=Delfador speaker=Delfador
message= _ "Safe journey to you, Konrad. Until we meet again!" message= _ "Safe journey to you, Konrad. Until we meet again!"
[/message] [/message]
[kill]
id=Delfador
[/kill]
[endlevel] [endlevel]
result=victory result=victory
next_scenario=05a_Muff_Malals_Peninsula next_scenario=05a_Muff_Malals_Peninsula
@ -808,9 +794,6 @@
speaker=Delfador speaker=Delfador
message= _ "Safe voyage to you then, Konrad. May the weather be fair." message= _ "Safe voyage to you then, Konrad. May the weather be fair."
[/message] [/message]
[kill]
id=Delfador
[/kill]
[endlevel] [endlevel]
result=victory result=victory
next_scenario=05b_Isle_of_the_Damned next_scenario=05b_Isle_of_the_Damned
@ -825,13 +808,8 @@
[event] [event]
name=time over name=time over
[unstore_unit] {RESTORE_DELFADOR}
variable=delfador_store {NEED_DELFADOR (x,y=31,11)}
x,y=31,11
find_vacant=yes
[/unstore_unit]
# Note: do NOT clear the variable, because Delfador needs to return
# again in SoE.
#if neither of the enemies is dead, automatically lose #if neither of the enemies is dead, automatically lose
[if] [if]
@ -896,19 +874,6 @@
speaker=Delfador 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= _ "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] [/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] [endlevel]
result=victory result=victory
bonus=no bonus=no
@ -921,19 +886,6 @@
speaker=Delfador 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= _ "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] [/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] [endlevel]
result=victory result=victory
bonus=no bonus=no
@ -942,11 +894,28 @@
[/endlevel] [/endlevel]
[/else] [/else]
[/if] [/if]
{MERMAN_SPEAKS}
[message]
speaker=narrator
image="wesnoth-icon.png"
message= _ "You may now recruit the noble merfolk!"
[/message]
[/else] [/else]
[/if] [/if]
[/event] [/event]
{campaigns/Heir_To_The_Throne/utils/deaths.cfg} {campaigns/Heir_To_The_Throne/utils/deaths.cfg}
[event]
name=victory
[allow_recruit]
side=1
type=Merman Fighter
[/allow_recruit]
{RESTORE_DELFADOR}
[/event]
[/scenario] [/scenario]
#undef MERMAN_SPEAKS #undef MERMAN_SPEAKS

View file

@ -87,10 +87,12 @@
[event] [event]
name=prestart name=prestart
{VARIABLE via_isle_of_the_damned no} {VARIABLE via_isle_of_the_damned no}
{CLEAR_VARIABLE moremirmu}
{PLACE_IMAGE scenery/signpost.png 8 2} {PLACE_IMAGE scenery/signpost.png 8 2}
{PLACE_IMAGE scenery/rock2.png 17 20} {PLACE_IMAGE scenery/rock2.png 17 20}
{STORE_DELFADOR}
[role] [role]
role=Advisor role=Advisor
[auto_recall][/auto_recall] [auto_recall][/auto_recall]
@ -220,4 +222,10 @@
[/event] [/event]
{campaigns/Heir_To_The_Throne/utils/deaths.cfg} {campaigns/Heir_To_The_Throne/utils/deaths.cfg}
[event]
name=victory
{RESTORE_DELFADOR}
[/event]
[/scenario] [/scenario]

View file

@ -107,6 +107,7 @@
[event] [event]
name=prestart name=prestart
{VARIABLE via_isle_of_the_damned yes} {VARIABLE via_isle_of_the_damned yes}
{CLEAR_VARIABLE moremirmu}
{PLACE_IMAGE scenery/temple1.png 11 13} {PLACE_IMAGE scenery/temple1.png 11 13}
{PLACE_IMAGE scenery/temple1.png 10 17} {PLACE_IMAGE scenery/temple1.png 10 17}
@ -134,6 +135,7 @@
side=1 side=1
type=Thug,Poacher,Footpad type=Thug,Poacher,Footpad
[/allow_recruit] [/allow_recruit]
{STORE_DELFADOR}
# Kill the recall list except for merfolk # Kill the recall list except for merfolk
[store_unit] [store_unit]
@ -149,15 +151,15 @@
[/not] [/not]
[/filter] [/filter]
[/store_unit] [/store_unit]
[/event]
[event]
name=start
{NAMED_LOYAL_UNIT 1 (Merman Fighter) 27 12 (Kalba) ( _ "Kalba")} {NAMED_LOYAL_UNIT 1 (Merman Fighter) 27 12 (Kalba) ( _ "Kalba")}
{NAMED_LOYAL_UNIT 1 (Merman Fighter) 31 14 (Gnaba) ( _ "Gnaba")} {NAMED_LOYAL_UNIT 1 (Merman Fighter) 31 14 (Gnaba) ( _ "Gnaba")}
# wmllint: recognize Kalba # wmllint: recognize Kalba
# wmllint: recognize Gnaba # wmllint: recognize Gnaba
[/event]
[event]
name=start
[message] [message]
speaker=Konrad speaker=Konrad
@ -336,7 +338,7 @@
#enddef #enddef
[event] [event]
name=start name=prestart
# #
# Determine the contents of the temples: # Determine the contents of the temples:
@ -443,7 +445,6 @@
[/message] [/message]
{ISLE_GALLEON_ARRIVE} {ISLE_GALLEON_ARRIVE}
{RESTORE_RECALL_LIST}
[if] [if]
[variable] [variable]
@ -462,40 +463,14 @@
[/then] [/then]
[/if] [/if]
[modify_side] [fire_event]
side=1 name=victory dance
gold=$isle_damned_starting_gold [/fire_event]
[/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]
[/event] [/event]
[event] [event]
name=time over name=time over
{ISLE_GALLEON_ARRIVE} {ISLE_GALLEON_ARRIVE}
{RESTORE_RECALL_LIST}
# TODO: use an existing unit as the speaker, and maybe add the message # TODO: use an existing unit as the speaker, and maybe add the message
# to the enemies defeated event too # to the enemies defeated event too
@ -518,6 +493,42 @@
speaker=Moremirmu 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= _ "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] [/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] [kill]
id=Moremirmu id=Moremirmu
[/kill] [/kill]
@ -529,11 +540,6 @@
gold=$isle_damned_starting_gold gold=$isle_damned_starting_gold
[/modify_side] [/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} {CLEAR_VARIABLE isle_damned_starting_gold}
[allow_recruit] [allow_recruit]
@ -546,12 +552,7 @@
type=Thug,Poacher,Footpad type=Thug,Poacher,Footpad
[/disallow_recruit] [/disallow_recruit]
[endlevel] {RESTORE_DELFADOR}
result=victory
bonus=no
carryover_add=yes
carryover_percentage=100
[/endlevel]
[/event] [/event]
{campaigns/Heir_To_The_Throne/utils/deaths.cfg} {campaigns/Heir_To_The_Throne/utils/deaths.cfg}

View file

@ -155,6 +155,17 @@
{PLACE_IMAGE scenery/rock1.png 13 12} {PLACE_IMAGE scenery/rock1.png 13 12}
{PLACE_IMAGE scenery/rock2.png 25 28} {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 #define ADVISOR
[role] [role]
role=Advisor role=Advisor
@ -554,6 +565,10 @@
message= _ "The party rested for three days, after which an old friend returned." message= _ "The party rested for three days, after which an old friend returned."
[/message] [/message]
{VARIABLE delfador_store.profile "portraits/delfador.png"}
{RESTORE_DELFADOR}
{RESTORE_KALENZ}
[move_unit_fake] [move_unit_fake]
type=Elder Mage type=Elder Mage
side=1 side=1
@ -561,33 +576,16 @@
y=18,17,16 y=18,17,16
[/move_unit_fake] [/move_unit_fake]
{VARIABLE delfador_store.x 24} [recall]
{VARIABLE delfador_store.y 16} id=Delfador
{VARIABLE delfador_store.profile "portraits/delfador.png"} x,y=24,16
show=no
[/recall]
#show Delfador [recall]
[unstore_unit]
variable=delfador_store
[/unstore_unit]
{CLEAR_VARIABLE delfador_store}
[unit]
id=Kalenz id=Kalenz
name= _ "Kalenz" x,y=22,16
profile=portraits/kalenz.png [/recall]
unrenamable=yes
type=Elvish Lord
x=22
y=16
side=1
{IS_HERO}
random_traits=no
[modifications]
{TRAIT_LOYAL}
[/modifications]
[/unit]
[redraw]
[/redraw]
[message] [message]
speaker=Delfador 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= _ "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] [/message]
{CLEAR_VARIABLE thieves_ford}
[endlevel] [endlevel]
result=victory result=victory
bonus=yes bonus=yes
@ -748,6 +745,20 @@
[/event] [/event]
{campaigns/Heir_To_The_Throne/utils/deaths.cfg} {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] [/scenario]
#undef ADVISOR #undef ADVISOR

View file

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

View file

@ -143,12 +143,9 @@
{PLACE_IMAGE scenery/mine-abandoned.png 4 41} {PLACE_IMAGE scenery/mine-abandoned.png 4 41}
[recall] {NEED_DELFADOR placement=leader}
id=Delfador {NEED_KALENZ placement=leader}
[/recall] {STORE_LISAR}
[recall]
id=Kalenz
[/recall]
[role] [role]
role=Advisor role=Advisor
[auto_recall][/auto_recall] [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= _ "(Ha ha, little do they know just how many undead have wandered the northern road of late. Surely they are doomed!)"
[/message] [/message]
{CLEAR_VARIABLE trap_sprung}
[endlevel] [endlevel]
result=victory result=victory
bonus=yes bonus=yes
@ -296,6 +291,14 @@
[/endlevel] [/endlevel]
[/event] [/event]
[event]
name=victory
{CLEAR_VARIABLE trap_sprung}
{RESTORE_LISAR}
[/event]
#define SECOND_WAVE #define SECOND_WAVE
#ifdef EASY #ifdef EASY
[gold] [gold]

View file

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

View file

@ -120,12 +120,9 @@
[event] [event]
name=prestart name=prestart
[recall] {CLEAR_VARIABLE get_gryphons}
id=Delfador {NEED_DELFADOR placement=leader}
[/recall] {NEED_KALENZ placement=leader}
[recall]
id=Kalenz
[/recall]
{NAMED_LOYAL_UNIT 3 (Sleeping Gryphon) 12 18 (Graak) ( _ "Graak")} {NAMED_LOYAL_UNIT 3 (Sleeping Gryphon) 12 18 (Graak) ( _ "Graak")}
{NAMED_LOYAL_UNIT 3 (Sleeping Gryphon) 16 16 (Grook) ( _ "Grook")} {NAMED_LOYAL_UNIT 3 (Sleeping Gryphon) 16 16 (Grook) ( _ "Grook")}
@ -422,7 +419,6 @@
message= _ "Let us continue onward!" message= _ "Let us continue onward!"
[/message] [/message]
{CLEAR_VARIABLE gryphon_disposition,eggs_done}
[endlevel] [endlevel]
result=victory result=victory
bonus=yes bonus=yes
@ -430,6 +426,12 @@
[/endlevel] [/endlevel]
[/event] [/event]
[event]
name=victory
{CLEAR_VARIABLE gryphon_disposition,eggs_done}
[/event]
# Sleeping Gryphons will counter if attacked, then wake up and # Sleeping Gryphons will counter if attacked, then wake up and
# morph to new Gryphons (a different unit type). The new unit will # morph to new Gryphons (a different unit type). The new unit will
# then usually fly away because the AI thinks your attacking unit # then usually fly away because the AI thinks your attacking unit

View file

@ -188,12 +188,9 @@
{FORD_GUARD 3 27} {FORD_GUARD 3 27}
{FORD_GUARD 4 28} {FORD_GUARD 4 28}
[recall] {NEED_DELFADOR placement=leader}
id=Delfador {NEED_KALENZ placement=leader}
[/recall] {STORE_LISAR}
[recall]
id=Kalenz
[/recall]
[/event] [/event]
[event] [event]
@ -516,7 +513,6 @@
[/then] [/then]
[/if] [/if]
{CLEAR_VARIABLE lisar_still_here}
[endlevel] [endlevel]
result=victory result=victory
bonus=yes bonus=yes
@ -524,6 +520,13 @@
[/endlevel] [/endlevel]
[/event] [/event]
[event]
name=victory
{CLEAR_VARIABLE lisar_still_here}
{RESTORE_LISAR}
[/event]
{campaigns/Heir_To_The_Throne/utils/deaths.cfg} {campaigns/Heir_To_The_Throne/utils/deaths.cfg}
[/scenario] [/scenario]

View file

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

View file

@ -164,13 +164,11 @@
[/event] [/event]
[event] [event]
name=start name=prestart
[recall]
id=Delfador {NEED_DELFADOR placement=leader}
[/recall] {NEED_KALENZ placement=leader}
[recall] {STORE_LISAR}
id=Kalenz
[/recall]
[recall] [recall]
id=Haldiel id=Haldiel
[/recall] [/recall]
@ -193,9 +191,22 @@
[/unit] [/unit]
[/else] [/else]
[/role] [/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] [message]
speaker=Delfador speaker=Delfador
message= _ "At last, this is the entrance to the dwarven tunnels." 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 # If you have outlaws in your party, you have the chance to
# find a special unit # 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] [if]
[have_unit] [have_unit]
role=Outlaw_Advisor role=Outlaw_Advisor
@ -576,6 +575,9 @@
speaker=Konrad speaker=Konrad
message= _ "Pray that we live to see sunlight again." message= _ "Pray that we live to see sunlight again."
[/message] [/message]
[fire_event]
name=victory dance
[/fire_event]
[endlevel] [endlevel]
result=victory result=victory
bonus=yes bonus=yes
@ -602,6 +604,9 @@
speaker=Konrad speaker=Konrad
message= _ "Pray that we live to see sunlight again." message= _ "Pray that we live to see sunlight again."
[/message] [/message]
[fire_event]
name=victory dance
[/fire_event]
[endlevel] [endlevel]
result=victory result=victory
bonus=yes bonus=yes
@ -682,7 +687,7 @@
[/event] [/event]
[event] [event]
name=victory name=victory dance
[message] [message]
speaker=narrator speaker=narrator
@ -704,9 +709,16 @@
speaker="Li'sar" 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= _ "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] [/message]
[/event]
[event]
name=victory
{CLEAR_VARIABLE true_entrance_location} {CLEAR_VARIABLE true_entrance_location}
{CLEAR_VARIABLE outlaw_advisor_store} {CLEAR_VARIABLE outlaw_advisor_store}
{CLEAR_VARIABLE outlaw_name} {CLEAR_VARIABLE outlaw_name}
{RESTORE_LISAR}
[/event] [/event]
{campaigns/Heir_To_The_Throne/utils/deaths.cfg} {campaigns/Heir_To_The_Throne/utils/deaths.cfg}

View file

@ -240,14 +240,13 @@
[event] [event]
name=prestart name=prestart
[recall] {NEED_DELFADOR placement=leader}
id=Delfador {NEED_KALENZ placement=leader}
show=no
[/recall] [disallow_recruit]
[recall] side=1
id=Kalenz type=Gryphon Rider
show=no [/disallow_recruit]
[/recall]
[place_shroud] [place_shroud]
side=1 side=1
@ -652,11 +651,6 @@
y=19,18,17,18,17,18,18,19,20,21,22,22,23,24,24,25,26 y=19,18,17,18,17,18,18,19,20,21,22,22,23,24,24,25,26
[/move_unit_fake] [/move_unit_fake]
[allow_recruit]
side=1
type=Gryphon Rider
[/allow_recruit]
[message] [message]
speaker=narrator speaker=narrator
image="wesnoth-icon.png" image="wesnoth-icon.png"
@ -675,7 +669,6 @@
[/then] [/then]
[/if] [/if]
{CLEAR_VARIABLE get_gryphons}
[endlevel] [endlevel]
result=victory result=victory
bonus=no bonus=no
@ -683,6 +676,23 @@
[/endlevel] [/endlevel]
[/event] [/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 #a secret passage
[event] [event]
name=moveto name=moveto

View file

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

View file

@ -134,19 +134,18 @@
user_team_name=_"Evil" user_team_name=_"Evil"
[/side] [/side]
[event]
name=prestart
{NEED_DELFADOR placement=leader}
{NEED_KALENZ placement=leader}
{NEED_LISAR (x,y=recall,recall)}
{STORE_LISAR}
[/event]
[event] [event]
name=start name=start
[recall]
id=Delfador
[/recall]
[recall]
id=Kalenz
[/recall]
[redraw]
[/redraw]
[message] [message]
speaker=Konrad speaker=Konrad
message= _ "Where are we? Which way now? I am tired of this darkness!" 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= _ "Thank you, Princess. Come, men. Let us find the Sceptre!"
[/message] [/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] [endlevel]
result=victory result=victory
bonus=yes bonus=yes
@ -423,6 +396,25 @@
[/endlevel] [/endlevel]
[/event] [/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 #deaths.cfg only handles death of Li'sar is shes on side '1', so handle
#it explicitly here. #it explicitly here.
[event] [event]

View file

@ -158,24 +158,19 @@
[/event] [/event]
[event] [event]
name=start name=prestart
# #
# Initialize the lava growing effect # Initialize the lava growing effect
# #
{NEXT_LAVA} {NEXT_LAVA}
{CLEAR_VARIABLE sceptre}
{NEED_DELFADOR placement=leader}
{NEED_KALENZ placement=leader}
{NEED_LISAR placement=leader}
[/event] [/event]
[event] [event]
name=start name=start
[recall]
id=Delfador
[/recall]
[recall]
id=Kalenz
[/recall]
[recall]
id="Li'sar"
[/recall]
[message] [message]
speaker=Konrad speaker=Konrad
message= _ "The Sceptre must be getting close now! Where shall we go?" message= _ "The Sceptre must be getting close now! Where shall we go?"

View file

@ -151,19 +151,17 @@
{STARTING_VILLAGES 3 8} {STARTING_VILLAGES 3 8}
[event] [event]
name=start name=prestart
{VARIABLE dialog no} {VARIABLE dialog no}
[recall] {NEED_DELFADOR placement=leader}
id=Delfador {NEED_LISAR placement=leader}
[/recall] {NEED_KALENZ placement=leader}
[recall] [/event]
id="Li'sar"
[/recall] [event]
[recall] name=start
id=Kalenz
[/recall]
[if] [if]
[variable] [variable]
@ -380,7 +378,6 @@
role=merman-advisor role=merman-advisor
id=$unit.id id=$unit.id
[/role] [/role]
{CLEAR_VARIABLE dialog}
[endlevel] [endlevel]
next_scenario=19c_Cliffs_of_Thoria next_scenario=19c_Cliffs_of_Thoria
@ -413,8 +410,6 @@
id=Urug-Telfar id=Urug-Telfar
[/filter] [/filter]
{CLEAR_VARIABLE dialog}
[endlevel] [endlevel]
next_scenario=19a_Snow_Plains next_scenario=19a_Snow_Plains
result=victory result=victory
@ -429,8 +424,6 @@
id="Unan-Ka'tall" id="Unan-Ka'tall"
[/filter] [/filter]
{CLEAR_VARIABLE dialog}
[endlevel] [endlevel]
next_scenario=19b_Swamp_Of_Dread next_scenario=19b_Swamp_Of_Dread
result=victory result=victory
@ -438,4 +431,10 @@
{NEW_GOLD_CARRYOVER 40} {NEW_GOLD_CARRYOVER 40}
[/endlevel] [/endlevel]
[/event] [/event]
[event]
name=victory
{CLEAR_VARIABLE dialog}
[/event]
[/scenario] [/scenario]

View file

@ -96,21 +96,20 @@
{STARTING_VILLAGES 2 7} {STARTING_VILLAGES 2 7}
[event] [event]
name=start name=prestart
#For Home of the Northern Elves: where do we come from? #For Home of the Northern Elves: where do we come from?
[set_variable] [set_variable]
name=A_Choice_Was_Made name=A_Choice_Was_Made
value=a value=a
[/set_variable] [/set_variable]
[recall] {NEED_DELFADOR placement=leader}
id=Delfador {NEED_KALENZ placement=leader}
[/recall] {NEED_LISAR placement=leader}
[recall] [/event]
id=Kalenz
[/recall] [event]
[recall] name=start
id="Li'sar"
[/recall]
[message] [message]
speaker=Kalenz 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." 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} {STARTING_VILLAGES 6 7}
[event] [event]
name=start name=prestart
#For Home of the Northern Elves: where do we come from? #For Home of the Northern Elves: where do we come from?
[set_variable] [set_variable]
name=A_Choice_Was_Made name=A_Choice_Was_Made
value=b value=b
[/set_variable] [/set_variable]
[recall] {NEED_DELFADOR placement=leader}
id=Delfador {NEED_LISAR placement=leader}
[/recall] {NEED_KALENZ placement=leader}
[recall] [/event]
id="Li'sar"
[/recall] [event]
[recall] name=start
id=Kalenz
[/recall]
[message] [message]
speaker=Delfador 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." 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} {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= _ "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] [/message]
{CLEAR_VARIABLE temp_armor_x}
{CLEAR_VARIABLE temp_armor_y}
{CLEAR_VARIABLE armor_taken}
{CLEAR_VARIABLE armored_knight,dk_kill_count}
[endlevel] [endlevel]
result=victory result=victory
bonus=yes bonus=yes
{NEW_GOLD_CARRYOVER 40} {NEW_GOLD_CARRYOVER 40}
[/endlevel] [/endlevel]
[/event] [/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] [/scenario]
#undef SWAMP_DREAD_AI_PARAMS #undef SWAMP_DREAD_AI_PARAMS

View file

@ -186,7 +186,7 @@
[/side] [/side]
[event] [event]
name=start name=prestart
#For Home of the Northern Elves: where do we come from? #For Home of the Northern Elves: where do we come from?
#the position where we are - impassable mountains, looking for a way out #the position where we are - impassable mountains, looking for a way out
#the sunk loyalist fleet with the flag of wesnoth #the sunk loyalist fleet with the flag of wesnoth
@ -210,24 +210,14 @@
[/unit] [/unit]
[/else] [/else]
[/role] [/role]
[recall] {NEED_DELFADOR placement=leader}
id=Delfador {NEED_KALENZ placement=leader}
[/recall] {NEED_LISAR placement=leader}
[recall]
id=Kalenz
[/recall]
[recall]
id="Li'sar"
[/recall]
{VARIABLE sergeant_sighted no} {VARIABLE sergeant_sighted no}
{VARIABLE waterfall_sighted no} {VARIABLE waterfall_sighted no}
{OBJ_TRIDENT_STORM 17 11 cot_stormtrident} {OBJ_TRIDENT_STORM 17 11 cot_stormtrident}
{PLACE_IMAGE items/gohere.png 55 3} {PLACE_IMAGE items/gohere.png 55 3}
[/event]
[event]
name=start
[unit] [unit]
type=Injured Sergeant type=Injured Sergeant
side=4 side=4
@ -245,6 +235,10 @@
poisoned=yes poisoned=yes
[/status] [/status]
[/unit] [/unit]
[/event]
[event]
name=start
[message] [message]
speaker=narrator speaker=narrator
image=wesnoth-icon.png 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]
[event] [event]
name=start name=prestart
[store_locations] [store_locations]
terrain=*^V* # wmllint: ignore terrain=*^V* # wmllint: ignore
[and] [and]
@ -451,7 +445,7 @@ Soooo... It is you who sent your subordinates to attack us. Now when weve des
[/event] [/event]
[event] [event]
name=start name=prestart
[store_locations] [store_locations]
terrain=*^V* # wmllint: ignore terrain=*^V* # wmllint: ignore
[and] [and]
@ -943,7 +937,6 @@ Soooo... It is you who sent your subordinates to attack us. Now when weve des
speaker=Konrad speaker=Konrad
message= _ "Everybody inside..." message= _ "Everybody inside..."
[/message] [/message]
{CLEAR_VARIABLE sergeant_sighted,waterfall_sighted,drake_bases}
[endlevel] [endlevel]
result=victory result=victory
bonus=yes bonus=yes
@ -952,4 +945,10 @@ Soooo... It is you who sent your subordinates to attack us. Now when weve des
[/then] [/then]
[/if] [/if]
[/event] [/event]
[event]
name=victory
{CLEAR_VARIABLE sergeant_sighted,waterfall_sighted,drake_bases}
[/event]
[/scenario] [/scenario]

View file

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

View file

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

View file

@ -53,7 +53,7 @@
[/side] [/side]
[event] [event]
name=start name=prestart
[music] [music]
name=silvan_sanctuary.ogg name=silvan_sanctuary.ogg
@ -61,24 +61,9 @@
append=no append=no
[/music] [/music]
[recall] {NEED_DELFADOR (x,y=10,13)}
id=Delfador {NEED_KALENZ (x,y=10,9)}
x=10 {NEED_LISAR (x,y=11,14)}
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]
[unit] [unit]
type=Elvish Champion type=Elvish Champion
x=11 x=11
@ -104,8 +89,11 @@
id=Everlore id=Everlore
name= _ "Everlore" name= _ "Everlore"
[/unit] [/unit]
[redraw] [/event]
[/redraw]
[event]
name=start
[message] [message]
speaker=Uradredia 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." 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 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= _ "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] [/message]
{CLEAR_VARIABLE sceptre}
[endlevel] [endlevel]
result=victory result=victory
bonus=no bonus=no

View file

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

View file

@ -28,15 +28,14 @@
#ifdef HARD #ifdef HARD
{VARIABLE units_to_slay 50} {VARIABLE units_to_slay 50}
#endif #endif
[recall] {CLEAR_VARIABLE clan_alric,clan_bayar,clan_daryn,clan_ruga}
id=Delfador {NEED_DELFADOR placement=leader}
[/recall] {NEED_KALENZ placement=leader}
[recall] {NEED_LISAR placement=leader}
id=Kalenz [disallow_recruit]
[/recall] side=1
[recall] type=Knight
id="Li'sar" [/disallow_recruit]
[/recall]
[objectives] [objectives]
side=1 side=1
[objective] [objective]
@ -466,7 +465,6 @@
# wmllint: local spelling Elnar # 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= _ "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] [/message]
{CLEAR_VARIABLE units_to_slay}
[endlevel] [endlevel]
result=victory result=victory
bonus=yes bonus=yes
@ -474,6 +472,12 @@
[/endlevel] [/endlevel]
#enddef #enddef
[event]
name=victory
{CLEAR_VARIABLE units_to_slay}
[/event]
[event] [event]
name=last breath name=last breath
first_time_only=no first_time_only=no

View file

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