LoW: 19: Changed scenario objective to fit the story:

The player must wipe out the saurians by killing every single unit and
destroy all villages.
This commit is contained in:
Fabian Müller 2009-04-11 17:10:49 +00:00
parent c729c3bb28
commit a58b5986e6

View File

@ -151,14 +151,26 @@
{STARTING_VILLAGES_ALL 2}
{STARTING_VILLAGES 3 20}
##### Scenario objectives #####
[event]
name=prestart
[objectives]
side=1
#[objective]
# description= _ "Defeat all enemies"
# condition=win
#[/objective]
#note= _ "and"
[objective]
description= _ "Defeat all enemies"
description= _ "Defeat every enemy unit"
condition=win
[/objective]
note= _ "and"
[objective]
description= _ "Destroy all villages"
condition=win
[/objective]
[objective]
description= _ "Death of Kalenz"
condition=lose
@ -175,36 +187,107 @@
description= _ "Turns run out"
condition=lose
[/objective]
#TODO: Make this working
#{NO_GOLD_CARRYOVER_NOTE}
note={NO_GOLD_CARRYOVER_NOTE}
[/objectives]
[/event]
victory_when_enemies_defeated=no
[event]
name=start
[message]
id=Kalenz
side=1
[not]
id=Kalenz
[/not]
[not]
id=Landar
[/not]
message= _ "We have finally reached Saurgrath, their capitol. Remember whose side they have taken in the war against us."
[/message]
[message]
id=Cleodil
message= _ "I fear this will be a bloodbath..."
[/message]
[message]
id=Landar
message= _ "It is our chance to finish them off..."
#(and make Turin happy)...
[/message]
[message]
id=Kalenz
message= _ "I fear this will be a bloodbath..."
[/message]
[message]
#TODO for ESR: Reprose please.
id=Landar
message= _ "Destroy their homes and bring death to all of them!"
[/message]
[/event]
# every time one of the saurian gets killed this event checks if it was the last one and if there are any villages left.
#define VICTORY_CONDITIONAL
[if]
[not]
[have_unit]
side=2
[or]
side=3
[/or]
[/have_unit]
[/not]
[not]
[have_location]
terrain=*^V*
[/have_location]
[/not]
[then]
#TODO for ESR: add some speech.
[endlevel]
result=victory
bonus=no
save=no
carryover_percentage=0
[/endlevel]
[/then]
[/if]
#enddef
[event]
name=enemies defeated
[endlevel]
result=victory
bonus=no
save=no
carryover_percentage=0
[/endlevel]
name=die
first_time_only=no
[filter]
side=2
[or]
side=3
[/or]
[/filter]
{VICTORY_CONDITIONAL}
[/event]
# capture event lifted from IftU.
[event]
name=capture
first_time_only=no
[filter]
side=1
[/filter]
{PLAY_SOUND "torch.ogg"}
{DELAY 200}
{PLAY_SOUND "wose-die.ogg"}
[terrain]
x=$x1
y=$y1
terrain=Dd^Dr
layer=overlay
[/terrain]
# {ADD_GOLD $unit.side 9 14 20}
{REDRAW}
{VICTORY_CONDITIONAL}
[/event]
[event]