Debian Codegraph @

res/manual/README_map_editor_scenario_events.md

raw
1 # Assignment Editor - Scenario events
2
3 This readme is meant for map makers to get a better understanding of how to use the new scenario events,
4 and write the XML needed to import it.
5
6
7 ## What are scenario events?
8
9 Scenario events is a unique feature added to Augustus that allows map makers to do all sorts of
10 interesting things.
11
12 Examples would be things like:
13 + 'If the player is playing on very hard' and 'the scenario has just started' then 'remove 2500 money from their city funds'
14 + 'If 17 months have passed' then 'decrease the trade price of pottery by 10'
15 + 'Every 6 months' if 'the player has 70 or more favour' and 'Rome buys less than 100 wine per year' then 'increase the trade demand of wine for Rome by +5'
16 + 'Every month' if 'the player has 60 or less favour' and 'Rome buys more than 15 wine per year' then 'decrease the trade demand of wine for Rome by -1'
17
18 In general a scenario event is one or more conditions, that if they are all true, will take one or more actions.
19
20
21 ## How do I add scenario events to my map?
22
23 Scenario events are imported with an XML file. Once you have the file the importing is easy.
24 We'll cover making an XML file a bit later.
25
26 To import:
27 + In the assignment editor, load the map you want to import scenario events for.
28 + Open the scenario details window (button below the minimap).
29 + You'll see a button for 'Scenario Events'.
30 + Click that button.
31 + You'll see a new window that shows you info on the scenario events. (if there are any).
32 + At the bottom there are two buttons, one for import and one for export.
33 + Click the import button.
34 + A file selection window will open.
35 + It will list all the files that are in your './editor/events' folder. (A folder called 'editor' inside your Caesar 3 folder, and a folder called 'events' inside that.)
36 + Select the file you want to import.
37 + Now click proceed. (The tick box.)
38 + The scenario events should update to reflect the events you just imported.
39
40
41 ## There is a map with interesting events on it. How can I see how the events are setup?
42 + In the assignment editor, load the map you want to import scenario events for.
43 + Open the scenario details window (button below the minimap).
44 + You'll see a button for 'Scenario Events'.
45 + Click that button.
46
47 If this is a new map (or one that doesn't have any events) then you'll see the number shows 0, and there is no list.
48 If there are already events in the map, you'll see a list of the events and how many conditions and actions each one has.
49
50 + When looking at the window that shows you info on the scenario events.
51 + There is a scrollable list that shows summary info on the events.
52 + Click an event to get more details on that event, its conditions, and actions.
53 + The new window will show you info for that specific event.
54 + Firstly it will show you if this event can repeat.
55 + Next is a list showing conditions and actions.
56 + Conditions are in red, and the type of condition and its parameters are shown.
57 + Actions are next, and their type of action and parameters are shown.
58
59
60 + When looking at the window that shows you info on the scenario events.
61 + At the bottom, click the export button.
62 + A file selection / save window appears.
63 + Type a new file name to save the exported events XML as.
64 + Alternatively, pick an existing file (BE CAREFUL! This will override that file!)
65 + Click the proceed button. (The tick box.)
66 + Outside of Caesar 3, go to the './evemts' folder (a folder inside your Caesar 3 folder).
67 + Open the exported file with a text editor. (Notepad++ or something similar.)
68 + You can see exactly how the scenario events were setup.
69 + This is also a valid XML file, you can import this again into a map.
70
71
72 ## How often are events checked and ran?
73
74 Every time the month ticks over (changes to the next month).
75
76
77 ## Event settings
78
79 There are a few settings we can set on the event itself.
80
81 Making the event repeat
82 + "repeat_months_min" = If this is greater than 0, and max is equal or greater than min, then this event will repeat (it becomes paused instead of disabled after running.)
83 + "repeat_months_max" = The event will become active again after a random number of months between min and max (if the two are equal, then the number is not random).
84 + "max_number_of_repeats" = This is the maximum number of times the event is allowed to trigger. Settings this to 0 will allow the event to trigger infinitely.
85
86
87 ## Available conditions
88
89 Here is a list of available conditions that can be used.
90 + "type =" is what it will be called in the XML.
91 + "Allowed values: " below shows you what values are allowed for that setting.
92
93
94 ### Building active count
95 + type = building_count_active
96 + check = What sort of check are we doing. Allowed values: "eq", "gte", "lte", "neq", "lt", "gt".
97 + value = The amount to check for. Allowed values: Any number from 0 to 10000000.
98 + building = Which type of building to cound.
99 - Allowed values: A very big list. Easiest is look at this condition type in the editor.
100 Otherwise, refer to: (special_attribute_mappings_buildings in "https://github.com/Keriew/augustus/blob/9429b006f38873749e4b4aa3c0cee99696eb23b2/src/scenario/scenario_events_parameter_data.c#L234")
101 - Some notes:
102 - "all_farms" = will count all farm types.
103 - "all_raw_materials" = will count all marble quarries, clay pits, timber yards, iron and gold mines.
104 - "all_workshops" = will count all workshops.
105 - "all_small_temples" = will count all small temples.
106 - "all_large_temples" = will count all large temples.
107 - "all_grand_temples" = will count all grand temples. (Excluding pantheon)
108 - "all_trees" = will count all decorative trees.
109 - "all_paths" = will count all decorative paths. (Including garden paths.)
110 - "all_parks" = will count all gardens, statues and ponds.
111
112
113 ### Building count (inactive or active)
114 + type = building_count_any
115 + check = What sort of check are we doing. Allowed values: "eq", "gte", "lte", "neq", "lt", "gt".
116 + value = The amount to check for. Allowed values: Any number from 0 to 10000000.
117 + building = Which type of building to cound.
118 - Allowed values: A very big list. Easiest is look at this condition type in the editor.
119 Otherwise, refer to: (special_attribute_mappings_buildings in "https://github.com/Keriew/augustus/blob/9429b006f38873749e4b4aa3c0cee99696eb23b2/src/scenario/scenario_events_parameter_data.c#L234")
120 - Some notes:
121 - "all_farms" = will count all farm types.
122 - "all_raw_materials" = will count all marble quarries, clay pits, timber yards, iron and gold mines.
123 - "all_workshops" = will count all workshops.
124 - "all_small_temples" = will count all small temples.
125 - "all_large_temples" = will count all large temples.
126 - "all_grand_temples" = will count all grand temples. (Excluding pantheon)
127 - "all_trees" = will count all decorative trees.
128 - "all_paths" = will count all decorative paths. (Including garden paths.)
129 - "all_parks" = will count all gardens, statues and ponds.
130
131
132 ### Building area
133 + type = building_count_area
134 + grid_offset = The grid_offset (map position) that is the center of the square to collapse buildings in.
135 + block_radius = The 'radius' of the square to check buildings in. A radius of 2 will give you a 5x5 square.
136 + building = Which type of building to cound.
137 - Allowed values: A very big list. Easiest is look at this condition type in the editor.
138 Otherwise, refer to: (special_attribute_mappings_buildings in "https://github.com/Keriew/augustus/blob/9429b006f38873749e4b4aa3c0cee99696eb23b2/src/scenario/scenario_events_parameter_data.c#L234")
139 - Some notes:
140 - "all_farms" = will count all farm types.
141 - "all_raw_materials" = will count all marble quarries, clay pits, timber yards, iron and gold mines.
142 - "all_workshops" = will count all workshops.
143 - "all_small_temples" = will count all small temples.
144 - "all_large_temples" = will count all large temples.
145 - "all_grand_temples" = will count all grand temples. (Excluding pantheon)
146 - "all_trees" = will count all decorative trees.
147 - "all_paths" = will count all decorative paths. (Including garden paths.)
148 - "all_parks" = will count all gardens, statues and ponds.
149 + check = What sort of check are we doing. Allowed values: "eq", "gte", "lte", "neq", "lt", "gt".
150 + value = The amount to check for. Allowed values: Any number from 0 to 10000000.
151
152
153 ### Count own troops
154 + type = count_own_troops
155 + check = What sort of check are we doing. Allowed values: "eq", "gte", "lte", "neq", "lt", "gt".
156 + value = The amount to check for. Allowed values: Any number from 0 to 100.
157 + in_city_only = Should it only count soldiers that are in the city? Allowed values: "false" or "true".
158 - "false" will also count soldiers that are away on empire missions.
159 - "true" will only count soldiers that are currently in the city.
160
161
162 ### Custom variable value
163 + type = variable_check
164 - Note: To import custom variable names via the events file, use "<variable uid="Myvariablename" initial_value="0"/>" entries in the variables section at the top of the events file. You can have a maximum of 100 different custom variables.
165 + variable_uid = The unique name (uid) of the custom variable to use.
166 - Allowed values: Any uid of any custom variable that you have imported / set up via the editor.
167 + check = What sort of check are we doing. Allowed values: "eq", "gte", "lte", "neq", "lt", "gt".
168 + value = The amount to check for. Allowed values: -1000000000 to 1000000000.
169
170
171 ### Favor
172 + type = stats_favor
173 + check = What sort of check are we doing. Allowed values: "eq", "gte", "lte", "neq", "lt", "gt".
174 + value = The amount to check for. Allowed values: Any number from 0 to 100.
175
176
177 ### Funds: City coffers
178 + type = money
179 + check = What sort of check are we doing. Allowed values: "eq", "gte", "lte", "neq", "lt", "gt".
180 + value = The amount to check for. Allowed values: Any number from -10000 to 1000000000.
181
182
183 ### Funds: Personal savings
184 + type = savings
185 + check = What sort of check are we doing. Allowed values: "eq", "gte", "lte", "neq", "lt", "gt".
186 + value = The amount to check for. Allowed values: Any number from 0 to 1000000000.
187
188
189 ### Game difficulty
190 + type = difficulty
191 + check = What sort of check are we doing. Allowed values: "eq", "gte", "lte", "neq", "lt", "gt".
192 + value = The difficulty to check for. Allowed values: "very_easy","easy","normal","hard","very_hard"
193
194
195 ### Months passed
196 + type = time
197 + check = What sort of check are we doing. Allowed values: "eq", "gte", "lte", "neq", "lt", "gt".
198 + min = The minimum amount of months to use for the check. Allowed values: Any number of 0 or more.
199 + max = The maximum amount of months to use for the check. Allowed values: Any number of "min" or more.
200
201
202 ### Population: City totals
203 + type = city_population
204 + check = What sort of check are we doing. Allowed values: "eq", "gte", "lte", "neq", "lt", "gt".
205 + value = The amount to check for. Allowed values: Any number from 0 to 10000000.
206 + class = Which class of pops to count. Allowed values: "all", "patrician", "plebeian", "slums"
207 - "all" = Total city population is counted.
208 - "patrician" = Only those living in villas or better are counted. WARNING: This stat is only updated once per year.
209 - "plebeian" = Only those living in insulae or lesser are counted. WARNING: This stat is only updated once per year.
210 - "slums" = Only those living in shacks or tents are counted. WARNING: This stat is only updated once per year.
211
212
213 ### Population: Unemployment
214 + type = population_unemployed
215 + percentage = Should the check do a percentage check? Allowed values: "false" or "true".
216 - "false" will compare total unemployed people to value given.
217 - "true" will compare % (0 to 100) of unemployed people as % of total population to value given.
218 + check = What sort of check are we doing. Allowed values: "eq", "gte", "lte", "neq", "lt", "gt".
219 + value = The amount to check for. Allowed values: Any number from 0 to 100.
220
221
222 ### Request: Is ongoing request
223 + type = request_is_ongoing
224 + request_id = Which request to check if it is currently ongoing. Allowed values: 0 to 19
225 + check_for_ongoing = Should this condition pass if the request is ongoing? Allowed values: "false" or "true".
226 - "false" this condition will pass if the request is not ongoing. I.e. has not yet started, or has been fulfilled or ignored and is gone again.
227 - "true" this condition will pass if the request is currently ongoing. I.e. the player can see the request message from Caesar, and still has a chance to fullfill it.
228
229
230 ### Resource storage available
231 + type = resource_storage_available
232 + resource = What resource to use. Allowed values: (Any resource name) "wheat", "timber", "marble", etc.
233 + check = What sort of check are we doing. Allowed values: "eq", "gte", "lte", "neq", "lt", "gt".
234 + value = The amount to check for. Allowed values: Any number from 0 to 1000000000.
235 + storage_type = What type of storages to check in. Allowed values: "all", "granaries", "warehouses".
236 - Note: If you check for non-food types in granaries, the answer will always be 0.
237 + respect_settings = Only count empty storage space that is set to accept the target resource. Allowed values: "false" or "true".
238 - Note: If false, will count any open storage space, regardless of if the player has set the target resource to be allowed there.
239 - Example: A lone warehouse is set to accept up to 8 wheat and 24 wood. And has only 4 wheat stored. If respect_settings = true, the answer is 4. If respect_settings = false, the answer is 28.
240
241
242 ### Resource stored count
243 + type = resource_stored_count
244 + resource = What resource to use. Allowed values: (Any resource name) "wheat", "timber", "marble", etc.
245 + check = What sort of check are we doing. Allowed values: "eq", "gte", "lte", "neq", "lt", "gt".
246 + value = The amount to check for. Allowed values: Any number from 0 to 1000000000.
247 + storage_type = What type of storages to check in. Allowed values: "all", "granaries", "warehouses".
248 - Note: If you check for non-food types in granaries, the answer will always be 0.
249
250
251 ### Rome Wages
252 + type = rome_wages
253 + check = What sort of check are we doing. Allowed values: "eq", "gte", "lte", "neq", "lt", "gt".
254 + value = The amount to check for. Allowed values: Any number from 0 to 10000.
255
256
257 ### Stats: City Health
258 + type = stats_health
259 + check = What sort of check are we doing. Allowed values: "eq", "gte", "lte", "neq", "lt", "gt".
260 + value = The amount to check for. Allowed values: Any number from 0 to 100.
261
262
263 ### Stats: Culture
264 + type = stats_culture
265 + check = What sort of check are we doing. Allowed values: "eq", "gte", "lte", "neq", "lt", "gt".
266 + value = The amount to check for. Allowed values: Any number from 0 to 100.
267
268
269 ### Stats: Favor
270 + type = stats_favor
271 + check = What sort of check are we doing. Allowed values: "eq", "gte", "lte", "neq", "lt", "gt".
272 + value = The amount to check for. Allowed values: Any number from 0 to 100.
273
274
275 ### Stats: Peace
276 + type = stats_peace
277 + check = What sort of check are we doing. Allowed values: "eq", "gte", "lte", "neq", "lt", "gt".
278 + value = The amount to check for. Allowed values: Any number from 0 to 100.
279
280
281 ### Stats: Prosperity
282 + type = stats_prosperity
283 + check = What sort of check are we doing. Allowed values: "eq", "gte", "lte", "neq", "lt", "gt".
284 + value = The amount to check for. Allowed values: Any number from 0 to 100.
285
286
287 ### Trade good sell price
288 + type = trade_sell_price
289 + resource = What resource to use. Allowed values: (Any resource name) "wheat", "timber", "marble", etc.
290 + check = What sort of check are we doing. Allowed values: "eq", "gte", "lte", "neq", "lt", "gt".
291 - Note: This checks the unadjusted trade price of the target resource. i.e. no caravserai or lighthouse discounts or penalties taken into account.
292 + value = The amount to check for. Allowed values: Any number from 0 to 1000000000.
293
294
295 ### Trade route is open
296 + type = trade_route_open
297 + target_city = The name of the city that you want to adjust the route of.
298 + check_for_open = Should this condition pass if the trade route is open? Allowed values: "false" or "true".
299 - "false" this condition will pass if the route has not yet been opened, or cannot be opened.
300 - "true" this condition will pass if the route is open.
301
302
303 ### Trade route opening price
304 + type = trade_route_price
305 + target_city = The name of the city that you want to adjust the route of.
306 + check = What sort of check are we doing. Allowed values: "eq", "gte", "lte", "neq", "lt", "gt".
307 + value = The amount to check for. Allowed values: Any number from 0 to 1000000000.
308 - Note: A trade route that is already open is considered to have a price of 0.
309
310
311
312
313 ## Available actions
314
315 Here is a list of available conditions that can be used.
316 + "type =" is what it will be called in the XML.
317 + "Allowed values: " below shows you what values are allowed for that setting.
318
319
320 ### Allowed buildings
321 + type = change_allowed_buildings
322 + building = What allowed buildings to change.
323 - Allowed values:
324 "none", "farms", "raw_materials", "workshops", "road", "wall", "aqueduct", "housing", "amphitheater",
325 "theater", "hippodrome", "colosseum", "gladiator_school", "lion_house", "actor_colony", "chariot_maker",
326 "gardens", "plaza", "statues", "doctor", "hospital", "bathhouse", "barber", "school", "academy",
327 "library", "prefecture", "fort", "gatehouse", "tower", "small_temples", "large_temples", "market",
328 "granary", "warehouse", "triumphal_arch", "dock", "wharf", "governor_home", "engineers_post",
329 "senate", "forum", "well", "oracle", "mission_post", "bridge", "barracks", "military_academy",
330 "monuments"
331 + allowed = Should this building type be allowed? Allowed values: "false" or "true".
332 - "false" = Building type is disabled and cannot be built.
333 - "true" = Building type is enable and avaiable for construction.
334
335
336 ### Buildings: Force collapse
337 + type = building_force_collapse
338 + grid_offset = The grid_offset (map position) that is the center of the square to collapse buildings in.
339 + block_radius = The 'radius' of the square to collapse buildings in. A radius of 2 will give you a 5x5 square.
340 + building = Which type of building to collapse.
341 - Allowed values: A very big list. Easiest is look at this condition type in the editor.
342 Otherwise, refer to: (special_attribute_mappings_buildings in "https://github.com/Keriew/augustus/blob/9429b006f38873749e4b4aa3c0cee99696eb23b2/src/scenario/scenario_events_parameter_data.c#L234")
343 + destroy_all = Should this collapse all building types, regardless of what is set in building? Allowed values: "false" or "true".
344 - "false" = Only collapse buildings that match the type given in building.
345 - "true" = Collapse all buildings in the target area.
346
347
348 ### Change custom variable
349 + type = change_variable
350 - Note: To import custom variable names via the events file, use "<variable uid="Myvariablename" initial_value="0"/>" entries in the variables section at the top of the events file. You can have a maximum of 100 different custom variables.
351 + variable_uid = The unique name (uid) of the custom variable to use.
352 - Allowed values: Any uid of any custom variable that you have imported / set up via the editor.
353 + value = The value to change the custom variable by (or set its value to if set_to_value = true). Allowed values: -1000000000 to 1000000000.
354 + set_to_value = Should we set the city health to the given value, instead of adding it? Allowed values: "false" or "true".
355 - "true" = The custom variable value will be set to what is given in 'value'.
356 - "false" = The 'value' will be added to the custom variable value.
357
358
359 ### Change resource stockpiles
360 + type = change_resource_stockpiles
361 + resource = The target resource. Allowed values: (Any resource name) "wheat", "timber", "marble", etc.
362 + amount = The amount to change the stockpile by. Allowed values: Any number from -1000000000 to 1000000000.
363 - Note: The value is in full loads.
364 - Note: Negative values will remove from the stockpiles. If you try to remove more than there is, it will simply remove as much as possible (so there will be none left).
365 - Note: Positive values will add to the stockpiles. If you try to add more than is possible (not enough free space) it will simply discard the rest (i.e. is lost).
366 + storage_type = What type of storages to check in. Allowed values: "all", "granaries", "warehouses".
367 - Note: You cannot change the stockpiles of non-food types in granaries. It will simply have no effect.
368 + respect_settings = If adding to the stockpiles, only add to places that accept that resource, and only up to the limits set. Allowed values: "false" or "true".
369 - Note: If false, and you are adding to the stockpiles, will add the resource to whatever empty space is found.
370
371
372 ### City change rating
373 + type = change_city_rating
374 + rating = The target rating to change. Allowed values: "peace", "prosperity"
375 + amount = The amount to adjust the opening price by (or set it to if set_to_value = true). Allowed values: -100 to 100.
376 - Note: The rating is limited to 0 to 100.
377 + set_to_value = Should we set the target rating to the given value, instead of adding it? Allowed values: "false" or "true".
378 - "true" = The target rating will be set to what is given in 'value'.
379 - "false" = The 'value' will be added to the current target rating.
380
381
382 ### City health
383 + type = city_health
384 + min = The minimum amount to adjust the city health by. Allowed values: -100 to 100.
385 + max = The maximum amount to adjust the city health by. Allowed values: -100 to 100. Must be larger than or equal to 'min'.
386 + set_to_value = Should we set the city health to the given value, instead of adding it? Allowed values: "false" or "true".
387 - "true" = City health will just be set to what is provided.
388 - "false" = Number will be added to the current city health.
389
390
391 ### Empire map: Convert future trade city
392 + type = empire_map_convert_future_trade_city
393 + target_city = The name of the city that you want to convert to a tradable city.
394 - Note: Target city must be defined as a future_trade city.
395 - WARNING! If you change the empire map / cities after importing this, then it may not be pointing to the correct route anymore!
396 - The name of the city is only checked once at the point of import.
397 - If you change the empire map / cities, then re-import the scenario events afterwards.
398 + show_message = Should we show the player an 'empire expanded' message? Allowed values: "false" or "true"
399 - "false" = No message is shown.
400 - "true" = The empire expanded message is shown.
401
402
403 ### Favour adjustment
404 + type = favor_add
405 + amount = The amount to adjust favour by. Allowed values: -100 to 100
406
407
408 ### Gladiator revolt
409 + type = gladiator_revolt
410 - Note: This does not take any additional parameters. It simply starts a gladiator revolt.
411 - Does nothing if a gladiator revolt is already underway, or if starting one is not possible.
412 - WARNING! If you are using this action, avoid using the editor gladiator revolt option. The two can clash and behave unexpectedly.
413
414
415 ### Money
416 + type = money_add
417 + min = The minimum amount to adjust money by. Allowed values: -10000000 to 10000000. (Negative values remove money.)
418 + max = The maximum amount to adjust money by. Allowed values: -10000000 to 10000000. Must be larger than or equal to 'min'.
419
420
421 ### Resource produced / available locally
422 + type = change_resource_produced
423 + resource = What resource to change. Allowed values: (Any resource name) "wheat", "timber", "marble", etc.
424 + produced = Should this resource be available in our city? Allowed values: "false" or "true".
425 - "false" = Resource will no longer be available in our city (if it was). Related buildings no longer available.
426 - "true" = Resource is now available in our city (if it wasn't). Related buildings can be built.
427
428
429 ### Request: Start immediately
430 + type = request_immediately_start
431 - Note: Can be used to have a request repeat more than once.
432 - Note: Will not do anything if that specific request is already active. (i.e. player has received the request but not fulfilled or ignored it yet.)
433 - Note: If you use this to start a request earlier than it is setup for, it will no longer run at its predefined time. (This action basically overwrites the request to start immediately, and start over if it has been fulfilled before.)
434 - Note: You cannot use this event at the start of the scenario, at least 1 month must pass before it can be used. (Does nothing at the start of the scenario.)
435 + request_id = The id of the request to start immediately. Allowed values: 0 to 19.
436 - 0 is the first request in the top left of the list in the editor.
437 - 1 is the second slot on the left, just below the first request.
438 - 9 is the last slot on the left.
439 - 10 is the top slot on the right.
440 - 19 is the last request in the bottom right of the list in the editor.
441 - Using a request_id for a request that doesn't exist (not set up) won't do anything.
442 - WARNING! If you add, remove or reorder requests. keep in mind that these Id will then point to a different request. (i.e. they point to the slot, not the specific request.)
443 - So make sure to check these ids if you move requests.
444
445
446 ### Rome wages
447 + type = change_rome_wages
448 - Note: Rome's wages can never drop below 1.
449 - Note: If you use this, you probably want to not make use of the scenario's random events for adjusting wages, as the they will likely 'fight' one another.
450 + min = The minimum amount to adjust Rome's wages by. Allowed values: -10000 to 10000.
451 + max = The maximum amount to adjust Rome's wages by. Allowed values: -10000 to 10000. Must be larger than or equal to 'min'.
452 + set_to_value = Should we set the wages to the given value, instead of adding it? Allowed values: "false" or "true".
453 - "true" = Rome's wages will just be set to what is provided.
454
455
456 ### Savings
457 + type = savings_add
458 + min = The minimum amount to adjust savings by. Allowed values: -10000000 to 10000000. (Negative values remove savings.)
459 + max = The maximum amount to adjust savings by. Allowed values: -10000000 to 10000000. Must be larger than or equal to 'min'.
460
461
462 ### Send standard message
463 + type = send_standard_message
464 + text_id = The name of the message to display to the player.
465 - Allowed values: A very big list. Refer to: (special_attribute_mappings_standard_message) in code.
466
467
468 ### Set Tax Rate
469 + type = tax_rate_set
470 + amount = The new tax rate to set for the player.
471 - Allowed values: Any number from 0 to 100.
472 - Note: This does not prevent the player from changing it again afterwards.
473
474
475 ### Show custom message
476 + type = show_custom_message
477 + message_uid = The unique name (uid) of the custom message to display to the player.
478 - Allowed values: Any uid of any message from custom messages that you have imported.
479
480
481 ### Trade good price
482 + type = trade_price_adjust
483 + resource = What resource to use. Allowed values: (Any resource name) "wheat", "timber", "marble", etc.
484 + amount = The amount to adjust the trade price (buy and sell). Allowed values: -10000 to 10000.
485 + show_message = Should we show the normal 'price changed' message? Allowed values: "false" or "true"
486
487
488 ### Trade route amount
489 + type = trade_route_amount
490 + target_city = The name of the city that you want to adjust the route of.
491 - WARNING! If you change the empire map / cities after importing this, then it may not be pointing to the correct route anymore!
492 - The name of the city is only checked once at the point of import.
493 - If you change the empire map / cities, then re-import the scenario events afterwards.
494 + resource = What resource to use. Allowed values: (Any resource name) "wheat", "timber", "marble", etc.
495 + amount = The amount to adjust the trade price (buy and sell). Allowed values: -10000 to 10000.
496 + show_message = Should we show the normal 'price changed' message? Allowed values: "false" or "true"
497 - "false" = No message is shown.
498 - "true" = The standard 'price has changed' message is shown.
499
500
501 ### Trade route change opening price
502 + type = change_trade_route_open_price
503 + target_city = The name of the city that you want to adjust the route of.
504 - WARNING! If you change the empire map / cities after importing this, then it may not be pointing to the correct route anymore!
505 - The name of the city is only checked once at the point of import.
506 - If you change the empire map / cities, then re-import the scenario events afterwards.
507 + amount = The amount to adjust the opening price by (or set it to if set_to_value = true). Allowed values: -1000000000 to 1000000000.
508 - Note: The final price will be set to 0 instead if it would result in a negative cost.
509 - Note: This does not close an already open route.
510 + set_to_value = Should we set the city health to the given value, instead of adding it? Allowed values: "false" or "true".
511 - "true" = The price will be set to what is given in 'value'.
512 - "false" = The 'value' will be added to the opening price of the route.
513 + show_message = Should we show the a 'route cost changed' message? Allowed values: "false" or "true"
514 - "false" = No message is shown.
515 - "true" = A 'route cost changed' message is shown. Displays city name and new opening price.
516
517
518 ### Trade: Land trade problems
519 + type = trade_problems_land
520 + duration = The duration in days of the disruption. Allowed values: 0 to 10000.
521 - Remember, in the game there are only 16 'days' in a month.
522 - Be careful! Players are used to trade problems lasting only 3 months. (48 days)
523
524
525 ### Trade: Sea trade problems
526 + type = trade_problems_sea
527 + duration = The duration in days of the disruption. Allowed values: 0 to 10000.
528 - Remember, in the game there are only 16 'days' in a month.
529 - Be careful! Players are used to trade problems lasting only 3 months. (48 days)
530
531
532 ### Trade good set price
533 + type = trade_price_set
534 + resource = What resource to set the price of. Allowed values: (Any resource name) "wheat", "timber", "marble", etc.
535 + amount = The new value to set the good price to. Allowed values: 0 to 100000.
536 + set_buy_price = Should we set the buy price to the new value? Allowed values: "false" or "true"
537 - "false" = The trade good price will be adjusted so that its sell price is equal to the given amount.
538 - "true" = The trade good price will be adjusted so that its buy price is equal to the given amount.
539 + show_message = Should we show the normal 'price changed' message? Allowed values: "false" or "true"
540 - "false" = No message is shown.
541 - "true" = The standard 'price has changed' message is shown.
542
543
544 ### Trade: Add new resource to route
545 + type = trade_route_add_new_resource
546 + target_city = The name of the city that you want to adjust the route of.
547 - WARNING! If you change the empire map / cities after importing this, then it may not be pointing to the correct route anymore!
548 - The name of the city is only checked once at the point of import.
549 - If you change the empire map / cities, then re-import the scenario events afterwards.
550 + resource = What resource to set the price of. Allowed values: (Any resource name) "wheat", "timber", "marble", etc.
551 + amount = The yearly trade limit of the resource being added. Allowed values: 0 to 1000000000.
552 + add_as_buying = Should the new resource be added to the target route as being bought by that route? Allowed values: "false" or "true"
553 - "false" = The route will sell the new resource.
554 - "true" = The route will buy the new resource.
555 + show_message = Should we show the normal 'increased trade' message? Allowed values: "false" or "true"
556 - "false" = No message is shown.
557 - "true" = The standard 'increased trade' message is shown.
558
559
560 ### Trade: Open route
561 + type = trade_route_set_open
562 + target_city = The name of the city that you want to adjust the route of.
563 - WARNING! If you change the empire map / cities after importing this, then it may not be pointing to the correct route anymore!
564 - The name of the city is only checked once at the point of import.
565 - If you change the empire map / cities, then re-import the scenario events afterwards.
566 + apply_cost = Should the trade route open cost be subtracted from the player's money? Allowed values: "false" or "true"
567 - "false" = The route is opened for free.
568 - "true" = The money is deducted from the player's money.
569
570
571 ### Trade: Set only the buy price for a resource
572 + type = trade_set_buy_price_only
573 + resource = What resource to set only the buy price of (sell price remains unchanged). Allowed values: (Any resource name) "wheat", "timber", "marble", etc.
574 + amount = The new price. Allowed values: 0 to 1000000000.
575 - If new buy price is less than 2, will be set to 2 instead.
576
577
578 ### Trade: Set only the sell price for a resource
579 + type = trade_set_sell_price_only
580 + resource = What resource to set only the sell price of (buy price remains unchanged). Allowed values: (Any resource name) "wheat", "timber", "marble", etc.
581 + amount = The new price. Allowed values: 0 to 1000000000.
582 - If new sell price is less than 1, will be set to 1 instead.
583