Skip to content

Commit

Permalink
DM: Set facings for scenario start and dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
sigurdfdragon authored and GregoryLundberg committed Nov 30, 2017
1 parent 86ebdef commit 12c0442
Show file tree
Hide file tree
Showing 20 changed files with 125 additions and 4 deletions.
Expand Up @@ -29,15 +29,17 @@

[unit]
{METHOR}
x,y=22,17
x,y=21,16
[/unit]
{MODIFY_UNIT (side=1) facing nw}
[/event]
{STARTING_VILLAGES 1 12}

[side]
type=Goblin Pillager
id=Grogor-Tuk
name= _ "Grogor-Tuk"
facing=se
side=2
canrecruit=yes
recruit=Wolf Rider,Orcish Grunt
Expand Down
Expand Up @@ -29,6 +29,7 @@
type=Orcish Warrior
id=Urthaka-Tan
name= _ "Urthaka-Tan"
facing=se
side=2
canrecruit=yes
#ifdef HARD
Expand Down Expand Up @@ -98,6 +99,7 @@
#############################
[event]
name=start
{MODIFY_UNIT (id=Delfador) facing sw}
[message]
speaker=narrator
message=_"Delfador followed Methor’s advice, and headed over the hills towards Weldyn. But the roads were more dangerous than he had expected..."
Expand All @@ -110,20 +112,23 @@
y=22,21,21,20,21,21,21,21,22
[/move_unit_fake]
{NAMED_UNIT 1 Bowman 31 22 Derrin _"Derrin" (role=bowman_advisor)}
{FACING ne}
[move_unit_fake]
side=1
type=Horseman
x=23,24,25,26,27,28,29,30,30
y=22,21,21,20,21,21,21,21,22
[/move_unit_fake]
{NAMED_UNIT 1 Horseman 30 22 Feorth _"Feorth" ()}
{FACING ne}
[move_unit_fake]
side=1
type=Horseman
x=29,29,29,30,30
y=18,19,20,20,21
[/move_unit_fake]
{NAMED_UNIT 1 Horseman 30 21 Gar _"Gar" ()}
{FACING ne}
[message]
speaker=Derrin
message=_"Beware, stranger! I come to warn you — a party of orcs have moved into the Great Valley to the north, and have been raiding the lands around. If you press on westward, you will have to fight them."
Expand Down
5 changes: 5 additions & 0 deletions data/campaigns/Delfadors_Memoirs/scenarios/04_Leollyn.cfg
Expand Up @@ -46,12 +46,14 @@
[/role]
[/do]
[/repeat]
{MODIFY_UNIT (side=1) facing sw}
[/event]

[side]
type=Orcish Slayer
id=Hagha-Tan
name= _ "Hagha-Tan"
facing=se
side=2
controller=ai
canrecruit=yes
Expand Down Expand Up @@ -82,6 +84,7 @@
id=Leollyn
name= _ "Leollyn"
profile=portraits/leollyn.png
facing=se
gender=male
side=3
controller=ai
Expand All @@ -96,7 +99,9 @@
team_name=allies
user_team_name= _ "Loyalists"
{UNIT 3 Spearman 2 18 (ai_special=guardian)}
{FACING se}
{UNIT 3 Spearman 4 18 (ai_special=guardian)}
{FACING se}
{FLAG_VARIANT loyalist}
[/side]

Expand Down
Expand Up @@ -30,15 +30,21 @@
team_name=allies
user_team_name= _ "Loyalists"
controller=ai
# guards are facing outward
{UNIT 2 (Royal Guard) 23 18 (ai_special=guardian)}
{FACING nw}
{UNIT 2 (Royal Guard) 29 18 (ai_special=guardian)}
{FACING ne}
{UNIT 2 (Royal Guard) 24 22 (ai_special=guardian)}
{FACING sw}
{UNIT 2 (Royal Guard) 30 21 (ai_special=guardian)}
{FACING se}
{FLAG_VARIANT loyalist}
[/side]

