Refactor uses of track files...

...so that all information about map backgrounds lives inside them,
rather than being exposed in scenario files.  This means that map
artists can cerate new maps without having to touch scenario text to
make the changes effective.
This commit is contained in:
Eric S. Raymond 2008-10-20 18:42:40 +00:00
parent ecca6fa975
commit 91c8a77f79
33 changed files with 182 additions and 55 deletions

View file

@ -78,9 +78,8 @@
story=_ "The orcs were first sighted from the north marches of the great forest of Wesmere."
[/part]
[part]
background="an-orcish-incursion-map.png"
show_title="yes"
{JOURNEY_STAGE1}
{TO_DEFEND_THE_FOREST}
[/part]
[/story]

View file

@ -73,9 +73,8 @@
story=_ "Soon they arrived at a region where the forest was cut through by many streams, only to find something unexpected."
[/part]
[part]
background="an-orcish-incursion-map.png"
show_title="yes"
{JOURNEY_STAGE2}
{TO_ASSASSINS}
[/part]
[/story]

View file

@ -70,9 +70,8 @@
story= _ "Perhaps, but not here. The tribe this camp housed was too small to impress fear on other orcs. Come next morning, the elves were prepared for battle."
[/part]
[part]
background="an-orcish-incursion-map.png"
show_title="yes"
{JOURNEY_STAGE3}
{TO_WASTELAND}
[/part]
[/story]

View file

@ -103,9 +103,8 @@
story=_ "When sunrise came, the elves moved into battle formations. Whatever waited in the slopes ahead, it would not find them unprepared."
[/part]
[part]
background="an-orcish-incursion-map.png"
show_title="yes"
{JOURNEY_STAGE4}
{TO_VALLEY_OF_TROLLS}
[/part]
[/story]

View file

@ -30,9 +30,8 @@
story=_ "Erlornas surveyed the siege from atop a small tree-covered hill overlooking the tower valley..."
[/part]
[part]
background="an-orcish-incursion-map.png"
show_title="yes"
{JOURNEY_STAGE5}
{TO_LINAERA_THE_QUICK}
[/part]
[/story]

View file

@ -148,9 +148,8 @@ Undead are resistant to physical attack. Use mages to attack the undead, and elv
[/event]
[story]
[part]
background="an-orcish-incursion-map.png"
show_title="yes"
{JOURNEY_STAGE6}
{TO_A_DETOUR_THROUGH_THE_SWAMP}
[/part]
[/story]
turns="24"

View file

@ -18,9 +18,8 @@
[story]
[part]
background="an-orcish-incursion-map.png"
show_title="yes"
{JOURNEY_STAGE7}
{TO_SHOWDOWN}
[/part]
[/story]

View file

@ -97,3 +97,40 @@
#enddef
# trackplacer: tracks end
#define TO_DEFEND_THE_FOREST
background="an-orcish-incursion-map.png"
{JOURNEY_STAGE1}
#enddef
#define TO_ASSASSINS
background="an-orcish-incursion-map.png"
{JOURNEY_STAGE2}
#enddef
#define TO_WASTELAND
background="an-orcish-incursion-map.png"
{JOURNEY_STAGE3}
#enddef
#define TO_VALLEY_OF_TROLLS
background="an-orcish-incursion-map.png"
{JOURNEY_STAGE4}
#enddef
#define TO_LINAERA_THE_QUICK
background="an-orcish-incursion-map.png"
{JOURNEY_STAGE5}
#enddef
#define TO_A_DETOUR_THROUGH_THE_SWAMP
background="an-orcish-incursion-map.png"
{JOURNEY_STAGE6}
#enddef
#define TO_SHOWDOWN
background="an-orcish-incursion-map.png"
{JOURNEY_STAGE7}
#enddef

View file

@ -39,8 +39,7 @@
[/part]
[part]
show_title=yes
background="misc/descent-into-darkness.png"
{JOURNEY_STAGE1}
{TO_SAVING_PARTHYN}
[/part]
[/story]

View file

@ -21,8 +21,7 @@
[/part]
[part]
show_title=yes
background="misc/descent-into-darkness.png"
{JOURNEY_STAGE2}
{TO_PEACEFUL_VALLEY}
[/part]
[/story]

View file

@ -18,8 +18,7 @@
[/part]
[part]
show_title=yes
background="misc/descent-into-darkness.png"
{JOURNEY_STAGE3}
{TO_A_HAUNTING_IN_WINTER}
[/part]
[/story]

View file

@ -21,8 +21,7 @@
[/part]
[part]
show_title=yes
background="misc/descent-into-darkness.png"
{JOURNEY_STAGE4}
{TO_BEGINNING_OF_THE_REVENGE}
[/part]
[/story]

