LoW::5: Redesigned the scenario so that the player has to...

...transport the treasure with a horserider.
This commit is contained in:
Fabian Müller 2009-08-27 14:37:04 +00:00
parent 08b3933cd4
commit 2b8b701d26

View file

@ -106,12 +106,14 @@
name=prestart
[objectives]
side=1
[objective]
description= _ "Defeat all enemy leaders"
description= _ "Enter the Saurian Treasury and leave with the gold"
condition=win
[/objective]
[objective]
description= _ "Enter the Saurian Treasury and leave with the gold"
description= _ "<span color='white'>Alternative objective:</span>
<span color='#00ff00'>Defeat all enemy leaders</span>"
condition=win
[/objective]
@ -152,16 +154,73 @@
name=start
[message]
#TODO ESR
id=Kalenz
message= _ "There they are. They have dumped our gold in their treasury. We must strike quickly and leave with the gold before they bring in reinforcements."
[/message]
[message]
#TODO ESR
id=Cleodil
message= _ "This is a stub. We will need horse riders to transport the treasure."
[/message]
[message]
#TODO ESR
id=Hraurg
message= _ "The elves have followed us! We must hold the gold until reinforcements arrive."
[/message]
{HIGHLIGHT_IMAGE 1 22 scenery/signpost.png ()}
[scroll_to_unit]
id=Kalenz
[/scroll_to_unit]
[/event]
#define TREASURE_CHEST X Y
[item]
image=items/chest.png
x={X}
y={Y}
[/item]
[event]
name=moveto
delayed_variable_substitution=no
[filter]
x={X}
y={Y}
side=1
type=Elvish Scout, Elvish Outrider, Elvish Rider
[/filter]
[object]
image=items/chest.png
name= _ "Treasure Chest"
[effect]
unit_type=Elvish Scout, Elvish Outrider, Elvish Rider
apply_to=movement
increase=-5
[/effect]
duration=level
[filter]
x={X}
y={Y}
[/filter]
[then]
[removeitem]
image=items/chest.png
[/removeitem]
[role]
x={X}
y={Y}
role=gold_carrier
[/role]
[/then]
[/object]
[/event]
#enddef
[event]
name=moveto
[filter]
@ -179,6 +238,8 @@
message= _ "We got to the treasury. It was much easier than we thought...What's this?"
[/message]
{TREASURE_CHEST 20 21}
[unit]
id=Swirh
name= _ "Swirh"
@ -245,7 +306,7 @@
[objectives]
side=1
[objective]
description= _ " New Objective: Defeat the units guarding the treasury."
description= _ "New Objective: Defeat the units guarding the treasury."
condition=win
[/objective]
[objective]
@ -265,25 +326,8 @@
condition=lose
[/objective]
[/objectives]
[event]
name=die
first_time_only=no
[if]
[have_unit]
role=need_to_kill
[/have_unit]
[else]
[endlevel]
result=victory
bonus=yes
[/endlevel]
[/else]
[/if]
[/event]
[/event]
[event]
name=last breath
[filter]
@ -296,6 +340,29 @@
[/message]
[/event]
[event]
name=last breath
first_time_only=no
[filter]
role=gold_carrier
[/filter]
{TREASURE_CHEST $x1 $y1}
[/event]
[event]
name=moveto
[filter]
role=gold_carrier
x=1
y=22
[/filter]
[endlevel]
result=victory
bonus=yes
[/endlevel]
[/event]
[event]
name=victory
[message]
@ -303,7 +370,7 @@
message= _ "We have recovered our gold."
[/message]
[message]
type=Elvish Archer,Elvish Scout,Elvish Shaman,Elvish Fighter,Elvish Marshal,Elvish Champion,Elvish Avenger,Elvish Sharpshooter
role=gold_carrier
message= _ "We have recovered much more than our gold. These saurians would seem to have taken up robbery as a vocation!"
[/message]
[message]
@ -316,6 +383,7 @@
message= _ "Turnabout is fair play. Now that we've retrieved the gold, let us fare swiftly back to Wesmere. The Saurians will likely be infesting the direct route, so we will detour to the north. "
[/message]
{LOOT 1800 1}
[/event]
{campaigns/Legend_of_Wesmere/utils/deaths.cfg}