Improve Subterranean Struggle

Remove unused sides from scenario

Make allowing allies to die cause defeat

- previously it allowed an easy victory which also let you keep bonus
  units after they should lost
This commit is contained in:
Simon Forsyth 2011-10-06 00:10:30 +00:00
parent 57279c98bb
commit 6203057c55
3 changed files with 377 additions and 352 deletions

View file

@ -4,6 +4,8 @@ Version 1.9.9+svn:
* A Small Favor, part 1: used 24 hour ToD
* Son of the Black Eye:
* To the Harbor of Tirigaz: used 24 hour ToD
* Under the Burning Suns
* Subterranean Struggle: no longer possible to win by allowing allies to die
* Graphics:
* New Animations:
* Goblin spearman run se

View file

@ -292,8 +292,7 @@
{FLAG_VARIANT knalgan}
[/side]
#The unused side is inserted to force particular colors on the active ones
#Side=6 (not used)
#Side=6 Ants
[side]
side=6
no_leader=yes
@ -302,29 +301,8 @@
controller=ai
shroud=no
fog=no
[/side]
#The unused side is inserted to force particular colors on the active ones
#Side=7 (not used)
[side]
side=7
no_leader=yes
gold=0
income=0
controller=ai
shroud=no
fog=no
[/side]
#Side=8 Ants
[side]
side=8
no_leader=yes
gold=0
income=0
controller=ai
shroud=no
fog=no
hidden=yes
color=white
[ai]
aggression=0.8
@ -354,15 +332,17 @@
[/ai]
[/side]
#Side=9 Assassin & Cave Spider
#Side=7 Assassin & Cave Spider
[side]
side=9
side=7
no_leader=yes
gold=0
income=0
controller=ai
shroud=yes
fog=no
hidden=yes
color=teal
[ai]
# AI will attack a weak unit with a max of 4,5,6 units
@ -763,20 +743,20 @@
#make ants easy: 3 medium: 4 hard: 5
{NOTRAIT_UNIT 8 (Giant Ant) 17 26}
{NOTRAIT_UNIT 8 (Giant Ant) 17 27}
{NOTRAIT_UNIT 8 (Giant Ant) 18 26}
{NOTRAIT_UNIT 6 (Giant Ant) 17 26}
{NOTRAIT_UNIT 6 (Giant Ant) 17 27}
{NOTRAIT_UNIT 6 (Giant Ant) 18 26}
#ifndef EASY
{NOTRAIT_UNIT 8 (Giant Ant) 18 27}
{NOTRAIT_UNIT 6 (Giant Ant) 18 27}
#endif
#ifdef HARD
{NOTRAIT_UNIT 8 (Giant Ant) 19 27}
{NOTRAIT_UNIT 6 (Giant Ant) 19 27}
#endif
#make spider
{NOTRAIT_UNIT 9 (Cave Spider) 4 25}
{NOTRAIT_UNIT 7 (Cave Spider) 4 25}
[redraw]
[/redraw]
@ -1116,6 +1096,299 @@
[/if]
[/event]
# victory events for trolls and dwarves here to make the ally event easier to follow
#define TROLL_ALLY_VICTORY
[event]
name=troll_victory_test
first_time_only=no
[set_variable]
name=dead_dwarf_leaders
add=1
[/set_variable]
[if]
[variable]
name=dead_dwarf_leaders
numerical_equals=2
[/variable]
[then]
[terrain]
x=22,21,20,19,19,18,17
y=14,14,14,15,16,16,17
terrain=Uu
[/terrain]
{NAMED_NOTRAIT_UNIT 2 (Troll Shaman) 20 14 (Zurg) ( _ "Zurg")}
[remove_shroud]
x=19-23
y=12-16
side=1
[/remove_shroud]
[redraw]
side=1
[/redraw]
[delay]
time=200
[/delay]
# wmllint: recognize Zurg
# wmllint: recognize Cloaked Figure
[message]
speaker=Zurg
message= _ "Congratulations! Some of trolls didnt think you strong enough to beat Dwarves."
[/message]
[message]
speaker=Kaleh
message= _ "Where did you come from?"
[/message]
[message]
speaker=Zurg
message= _ "There many secret tunnels that you sun dwellers not know of. Only troll know. We smarter than you think. Zurg would have killed dwarves himself, but he was just sent back from where real fighting is."
[/message]
[message]
speaker=Zhul
message= _ "The real fighting? I thought that was what we were waist-deep in?"
[/message]
[message]
speaker=Zurg
# wmllint: local spelling tricksy
message= _ "While you fighting, another clan of dwarves sneak around and flank us. They tricksy like that. We must leave you and run back to defend women and little trolls. Dwarves never give up, many trolls die today, very hard fighting. But dwarves make mistake, you stronger than dwarf or troll thought. You trolls secret weapon."
[/message]
[message]
speaker=Nym
message= _ "How do you mean?"
[/message]
[message]
speaker=Zurg
message= _ "Right before battle, we find secret passage just to the north leading straight to big dwarf stronghold. Hiding in stronghold is big important dwarf, directing the battle. Dwarves always think they best fighters around so they leave only a few dwarves guarding their stronghold. If you elves can break through dwarf defenses and kill dwarf chieftain, then it will do much damage to dwarves, make them afraid and confused, easy prey for trolls. You do this and we can drive them back. Then troll leader can help show you how to return to surface. You come with Zurg, he show you way to secret passage."
[/message]
[message]
speaker=Elyssa
message= _ "Their knowledge of these tunnels is uncanny. I could have sworn a minute ago that that wall was solid rock."
[/message]
[if]
[have_unit]
id=Cloaked Figure
[/have_unit]
[then]
[message]
speaker=Kaleh
message= _ "Wait a moment, Zurg, we must deal with this mysterious cloaked figure before we can follow you."
[/message]
#set new scenario objectives
[objectives]
summary= _ "New Objectives:"
show=yes
[objective]
description= _ "Defeat the Cloaked Figure"
condition=win
[/objective]
[objective]
description= _ "Death of Kaleh"
condition=lose
[/objective]
[objective]
description= _ "Death of Nym"
condition=lose
[/objective]
[objective]
description= _ "Death of Zhul"
condition=lose
[/objective]
[gold_carryover]
bonus=yes
carryover_percentage=40
[/gold_carryover]
[/objectives]
[set_variable]
name=delay_victory
value=1
[/set_variable]
[/then]
[else]
[message]
speaker=Kaleh
message= _ "It sounds like our work is not yet done. Very well, gather yourselves together, we must follow Zurg."
[/message]
[endlevel]
result=victory
next_scenario=06b_In_the_Domain_of_the_Dwarves
bonus=yes
{NEW_GOLD_CARRYOVER 40}
[/endlevel]
[/else]
[/if]
[/then]
[/if]
[/event]
#enddef
#define DWARF_ALLY_VICTORY
[event]
name=dwarf_victory_test
first_time_only=no
[set_variable]
name=dead_troll_leaders
add=1
[/set_variable]
[if]
[variable]
name=dead_troll_leaders
numerical_equals=2
[/variable]
[then]
[terrain]
x=24,23,22,21,20,19,18
y=44,45,45,46,46,46,45
terrain=Uu
[/terrain]
[delay]
time=200
[/delay]
{NAMED_NOTRAIT_UNIT 5 (Dwarvish Pathfinder) 21 46 (Grimnir) ( _ "Grimnir")}
[remove_shroud]
x=20-26
y=43-46
side=1
[/remove_shroud]
[redraw]
side=1
[/redraw]
# wmllint: recognize Grimnir
[message]
speaker=Grimnir
message= _ "Congratulations, some of me boys didnt think you could beat the trolls."
[/message]
[message]
speaker=Kaleh
message= _ "Where did you come from?"
[/message]
[message]
speaker=Grimnir
message= _ "Dont think you know all the tunnels and passages that twist through these caves, elf. I would have killed him myself, but I was just sent back from the main front of the battle."
[/message]
[message]
speaker=Zhul
message= _ "The front? I thought this was the front."
[/message]
[message]
speaker=Grimnir
message= _ "While you were fighting, a separate clan of trolls sneaked around our sentries and flanked us, attacking our supply depots. There are more of those stinking buggers than we had originally thought. To tell you the truth, we are hard pressed. Were going to have to pull back all our forces in these caves to reinforce the back lines. But your victory here has produced a unexpected opportunity."
[/message]
[message]
speaker=Nym
message= _ "It has?"
[/message]
[message]
speaker=Grimnir
message= _ "Right before the trolls overran this area of the mines, our scouts had found an old tunnel south of here that leads almost straight to the main lair of this tribe of trolls. We believe that protected in the lair is one of their main leaders who is directing the battle. We were going to try to sneak in and lead a surprise attack, but frankly we didnt have enough dwarves to spare. If by using this passage you can sneak past their front lines and kill him, then it will throw the trolls into disarray and relieve the pressure on our front lines. If you do this our King has promised to help you return your people to the sunlit lands. When youre ready Ill show you the way. Its not far."
[/message]
[message]
speaker=Elyssa
message= _ "Their knowledge of these tunnels is uncanny. I could have sworn a minute ago that that wall was solid rock."
[/message]
[if]
[have_unit]
id=Cloaked Figure
[/have_unit]
[then]
[message]
speaker=Kaleh
message= _ "Wait a moment, Grimnir, we must deal with this mysterious cloaked figure before we can follow you."
[/message]
[objectives]
summary= _ "New Objectives:"
show=yes
[objective]
description= _ "Defeat the Cloaked Figure"
condition=win
[/objective]
[objective]
description= _ "Death of Kaleh"
condition=lose
[/objective]
[objective]
description= _ "Death of Nym"
condition=lose
[/objective]
[objective]
description= _ "Death of Zhul"
condition=lose
[/objective]
[gold_carryover]
bonus=yes
carryover_percentage=40
[/gold_carryover]
[/objectives]
[set_variable]
name=delay_victory
value=2
[/set_variable]
[/then]
[else]
[message]
speaker=Kaleh
message= _ "It sounds like our work is not yet done. Very well, gather yourselves together, we must follow Grimnir."
[/message]
[endlevel]
result=victory
#ifdef UTBSE_NEW
next_scenario=06a_In_the_Tunnels_of_the_Trolls_new
#else
next_scenario=06a_In_the_Tunnels_of_the_Trolls
#endif
bonus=yes
{NEW_GOLD_CARRYOVER 40}
[/endlevel]
[/else]
[/if]
[/then]
[/if]
[/event]
#enddef
# Event 2: Entering the large cavern
#player chooses one side (trolls or dwarves) then:
@ -1417,35 +1690,53 @@
name=elvish_ally
value=1
[/set_variable]
[/command]
[command]
[modify_side]
side=1
team_name=dwarf
user_team_name=_"Dwarves"
[/modify_side]
[/command]
[command]
[message]
speaker=Troll Leader
message= _ "Bah! Your kind all the same. Everyone turns on trolls. But youll see, Griknagh will smash you all."
[/message]
[/command]
#set new scenario objectives
{DWARF_ALLY_VICTORY}
[event]
name=troll_victory_test
[endlevel]
result=defeat
[/endlevel]
[/event]
#set new scenario objectives
[command]
[objectives]
summary= _ "New Objectives:"
show=yes
[objective]
description= _ "Defeat Troll Leaders"
description= _ "Defeat troll leaders"
condition=win
[/objective]
[objective]
description= _ "Death of Kaleh, Nym or Zhul"
description= _ "Death of Kaleh"
condition=lose
[/objective]
[objective]
description= _ "Death of Nym"
condition=lose
[/objective]
[objective]
description= _ "Death of Zhul"
condition=lose
[/objective]
[objective]
description= _ "Death of Fundin"
condition=lose
[/objective]
[objective]
description= _ "Death of Nori"
condition=lose
[/objective]
@ -1465,34 +1756,52 @@
name=elvish_ally
value=2
[/set_variable]
[/command]
[command]
[modify_side]
side=1
team_name=troll
user_team_name=_"Trolls"
[/modify_side]
[/command]
[command]
[message]
speaker=Dwarf Leader
message= _ "I knew elves couldnt be trusted. Foolish boy, you will regret your betrayal. Taste dwarven steel!"
[/message]
[/command]
#set new scenario objectives
[command]
{TROLL_ALLY_VICTORY}
[event]
name=dwarf_victory_test
[endlevel]
result=defeat
[/endlevel]
[/event]
#set new scenario objectives
[objectives]
summary= _ "New Objectives:"
show=yes
[objective]
description= _ "Defeat Dwarf Leaders"
description= _ "Defeat dwarf leaders"
condition=win
[/objective]
[objective]
description= _ "Death of Kaleh, Nym or Zhul"
description= _ "Death of Kaleh"
condition=lose
[/objective]
[objective]
description= _ "Death of Nym"
condition=lose
[/objective]
[objective]
description= _ "Death of Zhul"
condition=lose
[/objective]
[objective]
description= _ "Death of Thungar"
condition=lose
[/objective]
[objective]
description= _ "Death of Gnarl"
condition=lose
[/objective]
@ -2886,241 +3195,6 @@
#for each death check to see if other leader is dead, if so
#also send in dwarf/troll messenger with victory congratulations
#define ZURG_CONVERSATION
[terrain]
x=22,21,20,19,19,18,17
y=14,14,14,15,16,16,17
terrain=Uu
[/terrain]
{NAMED_NOTRAIT_UNIT 2 (Troll Shaman) 20 14 (Zurg) ( _ "Zurg")}
[remove_shroud]
x=19-23
y=12-16
side=1
[/remove_shroud]
[redraw]
side=1
[/redraw]
[delay]
time=200
[/delay]
# wmllint: recognize Zurg
# wmllint: recognize Cloaked Figure
[message]
speaker=Zurg
message= _ "Congratulations! Some of trolls didnt think you strong enough to beat Dwarves."
[/message]
[message]
speaker=Kaleh
message= _ "Where did you come from?"
[/message]
[message]
speaker=Zurg
message= _ "There many secret tunnels that you sun dwellers not know of. Only troll know. We smarter than you think. Zurg would have killed dwarves himself, but he was just sent back from where real fighting is."
[/message]
[message]
speaker=Zhul
message= _ "The real fighting? I thought that was what we were waist-deep in?"
[/message]
[message]
speaker=Zurg
# wmllint: local spelling tricksy
message= _ "While you fighting, another clan of dwarves sneak around and flank us. They tricksy like that. We must leave you and run back to defend women and little trolls. Dwarves never give up, many trolls die today, very hard fighting. But dwarves make mistake, you stronger than dwarf or troll thought. You trolls secret weapon."
[/message]
[message]
speaker=Nym
message= _ "How do you mean?"
[/message]
[message]
speaker=Zurg
message= _ "Right before battle, we find secret passage just to the north leading straight to big dwarf stronghold. Hiding in stronghold is big important dwarf, directing the battle. Dwarves always think they best fighters around so they leave only a few dwarves guarding their stronghold. If you elves can break through dwarf defenses and kill dwarf chieftain, then it will do much damage to dwarves, make them afraid and confused, easy prey for trolls. You do this and we can drive them back. Then troll leader can help show you how to return to surface. You come with Zurg, he show you way to secret passage."
[/message]
[message]
speaker=Elyssa
message= _ "Their knowledge of these tunnels is uncanny. I could have sworn a minute ago that that wall was solid rock."
[/message]
[if]
[have_unit]
id=Cloaked Figure
[/have_unit]
[then]
[message]
speaker=Kaleh
message= _ "Wait a moment, Zurg, we must deal with this mysterious cloaked figure before we can follow you."
[/message]
#set new scenario objectives
[objectives]
summary= _ "New Objectives:"
show=yes
[objective]
description= _ "Defeat the Cloaked Figure"
condition=win
[/objective]
[objective]
description= _ "Death of Kaleh, Nym or Zhul"
condition=lose
[/objective]
[gold_carryover]
bonus=yes
carryover_percentage=40
[/gold_carryover]
[/objectives]
[set_variable]
name=delay_victory
value=1
[/set_variable]
[/then]
[else]
[message]
speaker=Kaleh
message= _ "It sounds like our work is not yet done. Very well, gather yourselves together, we must follow Zurg."
[/message]
[endlevel]
result=victory
next_scenario=06b_In_the_Domain_of_the_Dwarves
bonus=yes
{NEW_GOLD_CARRYOVER 40}
[/endlevel]
[/else]
[/if]
#enddef
#define GRIMNIR_CONVERSATION
[terrain]
x=24,23,22,21,20,19,18
y=44,45,45,46,46,46,45
terrain=Uu
[/terrain]
[delay]
time=200
[/delay]
{NAMED_NOTRAIT_UNIT 5 (Dwarvish Pathfinder) 21 46 (Grimnir) ( _ "Grimnir")}
[remove_shroud]
x=20-26
y=43-46
side=1
[/remove_shroud]
[redraw]
side=1
[/redraw]
# wmllint: recognize Grimnir
[message]
speaker=Grimnir
message= _ "Congratulations, some of me boys didnt think you could beat the trolls."
[/message]
[message]
speaker=Kaleh
message= _ "Where did you come from?"
[/message]
[message]
speaker=Grimnir
message= _ "Dont think you know all the tunnels and passages that twist through these caves, elf. I would have killed him myself, but I was just sent back from the main front of the battle."
[/message]
[message]
speaker=Zhul
message= _ "The front? I thought this was the front."
[/message]
[message]
speaker=Grimnir
message= _ "While you were fighting, a separate clan of trolls sneaked around our sentries and flanked us, attacking our supply depots. There are more of those stinking buggers than we had originally thought. To tell you the truth, we are hard pressed. Were going to have to pull back all our forces in these caves to reinforce the back lines. But your victory here has produced a unexpected opportunity."
[/message]
[message]
speaker=Nym
message= _ "It has?"
[/message]
[message]
speaker=Grimnir
message= _ "Right before the trolls overran this area of the mines, our scouts had found an old tunnel south of here that leads almost straight to the main lair of this tribe of trolls. We believe that protected in the lair is one of their main leaders who is directing the battle. We were going to try to sneak in and lead a surprise attack, but frankly we didnt have enough dwarves to spare. If by using this passage you can sneak past their front lines and kill him, then it will throw the trolls into disarray and relieve the pressure on our front lines. If you do this our King has promised to help you return your people to the sunlit lands. When youre ready Ill show you the way. Its not far."
[/message]
[message]
speaker=Elyssa
message= _ "Their knowledge of these tunnels is uncanny. I could have sworn a minute ago that that wall was solid rock."
[/message]
[if]
[have_unit]
id=Cloaked Figure
[/have_unit]
[then]
[message]
speaker=Kaleh
message= _ "Wait a moment, Grimnir, we must deal with this mysterious cloaked figure before we can follow you."
[/message]
[objectives]
summary= _ "New Objectives:"
show=yes
[objective]
description= _ "Defeat the Cloaked Figure"
condition=win
[/objective]
[objective]
description= _ "Death of Kaleh, Nym or Zhul"
condition=lose
[/objective]
[gold_carryover]
bonus=yes
carryover_percentage=40
[/gold_carryover]
[/objectives]
[set_variable]
name=delay_victory
value=2
[/set_variable]
[/then]
[else]
[message]
speaker=Kaleh
message= _ "It sounds like our work is not yet done. Very well, gather yourselves together, we must follow Grimnir."
[/message]
[endlevel]
result=victory
next_scenario=06a_In_the_Tunnels_of_the_Trolls
bonus=yes
{NEW_GOLD_CARRYOVER 40}
[/endlevel]
[/else]
[/if]
#enddef
#send in troll messenger to tell player to continue north
@ -3141,21 +3215,9 @@
animate=yes
[/kill]
[set_variable]
name=dead_dwarf_leaders
add=1
[/set_variable]
[if]
[variable]
name=dead_dwarf_leaders
numerical_equals=2
[/variable]
[then]
{ZURG_CONVERSATION}
[/then]
[/if]
[fire_event]
name=troll_victory_test
[/fire_event]
[/event]
[event]
@ -3175,21 +3237,9 @@
animate=yes
[/kill]
[set_variable]
name=dead_dwarf_leaders
add=1
[/set_variable]
[if]
[variable]
name=dead_dwarf_leaders
numerical_equals=2
[/variable]
[then]
{ZURG_CONVERSATION}
[/then]
[/if]
[fire_event]
name=troll_victory_test
[/fire_event]
[/event]
#send in dwarf messenger to tell player to continue south
@ -3206,26 +3256,9 @@
message= _ "Arrghh!!"
[/message]
[kill]
id=Thungar
animate=yes
[/kill]
[set_variable]
name=dead_troll_leaders
add=1
[/set_variable]
[if]
[variable]
name=dead_troll_leaders
numerical_equals=2
[/variable]
[then]
{GRIMNIR_CONVERSATION}
[/then]
[/if]
[fire_event]
name=dwarf_victory_test
[/fire_event]
[/event]
[event]
@ -3245,21 +3278,9 @@
animate=yes
[/kill]
[set_variable]
name=dead_troll_leaders
add=1
[/set_variable]
[if]
[variable]
name=dead_troll_leaders
numerical_equals=2
[/variable]
[then]
{GRIMNIR_CONVERSATION}
[/then]
[/if]
[fire_event]
name=dwarf_victory_test
[/fire_event]
[/event]
# Event 29: Return of the Assassin/Cloaked Figure (same guy, two names)
@ -3290,7 +3311,7 @@
type=Dark Assassin2
id=Cloaked Figure
name= _ "Cloaked Figure"
side=9
side=7
x,y=$dark_assassin_location.x,$dark_assassin_location.y
[modifications]
{TRAIT_INTELLIGENT}

View file

@ -8,6 +8,8 @@ Version 1.9.9+svn:
* A Small Favor, part 1: used 24 hour ToD.
* Son of the Black Eye:
* To the Harbor of Tirigaz: used 24 hour ToD.
* Under the Burning Suns
* Subterranean Struggle: no longer possible to win by allowing allies to die
* Graphics:
* New Animations: