Skip to content

Commit

Permalink
SoF S9 - some cleanup to the final scenario (#5215)
Browse files Browse the repository at this point in the history
* SoF S9 - some cleanup to the final scenario

* Sof S9 - change time to tint red, replace remove key, add some small dialog to explain the reduced recall cost
  • Loading branch information
doofus-01 committed Oct 19, 2020
1 parent 4a52e2b commit eb5a336
Show file tree
Hide file tree
Showing 2 changed files with 122 additions and 21 deletions.
12 changes: 6 additions & 6 deletions data/campaigns/Sceptre_of_Fire/maps/9_Caverns_of_Flame.map
Expand Up @@ -24,12 +24,12 @@ Xu, 5 Kte, Cte, Uu, Xu, Ql, Xu, Xu, Xu, Xu, Uh^Em, Uu^Tf, Uu, Uu^Em, Uu, Xu, Xu,
Xu, Cte, Uu, Re, Uu^Vu, Xu, Xu, Xu, Xu, Xu, Xu, Uh, Uu^Vu, Ur, Uu, Xu, Xu, Xu, Xu, Uu, Ur, Ur^Esd, Uu, Uu, Uu, Ql, Ql, Urb, Ql, Ql, Uu, Uu, Uu, Ur^Es, Uu^Es, Uu, Uu, Uu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu
Xu, Xu, Ur^Em, Re, Uu, Xu, Xu, Xu, Xu, Xu, Xu, Uh, Uh, Ur, Uu, Uh, Uu, Ql, Uu, Uu, Uu, Uu, Uu, Uu, Uu, Uu, Ur, Ql^Bs|, Uu, Uu, Uu, Uu, Ur, Ur, Ur^Es, Uu^Es, Uu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu
Xu, Xu, Uu^Em, Re^Em, Uu, Uu, Xu, Xu, Xu, Xu, Xu, Uh, Uu, Ur, Ur, Uu, Uu, Uu, Ur, Ur, Uu, Xu, Xu, Uu, Uu, Uu, Uu, Ur, Uu, Uu^Esd, Uu, Uu, Uu, Ur, Ur, Uu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Rb, Xu
Xu, Xu, Ur, Rb, Uu^Em, Uu, Xu, Xu, Xu, Xu, Uu^Es, Ql, Ql^Bs/, Ur^Es, Uu^Es,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qxu^Ii, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu
131 changes: 116 additions & 15 deletions data/campaigns/Sceptre_of_Fire/scenarios/9_Caverns_of_Flame.cfg
Expand Up @@ -10,7 +10,17 @@
{SCENARIO_MUSIC "the_dangerous_symphony.ogg"}
{EXTRA_SCENARIO_MUSIC "heroes_rite.ogg"}

{UNDERGROUND}
# {UNDERGROUND}
[time]
id=underground_SoF_volcano
name= _ "Underground"
image=misc/time-schedules/schedule-underground.png~CS(40,-40,-80)
lawful_bonus=-25
red=-5
green=-30
blue=-65
[/time]


[side]
type=Dwarvish Fighter
Expand All @@ -21,7 +31,7 @@
controller=human
shroud=yes
gold=100
recall_cost=1
{QUANTITY recall_cost 1 6 12}
income=4
team_name=dwarves
user_team_name= _ "Dwarves"
Expand Down Expand Up @@ -319,6 +329,10 @@
# [/filter]
# [/micro_ai]
# to delay the trolls
[set_variable]
name=gathor_tablet
value=whole
[/set_variable]
[store_unit]
[filter]
id=Harohk
Expand All @@ -340,29 +354,85 @@
x,y=30,21
halo=scenery/rune[1,1,1-glow,1,1,1].png:[200*6]
[/item]
[set_variable]
name=orcs_dead
value=0
[/set_variable]
[event]
name=die
first_time_only=no
id=tablet_count
[filter]
side=3,4
[/filter]
[set_variable]
name=orcs_dead
add=1
[/set_variable]
[if]
[variable]
name=orcs_dead
#ifdef EASY
equals=5
#endif
#ifdef NORMAL
equals=8
#endif
#ifdef HARD
equals=12
#endif
[/variable]
[then]
[fire_event]
name=gathor_fit
[/fire_event]
[/then]
[/if]
[/event]
[event]
name=attacker_hits
id=tablet_hit
[filter_second]
id=Gathor
[/filter_second]
[fire_event]
name=gathor_fit
[/fire_event]
[/event]
[event]
name=last_breath
id=tablet_last_breath
[filter]
id=Gathor
[/filter]
[fire_event]
name=gathor_fit
[/fire_event]
[/event]
[event]
name=gathor_fit
[message]
speaker=unit
message= _ "Argh, this hurts! But I've still got a trick up my sleeve..."
speaker=Gathor
message= _ "Argh, this is not good! But I've still got a trick up my sleeve..."
[/message]
[message]
speaker=narrator
message= _ "The wounded orc pulled out a stone tile with a glowing rune stamped on one side, and waived it at his foes."
message= _ "The angry orc pulled out a stone tile with a glowing rune stamped on one side, and waived it at his foes."
image=wesnoth-icon.png
[/message]
[message]
speaker=unit
message= _ "Nothing? Even this piece of magical garbage lets me down..."
speaker=Gathor
message= _ "Nothing!? Even this magical piece of crap lets me down!"
[/message]
[message]
speaker=narrator
message= _ "The frustrated orc flung the tile against the wall, where it shattered."
image=wesnoth-icon.png
[/message]
[set_variable]
name=gathor_tablet
value=broken
[/set_variable]
{QUAKE "rumble.ogg"}
[scroll_to]
x,y=27,20
Expand Down Expand Up @@ -420,6 +490,15 @@

{IS_LAST_SCENARIO}
[/objectives]
[remove_event]
id=tablet_last_breath
[/remove_event]
[remove_event]
id=tablet_hit
[/remove_event]
[remove_event]
id=tablet_count
[/remove_event]
[/event]
# set 2
[item]
Expand Down Expand Up @@ -519,9 +598,10 @@
x,y=29,31
[/filter]
[filter_condition]
[have_unit]
id=Gathor
[/have_unit]
[variable]
name=gathor_tablet
equals=whole
[/variable]
[or]
[have_unit]
id=Toomak
Expand All @@ -546,9 +626,10 @@
[/filter]
[filter_condition]
[not]
[have_unit]
id=Gathor
[/have_unit]
[variable]
name=gathor_tablet
equals=whole
[/variable]
[or]
[have_unit]
id=Toomak
Expand Down Expand Up @@ -743,7 +824,7 @@
side=1
[/recall]
# original version of this scenario recalled everyone at the start, but that makes this a slog.
# instead, recall cost is now just 1, and there are lots of little keeps scattered on the map.
# instead, recall cost is reduced, and there are lots of little keeps scattered on the map.
#ifdef __UNUSED__
[store_unit]
[filter]
Expand Down Expand Up @@ -918,6 +999,26 @@
{GENERIC_UNIT 2 {TYPE} 23 1}
#enddef

[event]
name=moveto
[filter]
id=Rugnur
[filter_location]
terrain=K*
[/filter_location]
[/filter]
[message]
speaker=Rugnur
message= _ "Friends, brothers, this is a desperate situation, I need your help. Can we negotiate pay after we're back to safety?"
[/message]
[message]
speaker=narrator
image=icons/coins_copper.png~XBRZ(4)
message= _ "Recall costs are reduced for the duration of the scenario."
[/message]
[/event]


#elves come (and orcs fix their bridge)
[event]
name=turn 6
Expand Down Expand Up @@ -1041,7 +1142,7 @@
name=enter_hex
[filter]
side=1
x,y=30,3-8
x,y=30-32,3-8
[/filter]
[filter_condition]
[variable]
Expand Down

0 comments on commit eb5a336

Please sign in to comment.