[event]
name=start
{MODIFY_UNIT (id=Delfador) facing nw}
[scroll_to_unit]
id=Delfador
[/scroll_to_unit]
Expand All @@ -48,6 +54,7 @@
id=Leollyn
name=_ "Leollyn"
profile=portraits/leollyn.png
facing=ne
gender=male
x=27
y=21
Expand All @@ -57,6 +64,7 @@
type=Cavalryman
id=Gurcyn
name=_ "Gurcyn"
facing=se
x=25
y=20
side=2
Expand All @@ -78,6 +86,7 @@
side=2
[/unit]
{MOVE_UNIT (id=Lionel) 26 19}
{MODIFY_UNIT (id=Lionel) facing se}
# wmllint: recognize Lionel

[message]
Expand Down
Expand Up @@ -31,13 +31,15 @@
[recall]
id=Lionel
[/recall]
{MODIFY_UNIT (side=1) facing ne}
[/event]
{STARTING_VILLAGES 1 4}

[side]
type=Rogue
id=Garrath
name= _ "Garrath"
facing=se
side=2
canrecruit=yes
recruit=Thief,Poacher,Thug
Expand All @@ -55,6 +57,7 @@
type=Bandit
id=Harold
name=_ "Harold"
facing=sw
side=3
canrecruit=yes
recruit=Footpad,Poacher,Thug
Expand Down
Expand Up @@ -116,9 +116,11 @@

[event]
name=start
{MODIFY_UNIT (id=Delfador) facing nw}
[recall]
id=Lionel
[/recall]
{MODIFY_UNIT (id=Lionel) facing se}
[message]
speaker=Delfador
message=_"These swamps seem to go on forever!"
Expand Down
6 changes: 6 additions & 0 deletions data/campaigns/Delfadors_Memoirs/scenarios/08_Ur_Thorodor.cfg
Expand Up @@ -29,9 +29,11 @@
[/side]
[event]
name=prestart
{MODIFY_UNIT (id=Delfador) facing nw}
[recall]
id=Lionel
[/recall]
{MODIFY_UNIT (id=Lionel) facing se}
[/event]
{STARTING_VILLAGES 1 4}
#### /Delfador's code ####
Expand All @@ -40,6 +42,7 @@
type=Ancient Wose
id=Ur-Thorodor
name= _ "Ur-Thorodor"
facing=sw
side=2
canrecruit=yes
controller=ai
Expand Down Expand Up @@ -93,6 +96,7 @@
speaker=Ur-Thorodor
message=_"I am Ur-Thorodor, eldest of the forest. Who are you human-creatures? You may not trespass on our island."
[/message]
{MODIFY_UNIT (id=Delfador) facing ne}
[message]
speaker=Delfador
message=_"Ur-Thorodor, please let us pass! We are on a vital mission for King Garard, in the interests of all living things in Wesnoth."
Expand Down Expand Up @@ -251,6 +255,7 @@ But as Delfador’s meditation deepened, and the woses sank into their timeless
[unit]
type=Goblin Knight
id=Gurbash
facing=sw
side=3
x,y=24,11
[/unit]
Expand All @@ -264,6 +269,7 @@ But as Delfador’s meditation deepened, and the woses sank into their timeless
[unit]
type=Orcish Warrior
id=Pruark
facing=sw
side=3
x,y=23,10
[/unit]
Expand Down
Expand Up @@ -27,6 +27,7 @@
type=Necromancer
id=Iliah-Malal
name= _ "Iliah-Malal"
facing=se
side=2
canrecruit=yes
controller=ai
Expand Down Expand Up @@ -86,13 +87,15 @@
[event]
name=start

{MODIFY_UNIT (id=Delfador) facing nw}
[role]
type=Ghost,Wraith,Shadow,Ghoul,Necrophage,Ghast
role=dead_sidekick
[/role]
[recall]
role=dead_sidekick
[/recall]
{MODIFY_UNIT (role=dead_sidekick) facing nw}

[message]
speaker=Iliah-Malal
Expand All @@ -109,6 +112,7 @@
message=_"Have not you yourself traveled between the realms of life and death? Behold!"
[/message]

