Skip to content

Commit

Permalink
EI S4a, S4b: code formatting cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Mar 21, 2015
1 parent f85767a commit 4c547f2
Show file tree
Hide file tree
Showing 2 changed files with 124 additions and 64 deletions.
97 changes: 63 additions & 34 deletions data/campaigns/Eastern_Invasion/scenarios/04a_An_Elven_Alliance.cfg
@@ -1,4 +1,5 @@
#textdomain wesnoth-ei

[scenario]
id=04a_An_Elven_Alliance
name= _ "An Elven Alliance"
Expand All @@ -8,7 +9,7 @@

{DEFAULT_SCHEDULE_MORNING}

{INTRO_AND_SCENARIO_MUSIC elf-land.ogg silvan_sanctuary.ogg}
{SCENARIO_MUSIC silvan_sanctuary.ogg}
{EXTRA_SCENARIO_MUSIC traveling_minstrels.ogg}
{EXTRA_SCENARIO_MUSIC elvish-theme.ogg}

Expand All @@ -17,10 +18,9 @@
{AMBIENT_BIRDS 33 17}
{AMBIENT_BIRDS 29 7 }

{campaigns/Eastern_Invasion/utils/deaths.cfg}

[story]
[part]
music=elf-land.ogg
story=_ "But Gweddry and Dacyn were to find no respite within the borders of Wesnoth. They marched out of the foothills of the Estmarks into an unknown forest..."
{EI_BIGMAP}
[/part]
Expand All @@ -29,46 +29,41 @@
{EI_TRACK {JOURNEY_04A_NEW} }

[side]
type=Lieutenant
id=Gweddry
name= _ "Gweddry"
side=1
canrecruit=yes
controller=human
team_name=good
user_team_name=_"Allies"
{GOLD 200 150 100}
team_name=good
user_team_name= _ "Allies"
{FLAG_VARIANT loyalist}
[/side]

{AI_CONTROLLER () 1 2 ()}
type=Lieutenant
id=Gweddry
name= _ "Gweddry"
canrecruit=yes
[/side]

[side]
type=Elvish Ranger
id=Volas
name= _ "Volas"
side=2
canrecruit=yes
controller=ai
recruit=Elvish Fighter,Elvish Shaman,Elvish Scout
{GOLD 140 90 70}
income=-2
team_name=good
user_team_name=_"Allies"
user_team_name= _ "Allies"
{FLAG_VARIANT wood-elvish}

type=Elvish Ranger
id=Volas
name= _ "Volas"
canrecruit=yes

[ai]
passive_leader=yes
[/ai]
{FLAG_VARIANT wood-elvish}
[/side]

{STARTING_VILLAGES 2 999}

[side]
type=Orcish Warrior
id=Gruga-Har
name= _ "Gruga-Har"
side=3
canrecruit=yes
controller=ai
#ifdef EASY
recruit=Troll Whelp,Wolf Rider,Orcish Grunt,Orcish Archer
Expand All @@ -77,15 +72,23 @@
#endif
{GOLD 180 220 270}
team_name=orcs
user_team_name=_"Orcs"
user_team_name= _ "Orcs"
{FLAG_VARIANT6 ragged}

type=Orcish Warrior
id=Gruga-Har
name= _ "Gruga-Har"
canrecruit=yes

[ai]
aggression=0.7
leader_value=5
[/ai]
[/side]

{AI_CONTROLLER () 1 2 ()}

{STARTING_VILLAGES 2 999}
{STARTING_VILLAGES 3 3}

#ifndef EASY
Expand Down Expand Up @@ -129,76 +132,89 @@

{AI_CONTROLLER_NOTE}
[/objectives]

[recall]
id=Dacyn
[/recall]
[/event]

[event]
name=start
#hide Gruga-Har until he arrives
[hide_unit]
x=17
y=3
id=Gruga-Har
[/hide_unit]
[recall]
id=Dacyn
[/recall]

[message]
speaker=Volas
message= _ "Greetings, travelers! Welcome to my realm."
[/message]

