Completely new scenario for Captured

that is both more interesting and more challenging
This commit is contained in:
Joseph Simmons 2005-05-30 13:51:11 +00:00
parent e2e083b99e
commit 08a7c470f8

View file

@ -4,7 +4,7 @@ id=Captured
name= _ "Captured"
map_data="{maps/Eastern_Invasion/Captured}"
{TURNS 96 80 64}
{TURNS 96 86 76}
{UNDERGROUND}
@ -18,8 +18,13 @@ victory_when_enemies_defeated=no
[story]
[part]
background=campaigns/Eastern_Invasion/maps/eastern_invasion.png
show_title=yes
background=campaigns/Eastern_Invasion/maps/eastern_invasion.png
story= _ "After crossing over the dangerous Lake Vrug, Gweddry and his men had been captured by northern orcs. They were being taken to the orcish king, Dra-Nak, but, of course, they wished to escape before that happened..."
show_title=yes
[/part]
[part]
background=campaigns/Eastern_Invasion/maps/eastern_invasion.png
show_title=yes
[/part]
[/story]
@ -27,31 +32,27 @@ victory_when_enemies_defeated=no
#names for all the rooms#
#########################
[label]
x,y=8,23
text=_"The Cells"
[/label]
[label]
x,y=10,18
text=_"Guard Room"
[/label]
[label]
x,y=19,15
x,y=23,25
text=_"Prison"
[/label]
[label]
x,y=23,14
x,y=33,28
text=_"Torture Chamber"
[/label]
[label]
x,y=16,8
text=_"Storage Room"
x,y=12,18
text=_"Throne Room"
[/label]
[label]
x,y=23,8
x,y=28,32
text=_"The City"
[/label]
[label]
x,y=26,11
x,y=19,33
text=_"The City"
[/label]
[label]
x,y=15,32
text=_"Exit"
[/label]
@ -92,15 +93,9 @@ victory_when_enemies_defeated=no
team_name=bad
[/side]
[side]
type=Elvish Hero
side=3
team_name=good
[/side]
[side]
type=Blood Bat
side=4
side=3
[ai]
aggression=100.0
[avoid]
@ -114,58 +109,6 @@ victory_when_enemies_defeated=no
#lots of definitions#
#####################
#define TELEPORT X1 Y1 X2 Y2 X3 Y3
[teleport]
[filter]
description=Gweddry
[/filter]
x={X1}
y={Y1}
[/teleport]
[teleport]
[filter]
description=Dacyn
[/filter]
x={X2}
y={Y2}
[/teleport]
[teleport]
[filter]
description=Owaec
[/filter]
x={X3}
y={Y3}
[/teleport]
[scroll_to_unit]
description=Gweddry
[/scroll_to_unit]
[delay]
time=500
[/delay]
#enddef
#define WHIP
[sound]
name=gunshot.wav
[/sound]
[colour_adjust]
red=100
green=0
blue=0
[/colour_adjust]
[delay]
time=100
[/delay]
[sound]
name=groan.wav
[/sound]
[colour_adjust]
red=0
green=0
blue=0
[/colour_adjust]
#enddef
#define GUARD X Y T
[unit]
type={T}
@ -176,63 +119,48 @@ ai_special=guardian
[/unit]
#enddef
#define SIDE4 X Y T
#define ATTACKER X Y T
[unit]
type={T}
side=4
side=2
x={X}
y={Y}
[/unit]
#enddef
#define DOOR X Y
{GUARD {X} {Y} Gate}
#enddef
#define PRISON X Y
[set_variable]
name=type
random=Elvish Archer,Elvish Fighter,Dwarvish Fighter,Dwarvish Thunderer,Elvish Shaman,Spearman,Bowman
[/set_variable]
#define SIDE3 X Y T
[unit]
type=$type
type={T}
side=3
x={X}
y={Y}
[modifications]
[trait]
[effect]
apply_to=attack
range=short
increase_damage=-50%
[/effect]
[effect]
apply_to=attack
range=long
increase_damage=-75%
[/effect]
[effect]
apply_to=hitpoints
increase=-75%
[/effect]
[/trait]
[/modifications]
ai_special=guardian
[/unit]
#enddef
#define TRUESTORE D V
#define PRISON X Y
[recall]
x,y={X},{Y}
[/recall]
[store_unit]
[filter]
description={D}
x,y={X},{Y}
[/filter]
variable={V}
variable=temp
[/store_unit]
[kill]
description={D}
[/kill]
[set_variable]
name=temp.hitpoints
multiply=0.75
[/set_variable]
[unstore_unit]
variable=temp
[/unstore_unit]
[clear_variable]
name=temp
[/clear_variable]
#enddef
#define ROLE T R X Y V L
#define ROLE T R X Y
[role]
type={T}
side=1
@ -240,38 +168,8 @@ role={R}
[/role]
[recall]
role={R}
x,y={X},{Y}
[/recall]
[teleport]
[filter]
role={R}
[/filter]
x={X}
y={Y}
[/teleport]
[store_unit]
[filter]
role={R}
[/filter]
variable={V}
kill=yes
[/store_unit]
[set_variable]
name={V}.description
value={L}
[/set_variable]
#enddef
#define TRUEUNSTORE X Y V
[filter]
x={X}
y={Y}
side=1
[/filter]
[unstore_unit]
variable={V}
find_vacant=yes
[/unstore_unit]
#enddef
######################
@ -299,86 +197,39 @@ find_vacant=yes
condition=lose
[/objective]
[/objectives]
[/event]
########################################
#starting units (like guards and doors)#
########################################
[event]
name=prestart
# a bunch of doors
{DOOR 5 22}
{DOOR 5 19}
{DOOR 5 13}
{DOOR 5 9}
{DOOR 5 6}
{DOOR 10 15}
{DOOR 14 13}
{DOOR 18 15}
{DOOR 23 15}
{DOOR 29 18}
{DOOR 17 7}
{DOOR 23 7}
{DOOR 29 4}
{DOOR 27 11}
{DOOR 32 11}
##############################
#starting units (like guards)#
##############################
#the first guards
{GUARD 41 5 Troll}
{GUARD 34 17 (Troll Warrior)}
{GUARD 34 19 (Troll Warrior)}
#ifdef HARD
{GUARD 44 5 Troll}
{GUARD 31 19 (Troll Warrior)}
#endif
{GUARD 34 9 Troll}
#ifdef EASY
#else
{GUARD 35 12 Troll}
#endif
#adding the last guards
#high-security jail cell guards
{GUARD 8 17 (Troll Whelp)}
{GUARD 8 19 (Troll Whelp)}
#ifdef HARD
{GUARD 12 17 (Troll Whelp)}
{GUARD 12 19 (Troll Whelp)}
#endif
{GUARD 10 16 Troll}
{GUARD 26 17 (Troll Warrior)}
#kings chamber guards
#ifdef EASY
{GUARD 16 10 (Orcish Grunt)}
{GUARD 16 12 (Orcish Grunt)}
{GUARD 19 14 (Orcish Grunt)}
{GUARD 22 13 (Orcish Grunt)}
{GUARD 25 11 (Orcish Grunt)}
{GUARD 22 8 (Orcish Grunt)}
{GUARD 18 8 (Orcish Grunt)}
#else
{GUARD 16 10 (Orcish Warrior)}
{GUARD 16 12 (Orcish Warrior)}
{GUARD 19 14 (Orcish Warrior)}
{GUARD 22 13 (Orcish Warrior)}
{GUARD 9 16 (Orcish Warrior)}
{GUARD 12 14 (Orcish Warrior)}
{GUARD 15 16 (Orcish Warrior)}
{GUARD 15 19 (Orcish Warrior)}
{GUARD 25 11 (Orcish Warrior)}
{GUARD 22 8 (Orcish Warrior)}
{GUARD 18 8 (Orcish Warrior)}
#endif
{GUARD 12 20 (Orcish Warrior)}
{GUARD 9 19 (Orcish Warrior)}
#torture chamber guards
{GUARD 34 20 (Orcish Slayer)}
{GUARD 30 20 (Orcish Assassin)}
{GUARD 32 17 (Orcish Assassin)}
{GUARD 33 28 (Orcish Slayer)}
{GUARD 30 26 (Orcish Slayer)}
{GUARD 27 27 (Orcish Assassin)}
{GUARD 28 29 (Orcish Assassin)}
#these are bats that inhabit the dungeons (i needed to make it somewhat interesting)
#these ones live in the cells themselves
{SIDE4 2 22 (Blood Bat)}
{SIDE4 5 16 (Vampire Bat)}
{SIDE4 8 12 (Vampire Bat)}
{SIDE4 8 8 (Vampire Bat)}
{SIDE4 8 4 (Vampire Bat)}
#to make sure you know where the door is
{ITM_BALL_GREEN 10 21}
#these are bats that inhabit the side tunnels
{SIDE3 14 9 (Blood Bat)}
{SIDE3 19 10 (Vampire Bat)}
{SIDE3 22 9 (Vampire Bat)}
{SIDE3 24 7 (Vampire Bat)}
{SIDE3 33 10 (Vampire Bat)}
[/event]
@ -393,89 +244,99 @@ find_vacant=yes
#getting Dacyn and Owaec
[recall]
description=Dacyn
x,y=28,11
[/recall]
[recall]
description=Owaec
x,y=28,10
[/recall]
#getting the sidekicks
{ROLE (Red Mage,Longbowman,Master Bowman,Arch Mage,Silver Mage,Great Mage) SIDE1 7 9 R1 Ranged}
{ROLE (Swordsman,Pikeman,Royal Guard,Halbardier) SIDE2 7 13 R2 Melee}
{ROLE (Red Mage,Longbowman,Master Bowman,Arch Mage,Silver Mage,Great Mage) SIDE1 27 10}
{ROLE (Swordsman,Pikeman,Royal Guard,Halbardier) SIDE2 29 10}
##################
#huge intro scene#
##################
#teleporting madness
{WHIP}
{TELEPORT 34 11 33 9 34 13}
{WHIP}
{TELEPORT 23 10 23 11 23 9}
#some talking
[message]
description=King Dra-Nak
id=msg_cmpgn_ei_14_01
message= _ "Why have you entered my lands?!?"
description=Gweddry
message= _ "I think Dacyn and Owaec have escaped already. Now I have to, also... these guards are not being very alert, I may be able to get past them..."
[/message]
[teleport]
[filter]
description=Gweddry
[/filter]
x,y=29,17
[/teleport]
[hide_unit]
x,y=29,17
[/hide_unit]
[move_unit_fake]
type=General
x=35,29
y=19,17
[/move_unit_fake]
[unhide_unit]
x,y=29,17
[/unhide_unit]
[scroll_to_unit]
description=Gweddry
[/scroll_to_unit]
[message]
description=Gweddry
message= _ "Aha! There is a small crack in the cave wall here."
[/message]
[teleport]
[filter]
description=Gweddry
[/filter]
x,y=29,12
[/teleport]
[hide_unit]
x,y=29,12
[/hide_unit]
[move_unit_fake]
type=General
x=29,29
y=17,12
[/move_unit_fake]
[unhide_unit]
x,y=29,12
[/unhide_unit]
[message]
description=Dacyn
message= _ "So, Gweddry, you escaped too? Good. I think they have the rest of our troops captive, we should be able to rescue them."
[/message]
[message]
description=Gweddry
id=msg_cmpgn_ei_14_02
message= _ "We were traveling-"
[/message]
[message]
description=King Dra-Nak
id=msg_cmpgn_ei_14_03
message= _ "Silence! Did I ask you?"
message= _ "Where are they? These caves are impossible to navigate!"
[/message]
[message]
description=Dacyn
id=msg_cmpgn_ei_14_04
message= _ "Um... yes."
message= _ "Somewhere south of us. We are in a hidden passage in the north. Oh, and some others escaped too, along with Owaec."
[/message]
[message]
description=King Dra-Nak
id=msg_cmpgn_ei_14_05
message= _ "That's enough! I'm putting you in the high-security cave!"
[/message]
#and more teleporting
{TELEPORT 10 19 11 18 10 16}
{WHIP}
{TELEPORT 3 22 7 5 5 17}
{WHIP}
#storing Dacyn and Owaec
{TRUESTORE Dacyn D}
{TRUESTORE Owaec O}
#Gweddry talks to himself
[message]
description=Gweddry
id=msg_cmpgn_ei_14_06
message= _ "Ugh..."
message= _ "Well, where are the prisoners?"
[/message]
[message]
description=Gweddry
id=msg_cmpgn_ei_14_07
message= _ "Huh? Where am I? I'm tied to the ground!"
x,y=15,16
message= _ "Right here, boss."
[/message]
[message]
description=Gweddry
id=msg_cmpgn_ei_14_08
message= _ "I must be in some sort of prison... hmm the guard didn't tie me very well. I can escape from these knots."
[/message]
#add sounds of Gweddry escaping
[message]
description=Gweddry
id=msg_cmpgn_ei_14_09
message= _ "That's better! I wonder how many other prisoners have been captured that I will have to rescue."
description=King Dra-Nak
message= _ "Well, where's their leader? I don't see him."
[/message]
[message]
description=Gweddry
id=msg_cmpgn_ei_14_10
message= _ "Since they are probably tied down like I was, I will have to get into their cells in order to see them."
x,y=15,16
message= _ "Uh... (whispers).. I dunno. He escaped, I think."
[/message]
[message]
description=King Dra-Nak
message= _ "You fool! Well, find him. Bring him to me! Wait, no, just kill him on sight."
[/message]
#######################
#event inside an event#
#######################
@ -486,43 +347,45 @@ find_vacant=yes
[/filter]
[message]
speaker=unit
id=msg_cmpgn_ei_14_23
message= _ "The high security prisoners are escaping!"
message= _ "Look, the escaped prisoners have returned!"
[/message]
[message]
description=King Dra-Nak
id=msg_cmpgn_ei_14_24
message= _ "Kill them."
[/message]
#these are prisoners even though the macro is called PRISON
#first group of prisoners- in the large cell
{PRISON 17 19}
{PRISON 17 19}
{PRISON 17 19}
{PRISON 17 19}
{PRISON 17 19}
{PRISON 17 19}
{PRISON 17 19}
{PRISON 17 19}
{PRISON 17 19}
{PRISON 17 19}
#ifdef NORMAL
{PRISON 17 19}
{PRISON 17 19}
{PRISON 17 19}
{PRISON 17 19}
#endif
#ifdef EASY
{PRISON 17 19}
{PRISON 17 19}
{PRISON 17 19}
{PRISON 17 19}
{PRISON 17 19}
{PRISON 17 19}
{PRISON 17 19}
{PRISON 17 19}
#endif
#first comes the annoying hack so the recalled units do not simply vanish
[store_unit]
[filter]
description=Gweddry
[/filter]
variable=gweddry
[/store_unit]
[terrain]
x,y=$gweddry.x,$gweddry.y
letter=K
[/terrain]
#first group of prisoners- in the small cell
{PRISON 37 27}
{PRISON 38 27}
{PRISON 39 28}
{PRISON 39 29}
{PRISON 39 30}
{PRISON 38 30}
{PRISON 37 31}
{PRISON 36 31}
{PRISON 35 31}
{PRISON 34 30}
{PRISON 38 29}
{PRISON 37 30}
{PRISON 36 30}
[terrain]
x,y=$gweddry.x,$gweddry.y
letter=u
[/terrain]
[clear_variable]
name=gweddry
[/clear_variable]
#a prisoner says something
[message]
speaker=narrator
@ -532,6 +395,12 @@ find_vacant=yes
description=Gweddry
message= _ "Huh? Who's there, who said that?"
[/message]
{ATTACKER 24 24 (Orcish Warrior)}
{ATTACKER 24 25 (Orcish Warrior)}
{ATTACKER 24 25 (Troll Warrior)}
{ATTACKER 28 31 (Orcish Warrior)}
{ATTACKER 29 32 (Orcish Warrior)}
{ATTACKER 28 32 (Troll Warrior)}
[/event]
########################
#/event inside an event#
@ -542,247 +411,29 @@ find_vacant=yes
#THE START EVENT ENDS HERE#
###########################
##########################################
#rescuing Dacyn, Owaec and the two others#
##########################################
#Owaec
[event]
name=moveto
{TRUEUNSTORE 4-6 16-18 O}
[message]
description=Gweddry
message= _ "So you are in this cell! Come on, we have to escape!"
[/message]
[message]
description=Owaec
message= _ "Very well. I think the rest of the cells are further down this path."
[/message]
[/event]
#Melee sidekick
[event]
name=moveto
{TRUEUNSTORE 6-8 12-14 R2}
[message]
description=Gweddry
message= _ "So, they have captured some of our best fighters as well as me, Dacyn and Owaec. $R2.user_description, follow me! We must get out of this dungeon."
[/message]
[/event]
#Ranged sidekick
[event]
name=moveto
{TRUEUNSTORE 6-8 8-10 R1}
[message]
description=Gweddry
message= _ "Interesting, they put the most powerful of us in the high security prisons. Where are the others, I wonder?"
[/message]
[/event]
#Dacyn
[event]
name=moveto
{TRUEUNSTORE 6-8 4-6 D}
[message]
description=Gweddry
message= _ "Dacyn! This looks like the last cell, so we should just get out of here now. But how can we do that?"
[/message]
[message]
description=Owaec
message= _ "Well, we could try going out the way we came in, but that door is probably locked."
[/message]
[message]
description=Dacyn
message= _ "The guard who took us down here went into a hidden room when he closed this door. It was right outside this cell. If we can find and kill this guard, the key should be nearby."
[/message]
[item]
image=items/castle-ruins.png
x,y=4,5
[/item]
##########################
#the key in all its glory#
##########################
#getting into the chamber
[event]
name=moveto
[filter]
x=4,3
y=5,6
side=1
[/filter]
[message]
speaker=unit
message= _ "Here is the thin spot in the wall. Well, actually, no- it's not a thin spot at all! It's really a door!"
[/message]
[terrain]
x,y=3,5
letter=r
[/terrain]
[removeitem]
x,y=4,5
[/removeitem]
{GUARD 3 3 (Troll Warrior)}
[message]
description=Owaec
message= _ "Huh! A guard. Once we kill him, we should be able to get out of these cells..."
[/message]
#barrel
{ITM_BARREL 3 2}
[/event]
#the key itself
[event]
name=moveto
[filter]
x,y=3,2
side=1
[/filter]
[message]
speaker=unit
id=msg_cmpgn_ei_14_21
message= _ "I have found the key! Let's get out of here!"
[/message]
[set_variable]
name=key
value=yes
[/set_variable]
#opening the door with the key
[event]
name=moveto
[filter]
x=10
y=22
side=1
[/filter]
[message]
description=Gweddry
message= _ "This is the right key! come on, let's open the door, quick!"
[/message]
[terrain]
x=10
y=21
letter=u
[/terrain]
[set_variable]
name=key
value=no
[/set_variable]
[/event]
[/event]
[/event]
###########
#Bat stuff#
###########
#some more bats appear when you kill the first gate gate
#these ones live in the halls
############################################
#when you kill a warrior, bad stuff happens#
############################################
[event]
name=die
[filter]
type=Gate
[/filter]
{SIDE4 2 6 (Blood Bat)}
{SIDE4 2 8 (Vampire Bat)}
{SIDE4 2 10 (Vampire Bat)}
{SIDE4 2 12 (Vampire Bat)}
{SIDE4 2 14 (Vampire Bat)}
[/event]
#this was added to stop the bats from attacking the doors
[event]
name=die
first_time_only=no
[filter]
type=Gate
[/filter]
[terrain]
x=$x1
y=$y1
letter=E
[/terrain]
[/event]
#opening the door
######################################
#Valand and his worthless compatriots#
######################################
[event]
name=die
[filter]
x,y=29,18
[/filter]
[unit]
type=Elvish Hero
description=Valand
user_description= _ "Valand"
side=1
x,y=32,19
[/unit]
{PRISON 32 19}
{PRISON 32 19}
[message]
description=Valand
message= _ "Help us! The guards are planning to execute us tomorrow!"
[/message]
[message]
x,y=34,20
message= _ "Hah! Tomorrow? You make a big mistake if you believe you will live that long."
[/message]
[message]
x,y=30,20
message= _ "Right, boss, especially since they're invading, and we need to kill them now before they escape!"
[/message]
[/event]
#######################################
#when the king dies, bad stuff happens#
#######################################
[event]
name=die
[filter]
description=King Dra-Nak
[/filter]
[message]
speaker=unit
message= _ "Argh! Oh well, at least my vast hordes will defeat you!"
[/message]
{GUARD 20 10 (Orcish Grunt)}
{GUARD 20 10 (Orcish Grunt)}
{GUARD 20 10 (Orcish Grunt)}
{GUARD 20 10 (Orcish Grunt)}
{GUARD 20 10 (Orcish Grunt)}
{GUARD 20 10 (Orcish Grunt)}
[unit]
side=2
x=26
y=5
type=Orcish Warrior
[/unit]
[unit]
[/filter]
[message]
speaker=King Dra-Nak
message= _ "So, you want to resist me? Fine, but prepare to die!"
[/message]
[allow_recruit]
side=2
x=27
y=5
type=Orcish Warrior
[/unit]
[unit]
side=2
x=28
y=4
type=Orcish Warrior
[/unit]
type=Orcish Warrior,Orcish Grunt,Orcish Crossbowman
[/allow_recruit]
[/event]
##################################
#eternal holy water is always fun#
##################################
[item]
x=12
y=4
x,y=34,23
image=misc/item-holywater.png
[/item]
@ -790,8 +441,7 @@ find_vacant=yes
name=moveto
[filter]
side=1
x=12
y=4
x,y=34,23
[/filter]
[object]
id=holywater
@ -802,8 +452,7 @@ find_vacant=yes
cannot_use_message= _ "I am not suited to using this item! Let another take it."
[then]
[removeitem]
x=12
y=4
x,y=34,23
[/removeitem]
[/then]
[effect]
@ -826,8 +475,8 @@ find_vacant=yes
[event]
name=moveto
[filter]
x=37,38,39,40
y=9,8,8,7
x=1-11
y=32-40
description=Gweddry
[/filter]
[message]