Skip to content

Commit

Permalink
Merge pull request #703 from GregoryLundberg/GL_TSG_fixes
Browse files Browse the repository at this point in the history
TSG Bug fixes
  • Loading branch information
ln-zookeeper committed Sep 2, 2016
2 parents fa89aed + c2270e5 commit f7d06f6
Show file tree
Hide file tree
Showing 12 changed files with 665 additions and 438 deletions.
168 changes: 117 additions & 51 deletions data/campaigns/The_South_Guard/scenarios/01_Born_to_the_Banner.cfg
Expand Up @@ -15,6 +15,7 @@

{DEFAULT_SCHEDULE}

victory_when_enemies_defeated=no
{TURNS 40 32 24}

# Scenario Introduction - Summer
Expand Down Expand Up @@ -102,17 +103,38 @@
[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]
[objective]
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}

Expand All @@ -132,6 +154,10 @@
# Add a useful village on 'trivial' difficulty'.
#ifdef EASY
{MODIFY_TERRAIN Gg^Vh 13 23}
[capture_village]
side=2
x,y=13,23
[/capture_village]
#endif

# Modify the size of the keep of the enemy on 'simple' and 'easy' difficulties.
Expand Down Expand Up @@ -198,7 +224,7 @@

[message]
speaker=Moreth
message= _ "You should head to the river fort! Sir Gerrick will want to know that reinforcements have arrived!"
message= _ "Someone should head to the river fort! Sir Gerrick will want to know that reinforcements have arrived!"
[/message]

{HIGHLIGHT_IMAGE 13 10 items/gohere.png ()}
Expand Down Expand Up @@ -261,6 +287,11 @@
message= _ "I will open the citadel’s 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
Expand All @@ -275,53 +306,71 @@
[/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
[message]
speaker=narrator
image=items/gohere.png
message= _ "Head back to the encampment where you started and recruit some troops!"
[/message]

{HIGHLIGHT_IMAGE 20 4 items/gohere.png ()}
[if]
[not]
[have_unit]
x,y=20,4
id=Deoran
[/have_unit]
[/not]
[then]
{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]

[event]
name=moveto
[filter]
x,y=20,4
id=Deoran
[/filter]

[fire_event]
name=encamped
[/fire_event]
[/event]
[/then]
[else]
[fire_event]
name=encamped
[/fire_event]
[/else]
[/if]
#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.

#ifdef EASY
[event]
name=moveto
[filter]
name=encamped

[remove_item]
x,y=20,4
[/filter]
[/remove_item]

[scroll_to]
x,y=20,4
[/scroll_to]

[message]
speaker=narrator
Expand All @@ -343,10 +392,6 @@
message= _ "The best army will have a mix of units to deal with the different enemies that you will encounter. For now, concentrate on creating a small corps of experienced Bowmen."
image=wesnoth-icon.png
[/message]

[remove_item]
x,y=20,4
[/remove_item]
[/event]
#endif

Expand Down Expand Up @@ -582,20 +627,20 @@
[event]
name=turn 5
[if]
[have_unit]
id=Sir Gerrick
[/have_unit]
[not]
[have_unit]
id=Sir Gerrick
[/have_unit]
[/not]
[then]
[/then]
[else]
{HIGHLIGHT_IMAGE 13 10 items/gohere.png ()}

[message]
speaker=narrator
image=items/gohere.png
message= _ "Remember, Moreth told you that you should go meet Sir Gerrick at the river fort. Move Deoran there and find out what Sir Gerrick has to say!"
[/message]
[/else]
[/then]
[/if]
[/event]

Expand Down Expand Up @@ -632,6 +677,11 @@
[/if]
[/event]

[event]
name=victory

{CLEAR_VARIABLE leader_attacked}
[/event]
#endif

# Victory - The bandits are defeated.
Expand All @@ -652,9 +702,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 you from Westin?"
message= _ "Urza Mathin is dead! Congratulations, commander. We thought we would never see reinforcements — Did Sir Loris send word of our plight?"
[/message]

[message]
Expand All @@ -673,8 +741,6 @@
message= _ "This is worse than even my darkest fears. We must ride to Westin at once, and hope that Sir Loris is there and well! Come men! Ride for Westin!"
[/message]

{CLEAR_VARIABLE leader_attacked}

[endlevel]
result=victory
bonus=yes
Expand Down

0 comments on commit f7d06f6

Please sign in to comment.