Развитие торговли
Задание

Развитие торговли

generic_tradein_game/common/missions/generic_trade_mission_pack.txt:1
Развитие торговли
ТребуетТорговый центрУлучшениеmission marketplace of capital, on startБольшой рынокУлучшениеmission marketplace of capital, on startКупеческие подворьяУлучшениеmission marketplace of capital, on startРеформацииЭпохаmission burgher privileges, mission solid approach, mission winds of trade, on startДокСооружениеmission establish docksСухой докСооружениеmission establish docksПакгаузСооружениеmission build entrepotРынокСооружениеmission marketplace of capitalПристаньСооружениеmission establish wharfsГорожанеСословиеabort, visibleБанковское делоИнститутenabledГорожане в парламентеТип модификатораmission burgher relations

Определениеin_game/common/missions/generic_trade_mission_pack.txt:1

2icon = generic_trade
3repeatable = yes
4player_playstyle = administrative
6visible = {
}
12enabled = {
13exists = capital.market
14has_ports = yes
15num_of_non_rural > 0
16has_embraced_institution = institution:banking
}
19chance = 3600
20abort = {
21OR = {
22NOT = {
22exists = capital.market
}
23NOT = {
23country_has_estate = estate_type:burghers_estate
}
}
}
26on_start = {
27set_variable = {
29value = {
30add = root.navy_size_percentage
31add = 0.05
32max = 1
}
}
35set_variable = {
37value = {
38add = total_effective_building_levels:coastal_fort
39add = total_effective_building_levels:naval_battery
40add = {
41value = total_effective_building_levels:coastal_fort
42add = total_effective_building_levels:naval_battery
43multiply = 0.1
44ceiling = yes
}
46min = 1
47max = {
48value = num_of_non_rural_ports
49add = 1
}
}
}
53set_variable = {
55value = {
56add = total_effective_building_levels:wharf
57add = {
58value = total_effective_building_levels:wharf
59multiply = 0.1
60ceiling = yes
}
62min = 1
63max = {
64value = num_of_non_rural_ports
65add = 1
}
}
}
69set_variable = {
71value = {
72add = total_effective_building_levels:dock
73add = total_effective_building_levels:dry_dock
74add = {
75value = total_effective_building_levels:dock
76add = total_effective_building_levels:dry_dock
77multiply = 0.1
78ceiling = yes
}
80min = 1
81max = {
82value = num_of_non_rural_ports
83add = 1
}
}
}
87set_variable = {
89value = {
90if = {
91limit = {
91has_advance = commerce_center_advance
}
92add = total_effective_building_levels:commerce_center
}
94else_if = {
95limit = {
}
96add = total_effective_building_levels:grand_marketplace
}
98else_if = {
99limit = {
}
100add = total_effective_building_levels:merchants_quarters
}
102else = {
102add = total_effective_building_levels:marketplace
}
103multiply = 1.1
104ceiling = yes
105min = 1
}
}
108set_variable = {
110value = {
111add = estate_satisfaction:burghers_estate
112multiply = 1.1
113min = 0.1
114max = 0.6
}
}
117set_variable = {
119value = {
120add = "estate(estate_type:burghers_estate).num_privileges"
121add = 2
122max = 10
}
}
125set_variable = {
127value = {
128add = "estate_power(estate_type:burghers_estate)"
129add = 0.05
130min = 0.1
131max = 0.75
}
}
135if = {
136limit = {
}
139set_variable = {
141value = {
143subtract = 15
144min = -95
145max = -5
}
}
148set_variable = {
150value = {
152add = 15
153min = 5
154max = 95
}
}
}
158ordered_owned_non_rural_location = {
159limit = {
159is_coastal = yes
}
160order_by = {
161value = proximity
162if = {
163limit = {
163is_capital = yes
}
164multiply = 0.85
}
166if = {
167limit = {
168any_neighbor_location = {
169is_land = no
170location_maritime_presence_power = {
171country = ROOT
172value <= 95
}
}
}
176multiply = 1.25
}
}
179max = 1
180random_neighbor_location = {
181limit = {
182is_land = no
183area = {
183is_area_coastal_sea = yes
}
}
185save_scope_as = target_maritime_mission_location
}
}
189if = {
190limit = {
190exists = scope:target_maritime_mission_location
}
191set_variable = {
193value = {
194add = "scope:target_maritime_mission_location.location_maritime_presence_power(root)"
195add = {
196value = "scope:target_maritime_mission_location.location_maritime_presence_power(root)"
197multiply = 0.1
198add = 10
}
200max = 95
}
}
}
205set_variable = {
207value = {
208add = "capital.market.merchant_capacity(root)"
209multiply = 1.1
210min = 5
}
}
214set_variable = {
}
}
223on_abort = {
224set_variable = {
}
231remove_variable = total_dock_levels_variable
232remove_variable = burghers_power_variable
233remove_variable = total_wharf_levels_variable
235remove_variable = burgher_relations_variable
236remove_variable = current_burgher_privs_variable
238if = {
}
242if = {
243limit = {
}
244remove_variable = target_mercantilism_variable
}
246if = {
247limit = {
247has_variable = target_free_trade_variable
}
248remove_variable = target_free_trade_variable
}
}
251on_completion = {
252set_variable = {
}
259remove_variable = total_dock_levels_variable
260remove_variable = burghers_power_variable
261remove_variable = total_wharf_levels_variable
263remove_variable = burgher_relations_variable
264remove_variable = current_burgher_privs_variable
266if = {
}
270if = {
271limit = {
}
272remove_variable = target_mercantilism_variable
}
274if = {
275limit = {
275has_variable = target_free_trade_variable
}
276remove_variable = target_free_trade_variable
}
}
282mission_establish_wharfs = {
283icon = maritime_advance_age_2
284requires = {
}
286enabled = {
287total_effective_building_levels:wharf >= var:total_wharf_levels_variable
}
290duration = 0
291bypass = {
292has_ports = no
}
294on_completion = {
295custom_tooltip = amount_of_impacted_locations_depends_on_crown_power_tt До 5 прибрежных Concept, где есть пристань, могут получить модификатор «Развитие морских перевозок» (эффект зависит от Concept):
296ordered_owned_non_rural_location = {
297limit = {
297has_building_with_at_least_one_level = wharf
}
298order_by = {
299value = development
300multiply = {
301value = market_access
302add = local_control
}
}
305max = {
306value = "estate_power(estate_type:crown_estate)"
307multiply = 5
308ceiling = yes
}
310add_location_modifier = {
313mode = replace
}
}
}
}
319mission_establish_docks = {
320icon = ship_building_advance
321requires = {
mission_establish_wharfs
}
323enabled = {
324OR = {
325total_effective_building_levels:dock >= var:total_dock_levels_variable
326total_effective_building_levels:dry_dock >= var:total_dock_levels_variable
}
}
330duration = 0
331bypass = {
332has_ports = no
}
334on_completion = {
335if = {
336limit = {
337OR = {
338total_effective_building_levels:dock > 0
339total_effective_building_levels:dry_dock > 0
}
}
342ordered_owned_non_rural_location = {
343limit = {
344OR = {
345has_building_with_at_least_one_level = dock
346has_building_with_at_least_one_level = dry_dock
}
}
349order_by = {
350value = development
351multiply = {
352value = market_access
353add = local_control
}
}
356max = 1
357change_development = development_severe_bonus (1)
}
}
360else = {
360custom_tooltip = one_dock_or_drydock_location_dev_severe_tt Один из наших лучших Concept, где есть Concept типа «Док» или «Сухой док», получит +1 к Concept
}
}
}
364mission_winds_of_trade = {
365icon = global_trade_routes_advance
366visible = {
}
369requires = {
mission_build_entrepot
}
370enabled = {
}
377duration = 0
378on_completion = {
379if = {
}
385else = {
386change_societal_value = {
}
}
}
}
391mission_solid_approach = {
392icon = merchant_power_from_maritime_reformation_advance
393visible = {
}
396requires = {
mission_winds_of_trade
}
397final = yes
405duration = 0
406on_completion = {
407add_country_modifier = {
410mode = replace
}
}
}
415mission_marketplace_of_capital = {
416icon = banking_advance
417requires = {
}
419enabled = {
420trigger_if = {
421limit = {
421has_advance = commerce_center_advance
}
422total_effective_building_levels:commerce_center >= {
424min = num_of_non_rural
}
}
427trigger_else_if = {
428limit = {
428has_advance = grand_marketplace_advance
}
429total_effective_building_levels:grand_marketplace >= {
431min = num_of_non_rural
}
}
434trigger_else_if = {
435limit = {
}
436total_effective_building_levels:merchants_quarters >= {
438min = num_of_non_rural
}
}
441trigger_else = {
442total_effective_building_levels:marketplace >= {
444min = num_of_non_rural
}
}
}
449duration = 0
450on_completion = {
451if = {
452limit = {
452total_effective_building_levels:marketplace > 0
}
453ordered_owned_non_rural_location = {
454limit = {
454has_building_with_at_least_one_level = marketplace
}
455order_by = {
456value = development
457multiply = {
458value = market_access
459add = local_control
}
}
462max = {
463value = "estate_power(estate_type:crown_estate)"
464multiply = 4
465ceiling = yes
}
467change_development = {
468value = 0.05
469multiply = "location_building_level(building_type:marketplace)"
470max = 1
}
472change_prosperity = {
473value = 0.0025
474multiply = "location_building_level(building_type:marketplace)"
475max = 0.05
}
}
}
479custom_tooltip = marketplace_amount_of_impacted_locations_depends_on_crown_power_tt До 4 Concept, где есть рынок, могут получить +0,25% к Concept и +0,05 к Concept за каждый уровень сооружений (эффект зависит от нашей Concept).
}
}
483mission_build_entrepot = {
484icon = route_to_the_indies_advance
485requires = {
mission_marketplace_of_capital
}
487enabled = {
488total_effective_building_levels:entrepot > 0
}
491duration = 0
492on_completion = {
493if = {
494limit = {
494total_effective_building_levels:entrepot > 0
}
495ordered_owned_non_rural_location = {
496limit = {
496has_building_with_at_least_one_level = entrepot
}
497order_by = {
498value = development
499multiply = {
500value = market_access
501add = local_control
}
}
504max = 1
505add_location_modifier = {
508mode = replace
}
}
}
512else = {
512custom_tooltip = entrepot_task_reward_tt Один из наших лучших Concept, где есть Concept типа «Пакгауз», на 5 лет получит Concept «Приток купцов»
}
}
}
516mission_establish_market_center = {
517icon = diplomatic_training_diplomatic_capacity
518requires = {
mission_build_entrepot
}
519enabled = {
520custom_tooltip = {
521text = owns_capital_market_center_tt Нам принадлежит Concept, где находится наш Concept город Capital
522capital.market ?= {
523any_location_in_market = {
524is_ownable = yes
525is_market_center = yes
526top_owner ?= root
}
}
}
}
532duration = 0
533on_completion = {
534capital.market ?= {
535add_merchant_power = {
536country = root
537key = market_dominance_key
}
}
}
}
545mission_burgher_relations = {
546icon = guilds
547requires = {
}
548enabled = {
549estate_satisfaction:burghers_estate >= var:burgher_relations_variable
}
552duration = 0
553bypass = {
554NOT = {
554country_has_estate = estate_type:burghers_estate
}
}
556on_completion = {
557if = {
559add_country_modifier = {
562mode = replace
}
564custom_tooltip = based_on_burghers_estate_tax_we_gain_tt В зависимости от Concept и Concept сословия «Горожане»:
565add_gold = estate_tax_base:burghers_estate
}
567else = {
568custom_tooltip = based_on_burghers_estate_tax_we_gain_tt В зависимости от Concept и Concept сословия «Горожане»:
569add_gold = {
570value = estate_tax_base:burghers_estate
571multiply = 3
}
}
}
}
577mission_burgher_privileges = {
578icon = cultural_acceptance_advance
579requires = {
mission_burgher_relations
}
580enabled = {
581OR = {
582estate(estate_type:burghers_estate) = {
582num_privileges >= root.var:current_burgher_privs_variable
}
583estate_power(estate_type:burghers_estate) >= var:burghers_power_variable
}
}
587duration = 0
588on_completion = {
596else_if = {
597limit = {
}
598change_societal_value = {
}
}
600add_country_modifier = {
603mode = extend
}
}
}
608mission_increase_maritime_presence = {
609icon = continental_trade
610requires = {
mission_build_entrepot
mission_burgher_privileges
mission_protect_our_coasts
}
611final = yes
612enabled = {
613scope:target_maritime_mission_location = {
614location_maritime_presence_power = {
615country = ROOT
616value >= root.var:target_location_maritime_presence_variable
}
}
}
621duration = 0
622on_completion = {
623add_country_modifier = {
626mode = replace
}
}
}
631mission_protect_our_coasts = {
632icon = royal_navy
633requires = {
mission_burgher_relations
}
635enabled = {
636OR = {
637total_effective_building_levels:coastal_fort >= var:total_coastal_fort_battery_levels_variable
638total_effective_building_levels:naval_battery >= var:total_coastal_fort_battery_levels_variable
}
}
642duration = 0
644bypass = {
644NOT = {
644exists = scope:target_maritime_mission_location
}
}
645on_completion = {
646if = {
647limit = {
647exists = scope:target_maritime_mission_location
}
}
649scope:target_maritime_mission_location ?= {
650change_maritime_presence_power = {
651country = root
}
}
}
}
659mission_merchant_fleet = {
660icon = por_bombardeiros
661requires = {
mission_burgher_relations
}
663enabled = {
664OR = {
665trigger_if = {
666limit = {
}
667navy_size_percentage >= var:target_navy_size_percentage_variable
}
669trigger_else = {
669navy_size_percentage > 0.1
}
670total_sub_unit_count:navy_light_ship >= {
671value = expected_navy_size
672multiply = 0.1
673min = 1
}
}
}
678bypass = {
678has_ports = no
}
680duration = 30
681on_completion = {
682add_navy_tradition = navy_tradition_mild_bonus (5)
}
}
686mission_trade_capacity = {
687icon = global_trade_advance
688requires = {
mission_merchant_fleet
}
690enabled = {
691capital.market ?= {
692merchant_capacity = {
693country = root
694value >= root.var:target_merchant_capacity_market_variable
}
}
}
700duration = 0
701on_completion = {
702add_country_modifier = {
704mode = replace
}
}
}