Revert "LoW Chapter 1: Wrapped [event] actionWML in [command]."

This reverts commit ddb528faf4.
This commit is contained in:
Charles Dang 2016-08-07 10:18:30 +11:00
parent 0e03992f7d
commit 31c31a674f
3 changed files with 733 additions and 812 deletions

View file

@ -123,24 +123,20 @@ This is the story of Kalenz, Landar, and of the Elves in the first days of the h
[filter_second]
id=Kalenz
[/filter_second]
[command]
[message]
speaker=second_unit
message= _ "You trifled with the wrong elf!"
[/message]
[/command]
[message]
speaker=second_unit
message= _ "You trifled with the wrong elf!"
[/message]
[/event]
[event]
name=last breath
[filter_second]
id=Landar
[/filter_second]
[command]
[message]
speaker=second_unit
message= _ "Take that, you orcish scum!"
[/message]
[/command]
[message]
speaker=second_unit
message= _ "Take that, you orcish scum!"
[/message]
[/event]
#### /Kalenz side ####
@ -345,187 +341,179 @@ This is the story of Kalenz, Landar, and of the Elves in the first days of the h
[event]
name=start
[command]
[message]
id=Kalenz
message= _ "Orcs are pressing on us from all directions! To arms!"
[/message]
[message]
id=Velon
message= _ "Hold, Kalenz. The Kalian council should discuss our response. Maybe we can reach an agreement with them!"
[/message]
[message]
id=Qumseh
message= _ "Surrender or die, tree-shaggers!"
[/message]
[message]
id=Velon
message= _ "They are too many. We have no choice but to submit!"
[/message]
[message]
id=Kalenz
message= _ "Elves must never surrender to these foul beasts! Who will fight them beside me?"
[/message]
[message]
#Changed the text from here on - The objectives changed from
#reaching the signpost and bonus for the death of a leader
#to death of an enemy leader for victory and bonus for not
#loosing velon.
id=Landar
message= _ "We will follow you, Kalenz — but where can we go?"
[/message]
[message]
id=Kalenz
message= _ "We must reach the elvish council in Kalian and enlist their help to recapture our home."
[/message]
[message]
id=Landar
message= _ "We are surrounded!"
[/message]
[message]
id=Kalenz
message= _ "Then we must storm one of the orcs outposts to break the encirclement before more enemies arrive!"
[/message]
[message]
id=Anduilas
message= _ "Very well, Kalenz — lead us!"
[/message]
[message]
id=Kalenz
message= _ "Orcs are pressing on us from all directions! To arms!"
[/message]
[message]
id=Velon
message= _ "Hold, Kalenz. The Kalian council should discuss our response. Maybe we can reach an agreement with them!"
[/message]
[message]
id=Qumseh
message= _ "Surrender or die, tree-shaggers!"
[/message]
[message]
id=Velon
message= _ "They are too many. We have no choice but to submit!"
[/message]
[message]
id=Kalenz
message= _ "Elves must never surrender to these foul beasts! Who will fight them beside me?"
[/message]
[message]
#Changed the text from here on - The objectives changed from
#reaching the signpost and bonus for the death of a leader
#to death of an enemy leader for victory and bonus for not
#loosing velon.
id=Landar
message= _ "We will follow you, Kalenz — but where can we go?"
[/message]
[message]
id=Kalenz
message= _ "We must reach the elvish council in Kalian and enlist their help to recapture our home."
[/message]
[message]
id=Landar
message= _ "We are surrounded!"
[/message]
[message]
id=Kalenz
message= _ "Then we must storm one of the orcs outposts to break the encirclement before more enemies arrive!"
[/message]
[message]
id=Anduilas
message= _ "Very well, Kalenz — lead us!"
[/message]
[scroll_to_unit]
id=Kalenz
[/scroll_to_unit]
[/command]
[scroll_to_unit]
id=Kalenz
[/scroll_to_unit]
[/event]
[event]
name=start
[command]
[objectives]
side=0
[objective]
description= _ "Kill any of the orc leaders"
condition=win
[/objective]
[objective]
{BONUS_OBJECTIVE_CAPTION}
description= _ "Keep Velon alive"+{EARLY_FINISH_BONUS_FOOTNOTE}
condition=win
[/objective]
[objective]
description= _ "Death of Kalenz"
condition=lose
[/objective]
[objective]
description= _ "Death of Landar"
condition=lose
[/objective]
[objectives]
side=0
[objective]
description= _ "Kill any of the orc leaders"
condition=win
[/objective]
[objective]
{BONUS_OBJECTIVE_CAPTION}
description= _ "Keep Velon alive"+{EARLY_FINISH_BONUS_FOOTNOTE}
condition=win
[/objective]
[objective]
description= _ "Death of Kalenz"
condition=lose
[/objective]
[objective]
description= _ "Death of Landar"
condition=lose
[/objective]
{TURNS_RUN_OUT}
{TURNS_RUN_OUT}
[gold_carryover]
carryover_percentage=40
[/gold_carryover]
[/objectives]
[/command]
[gold_carryover]
carryover_percentage=40
[/gold_carryover]
[/objectives]
[/event]
[event]
name=attack
[command]
[filter_second]
[filter_side]
[has_unit]
id=Velon
[/has_unit]
[/filter_side]
[/filter_second]
[filter_second]
[filter_side]
[has_unit]
id=Velon
[/has_unit]
[/filter_side]
[/filter_second]
{INCIDENTAL_MUSIC the_king_is_dead.ogg}
{INCIDENTAL_MUSIC the_king_is_dead.ogg}
[message]
id=Velon
message= _ "We surrender!"
[/message]
[message]
id=Graur-Tan
message= _ "Did I mention that we take no prisoners? Die!"
[/message]
#TODO Maybe that must change for multiplayer
[message]
id=Velon
message= _ "Kalenz was right and I was wrong. Go; join Kalenz while yet you can. I and the remaining elders will cover your retreat as best we may."
[/message]
[/command]
[message]
id=Velon
message= _ "We surrender!"
[/message]
[message]
id=Graur-Tan
message= _ "Did I mention that we take no prisoners? Die!"
[/message]
#TODO Maybe that must change for multiplayer
[message]
id=Velon
message= _ "Kalenz was right and I was wrong. Go; join Kalenz while yet you can. I and the remaining elders will cover your retreat as best we may."
[/message]
[/event]
[event]
name=victory
[command]
#[message]
# id=Kalenz
#TODO ESR
# message= _ "And Velon? What about him?"
# [show_if]
# [have_unit]
# id=Velon
# [/have_unit]
# [/show_if]
#[/message]
[message]
id=Velon
message= _ "Flee, Kalenz... find vengeance for us!"
[/message]
[message]
id=Kalenz
message= _ "Velon, I swear on the life of Irdya that I will not let you be forgotten while elves yet draw breath to sing."
[show_if]
#[message]
# id=Kalenz
#TODO ESR
# message= _ "And Velon? What about him?"
# [show_if]
# [have_unit]
# id=Velon
# [/have_unit]
# [/show_if]
#[/message]
[message]
id=Velon
message= _ "Flee, Kalenz... find vengeance for us!"
[/message]
[message]
id=Kalenz
message= _ "Velon, I swear on the life of Irdya that I will not let you be forgotten while elves yet draw breath to sing."
[show_if]
[have_unit]
id=Velon
[/have_unit]
[/show_if]
[/message]
[message]
id=Velon
message= _ "Swords will aid us more than songs, Kalenz; you saw that before I."
[/message]
[message]
id=Kalenz
message= _ "Swordsmen you shall have, as swiftly as I can find them and return."
[show_if]
[have_unit]
id=Velon
[/have_unit]
[/show_if]
[/message]
[message]
id=Landar
message= _ "Velon has fallen. He counseled weakness, but did not deserve such an ugly death. We shall return with swords to avenge him!"
[show_if]
[not]
[have_unit]
id=Velon
[/have_unit]
[/show_if]
[/message]
[message]
id=Velon
message= _ "Swords will aid us more than songs, Kalenz; you saw that before I."
[/message]
[message]
id=Kalenz
message= _ "Swordsmen you shall have, as swiftly as I can find them and return."
[show_if]
[have_unit]
id=Velon
[/have_unit]
[/show_if]
[/message]
[/not]
[/show_if]
[/message]
#[message]
# id=Kalenz
#TODO ESR
# message= _ "Let's move on!"
#[/message]
[message]
id=Landar
message= _ "Velon has fallen. He counseled weakness, but did not deserve such an ugly death. We shall return with swords to avenge him!"
[show_if]
[not]
[have_unit]
id=Velon
[/have_unit]
[/not]
[/show_if]
[/message]
#[message]
# id=Kalenz
#TODO ESR
# message= _ "Let's move on!"
#[/message]
[message]
canrecruit=yes
race=orc
message= _ "You wont get very far! After them!"
[/message]
[kill]
id=Velon
animate=no
[/kill]
[/command]
[message]
canrecruit=yes
race=orc
message= _ "You wont get very far! After them!"
[/message]
[kill]
id=Velon
animate=no
[/kill]
[/event]
[event]
@ -535,12 +523,10 @@ This is the story of Kalenz, Landar, and of the Elves in the first days of the h
race=orc
[/filter]
[command]
[message]
speaker=unit
message= _ "Curse you, tree-shaggers! We will feed your young to our wolves!"
[/message]
[/command]
[message]
speaker=unit
message= _ "Curse you, tree-shaggers! We will feed your young to our wolves!"
[/message]
[/event]
[event]
@ -550,42 +536,40 @@ This is the story of Kalenz, Landar, and of the Elves in the first days of the h
race=orc
[/filter]
[command]
[message]
speaker=second_unit
message= _ "What is this? The orc held plunder!"
[/message]
[message]
speaker=second_unit
message= _ "What is this? The orc held plunder!"
[/message]
#ifdef MULTIPLAYER
{LOOT 25 1}
{LOOT 25 2}
{LOOT 25 1}
{LOOT 25 2}
#else
{LOOT 50 1}
{LOOT 50 1}
#endif
[if]
[have_unit]
id=Velon
[/have_unit]
[then]
[endlevel]
result=victory
[if]
[have_unit]
id=Velon
[/have_unit]
[then]
[endlevel]
result=victory
#ifdef MULTIPLAYER
bonus=0.5
bonus=0.5
#else
bonus=yes
bonus=yes
#endif
{NEW_GOLD_CARRYOVER 40}
[/endlevel]
[/then]
[else]
[endlevel]
result=victory
bonus=no
{NEW_GOLD_CARRYOVER 40}
[/endlevel]
[/else]
[/if]
[/command]
{NEW_GOLD_CARRYOVER 40}
[/endlevel]
[/then]
[else]
[endlevel]
result=victory
bonus=no
{NEW_GOLD_CARRYOVER 40}
[/endlevel]
[/else]
[/if]
[/event]
[event]
@ -594,13 +578,11 @@ This is the story of Kalenz, Landar, and of the Elves in the first days of the h
id=Velon
[/filter]
[command]
{INCIDENTAL_MUSIC sad.ogg}
[message]
id=Velon
message= _ "Flee, Kalenz... Our hopes ride with you..."
[/message]
[/command]
{INCIDENTAL_MUSIC sad.ogg}
[message]
id=Velon
message= _ "Flee, Kalenz... Our hopes ride with you..."
[/message]
[/event]
{campaigns/Legend_of_Wesmere/utils/deaths.cfg}