View file

@ -24,8 +24,7 @@
[/part]
[part]
show_title=yes
background="misc/descent-into-darkness.png"
{JOURNEY_STAGE5}
{TO_ORC_WAR}
[/part]
[/story]

View file

@ -22,8 +22,7 @@
[/part]
[part]
show_title=yes
background="misc/descent-into-darkness.png"
{JOURNEY_STAGE6}
{TO_RETURN_TO_PARTHYN}
[/part]
[/story]

View file

@ -27,8 +27,7 @@
[/part]
[part]
show_title=yes
background="misc/descent-into-darkness.png"
{JOURNEY_STAGE7}
{TO_A_SMALL_FAVOR}
[/part]
[/story]

View file

@ -23,8 +23,7 @@
[/part]
[part]
show_title=yes
background="misc/descent-into-darkness.png"
{JOURNEY_STAGE8}
{TO_ALONE_AT_LAST}
[/part]
[/story]

View file

@ -26,8 +26,7 @@
[/part]
[part]
show_title=yes
background="misc/descent-into-darkness.png"
{JOURNEY_STAGE9}
{TO_DESCENT_INTO_DARKNESS}
[/part]
[/story]

View file

@ -328,3 +328,49 @@
#enddef
# trackplacer: tracks end
#define TO_SAVING_PARTHYN
background="misc/descent-into-darkness.png"
{JOURNEY_STAGE1}
#enddef
#define TO_PEACEFUL_VALLEY
background="misc/descent-into-darkness.png"
{JOURNEY_STAGE2}
#enddef
#define TO_A_HAUNTING_IN_WINTER
background="misc/descent-into-darkness.png"
{JOURNEY_STAGE3}
#enddef
#define TO_BEGINNING_OF_THE_REVENGE
background="misc/descent-into-darkness.png"
{JOURNEY_STAGE4}
#enddef
#define TO_ORC_WAR
background="misc/descent-into-darkness.png"
{JOURNEY_STAGE5}
#enddef
#define TO_RETURN_TO_PARTHYN
background="misc/descent-into-darkness.png"
{JOURNEY_STAGE6}
#enddef
#define TO_A_SMALL_FAVOR
background="misc/descent-into-darkness.png"
{JOURNEY_STAGE7}
#enddef
#define TO_ALONE_AT_LAST
background="misc/descent-into-darkness.png"
{JOURNEY_STAGE8}
#enddef
#define TO_DESCENT_INTO_DARKNESS
background="misc/descent-into-darkness.png"
{JOURNEY_STAGE9}
#enddef

View file

@ -38,8 +38,7 @@
[part]
show_title=yes
background="maps/wesnoth-liberty.png"
{JOURNEY_STAGE1}
{TO_THE_RAID}
[/part]
[/story]

View file

@ -13,8 +13,7 @@
[story]
[part]
show_title=yes
background="maps/wesnoth-liberty.png"
{JOURNEY_STAGE2}
{TO_CIVIL_DISOBEDIENCE}
[/part]
[/story]

View file

@ -14,8 +14,7 @@
[story]
[part]
show_title=yes
background="maps/wesnoth-liberty.png"
{JOURNEY_STAGE3}
{TO_A_STRATEGY_OF_HOPE}
[/part]
[/story]

View file

@ -23,8 +23,7 @@
[part]
music="knolls.ogg"
show_title=yes
background="maps/wesnoth-liberty.png"
{JOURNEY_STAGE4}
{TO_UNLAWFUL_ORDERS}
[/part]
[/story]

View file

@ -14,8 +14,7 @@
[story]
[part]
show_title=yes
background="maps/wesnoth-liberty.png"
{JOURNEY_STAGE5}
{TO_HIDE_AND_SEEK}
[/part]
[/story]

View file

@ -12,8 +12,7 @@
[story]
[part]
show_title=yes
background="maps/wesnoth-liberty.png"
{JOURNEY_STAGE6}
{TO_THE_GRAY_WOODS}
[/part]
[/story]

View file

@ -25,8 +25,7 @@
[/part]
[part]
show_title=yes
background="maps/wesnoth-liberty.png"
{JOURNEY_STAGE8}
{TO_THE_HUNTERS}
[/part]
[/story]

View file

@ -34,8 +34,7 @@
[part]
music="battle.ogg"
show_title=yes
background="maps/wesnoth-liberty.png"
{JOURNEY_STAGE8}
{TO_GLORY}
[/part]
[/story]

View file

