TSG S01 Fix bug: Urza Mathin may die first

In the unlikely event the player manages to kill Urza Mathin before visiting the river fort, Sir Gerrick will not appear. This is bad for the victory conversation and worse for the rest of the campaign.

I thought long and hard about how to fix this and decided to take my cue from the initial objectives which show two items. So, I made it so you have to do BOTH to win the scenario. If you kill Urza Mathin first, you still need to go find Sir Gerrick. I only needed to adjust one line to make it make sense, and it works better than simply having Sir Gerrick pop up out of nowhere.
This commit is contained in:
Gregory A Lundberg 2016-08-24 01:15:00 -05:00
parent 222d9ec0d1
commit c3c622447e

View file

@ -15,6 +15,7 @@
{DEFAULT_SCHEDULE}
victory_when_enemies_defeated=no
{TURNS 40 32 24}
# Scenario Introduction - Summer
@ -102,10 +103,22 @@
[objectives]
side=1
[objective]
[show_if]
[not]
[have_unit]
id=Sir Gerrick
[/have_unit]
[/not]
[/show_if]
description= _ "Investigate the river fort"
condition=win
[/objective]
[objective]
[show_if]
[have_unit]
id=Urza Mathin
[/have_unit]
[/show_if]
description= _ "Defeat Urza Mathin"
condition=win
[/objective]
@ -113,6 +126,15 @@
description= _ "Death of Deoran"
condition=lose
[/objective]
[objective]
[show_if]
[have_unit]
id=Sir Gerrick
[/have_unit]
[/show_if]
description= _ "Death of Sir Gerrick"
condition=lose
[/objective]
{TURNS_RUN_OUT}
@ -261,6 +283,11 @@
message= _ "I will open the citadels armory. We have a supply of spears and bows, and lacked only a leader to bring us to battle with them!"
[/message]
[allow_recruit]
side=1
type=Spearman, Bowman
[/allow_recruit]
#ifdef EASY
[message]
speaker=narrator
@ -275,43 +302,29 @@
[/message]
#endif
[objectives]
side=1
[objective]
description= _ "Defeat Urza Mathin"
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]
[if]
[have_unit]
id=Urza Mathin
[/have_unit]
[then]
[show_objectives][/show_objectives]
#ifdef EASY
{HIGHLIGHT_IMAGE 20 4 items/gohere.png ()}
{HIGHLIGHT_IMAGE 20 4 items/gohere.png ()}
[message]
speaker=narrator
image=items/gohere.png
message= _ "Head back to the encampment where you started and recruit some troops!"
[/message]
[message]
speaker=narrator
image=items/gohere.png
message= _ "Head back to the encampment where you started and recruit some troops!"
[/message]
#endif
[allow_recruit]
side=1
type=Spearman, Bowman
[/allow_recruit]
[/then]
[else]
[fire_event]
name=victory dance
[/fire_event]
[/else]
[/if]
[/event]
# You return to the encampment and recruit troops.
@ -658,9 +671,27 @@
animate=yes
[/kill]
[if]
[have_unit]
id=Sir Gerrick
[/have_unit]
[then]
[fire_event]
name=victory dance
[/fire_event]
[/then]
[else]
[show_objectives][/show_objectives]
[/else]
[/if]
[/event]
[event]
name=victory dance
[message]
speaker=Sir Gerrick
message= _ "He is dead! Congratulations, commander. We thought we would never see reinforcements — Did Sir Loris send word of our plight?"
message= _ "Urza Mathin is dead! Congratulations, commander. We thought we would never see reinforcements — Did Sir Loris send word of our plight?"
[/message]
[message]