View file

@ -59,18 +59,16 @@
# wmllint: validate-on
[event]
name=prestart
[command]
[recall]
id=Anduilas
x=20
y=6
[/recall]
[recall]
id=Arkildur
x=19
y=5
[/recall]
[/command]
[recall]
id=Anduilas
x=20
y=6
[/recall]
[recall]
id=Arkildur
x=19
y=5
[/recall]
[/event]
### /Kalenz's code ###
@ -125,64 +123,62 @@
{OLURFS_LAND}
[/filter]
[command]
[message]
id=Olurf
message= _ "Those stinking trolls ha stepped on <i>our</i> land!"
[/message]
[message]
id=Olurf
message= _ "Those stinking trolls ha stepped on <i>our</i> land!"
[/message]
[if]
[variable]
name=offended_by_elves
boolean_equals=yes
[/variable]
# the elves have stepped onto already
[then]
[modify_side]
side=3
team_name=dwarves
user_team_name= _ "Enemies"
[/modify_side]
[if]
[variable]
name=offended_by_elves
boolean_equals=yes
[/variable]
# the elves have stepped onto already
[then]
[modify_side]
side=3
team_name=dwarves
user_team_name= _ "Enemies"
[/modify_side]
#ifdef EASY
[fire_event]
name=dwarves_defend_their_territory
[/fire_event]
[fire_event]
name=dwarves_defend_their_territory
[/fire_event]
#endif
#ifdef NORMAL
[fire_event]
name=dwarves_defend_their_territory
[/fire_event]
[fire_event]
name=dwarves_defend_their_territory
[/fire_event]
#endif
#ifdef HARD
[fire_event]
name=dwarves_kill_elves_and_trolls
[/fire_event]
[fire_event]
name=dwarves_kill_elves_and_trolls
[/fire_event]
#endif
[/then]
[else]
[modify_side]
side=3
team_name=player
user_team_name= _ "Player"
[/modify_side]
[/then]
[else]
[modify_side]
side=3
team_name=player
user_team_name= _ "Player"
[/modify_side]
#ifdef EASY
[fire_event]
name=dwarves_kill_trolls
[/fire_event]
[fire_event]
name=dwarves_kill_trolls
[/fire_event]
#endif
#ifdef NORMAL
[fire_event]
name=dwarves_kill_trolls
[/fire_event]
[fire_event]
name=dwarves_kill_trolls
[/fire_event]
#endif
#ifdef HARD
[fire_event]
name=dwarves_kill_trolls
[/fire_event]
[fire_event]
name=dwarves_kill_trolls
[/fire_event]
#endif
[/else]
[/if]
[/command]
[/else]
[/if]
[/event]
# Elves have stepped on Olurf's land.
@ -194,74 +190,72 @@
{OLURFS_LAND}
[/filter]
[command]
[message]
id=Olurf
message= _ "Those lying elves have stepped on <i>our</i> land!"
[/message]
[message]
id=Kalenz
message= _ "Fight to subdue, and do not kill unless you must. We have foes enough as it is without making blood enemies of these dwarves."
[/message]
[message]
id=Olurf
message= _ "Those lying elves have stepped on <i>our</i> land!"
[/message]
[message]
id=Kalenz
message= _ "Fight to subdue, and do not kill unless you must. We have foes enough as it is without making blood enemies of these dwarves."
[/message]
[store_side]
side=3
variable=olurf_side
[/store_side]
[if]
[variable]
name=olurf_side.team_name
equals=player
[/variable]
[then]
[modify_side]
side=3
team_name=dwarves
user_team_name= _ "Enemies"
[/modify_side]
[store_side]
side=3
variable=olurf_side
[/store_side]
[if]
[variable]
name=olurf_side.team_name
equals=player
[/variable]
[then]
[modify_side]
side=3
team_name=dwarves
user_team_name= _ "Enemies"
[/modify_side]
#ifdef EASY
[fire_event]
name=dwarves_defend_their_territory
[/fire_event]
[fire_event]
name=dwarves_defend_their_territory
[/fire_event]
#endif
#ifdef NORMAL
[fire_event]
#TODO think about making it like HARD
name=dwarves_defend_their_territory
[/fire_event]
[fire_event]
#TODO think about making it like HARD
name=dwarves_defend_their_territory
[/fire_event]
#endif
#ifdef HARD
[fire_event]
name=dwarves_kill_elves_and_trolls
[/fire_event]
[fire_event]
name=dwarves_kill_elves_and_trolls
[/fire_event]
#endif
[/then]
[else]
[modify_side]
side=3
team_name=trolls
user_team_name= _ "Enemies"
[/modify_side]
[/then]
[else]
[modify_side]
side=3
team_name=trolls
user_team_name= _ "Enemies"
[/modify_side]
#ifdef EASY
[fire_event]
name=dwarves_defend_their_territory
[/fire_event]
[fire_event]
name=dwarves_defend_their_territory
[/fire_event]
#endif
#ifdef NORMAL
[fire_event]
name=dwarves_kill_elves
[/fire_event]
[fire_event]
name=dwarves_kill_elves
[/fire_event]
#endif
#ifdef HARD
[fire_event]
name=dwarves_kill_elves
[/fire_event]
[fire_event]
name=dwarves_kill_elves
[/fire_event]
#endif
[/else]
[/if]
{CLEAR_VARIABLE olurf_side}
{VARIABLE offended_by_elves yes}
[/command]
[/else]
[/if]
{CLEAR_VARIABLE olurf_side}
{VARIABLE offended_by_elves yes}
[/event]
# start dwarven ai code
@ -341,70 +335,60 @@
[event]
name=dwarves_watch_the_show
first_time_only=no
[command]
{CLEAN_AI 3}
{MODIFY_AI_ADD_ASPECT 3 recruitment_instructions {AI_NO_RECRUITMENT} }
{ADD_AVOID_STAY_AT_OLURFS_LAND}
[message]
id=Olurf
message= _ "It should be rare sport to watch this... Just be sure not to trespass on our land."
[/message]
[/command]
{CLEAN_AI 3}
{MODIFY_AI_ADD_ASPECT 3 recruitment_instructions {AI_NO_RECRUITMENT} }
{ADD_AVOID_STAY_AT_OLURFS_LAND}
[message]
id=Olurf
message= _ "It should be rare sport to watch this... Just be sure not to trespass on our land."
[/message]
[/event]
[event]
name=dwarves_kill_elves
first_time_only=no
[command]
{CLEAN_AI 3}
{ADD_GOAL_KILL_ELVES 3}
[message]
id=Olurf
message= _ "Up axes, and death to elves!"
[/message]
[/command]
{CLEAN_AI 3}
{ADD_GOAL_KILL_ELVES 3}
[message]
id=Olurf
message= _ "Up axes, and death to elves!"
[/message]
[/event]
[event]
name=dwarves_kill_trolls
first_time_only=no
[command]
{CLEAN_AI 3}
{ADD_GOAL_KILL_TROLLS 3}
[message]
id=Olurf
message= _ "Up axes, and death to trolls!"
[/message]
[/command]
{CLEAN_AI 3}
{ADD_GOAL_KILL_TROLLS 3}
[message]
id=Olurf
message= _ "Up axes, and death to trolls!"
[/message]
[/event]
[event]
name=dwarves_kill_elves_and_trolls
first_time_only=no
[command]
{CLEAN_AI 3}
{ADD_GOAL_KILL_ELVES 3}
{ADD_GOAL_KILL_TROLLS 3}
[message]
id=Olurf
message= _ "Up axes, and kill all the interlopers!"
[/message]
[/command]
{CLEAN_AI 3}
{ADD_GOAL_KILL_ELVES 3}
{ADD_GOAL_KILL_TROLLS 3}
[message]
id=Olurf
message= _ "Up axes, and kill all the interlopers!"
[/message]
[/event]
[event]
name=dwarves_defend_their_territory
first_time_only=no
[command]
{CLEAN_AI 3}
{ADD_AVOID_STAY_AT_OLURFS_LAND}
{ADD_GOAL_KILL_TRESPASSERS 3}
{ADD_STAGE_RETREAT_TO_OLURFS_LAND 3}
[message]
id=Olurf
message= _ "Defend our bounds! Slay all who trespass them!"
[/message]
[/command]
{CLEAN_AI 3}
{ADD_AVOID_STAY_AT_OLURFS_LAND}
{ADD_GOAL_KILL_TRESPASSERS 3}
{ADD_STAGE_RETREAT_TO_OLURFS_LAND 3}
[message]
id=Olurf
message= _ "Defend our bounds! Slay all who trespass them!"
[/message]
[/event]
#undef CLEAN_AI
@ -418,9 +402,7 @@
[event]
name=scenario_end
[command]
{CLEAR_VARIABLE offended_by_elves}
[/command]
{CLEAR_VARIABLE offended_by_elves}
[/event]
### /Olurf's Code ###
@ -478,78 +460,73 @@
#### Objectives and corresponding events ####
[event]
name=start
[message]
id=Kalenz
message= _ "I had hoped to avoid these paths... The eastern way is through dwarvish territory and is shorter. I pray the dwarves will grant us safe passage, since the other path is through troll territory..."
[/message]
[message]
id=Olurf
message= _ "Not even in yer dreams, elf. These are dwarvish lands, and troubles we want no part of nip at yer heels. Get out and stay out!"
[/message]
[message]
id=Landar
message= _ "Our troubles will be yours, too, whether either of us will it or not. The orcs have come down from the north like a flood; if we squabble among ourselves they will feast on our discord."
[/message]
[message]
id=Olurf
message= _ "Bah. More smooth words and trickery, by my beard. We know yer kind... and who needs yer help anyway, weaklings? Leave now, or feel my axe! That same kiss of steel will greet all intruders. Anyone who sets foot on the eastern bank o this river will rue the day he was born!"
[/message]
[message]
id=Landar
message= _ "I cannot see how trolls could be any less friendly."
[/message]
[message]
id=Kalenz
message= _ "Hmm... Perhaps the dwarves intransigence can serve our purpose. Onwards, and no matter what you do, do <i>not</i> step on the eastern bank of the river!"
[/message]
[command]
[message]
id=Kalenz
message= _ "I had hoped to avoid these paths... The eastern way is through dwarvish territory and is shorter. I pray the dwarves will grant us safe passage, since the other path is through troll territory..."
[/message]
[message]
id=Olurf
message= _ "Not even in yer dreams, elf. These are dwarvish lands, and troubles we want no part of nip at yer heels. Get out and stay out!"
[/message]
[message]
id=Landar
message= _ "Our troubles will be yours, too, whether either of us will it or not. The orcs have come down from the north like a flood; if we squabble among ourselves they will feast on our discord."
[/message]
[message]
id=Olurf
message= _ "Bah. More smooth words and trickery, by my beard. We know yer kind... and who needs yer help anyway, weaklings? Leave now, or feel my axe! That same kiss of steel will greet all intruders. Anyone who sets foot on the eastern bank o this river will rue the day he was born!"
[/message]
[message]
id=Landar
message= _ "I cannot see how trolls could be any less friendly."
[/message]
[message]
id=Kalenz
message= _ "Hmm... Perhaps the dwarves intransigence can serve our purpose. Onwards, and no matter what you do, do <i>not</i> step on the eastern bank of the river!"
[/message]
{HIGHLIGHT_IMAGE 18 37 scenery/signpost.png ()}
{HIGHLIGHT_IMAGE 18 37 scenery/signpost.png ()}
[fire_event]
name=dwarves_watch_the_show
[/fire_event]
[/command]
[fire_event]
name=dwarves_watch_the_show
[/fire_event]
[/event]
[event]
name=prestart
[command]
[objectives]
side=0
[objectives]
side=0
[objective]
description= _ "Kalenz or Landar must reach the signpost"
condition=win
[/objective]
[objective]
description= _ "Kalenz or Landar must reach the signpost"
condition=win
[/objective]
[objective]
{ALTERNATIVE_OBJECTIVE_CAPTION}
description= _ "Defeat Grugl"
condition=win
[/objective]
[objective]
description= _ "Death of Kalenz"
condition=lose
[/objective]
[objective]
description= _ "Death of Landar"
condition=lose
[/objective]
[objective]
description= _ "Death of Olurf"
condition=lose
[/objective]
[objective]
{ALTERNATIVE_OBJECTIVE_CAPTION}
description= _ "Defeat Grugl"
condition=win
[/objective]
[objective]
description= _ "Death of Kalenz"
condition=lose
[/objective]
[objective]
description= _ "Death of Landar"
condition=lose
[/objective]
[objective]
description= _ "Death of Olurf"
condition=lose
[/objective]
{TURNS_RUN_OUT}
{TURNS_RUN_OUT}
[gold_carryover]
bonus=yes
carryover_percentage=80
[/gold_carryover]
[/objectives]
[/command]
[gold_carryover]
bonus=yes
carryover_percentage=80
[/gold_carryover]
[/objectives]
[/event]
#define ENDSPEECH SPEAKER_NAME
@ -580,9 +557,7 @@
[event]
name=prestart
[command]
{VARIABLE killed_by_elves 0}
[/command]
{VARIABLE killed_by_elves 0}
[/event]
[event]
@ -594,20 +569,16 @@
[filter_second]
race=elf
[/filter_second]
[command]
#TODO does this need the variable to exist?
[set_variable]
name=killed_by_elves
add=1
[/set_variable]
[/command]
#TODO does this need the variable to exist?
[set_variable]
name=killed_by_elves
add=1
[/set_variable]
[/event]
[event]
name=scenario_end
[command]
{CLEAR_VARIABLE killed_by_elves}
[/command]
{CLEAR_VARIABLE killed_by_elves}
[/event]
[event]
@ -623,18 +594,16 @@
[/and]
[/filter]
[command]
{ENDSPEECH unit}
{ENDSPEECH unit}
[endlevel]
result=victory
[endlevel]
result=victory
#ifdef MULTIPLAYER
bonus=0.5
bonus=0.5
#else
bonus=yes
bonus=yes
#endif
[/endlevel]
[/command]
[/endlevel]
[/event]
[event]
@ -645,16 +614,13 @@
[filter_second]
race=dwarf
[/filter_second]
[message]
id=Grugl
# wmllint: local spelling Urgh
message= _ "Urgh! Grugl tried to eat dwarves, but choked on their sharp nasty axes."
[/message]
[command]
[message]
id=Grugl
# wmllint: local spelling Urgh
message= _ "Urgh! Grugl tried to eat dwarves, but choked on their sharp nasty axes."
[/message]
{ENDSPEECH "Kalenz"}
[/command]
{ENDSPEECH "Kalenz"}
[/event]
[event]
@ -665,24 +631,21 @@
[filter_second]
race=elf
[/filter_second]
[message]
id=Grugl
message= _ "Urgh! Grugl wanted tasty elf-meat, but choked on their nasty pointy spears!"
[/message]
[command]
[message]
id=Grugl
message= _ "Urgh! Grugl wanted tasty elf-meat, but choked on their nasty pointy spears!"
[/message]
{ENDSPEECH secondary_unit}
{ENDSPEECH secondary_unit}
#undef ENDSPEECH
[endlevel]
result=victory
[endlevel]
result=victory
#ifdef MULTIPLAYER
bonus=0.5
bonus=0.5
#else
bonus=yes
bonus=yes
#endif
[/endlevel]
[/command]
[/endlevel]
[/event]
{campaigns/Legend_of_Wesmere/utils/deaths.cfg}

