-
Notifications
You must be signed in to change notification settings - Fork 47
/
quests.lua
170 lines (160 loc) · 7.61 KB
/
quests.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
-- _________ __ __
-- / _____// |_____________ _/ |______ ____ __ __ ______
-- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
-- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
-- /_______ /|__| |__| (____ /__| (____ /\___ /|____//____ >
-- \/ \/ \//_____/ \/
-- ______________________ ______________________
-- T H E W A R B E G I N S
-- Stratagus - A free fantasy real time strategy game engine
--
-- (c) Copyright 2013-2022 by Andrettin
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 2 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
--
DefineQuest("the-battle-of-magetobria", {
Name = "The Battle of Magetobria",
Icon = "suebi_swordsman",
Description = "Under the leadership of Ariovistus, we have crossed the Rhine to aid the Sequani and the Arverni in defeating the Aedui, and now an Aedui army approaches the Sequani settlement of Magetobria...\n\nMap: Belfort",
World = "earth",
Civilization = "suebi",
Map = "maps/earth/belfort.smp",
Scenario = "scripts/civilizations/teuton/scenarios/the_battle_of_magetobria.lua",
PlayerColor = "black",
Unobtainable = true
})
DefineQuest("the-home-of-the-boii", {
Name = "The Home of the Boii",
Icon = "icon-marbod",
Description = "After a devastating conflict with the Romans, Marbod seeks to lead the tribe of the Marcomanni to safer lands.\n\nMap: Prague",
RequiredQuest = "the-battle-of-magetobria",
World = "earth",
Civilization = "suebi",
Map = "maps/earth/prague.smp",
Scenario = "scripts/civilizations/teuton/scenarios/the_home_of_the_boii.lua",
PlayerColor = "orange",
Unobtainable = true
})
DefineQuest("the-first-marcomannic-war", {
Name = "The First Marcomannic War",
Icon = "suebi_swordsman",
Civilization = "suebi",
PlayerColor = "orange",
FailEffects = function(s)
if (trigger_player == GetThisPlayer() and GetCurrentCampaign() == "the-first-marcomannic-war") then
CallDialogue("campaign-defeat", trigger_player)
end
end,
ObjectiveStrings = {"Destroy Aquileia's Forum"},
Uncompleteable = true,
Unobtainable = true
})
--[[
DefineQuest("the-sack-of-iuvavum", {
Name = "The Sack of Iuvavum",
Icon = "icon-latin-forum",
Description = "The Roman town of Iuvavum is renowned for its wealth derived from the salt trade. Our warriors yearn for these riches... Sack this city, for all it is worth!",
PlayerColor = "red",
Conditions = function(s)
local rome_player = GetFactionPlayer("rome")
if (
GetPlayerData(trigger_player, "RaceName") == "suebi" and rome_player ~= nil and GetPlayerData(trigger_player, "IsEnemy", rome_player)
and (GetNumUnitsAt(rome_player, "unit-latin-town-hall", {4135 - EarthStartX, 960 - EarthStartY}, {4135 - EarthStartX, 960 - EarthStartY}, GetMapLayer("earth")) > 0 or GetNumUnitsAt(rome_player, "unit-teuton-stronghold", {4135 - EarthStartX, 960 - EarthStartY}, {4135 - EarthStartX, 960 - EarthStartY}, GetMapLayer("earth")) > 0)
) then
return true
end
return false
end,
CompletionEffects = function(s)
SetPlayerData(trigger_player, "Resources", "copper", GetPlayerData(trigger_player, "Resources", "copper") + 5000)
end,
ObjectiveStrings = {"Destroy Iuvavum's Forum"},
Rewards = "+5000 Copper",
Hint = "Hint: Hover the mouse over a building to see the name of its settlement.",
Uncompleteable = true -- completed by trigger
})
DefineQuest("the-razing-of-opitergium", {
Name = "The Razing of Opitergium",
Icon = "icon-latin-forum",
Description = "The time has come for us to lay siege to the Roman city of Opitergium, securing land and riches in northern Italy.",
PlayerColor = "red",
Conditions = function(s)
local rome_player = GetFactionPlayer("rome")
if (
GetPlayerData(trigger_player, "RaceName") == "suebi" and rome_player ~= nil and GetPlayerData(trigger_player, "IsEnemy", rome_player)
and (GetNumUnitsAt(rome_player, "unit-latin-town-hall", {4122 - EarthStartX, 1005 - EarthStartY}, {4122 - EarthStartX, 1005 - EarthStartY}, GetMapLayer("earth")) > 0 or GetNumUnitsAt(rome_player, "unit-teuton-stronghold", {4122 - EarthStartX, 1005 - EarthStartY}, {4122 - EarthStartX, 1005 - EarthStartY}, GetMapLayer("earth")) > 0)
) then
return true
end
return false
end,
CompletionEffects = function(s)
SetPlayerData(trigger_player, "Resources", "copper", GetPlayerData(trigger_player, "Resources", "copper") + 5000)
end,
ObjectiveStrings = {"Destroy Opitergium's Forum"},
Rewards = "+5000 Copper",
Hint = "Hint: Hover the mouse over a building to see the name of its settlement.",
Uncompleteable = true -- completed by trigger
})
--]]
DefineQuest("the-sack-of-iuvavum", {
Name = "The Sack of Iuvavum",
Icon = "icon-teuton-spatha",
Description = "Almost two centuries after the time of Marbod, the Marcomanni chieftain Ballomar has gathered more than a dozen Germanic tribes in an alliance to invade the Roman Empire.\n\nMap: Salzburg",
RequiredQuest = "the-home-of-the-boii",
World = "earth",
Civilization = "suebi",
Map = "maps/earth/salzburg.smp",
Scenario = "scripts/civilizations/teuton/scenarios/the_sack_of_iuvavum.lua",
PlayerColor = "orange",
Unobtainable = true
})
DefineQuest("the-razing-of-opitergium", {
Name = "The Razing of Opitergium",
Icon = "icon-latin-forum",
Description = "Leaving a trail of destruction behind them, the Marcomanni have now reached Italy and lay siege to the Roman city of Opitergium.\n\nMap: Oderzo",
RequiredQuest = "the-sack-of-iuvavum",
World = "earth",
Civilization = "suebi",
Map = "maps/earth/oderzo.smp",
Scenario = "scripts/civilizations/teuton/scenarios/the_razing_of_opitergium.lua",
PlayerColor = "orange",
Unobtainable = true
})
DefineQuest("moving-into-galicia", { -- happened in 411 AD
Name = "Moving into Galicia",
Icon = "icon-teuton-town-hall",
Description = "Times are changing. The Roman Empire, once invincible, has fallen prey to a conjunction of domestic troubles and external pressures. A group of Suebi has decided to take use opportunity, and move into the Roman province of Galicia...\n\nMap: Braga",
RequiredQuest = "the-razing-of-opitergium",
World = "earth",
Civilization = "suebi",
Map = "maps/earth/braga.smp",
Scenario = "scripts/civilizations/teuton/scenarios/moving_into_galicia.lua",
PlayerColor = "black",
Unobtainable = true
})
DefineQuest("the-blue-danube", {
Name = "The Blue Danube",
Icon = "icon-saxon-swordsman",
Description = "As time passed, the Marcomanni abandoned their old name and adopted a new one - that of the Bavarians. Expelled from Bohemia by the Lombards, they must now seek a home on the margins of the Danube, facing the forces of the crumbling Roman Empire, if need be.\n\nMap: Regensburg",
RequiredQuest = "the-razing-of-opitergium",
World = "earth",
Civilization = "teuton",
Map = "maps/earth/regensburg.smp",
Scenario = "scripts/civilizations/teuton/scenarios/the_blue_danube.lua",
PlayerColor = "cyan",
Unobtainable = true
})
Load("scripts/civilizations/teuton/quests_frank.lua")