[message]
speaker=Gweddry
message= _ "Would it be possible for us to rest in your lands for a while? We have been pursued by fell undead, although they did not dare follow us into the forest... yet."
[/message]

[message]
speaker=Volas
message= _ "Certainly."
[/message]

[message]
speaker=Dacyn
message= _ "Good. Now, you should be warned: this undead warlord is very powerful. If you choose to fight, even if you are victorious, few will survive. I invite you to join us, and head north."
[/message]

[message]
speaker=Volas
message= _ "I thank you for your offer. But I will not leave my homeland. These undead cannot be as powerful as you say; I will fight them."
[/message]

[message]
speaker=Dacyn
message= _ "This is not a wise choice, but it is yours to make. If you will not join us, will you at least help us reach the northern outpost? We wish to warn our comrades there."
[/message]

[message]
speaker=Volas
message= _ "I will aid you. Although, I too, think that yours is the foolish choice. You should stay, and fight."
[/message]

[message]
speaker=Dacyn
message= _ "After we rest for a short while, we will leave. We have little time to spare."
[/message]
#Gruga-Har arrives

#Gruga-Har arrives
[move_unit_fake]
type=Orcish Warrior
side=3
x=17,17,17
y=1,2,3
[/move_unit_fake]
[unhide_unit]
[/unhide_unit]

[unhide_unit][/unhide_unit]

[message]
speaker=Gruga-Har
message= _ "Intruders!"
[/message]

[message]
speaker=Dacyn
message= _ "What? Orcs! Where did they come from?"
[/message]

[message]
speaker=Volas
message= _ "I know not. But they have made camp on the northern path. You will have to fight them to move on."
[/message]

[message]
speaker=Gruga-Har
message= _ "Bring forth the assassins, we may be able to poison them!"
[/message]

[move_unit_fake]
#ifdef HARD
type=Orcish Nightblade
Expand All @@ -209,6 +225,7 @@
x=18,18,18
y=1,2,3
[/move_unit_fake]

[unit]
#ifdef HARD
type=Orcish Nightblade
Expand All @@ -218,31 +235,35 @@
id=Nafga
name= _ "Nafga"
side=3
x=18
y=3
x,y=18,3
[/unit]

[message]
speaker=Nafga
# wmllint: local spelling warlordship
message= _ "Your Warlordship, I am the only assassin left! Do you want me to go poison their leader?"
[/message]

[message]
speaker=Gruga-Har
message= _ "Perfect! Go, into the forest!"
[/message]

[store_unit]
[filter]
id=Nafga
[/filter]
kill=yes
variable=nafga_store
[/store_unit]

[move_unit_fake]
type=$nafga_store.type
side=3
x=18,18,18,18
y=3,4,5,6
[/move_unit_fake]

[message]
speaker=Gweddry
message= _ "They have sent an assassin into the forest. We will have to be careful, and make sure he does not come out and attack us unexpectedly."
Expand Down Expand Up @@ -273,6 +294,7 @@
[filter]
id=Nafga
[/filter]

[message]
speaker=Nafga
message= _ "No! This is the first time I have failed a mission, and it will be my last!"
Expand All @@ -289,6 +311,7 @@
speaker=Gruga-Har
message= _ "My assassin is dead! The elves must pay, not for his death, but for stopping him in his mission!"
[/message]

[gold]
side=3
amount=50
Expand Down Expand Up @@ -320,18 +343,22 @@

[event]
name=enemies defeated

[message]
speaker=Volas
message= _ "We have defeated the orcs! Now you can rest before your journey."
[/message]

[message]
speaker=Dacyn
message= _ "We have not the time. This battle has wasted too much of it already. We must leave now."
[/message]

[message]
speaker=Volas
message= _ "Very well. I will send guides to lead you north to your allies."
[/message]

[endlevel]
result=victory
bonus=yes
Expand All @@ -340,4 +367,6 @@
[/event]

{FOREIGN_DEFEAT}

{campaigns/Eastern_Invasion/utils/deaths.cfg}
[/scenario]

0 comments on commit 4c547f2

Please sign in to comment.