{MODIFY_UNIT (id=Iliah-Malal) facing nw}
# open the portal
[sound]
name=rumble.wav
Expand Down Expand Up @@ -166,6 +170,7 @@
[unit]
type=Thug
id=Vobryn
facing=se
side=2
x,y=7,4
[/unit]
Expand All @@ -178,6 +183,7 @@
[unit]
type=Dark Adept
id=Tur
facing=se
side=2
x,y=6,5
[/unit]
Expand All @@ -190,9 +196,11 @@
[unit]
type=Thug
id=Meorraent
facing=se
side=2
x,y=6,4
[/unit]
{MODIFY_UNIT (id=Iliah-Malal) facing se}

[message]
speaker=Delfador
Expand Down
5 changes: 5 additions & 0 deletions data/campaigns/Delfadors_Memoirs/scenarios/11_Wasteland.cfg
Expand Up @@ -33,6 +33,7 @@
type=Orcish Warlord
id=Tish Golub
name= _ "Tish Golub"
facing=ne
side=2
canrecruit=yes
controller=ai
Expand All @@ -52,13 +53,16 @@
user_team_name= _ "Elves"
# wmllint: recognize Chantal
type=Elvish Druid
facing=sw
{GOLD 100 100 100}
[ai]
caution=0.5
aggression=0.0 # let player do the dirty work
[/ai]
{NAMED_UNIT 3 (Elvish Ranger) 21 12 (Istelimir) ( _ "Istelimir") (ai_special=guardian)}
{FACING se}
{NAMED_UNIT 3 (Elvish Ranger) 33 11 (Atellas) ( _ "Atellas") (ai_special=guardian)}
{FACING sw}
{FLAG_VARIANT wood-elvish}
hidden=yes
[/side]
Expand All @@ -79,6 +83,7 @@
[/disallow_recruit]
{SAVE_UNDEAD_VETERANS}
{TELEPORT_UNIT id=Delfador 33 20}
{MODIFY_UNIT (id=Delfador) facing nw}
[/event]

#############################
Expand Down
Expand Up @@ -100,12 +100,14 @@
x,y=32,2
[/recall]
{MAKE_HERO Chantal}
{MODIFY_UNIT (side=1) facing sw}
[/event]

[side]
type=Orcish Warlord
id=Upgar
name= _ "Upgar"
facing=se
side=2
controller=ai
canrecruit=yes
Expand All @@ -131,7 +133,7 @@
type=Death Knight
id=Dirator
name=_ "Dirator"

facing=sw
side=3
team_name=enemies
user_team_name= _ "Undead"
Expand Down Expand Up @@ -162,6 +164,7 @@
type=Lieutenant
id=Niktor
name= _ "Niktor"
facing=se
side=4
controller=ai
canrecruit=yes
Expand Down Expand Up @@ -189,6 +192,7 @@
type=White Mage
id=Arpus
name= _ "Arpus"
facing=nw
side=5
controller=ai
canrecruit=yes
Expand Down Expand Up @@ -586,6 +590,7 @@
[/else]
[/role]

{MODIFY_UNIT (role=Teacher) facing nw} # most likely direction
[message]
role=Teacher
message= _ "What are you doing here, disturbing our peace and concentration?"
Expand Down
Expand Up @@ -44,6 +44,7 @@
persistent=yes
[unit]
{KALENZ}
facing=sw
x=26
y=2
canrecruit=yes
Expand All @@ -67,6 +68,7 @@
type=Orcish Warlord
id=Knafa-ord
name=_ "Knafa-ord"
facing=ne
side=2
canrecruit=yes
#ifdef EASY
Expand Down Expand Up @@ -101,6 +103,7 @@
type=Orcish Warlord
id=Tan-drul
name=_ "Tan-drul"
facing=se
side=3
canrecruit=yes

Expand Down Expand Up @@ -136,6 +139,7 @@
type=Orcish Warlord
id=Krardul
name=_ "Krardul"
facing=sw
side=4
canrecruit=yes

Expand Down Expand Up @@ -171,6 +175,7 @@
type=Elvish Captain
id=Clartakis
name=_ "Clartakis"
facing=nw
side=5
canrecruit=yes
recruit={ELVES}
Expand Down

0 comments on commit 12c0442

Please sign in to comment.