Some WML-cleanup.
This commit is contained in:
parent
444abffa2d
commit
1f5ab90b27
3 changed files with 44 additions and 119 deletions
|
@ -200,105 +200,44 @@
|
|||
|
||||
#initialize starting variables
|
||||
|
||||
[set_variable]
|
||||
name=spires_destroyed
|
||||
value=0
|
||||
[/set_variable]
|
||||
{VARIABLE in_final_fight true}
|
||||
{VARIABLE spires_destroyed 0}
|
||||
{VARIABLE allies_killed 0}
|
||||
{VARIABLE nym_dead false}
|
||||
{VARIABLE zhul_dead false}
|
||||
|
||||
[set_variable]
|
||||
name=allies_killed
|
||||
value=0
|
||||
[/set_variable]
|
||||
|
||||
[set_variable]
|
||||
name=nym_dead
|
||||
value=false
|
||||
[/set_variable]
|
||||
|
||||
[set_variable]
|
||||
name=zhul_dead
|
||||
value=false
|
||||
[/set_variable]
|
||||
|
||||
[set_variable]
|
||||
name=ally_dead
|
||||
value=false
|
||||
[/set_variable]
|
||||
|
||||
[set_variable]
|
||||
name=ally_not_here
|
||||
value=false
|
||||
[/set_variable]
|
||||
|
||||
#if ally never survived to final battle then save this info
|
||||
#if ally survived to final battle then save this info
|
||||
[if]
|
||||
[have_unit]
|
||||
id=$ally_name
|
||||
[/have_unit]
|
||||
|
||||
[then]
|
||||
[set_variable]
|
||||
name=ally_not_here
|
||||
value=0
|
||||
[/set_variable]
|
||||
{VARIABLE ally_died_in_final_fight no}
|
||||
[/then]
|
||||
[/if]
|
||||
|
||||
[set_variable]
|
||||
name=minion_turn_counter
|
||||
value=0
|
||||
[/set_variable]
|
||||
|
||||
[set_variable]
|
||||
name=attacked_yechnagoth
|
||||
value=0
|
||||
[/set_variable]
|
||||
|
||||
[set_variable]
|
||||
name=immortal_hero
|
||||
value=0
|
||||
[/set_variable]
|
||||
{VARIABLE minion_turn_counter 0}
|
||||
{VARIABLE attacked_yechnagoth 0}
|
||||
{VARIABLE immortal_hero 0}
|
||||
|
||||
# at each increase 1 extra alien minion is produced each turn
|
||||
|
||||
[set_variable]
|
||||
name=first_increase
|
||||
#ifdef EASY
|
||||
value=2
|
||||
{VARIABLE first_increase 2}
|
||||
{VARIABLE second_increase 4}
|
||||
{VARIABLE third_increase 6}
|
||||
#endif
|
||||
#ifdef NORMAL
|
||||
value=2
|
||||
{VARIABLE first_increase 2}
|
||||
{VARIABLE second_increase 3}
|
||||
{VARIABLE third_increase 5}
|
||||
#endif
|
||||
#ifdef HARD
|
||||
value=1
|
||||
{VARIABLE first_increase 1}
|
||||
{VARIABLE second_increase 3}
|
||||
{VARIABLE third_increase 5}
|
||||
#endif
|
||||
[/set_variable]
|
||||
|
||||
[set_variable]
|
||||
name=second_increase
|
||||
#ifdef EASY
|
||||
value=4
|
||||
#endif
|
||||
#ifdef NORMAL
|
||||
value=3
|
||||
#endif
|
||||
#ifdef HARD
|
||||
value=3
|
||||
#endif
|
||||
[/set_variable]
|
||||
|
||||
[set_variable]
|
||||
name=third_increase
|
||||
#ifdef EASY
|
||||
value=6
|
||||
#endif
|
||||
#ifdef NORMAL
|
||||
value=5
|
||||
#endif
|
||||
#ifdef HARD
|
||||
value=5
|
||||
#endif
|
||||
[/set_variable]
|
||||
|
||||
# set starting scenario objectives
|
||||
|
||||
|
@ -732,10 +671,10 @@
|
|||
# 1: slow unit
|
||||
# 2: do damage to unit (8/9/10 based on difficulty?-stops healing)
|
||||
|
||||
{VARIABLE elf_list[$victim].status.slowed on}
|
||||
{VARIABLE elf_list[$victim_i].status.slowed on}
|
||||
|
||||
[unstore_unit]
|
||||
variable=elf_list[$victim]
|
||||
variable=elf_list[$victim_i]
|
||||
find_vacant=no
|
||||
#textdomain wesnoth
|
||||
text= _ "slowed"
|
||||
|
@ -755,20 +694,20 @@
|
|||
|
||||
[if]
|
||||
[variable]
|
||||
name=elf_list[$victim].hitpoints
|
||||
name=elf_list[$victim_i].hitpoints
|
||||
less_than_equal_to=$special_attack_damage
|
||||
[/variable]
|
||||
|
||||
[then]
|
||||
{VARIABLE special_attack_damage $elf_list[$victim].hitpoints}
|
||||
{VARIABLE special_attack_damage $elf_list[$victim_i].hitpoints}
|
||||
{VARIABLE_OP special_attack_damage add -1}
|
||||
[/then]
|
||||
[/if]
|
||||
|
||||
{VARIABLE_OP elf_list[$victim].hitpoints add -$special_attack_damage}
|
||||
{VARIABLE_OP elf_list[$victim_i].hitpoints add -$special_attack_damage}
|
||||
|
||||
[unstore_unit]
|
||||
variable=elf_list[$victim]
|
||||
variable=elf_list[$victim_i]
|
||||
find_vacant=no
|
||||
text="-$special_attack_damage"
|
||||
{COLOR_HARM}
|
||||
|
@ -784,14 +723,14 @@
|
|||
{VARIABLE hit_by_special_attack yes}
|
||||
|
||||
[message]
|
||||
x,y=$elf_list[$victim].x,$elf_list[$victim].y
|
||||
x,y=$elf_list[$victim_i].x,$elf_list[$victim_i].y
|
||||
message= _ "What the heck? That central creature just hit me with some sort of slime. It hurts and I, I'm stuck!"
|
||||
[/message]
|
||||
[/then]
|
||||
|
||||
[else]
|
||||
[message]
|
||||
x,y=$elf_list[$victim].x,$elf_list[$victim].y
|
||||
x,y=$elf_list[$victim_i].x,$elf_list[$victim_i].y
|
||||
message= _ "Ow, I'm stuck!"
|
||||
[/message]
|
||||
[/else]
|
||||
|
|
|
@ -84,19 +84,16 @@
|
|||
|
||||
[message]
|
||||
speaker=Kaleh
|
||||
image=portraits/kaleh.png
|
||||
message= _ "I stumbled out into the daylight, scarcely believing that we were victorious. Looking out over the island it took me a moment to realize what had changed. The fetid darkness had lifted from the land and I saw the suns shining brightly for what seemed like the first time in ages. Gazing across the bright green trees and sparkling ocean I realized that once this had been a place of beauty. Several of our brethren were waiting for me and I was overjoyed to discover that they were no longer the mindless slaves I had seen before. They too had broken free from their enchantment."
|
||||
[/message]
|
||||
|
||||
[message]
|
||||
speaker=Kaleh
|
||||
image=portraits/kaleh.png
|
||||
message= _ "Indeed with Yechnagoth's death it seems that all of her minions reverted to their original chaotic tendencies. Luckily we had already destroyed most of the island's foul inhabitants, and lacking their former discipline we had no trouble exterminating the remaining orcs and undead. The naga too fled before us, and they have not bothered us since. For once we seemed to be safe from imminent danger."
|
||||
[/message]
|
||||
|
||||
[message]
|
||||
speaker=Kaleh
|
||||
image=portraits/kaleh.png
|
||||
message= _ "A few days later Melusand herself appeared and she declared the cleansing of this island a miracle. We made a pact between elf and merfolk and vowed to live together in peace and prosperity. Melusand blessed the island, and named it 'Quenoth Isle' in honor of our people. The merfolk have been very helpful in teaching us how to adapt to this strange land, though I still have trouble getting used to being surrounded by water. It used to be more precious than gold. Still, I could hardly imagine a better home for my people. Between the bounty of the sea and the many fruits of the jungle there is no shortage of food. We are isolated from the chaos on the mainland and the merfolk guard the waters. Melusand says now is a time for peace and prosperity. Part of me didn't think we would survive our journey, there were so many close calls. Coming here almost does seem like a miracle. If only I could forget the price we paid..."
|
||||
[/message]
|
||||
|
||||
|
@ -111,7 +108,6 @@
|
|||
[then]
|
||||
[message]
|
||||
speaker=Kaleh
|
||||
image=portraits/kaleh.png
|
||||
message= _ "If you had told me at the start of our journey the price I was to pay in blood, I do not know if I would have had the strength to take that first step. I suppose I should have known that my friends would not let me confront Yechnagoth alone. And it is only through Eloh's grace and a good bit of luck that none of them died in that bloody battle. But so many others that I grew up with were not so lucky. Why did so many of us have to die? I wish I could go back and do it all over again."
|
||||
[/message]
|
||||
[/then]
|
||||
|
@ -135,7 +131,6 @@
|
|||
[then]
|
||||
[message]
|
||||
speaker=Kaleh
|
||||
image=portraits/kaleh.png
|
||||
message= _ "If you had told me at the start of our journey the price I was to pay in blood, I do not know if I would have had the strength to take that first step. I suppose I should have known that my friends would not let me confront Yechnagoth alone. But I would gladly give up my life today if I could bring Nym back. She followed me faithfully and fought by my side for so long, to lose her at the end... I wish I could go back and do it all over again."
|
||||
[/message]
|
||||
[/then]
|
||||
|
@ -150,7 +145,6 @@
|
|||
[then]
|
||||
[message]
|
||||
speaker=Kaleh
|
||||
image=portraits/kaleh.png
|
||||
message= _ "If you had told me at the start of our journey the price I was to pay in blood, I do not know if I would have had the strength to take that first step. I suppose I should have known that my friends would not let me confront Yechnagoth alone. But I would gladly give up my life today if I could bring Zhul back. She followed me faithfully and fought by my side for so long, to lose her at the end... I wish I could go back and do it all over again."
|
||||
[/message]
|
||||
[/then]
|
||||
|
@ -159,13 +153,12 @@
|
|||
[if]
|
||||
[variable]
|
||||
name=ally_dead
|
||||
numerical_equals=1
|
||||
boolean_equals=yes
|
||||
[/variable]
|
||||
|
||||
[then]
|
||||
[message]
|
||||
speaker=Kaleh
|
||||
image=portraits/kaleh.png
|
||||
message= _ "If you had told me at the start of our journey the price I was to pay in blood, I do not know if I would have had the strength to take that first step. I suppose I should have known that my friends would not let me confront Yechnagoth alone. But I would gladly give up my life today if I could bring $intl_ally_name back. He left his homeland to fight faithfully by my side, and then to lose him at the end... I wish I could go back and do it all over again."
|
||||
[/message]
|
||||
[/then]
|
||||
|
@ -182,7 +175,6 @@
|
|||
[then]
|
||||
[message]
|
||||
speaker=Kaleh
|
||||
image=portraits/kaleh.png
|
||||
message= _ "If you had told me at the start of our journey the price I was to pay in blood, I do not know if I would have had the strength to take that first step. I suppose I should have known that my friends would not let me confront Yechnagoth alone. But I would gladly give up my life today if I could bring any one of them back. They followed me faithfully and fought by my side for so long, to lose them at the end... I wish I could go back and do it all over again."
|
||||
[/message]
|
||||
[/then]
|
||||
|
@ -204,7 +196,6 @@
|
|||
[then]
|
||||
[message]
|
||||
speaker=Kaleh
|
||||
image=portraits/kaleh.png
|
||||
message= _ "Although I believe that our battle in the black citadel was our finest hour, I am still haunted by Nym's death in that dark place. And so every morning at sunrise I come out to the southeastern tip of the island and look out upon the waters, upon the world that we sacrificed so much to preserve. I remind myself what Zhul said, and they all believed, that despite all the death and fighting we saw in our journey, this world was a beautiful and good enough place that Nym was willing to sacrifice her life to save it. Looking out over the waters, and back upon the prosperity of my people, I tell myself it was worth it. But sometimes that seems a small consolation."
|
||||
[/message]
|
||||
[/then]
|
||||
|
@ -219,7 +210,6 @@
|
|||
[then]
|
||||
[message]
|
||||
speaker=Kaleh
|
||||
image=portraits/kaleh.png
|
||||
message= _ "Although I believe that our battle in the black citadel was our finest hour, I am still haunted by Zhul's death in that dark place. And so every morning at sunrise I come out to the southeastern tip of the island and look out upon the waters, upon the world that we sacrificed so much to preserve. I remind myself what Zhul said, and they all believed, that despite all the death and fighting we saw in our journey, this world was a beautiful and good enough place that Zhul was willing to sacrifice her life to save it. Looking out over the waters, and back upon the prosperity of my people, I tell myself it was worth it. But sometimes that seems a small consolation."
|
||||
[/message]
|
||||
[/then]
|
||||
|
@ -228,13 +218,17 @@
|
|||
[if]
|
||||
[variable]
|
||||
name=ally_dead
|
||||
numerical_equals=1
|
||||
boolean_equals=yes
|
||||
[/variable]
|
||||
|
||||
[variable]
|
||||
name=ally_died_in_final_fight
|
||||
boolean_equals=yes
|
||||
[/variable]
|
||||
|
||||
[then]
|
||||
[message]
|
||||
speaker=Kaleh
|
||||
image=portraits/kaleh.png
|
||||
message= _ "Although I believe that our battle in the black citadel was our finest hour, I am still haunted by the death of $intl_ally_name in that dark place. And so every morning at sunrise I come out to the southeastern tip of the island and look out upon the waters, upon the world that we sacrificed so much to preserve. I remind myself what Zhul said, and they all believed, that despite all the death and fighting we saw in our journey, this world was a beautiful and good enough place that $intl_ally_name was willing to sacrifice his life to save it. Looking out over the waters, and back upon the prosperity of my people, I tell myself it was worth it. But when I think of the desperate war that his people are probably still fighting underground, it seems a small consolation."
|
||||
[/message]
|
||||
[/then]
|
||||
|
@ -251,7 +245,6 @@
|
|||
[then]
|
||||
[message]
|
||||
speaker=Kaleh
|
||||
image=portraits/kaleh.png
|
||||
message= _ "Although I believe that our battle in the black citadel was our finest hour, I am still haunted by my friends' deaths in that dark place. And so every morning at sunrise I come out to the southeastern tip of the island and look out upon the waters, upon the world that we sacrificed so much to preserve. I remind myself what Zhul said, and they all believed, that despite all the death and fighting we saw in our journey, this world was a beautiful and good enough place that they were willing to sacrifice their lives to save it. Looking out over the waters, and back upon the prosperity of my people, I tell myself it was worth it. But I still miss each one of them horribly."
|
||||
[/message]
|
||||
[/then]
|
||||
|
@ -291,12 +284,12 @@
|
|||
[if]
|
||||
[variable]
|
||||
name=ally_dead
|
||||
numerical_equals=1
|
||||
boolean_equals=yes
|
||||
[/variable]
|
||||
|
||||
[variable]
|
||||
name=ally_not_here
|
||||
numerical_equals=0
|
||||
name=ally_died_in_final_fight
|
||||
boolean_equals=yes
|
||||
[/variable]
|
||||
|
||||
[then]
|
||||
|
@ -361,7 +354,7 @@
|
|||
[if]
|
||||
[variable]
|
||||
name=ally_dead
|
||||
numerical_equals=0
|
||||
boolean_equals=no
|
||||
[/variable]
|
||||
|
||||
[then]
|
||||
|
@ -394,12 +387,12 @@
|
|||
[if]
|
||||
[variable]
|
||||
name=ally_dead
|
||||
numerical_equals=1
|
||||
boolean_equals=yes
|
||||
[/variable]
|
||||
|
||||
[variable]
|
||||
name=ally_not_here
|
||||
numerical_equals=1
|
||||
name=ally_died_in_final_fight
|
||||
boolean_equals=no
|
||||
[/variable]
|
||||
|
||||
[then]
|
||||
|
@ -436,13 +429,11 @@
|
|||
|
||||
[message]
|
||||
speaker=Kaleh
|
||||
image=portraits/kaleh.png
|
||||
message= _ "As for the Black Citadel, after much discussion we decided to go back to the ancient rituals for purifying unclean land, with fire. We filled the entire structure with wood and oil and set the place ablaze to make sure that any remnants of Yechnagoth's infestation would be purged by holy fire. We then tore the citadel down, stone by stone. I was tempted to save the stones for construction in the future, but I did not know what foul magics might still linger in them, and I did not want to take any chances. So with the help of the merfolk, we carried the stones far out into the water and cast them down to the bottom of the ocean. Once the last stone had been removed, we decided that no matter what we built or grew around it, that area would be left bare as a reminder of the evil that once dwelt here and all those who gave their lives to destroy it."
|
||||
[/message]
|
||||
|
||||
[message]
|
||||
speaker=Kaleh
|
||||
image=portraits/kaleh.png
|
||||
message= _ "It has been several years since the events that I chronicle here, and I'm not quite as spry and limber as I used to be, so I decided it was about time that I write this all down lest something happen to me. My one wish is that our descendants do not forget all those who made the ultimate sacrifice so that there might be a future for our people. Looking at the ruins of the ancient empires, I know that time erases all things. We have forgotten so much about the Golden Age. Do not let our story suffer the same fate. For as long as the tales of those now departed are still told, in some sense they are still alive and still with us. Honor those who have died. Remember our mistakes so you will not repeat them. And most of all, treasure every day, for it is a gift, from us to you."
|
||||
[/message]
|
||||
|
||||
|
|
|
@ -151,10 +151,8 @@
|
|||
[/else]
|
||||
[/if]
|
||||
|
||||
[set_variable]
|
||||
name=allies_killed
|
||||
add=1
|
||||
[/set_variable]
|
||||
{VARIABLE ally_died_in_final_fight yes}
|
||||
{VARIABLE_OP allies_killed add 1}
|
||||
[/then]
|
||||
[else]
|
||||
[if]
|
||||
|
@ -204,10 +202,7 @@
|
|||
[/else]
|
||||
[/if]
|
||||
|
||||
[set_variable]
|
||||
name=ally_dead
|
||||
value=1
|
||||
[/set_variable]
|
||||
{VARIABLE ally_dead yes}
|
||||
[/event]
|
||||
|
||||
[event]
|
||||
|
|
Loading…
Add table
Reference in a new issue