@ -140,3 +140,44 @@
#enddef
# trackplacer: tracks end
#define TO_THE_RAID
background="maps/wesnoth-liberty.png"
{JOURNEY_STAGE1}
#enddef
#define TO_CIVIL_DISOBEDIENCE
background="maps/wesnoth-liberty.png"
{JOURNEY_STAGE2}
#enddef
#define TO_A_STRATEGY_OF_HOPE
background="maps/wesnoth-liberty.png"
{JOURNEY_STAGE3}
#enddef
#define TO_UNLAWFUL_ORDERS
background="maps/wesnoth-liberty.png"
{JOURNEY_STAGE4}
#enddef
#define TO_HIDE_AND_SEEK
background="maps/wesnoth-liberty.png"
{JOURNEY_STAGE5}
#enddef
#define TO_THE_GRAY_WOODS
background="maps/wesnoth-liberty.png"
{JOURNEY_STAGE6}
#enddef
#define TO_THE_HUNTERS
background="maps/wesnoth-liberty.png"
{JOURNEY_STAGE7}
#enddef
#define TO_GLORY
background="maps/wesnoth-liberty.png"
{JOURNEY_STAGE8}
#enddef

View file

@ -88,12 +88,14 @@
# a good example for future campaign developers.
#define TO_BREAKING_THE_CHAINS
{REVOLT_STAGE1}
background=maps/wesnoth.png
{REVOLT_STAGE1}
#enddef
# Infested Caves doesn't beed a separate map.
#define TO_TO_THE_MINES
background=maps/wesnoth.png
# "a few miles north" of the infested caves.
{REVOLT_STAGE2}
#enddef
@ -101,16 +103,19 @@
# Clearing The Mines and The Pursuit don't needs maps.
#define TO_OLD_FRIEND
background=maps/wesnoth.png
# Back at Knalga again
{REVOLT_STAGE1}
#enddef
#define TO_SETTLING_DISPUTES
background=maps/wesnoth.png
# Takes place at "Higbrook Pass", direction not specified.
{REVOLT_STAGE3}
#enddef
#define TO_ELVISH_PRINCESS
background=maps/wesnoth.png
# To the castle of Bitterhold, a day's march northwest of Knalga
{RESCUE_STAGE1}
#enddef
@ -118,21 +123,25 @@
# Introductions doesn't beed a separate map.
#define TO_STOLEN_GOLD
background=maps/wesnoth.png
# The trolls' trail leads south from Knalga
{RECOVERY_STAGE1}
#enddef
#define TO_EASTERN_FLANK
background=maps/wesnoth.png
# Direction not specified here. To the grim forttress of Angthurim!
{RECOVERY_STAGE2}
#enddef
#define TO_GET_THE_GOLD
background=maps/wesnoth.png
# Rakshas fled further south
{RECOVERY_STAGE2}
#enddef
#define TO_SHOWDOWN
background=maps/wesnoth.png
# Rakshas's trail curves west to the showdown.
{RECOVERY_STAGE3}
#enddef

View file

@ -1,3 +1,7 @@
# Note: this file is in trackplacer format, but because it uses
# multiple map files trackplacer cannot yet edit it directly.
# It's a placeholder for when we replace the SoTBE map.
# trackplacer: tracks begin
#define JOURNEY_STAGE1

View file

@ -53,9 +53,8 @@
[/part]
[part]
story=_ "Heeding the call of his amulet, Arne gathered such men as he could and hurried to Maghre to help Bjarn."
background=maps/wesnoth.png
show_title=yes
{JOURNEY_STAGE1}
{TO_ROOTING_OUT_A_MAGE}
[/part]
[/story]

View file

@ -16,9 +16,8 @@
[part]
music=frantic.ogg
story=_ "The pursuit had already run for several days when the kidnappers came to the bounds of the huge forest known as the Gray Woods. Ancient tales warned of lost souls haunting the wood, hunting and killing anyone brave enough to enter it."
background=maps/wesnoth.png
show_title=yes
{JOURNEY_STAGE2}
{TO_THE_CHASE}
[/part]
[part]
story=_ "Heedless of those rumors, Arne followed them. His only worry was that his horsemen would be at disadvantage if attacked in the forest."

View file

@ -49,9 +49,8 @@
[story]
[part]
background=maps/wesnoth.png
show_title=yes
{JOURNEY_STAGE3}
{TO_GUARDED_CASTLE}
[/part]
[/story]

View file

@ -38,3 +38,20 @@
#enddef
# trackplacer: tracks end
#define TO_ROOTING_OUT_A_MAGE
background=maps/wesnoth.png
{JOURNEY_STAGE1}
#enddef
#define TO_THE_CHASE
background=maps/wesnoth.png
{JOURNEY_STAGE2}
#enddef
#define TO_GUARDED_CASTLE
background=maps/wesnoth.png
{JOURNEY_STAGE3}
#enddef