mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-14 15:29:53 +00:00
TSG S02 Fix bug: No victory if no Minister Hylas
The objective is, first, to find Minister Hylas and, then, later, to kill Urza Nalmath. Handle the (unlikely) case where the player kills Urza Nalmath BEFORE going to the citadel to find Minister Hy las.
This commit is contained in:
parent
97a3aca98b
commit
0356f95b9a
@ -20,6 +20,7 @@
|
|||||||
|
|
||||||
{DEFAULT_SCHEDULE_SECOND_WATCH}
|
{DEFAULT_SCHEDULE_SECOND_WATCH}
|
||||||
|
|
||||||
|
victory_when_enemies_defeated=no
|
||||||
{TURNS 40 32 28}
|
{TURNS 40 32 28}
|
||||||
|
|
||||||
# Scenario Introduction - Not all is right in Westin.
|
# Scenario Introduction - Not all is right in Westin.
|
||||||
@ -193,9 +194,39 @@
|
|||||||
[objectives]
|
[objectives]
|
||||||
side=1
|
side=1
|
||||||
[objective]
|
[objective]
|
||||||
|
[show_if]
|
||||||
|
[variable]
|
||||||
|
name=citadel_secured
|
||||||
|
boolean_not_equals=yes
|
||||||
|
[/variable]
|
||||||
|
[/show_if]
|
||||||
description= _ "Take the Citadel at Westin by the end of the ninth turn"
|
description= _ "Take the Citadel at Westin by the end of the ninth turn"
|
||||||
condition=win
|
condition=win
|
||||||
[/objective]
|
[/objective]
|
||||||
|
[objective]
|
||||||
|
[show_if]
|
||||||
|
[variable]
|
||||||
|
name=citadel_secured
|
||||||
|
boolean_equals=yes
|
||||||
|
[/variable]
|
||||||
|
[not]
|
||||||
|
[have_unit]
|
||||||
|
id=Minister Hylas
|
||||||
|
[/have_unit]
|
||||||
|
[/not]
|
||||||
|
[/show_if]
|
||||||
|
description= _ "Bring Deoran to the Citadel of Westin"
|
||||||
|
condition=win
|
||||||
|
[/objective]
|
||||||
|
[objective]
|
||||||
|
[show_if]
|
||||||
|
[have_unit]
|
||||||
|
id=Minister Hylas
|
||||||
|
[/have_unit]
|
||||||
|
[/show_if]
|
||||||
|
description= _ "Kill Urza Nalmath, the bandit leader"
|
||||||
|
condition=win
|
||||||
|
[/objective]
|
||||||
[objective]
|
[objective]
|
||||||
description= _ "Death of Deoran"
|
description= _ "Death of Deoran"
|
||||||
condition=lose
|
condition=lose
|
||||||
@ -204,6 +235,15 @@
|
|||||||
description= _ "Death of Sir Gerrick"
|
description= _ "Death of Sir Gerrick"
|
||||||
condition=lose
|
condition=lose
|
||||||
[/objective]
|
[/objective]
|
||||||
|
[objective]
|
||||||
|
[show_if]
|
||||||
|
[have_unit]
|
||||||
|
id=Minister Hylas
|
||||||
|
[/have_unit]
|
||||||
|
[/show_if]
|
||||||
|
description= _ "Death of Minister Hylas"
|
||||||
|
condition=lose
|
||||||
|
[/objective]
|
||||||
|
|
||||||
{TURNS_RUN_OUT}
|
{TURNS_RUN_OUT}
|
||||||
|
|
||||||
@ -241,28 +281,7 @@
|
|||||||
speaker=Sir Gerrick
|
speaker=Sir Gerrick
|
||||||
message= _ "Now, Deoran, take your post of command at the Citadel of Westin."
|
message= _ "Now, Deoran, take your post of command at the Citadel of Westin."
|
||||||
[/message]
|
[/message]
|
||||||
[objectives]
|
[show_objectives][/show_objectives]
|
||||||
side=1
|
|
||||||
[objective]
|
|
||||||
description= _ "Bring Deoran to the Citadel of Westin"
|
|
||||||
condition=win
|
|
||||||
[/objective]
|
|
||||||
[objective]
|
|
||||||
description= _ "Death of Deoran"
|
|
||||||
condition=lose
|
|
||||||
[/objective]
|
|
||||||
[objective]
|
|
||||||
description= _ "Death of Sir Gerrick"
|
|
||||||
condition=lose
|
|
||||||
[/objective]
|
|
||||||
|
|
||||||
{TURNS_RUN_OUT}
|
|
||||||
|
|
||||||
[gold_carryover]
|
|
||||||
bonus=yes
|
|
||||||
carryover_percentage=40
|
|
||||||
[/gold_carryover]
|
|
||||||
[/objectives]
|
|
||||||
[/then]
|
[/then]
|
||||||
[/if]
|
[/if]
|
||||||
[/event]
|
[/event]
|
||||||
@ -328,32 +347,12 @@
|
|||||||
message= _ "We will do our best to hold the city — you lead your men across the river and kill the bandit leader!"
|
message= _ "We will do our best to hold the city — you lead your men across the river and kill the bandit leader!"
|
||||||
[/message]
|
[/message]
|
||||||
|
|
||||||
[objectives]
|
[if]
|
||||||
side=1
|
[have_unit]
|
||||||
[objective]
|
id=Urza Nalmath
|
||||||
description= _ "Kill Urza Nalmath, the bandit leader"
|
[/have_unit]
|
||||||
condition=win
|
[then]
|
||||||
[/objective]
|
[show_objectives][/show_objectives]
|
||||||
[objective]
|
|
||||||
description= _ "Death of Deoran"
|
|
||||||
condition=lose
|
|
||||||
[/objective]
|
|
||||||
[objective]
|
|
||||||
description= _ "Death of Sir Gerrick"
|
|
||||||
condition=lose
|
|
||||||
[/objective]
|
|
||||||
[objective]
|
|
||||||
description= _ "Death of Minister Hylas"
|
|
||||||
condition=lose
|
|
||||||
[/objective]
|
|
||||||
|
|
||||||
{TURNS_RUN_OUT}
|
|
||||||
|
|
||||||
[gold_carryover]
|
|
||||||
bonus=yes
|
|
||||||
carryover_percentage=40
|
|
||||||
[/gold_carryover]
|
|
||||||
[/objectives]
|
|
||||||
|
|
||||||
[set_recruit]
|
[set_recruit]
|
||||||
side=2
|
side=2
|
||||||
@ -380,6 +379,13 @@
|
|||||||
side=2
|
side=2
|
||||||
{QUANTITY amount 15 30 60}
|
{QUANTITY amount 15 30 60}
|
||||||
[/gold]
|
[/gold]
|
||||||
|
[/then]
|
||||||
|
[else]
|
||||||
|
[fire_event]
|
||||||
|
name=victory dance
|
||||||
|
[/fire_event]
|
||||||
|
[/else]
|
||||||
|
[/if]
|
||||||
[/event]
|
[/event]
|
||||||
|
|
||||||
# Deoran is too late.
|
# Deoran is too late.
|
||||||
@ -572,6 +578,21 @@
|
|||||||
[/else]
|
[/else]
|
||||||
[/if]
|
[/if]
|
||||||
|
|
||||||
|
[if]
|
||||||
|
[have_unit]
|
||||||
|
id=Minister Hylas
|
||||||
|
[/have_unit]
|
||||||
|
[then]
|
||||||
|
[fire_event]
|
||||||
|
name=victory dance
|
||||||
|
[/fire_event]
|
||||||
|
[/then]
|
||||||
|
[/if]
|
||||||
|
[/event]
|
||||||
|
|
||||||
|
[event]
|
||||||
|
name=victory dance
|
||||||
|
|
||||||
[message]
|
[message]
|
||||||
speaker=Minister Hylas
|
speaker=Minister Hylas
|
||||||
message= _ "Just before the bandit raids began, an ambassador came to Sir Loris from the elves of the Aethenwood west of here. He asked that a knight be sent to discuss a new threat to Wesnoth."
|
message= _ "Just before the bandit raids began, an ambassador came to Sir Loris from the elves of the Aethenwood west of here. He asked that a knight be sent to discuss a new threat to Wesnoth."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user