View file

@ -26,19 +26,17 @@
[event]
name=prestart
[command]
{campaigns/Legend_of_Wesmere/maps/Kalian_map.cfg}
{campaigns/Legend_of_Wesmere/maps/Kalian_map.cfg}
[replace_map]
x=9-53
y=9-53
{LOW_MAP Kalian.map}
[/replace_map]
[shift_labels]
x=-8
y=-9
[/shift_labels]
[/command]
[replace_map]
x=9-53
y=9-53
{LOW_MAP Kalian.map}
[/replace_map]
[shift_labels]
x=-8
y=-9
[/shift_labels]
[/event]
{LOW_MASK 03_Kalian_under_Attack.mask (-7) (-7)}
@ -221,13 +219,11 @@
#ifdef MULTIPLAYER
[event]
name=prestart
[command]
[capture_village]
side=4
x=1-26
y=1-999
[/capture_village]
[/command]
[capture_village]
side=4
x=1-26
y=1-999
[/capture_village]
[/event]
#endif
@ -237,15 +233,13 @@
[filter]
id=Urudin
[/filter]
[command]
[message]
speaker=unit
message= _ "Chief, the cursed tree-shaggers are defeating us!"
[/message]
[fire_event]
name=orcs_select_strategy
[/fire_event]
[/command]
[message]
speaker=unit
message= _ "Chief, the cursed tree-shaggers are defeating us!"
[/message]
[fire_event]
name=orcs_select_strategy
[/fire_event]
[/event]
#### /Side3 code ####
@ -329,12 +323,10 @@
[filter]
id=Mutaf-uru
[/filter]
[command]
[message]
speaker=unit
message= _ "We die, but more come after us, Orcs will rule all!"
[/message]
[/command]
[message]
speaker=unit
message= _ "We die, but more come after us, Orcs will rule all!"
[/message]
[/event]
#### /Side5 code ####
@ -419,40 +411,38 @@
[event]
name=prestart
[command]
{VARIABLE orc_reserve_used no}
{VARIABLE orc_battlefield_strategy 'wait'}
[unit]
type="Orcish Slayer"
id=Urudin
name= _ "Urudin"
side=5
canrecruit=yes
x=20
y=10
hitpoints=45
max_hitpoints=45
[/unit]
[unit]
type=Orcish Warlord
id=Murudin
name= _ "Murudin"
side=6
canrecruit=yes
x=3
y=12
[/unit]
[unit]
type=Orcish Warlord
id=Mutaf-uru
name= _ "Mutaf-uru"
profile=portraits/orcs/grunt-2.png
side=7
canrecruit=yes
x=9
y=4
[/unit]
[/command]
{VARIABLE orc_reserve_used no}
{VARIABLE orc_battlefield_strategy 'wait'}
[unit]
type="Orcish Slayer"
id=Urudin
name= _ "Urudin"
side=5
canrecruit=yes
x=20
y=10
hitpoints=45
max_hitpoints=45
[/unit]
[unit]
type=Orcish Warlord
id=Murudin
name= _ "Murudin"
side=6
canrecruit=yes
x=3
y=12
[/unit]
[unit]
type=Orcish Warlord
id=Mutaf-uru
name= _ "Mutaf-uru"
profile=portraits/orcs/grunt-2.png
side=7
canrecruit=yes
x=9
y=4
[/unit]
[/event]
[event]
@ -462,76 +452,74 @@
y=4
id=Urudin
[/filter]
[command]
[if]
[variable]
name=orc_reserve_used
boolean_equals=no
[/variable]
[then]
{CLEAR_FOG 1 7 3 4}
{CLEAR_FOG 2 7 3 4}
{CLEAR_FOG 3 7 3 4}
{CLEAR_FOG 4 7 3 4}
[message]
id=Mutaf-uru
message=_ "Good, you are returned. What news is there?"
[/message]
[message]
id=Urudin
message=_ "The elvish scum refused to surrender, Warlord. We have begun the attack, as planned."
[/message]
[message]
id=Mutaf-uru
message=_ "Were you able to breach their citadel?"
[/message]
{ORC_BATTLEFIELD_EVALUATION}
[if]
{ORC_BATTLEFIELD_EVALUATION_SUCCESS}
[then]
[message]
id=Urudin
message=_ "Yes. We slaughtered them in great numbers."
[/message]
[/then]
[else]
[if]
{ORC_BATTLEFIELD_EVALUATION_FAILURE}
[then]
[message]
id=Urudin
message=_ "No, our attack was repulsed."
[/message]
[/then]
[else]
[message]
id=Urudin
message=_ "They resisted us fiercely; the battle is not yet done."
[/message]
[/else]
[/if]
[/else]
[/if]
{CLEAR_VARIABLE orc_battlefield_evaluation}
[fire_event]
name=orcs_select_strategy
[/fire_event]
{UNCLEAR_FOG}
[/then]
[/if]
[message]
id=Mutaf-uru
# Grubr is from LoW #7
message=_ "Go, report this news to the warlord Grubr."
[/message]
[message]
id=Urudin
message=_ "I obey."
[/message]
[kill]
id=Urudin
[/kill]
[/command]
[if]
[variable]
name=orc_reserve_used
boolean_equals=no
[/variable]
[then]
{CLEAR_FOG 1 7 3 4}
{CLEAR_FOG 2 7 3 4}
{CLEAR_FOG 3 7 3 4}
{CLEAR_FOG 4 7 3 4}
[message]
id=Mutaf-uru
message=_ "Good, you are returned. What news is there?"
[/message]
[message]
id=Urudin
message=_ "The elvish scum refused to surrender, Warlord. We have begun the attack, as planned."
[/message]
[message]
id=Mutaf-uru
message=_ "Were you able to breach their citadel?"
[/message]
{ORC_BATTLEFIELD_EVALUATION}
[if]
{ORC_BATTLEFIELD_EVALUATION_SUCCESS}
[then]
[message]
id=Urudin
message=_ "Yes. We slaughtered them in great numbers."
[/message]
[/then]
[else]
[if]
{ORC_BATTLEFIELD_EVALUATION_FAILURE}
[then]
[message]
id=Urudin
message=_ "No, our attack was repulsed."
[/message]
[/then]
[else]
[message]
id=Urudin
message=_ "They resisted us fiercely; the battle is not yet done."
[/message]
[/else]
[/if]
[/else]
[/if]
{CLEAR_VARIABLE orc_battlefield_evaluation}
[fire_event]
name=orcs_select_strategy
[/fire_event]
{UNCLEAR_FOG}
[/then]
[/if]
[message]
id=Mutaf-uru
# Grubr is from LoW #7
message=_ "Go, report this news to the warlord Grubr."
[/message]
[message]
id=Urudin
message=_ "I obey."
[/message]
[kill]
id=Urudin
[/kill]
[/event]
# triggered by slayer dying, or slayer reaching his boss, or Kalenz arriving
@ -539,153 +527,145 @@
name=orcs_select_strategy
first_time_only=no
[command]
[if]
[variable]
name=orc_reserve_used
boolean_equals=no
[/variable]
[then]
# evaluate the battlefield. TODO Crab : consider using fai for evaluation
{ORC_BATTLEFIELD_EVALUATION}
[if]
[variable]
name=orc_reserve_used
boolean_equals=no
[/variable]
[then]
# evaluate the battlefield. TODO Crab : consider using fai for evaluation
{ORC_BATTLEFIELD_EVALUATION}
[if]
{ORC_BATTLEFIELD_EVALUATION_SUCCESS}
[then]
{VARIABLE orc_battlefield_strategy 'attack'}
[/then]
[/if]
[if]
{ORC_BATTLEFIELD_EVALUATION_SUCCESS}
[then]
{VARIABLE orc_battlefield_strategy 'attack'}
[/then]
[/if]
[if]
{ORC_BATTLEFIELD_EVALUATION_FAILURE}
[then]
{VARIABLE orc_battlefield_strategy 'defend'}
[/then]
[/if]
{CLEAR_VARIABLE orc_battlefield_evaluation}
[if]
{ORC_BATTLEFIELD_EVALUATION_FAILURE}
[then]
{VARIABLE orc_battlefield_strategy 'defend'}
[/then]
[/if]
{CLEAR_VARIABLE orc_battlefield_evaluation}
# if fog is gone (thus, Kalenz is here), then do not wait
[if]
# wmllint: recognize Kalenz
[have_unit]
id=Kalenz
side=1
[/have_unit]
[variable]
name=orc_battlefield_strategy
equals='wait'
[/variable]
[then]
{DEBUG_MSG ("$orc_battlefield_strategy changed to attack")}
{VARIABLE orc_battlefield_strategy 'attack'}
[/then]
[/if]
# if fog is gone (thus, Kalenz is here), then do not wait
[if]
# wmllint: recognize Kalenz
[have_unit]
id=Kalenz
side=1
[/have_unit]
[variable]
name=orc_battlefield_strategy
equals='wait'
[/variable]
[then]
{DEBUG_MSG ("$orc_battlefield_strategy changed to attack")}
{VARIABLE orc_battlefield_strategy 'attack'}
[/then]
[/if]
[switch]
variable=orc_battlefield_strategy
[case]
value='wait'
# do nothing
[/case]
[case]
value='attack'
{CLEAR_FOG 1 7 3 4}
[fire_event]
name=orc_commit_reserves
[/fire_event]
[fire_event]
name=orc_attack
[/fire_event]
{UNCLEAR_FOG}
[/case]
[case]
value='defend'
{CLEAR_FOG 1 7 3 4}
[fire_event]
name=orc_commit_reserves
[/fire_event]
[fire_event]
name=orc_defend
[/fire_event]
{UNCLEAR_FOG}
[/case]
[/switch]
[/then]
[/if]
[/command]
[switch]
variable=orc_battlefield_strategy
[case]
value='wait'
# do nothing
[/case]
[case]
value='attack'
{CLEAR_FOG 1 7 3 4}
[fire_event]
name=orc_commit_reserves
[/fire_event]
[fire_event]
name=orc_attack
[/fire_event]
{UNCLEAR_FOG}
[/case]
[case]
value='defend'
{CLEAR_FOG 1 7 3 4}
[fire_event]
name=orc_commit_reserves
[/fire_event]
[fire_event]
name=orc_defend
[/fire_event]
{UNCLEAR_FOG}
[/case]
[/switch]
[/then]
[/if]
[/event]
[event]
name=orc_commit_reserves
first_time_only=yes
[command]
{VARIABLE orc_reserve_used yes}
[modify_side]
side=6
{GOLD 200 320 420}
[/modify_side]
[modify_side]
side=7
{GOLD 200 240 380}
[/modify_side]
[/command]
{VARIABLE orc_reserve_used yes}
[modify_side]
side=6
{GOLD 200 320 420}
[/modify_side]
[modify_side]
side=7
{GOLD 200 240 380}
[/modify_side]
[/event]
[event]
name=orc_attack
first_time_only=no
[command]
[message]
id=Mutaf-uru
message= _ "These elves are weak, mere meat for my wolves! Get them!"
[/message]
{MODIFY_AI_ADD_GOAL 6 (
[goal]
[criteria]
race=elf
[/criteria]
value=2
[/goal]
)}
{MODIFY_AI_ADD_GOAL 7 (
[goal]
[criteria]
race=elf
[/criteria]
value=2
[/goal]
)}
[/command]
[message]
id=Mutaf-uru
message= _ "These elves are weak, mere meat for my wolves! Get them!"
[/message]
{MODIFY_AI_ADD_GOAL 6 (
[goal]
[criteria]
race=elf
[/criteria]
value=2
[/goal]
)}
{MODIFY_AI_ADD_GOAL 7 (
[goal]
[criteria]
race=elf
[/criteria]
value=2
[/goal]
)}
[/event]
[event]
name=orc_defend
first_time_only=no
[command]
[message]
id=Mutaf-uru
message= _ "Cursed tree-shaggers and their filthy bows! We shall await the main army."
[/message]
{MODIFY_AI_ADD_SIMPLE_ALWAYS_ASPECT 6 aggression 0.3}
{MODIFY_AI_ADD_SIMPLE_ALWAYS_ASPECT 7 aggression 0.3}
{MODIFY_AI_ADD_SIMPLE_ALWAYS_ASPECT 6 caution 0.4}
{MODIFY_AI_ADD_SIMPLE_ALWAYS_ASPECT 7 caution 0.4}
{MODIFY_AI_ADD_GOAL 4 (
[goal]
[criteria]
id=Mutaf-uru
[/criteria]
value=200
[/goal]
)}
{MODIFY_AI_ADD_GOAL 7 (
[goal]
[criteria]
id=Mutaf-uru
[/criteria]
value=200
[/goal]
)}
[/command]
[message]
id=Mutaf-uru
message= _ "Cursed tree-shaggers and their filthy bows! We shall await the main army."
[/message]
{MODIFY_AI_ADD_SIMPLE_ALWAYS_ASPECT 6 aggression 0.3}
{MODIFY_AI_ADD_SIMPLE_ALWAYS_ASPECT 7 aggression 0.3}
{MODIFY_AI_ADD_SIMPLE_ALWAYS_ASPECT 6 caution 0.4}
{MODIFY_AI_ADD_SIMPLE_ALWAYS_ASPECT 7 caution 0.4}
{MODIFY_AI_ADD_GOAL 4 (
[goal]
[criteria]
id=Mutaf-uru
[/criteria]
value=200
[/goal]
)}
{MODIFY_AI_ADD_GOAL 7 (
[goal]
[criteria]
id=Mutaf-uru
[/criteria]
value=200
[/goal]
)}
[/event]
#### /Orc AI ####
@ -694,98 +674,94 @@
[event]
name=time over
[command]
[fire_event]
name=kalenz_arrives
[/fire_event]
[/command]
[fire_event]
name=kalenz_arrives
[/fire_event]
[/event]
[event]
name=kalenz_arrives
[command]
{LOAD_SUBMAP 7-56 7-56 2 2 Kalian.map}
{LOW_MASK_IN_EVENT 03_Kalian_under_Attack.mask (-5) (-5)}
{LOAD_SUBMAP 7-56 7-56 2 2 Kalian.map}
{LOW_MASK_IN_EVENT 03_Kalian_under_Attack.mask (-5) (-5)}
#redestroy the village destroyed by Urudrin
[terrain]
terrain = Rp^Dr
x,y=23,17
[/terrain]
[redraw]
[/redraw]
#redestroy the village destroyed by Urudrin
[terrain]
terrain = Rp^Dr
x,y=23,17
[/terrain]
[redraw]
[/redraw]
{REPLACE_SCENARIO_MUSIC the_city_falls.ogg}
{APPEND_MUSIC wanderer.ogg}
{APPEND_MUSIC suspense.ogg}
{APPEND_MUSIC siege_of_laurelmor.ogg}
{APPEND_MUSIC silvan_sanctuary.ogg}
{REPLACE_SCENARIO_MUSIC the_city_falls.ogg}
{APPEND_MUSIC wanderer.ogg}
{APPEND_MUSIC suspense.ogg}
{APPEND_MUSIC siege_of_laurelmor.ogg}
{APPEND_MUSIC silvan_sanctuary.ogg}
[modify_turns]
[modify_turns]
#ifdef EASY
add=35
add=35
#endif
#ifdef NORMAL
add=30
add=30
#endif
#ifdef HARD
add=25
add=25
#endif
[/modify_turns]
[/modify_turns]
[unit]
{KALENZ_YOUNG}
side=1
x=49
y=32
[/unit]
[unit]
{LANDAR_YOUNG}
[unit]
{KALENZ_YOUNG}
side=1
x=49
y=32
[/unit]
[unit]
{LANDAR_YOUNG}
#ifndef MULTIPLAYER
side=1
side=1
#else
side=2
side=2
#endif
x=49
y=36
[/unit]
[recall]
id=Anduilas
side=1
x=49
y=33
[/recall]
[recall]
id=Arkildur
x=49
y=36
[/unit]
[recall]
id=Anduilas
side=1
x=49
y=33
[/recall]
[recall]
id=Arkildur
#ifndef MULTIPLAYER
side=1
side=1
#else
side=2
side=2
#endif
x=49
y=37
[/recall]
x=49
y=37
[/recall]
[modify_side]
side=1
fog=no
[/modify_side]
[modify_side]
side=3
fog=no
[/modify_side]
[modify_side]
side=1
fog=no
[/modify_side]
[modify_side]
side=3
fog=no
[/modify_side]
#ifdef MULTIPLAYER
[modify_side]
side=2
fog=no
[/modify_side]
[modify_side]
side=4
fog=no
[/modify_side]
[modify_side]
side=2
fog=no
[/modify_side]
[modify_side]
side=4
fog=no
[/modify_side]
#endif
[/command]
[/event]
[event]