
MissionChanged this version
Develop a Capital Economy

TraditionsAgemission prepare trade focus
RenaissanceAgemission prepare trade focus
DiscoveryAgemission prepare trade focus
ReformationAgemission prepare trade focus
AbsolutismAgemission prepare trade focus
RevolutionsAgemission prepare trade focus
BurghersEstatevisible
ClayGoodsmission expand construction materials, mission import construction materials, mission secure construction material
LumberGoodsmission expand construction materials, mission import construction materials, mission secure construction material
SandGoodsmission expand construction materials, mission import construction materials, mission secure construction material
StoneGoodsmission expand construction materials, mission import construction materials, mission secure construction materialmission_construct_additional_goods_producing_buildingsVariablemission construct goods industryDefinitionin_game/common/missions/generic_capital_economy_mission_pack.txt:1
2icon = generic_capital_economy
3repeatable = yes
4player_playstyle = administrative
5visible = {
7num_of_non_rural > 0
}
13enabled = {
14exists = capital.market
}
17chance = 3600
18select_trigger = {
19looking_for_a = market
21interaction_source_list = {
22scope:actor = {
23every_market_present_in_country = {
24add_to_list = source
}
}
}
28name = "mission_select_market" Select a Market for the Mission
29none_available_msg_key = "mission_no_markets"
30column = {
31data = name
}
33visible = {
34merchant_capacity = {
35country = scope:actor
36value > 0
}
}
}
40on_start = {
41estate(estate_type:burghers_estate) = {
42root = {
43set_variable = {
45value = {
46value = 2
47add = prev.num_privileges
}
}
}
}
}
57on_completion = {
}
82on_abort = {
}
106mission_grant_burghers_privileges = {
107icon = cultural_acceptance_advance
108requires = {
}
109enabled = {
110trigger_if = {
112OR = {
113AND = {
114estate(estate_type:burghers_estate) = {
115num_privileges >= root.var:mission_task_privilege_amount
}
117estate_satisfaction:burghers_estate >= 0.5
}
119estate_satisfaction:burghers_estate >= 0.6
}
}
122trigger_else = {
122always = no
}
}
127duration = 0
129on_completion = {
130ordered_owned_non_rural_location = {
131order_by = {
132value = development
133multiply = {
134value = market_access
135add = local_control
}
}
138max = {
139value = "estate_power(estate_type:crown_estate)"
140multiply = 4
141ceiling = yes
}
143add_location_modifier = {
146mode = replace
}
}
149custom_tooltip = up_to_4_locations_decaying_mod_based_on_crown_power_tt Up to 4 Urban Locations will be impacted by the Powerful Merchant Center Decaying Modifier based on our Crown Power
}
}
153mission_setup_trade = {
154icon = merchants_and_trade
155requires = {
}
156enabled = {
157num_of_trades > 0
158any_trade = {
159OR = {
160from_market = scope:mission_target_market
161to_market = scope:mission_target_market
}
}
}
165on_persistent_completion = {
166custom_tooltip = designate_urban_location_for_next_task_tt We will be able to choose an Urban Location for subsequent Mission Tasks
167if = {
168limit = {
168exists = scope:mission_setup_trade_target_location
}
169set_variable = {
171value = {
172value = scope:mission_setup_trade_target_location.num_pop_type:burghers
173add = 0.2
}
}
}
}
179select_trigger = {
180looking_for_a = location
181source = actor
182target_flag = mission_setup_trade_target_location
183name = "mission_task_select_town_or_city" Select an Urban Location for the Task
184none_available_msg_key = "mission_task_no_town_or_city"
185column = {
186data = name
}
188column = {
189data = population
}
191visible = {
192has_owner = yes
193owner = scope:actor
194market ?= scope:mission_target_market
195rank_index <= 2
}
}
}
200mission_attracting_new_burghers = {
201icon = maritime_advance_age_2
202requires = {
mission_grant_burghers_privileges
mission_setup_trade
}
206enabled = {
207trigger_if = {
208limit = {
208exists = scope:mission_setup_trade_target_location
}
209scope:mission_setup_trade_target_location = {
210num_pop_type:burghers >= root.var:mission_task_burghers_increase_amount
211owner = root
}
}
214trigger_else = {
215custom_tooltip = {
216text = triggers_revealed_after_previous_task_complete_tt The requirements of this Mission Task will be revealed once we complete the previous Mission Task
217always = no
}
}
}
224duration = 0
226on_completion = {
227change_societal_value = {
}
}
}
234mission_embrace_capital_economy = {
235icon = court_accounting
236requires = {
mission_attracting_new_burghers
}
237duration = 365
238on_persistent_completion = {
239if = {
240limit = {
240exists = scope:mission_setup_trade_target_location
}
241set_variable = {
243value = scope:mission_setup_trade_target_location.max_control
}
}
}
247modifier_while_progressing = {
}
251on_start = {
252custom_tooltip = monthly_events_about_capital_economy_tt Monthly Events about our attempts to embrace the capital economy Societal Value may occur while this Mission Task is actively progressing
}
255on_monthly = {
256random_list = {
26275 = {
}
}
}
}
267mission_prepare_industry_focus = {
268icon = rudimentary_coastal_ship_repair
269visible = {
270NOT = {
270mission_task_completed = mission_task:mission_prepare_trade_focus
}
}
272requires = {
mission_embrace_capital_economy
}
273highlight = {
274this = scope:mission_setup_trade_target_location
}
276enabled = {
277trigger_if = {
278limit = {
279exists = scope:mission_setup_trade_target_location
}
282scope:mission_setup_trade_target_location = {
283owner = root
284controller = root
285rank_index <= 2
286province ?= {
286is_starving = no
}
287has_siege = no
288local_control >= root.var:mission_task_control_increase_to_max
}
}
291trigger_else = {
292custom_tooltip = {
293text = need_mission_embrace_capital_economy_tt The requirements of this Mission Task will activate when we select an Urban Location in Embracing the Capital Economy
294always = no
}
}
297NOT = {
297mission_task_completed = mission_task:mission_prepare_trade_focus
}
}
299duration = 0
301select_trigger = {
302looking_for_a = goods
303target_flag = goods
304name = "mission_select_goods" Select a Good for the Mission
305none_available_msg_key = "mission_no_goods"
306column = {
307data = name
}
309visible = {
310scope:mission_target_market = {
311NOT = {
311is_export_banned = root
}
}
313goods_category = produced
314any_production_method = {
315is_available_for = scope:actor
316produced_goods ?= root
}
}
}
320on_persistent_start = {
321if = {
322limit = {
322exists = scope:goods
}
}
328set_variable = {
330value = {
331value = scope:mission_setup_trade_target_location.raw_material_output
332divide = 4
333add = scope:mission_setup_trade_target_location.raw_material_output
}
}
}
341on_completion = {
342add_country_modifier = {
345mode = replace
}
}
348on_persistent_completion = {
349if = {
350limit = {
350NOT = {
350exists = scope:goods
}
}
351ordered_goods = {
352order_by = "price_in_market(scope:mission_target_market)"
353limit = {
354goods_category = produced
355scope:mission_target_market ?= {
356NOT = {
356is_export_banned = PREV
}
}
358any_production_method = {
359is_available_for = root
360produced_goods ?= prev
}
}
363max = 1
364save_scope_as = goods
}
}
}
}
370mission_expand_construction_materials = {
371icon = rudimentary_coastal_ship_repair
373requires = {
mission_prepare_industry_focus
}
374bypass = {
374mission_task_completed = mission_task:mission_import_construction_materials
}
375highlight = {
376has_owner = yes
377owner = root
378raw_material ?= {
}
386trigger_if = {
388raw_material_output < root.var:mission_task_construction_material_output
}
390is_full_expanded_rgo = no
}
392enabled = {
393trigger_if = {
395any_owned_location = {
396raw_material ?= {
}
404OR = {
405raw_material_output >= root.var:mission_task_construction_material_output
406is_full_expanded_rgo = yes
}
}
}
410trigger_else = {
410always = no
}
}
413on_completion = {
419ordered_owned_location = {
420limit = {
421OR = {
}
}
428order_by = raw_material_output
429check_range_bounds = no
430max = {
431value = "estate_power(estate_type:crown_estate)"
432multiply = 5
433ceiling = yes
}
}
}
}
439mission_import_construction_materials = {
440icon = continental_trade
442requires = {
mission_prepare_industry_focus
}
443bypass = {
443mission_task_completed = mission_task:mission_expand_construction_materials
}
444enabled = {
445trigger_if = {
448any_import = {
}
}
}
458trigger_else = {
459always = no
}
}
462on_completion = {
464ordered_location_in_market = {
465limit = {
466owner ?= root
}
468order_by = {
469value = population
470multiply = local_control
}
472max = 2
474add_location_modifier = {
}
}
}
}
}
484mission_secure_construction_material = {
485icon = pyramid_architecture
487requires = {
mission_expand_construction_materials
mission_import_construction_materials
}
491enabled = {
492scope:mission_target_market ?= {
493OR = {
}
}
}
501on_completion = {
502add_estate_satisfaction = {
}
}
}
509mission_secure_production_resource = {
510icon = expanded_supply_trains
512requires = {
mission_prepare_industry_focus
}
513highlight = {
514has_owner = yes
515owner = root
516raw_material = {
517any_production_method = {
518is_available_for = root
519produced_goods ?= root.var:mission_target_goods
520requires_goods = prev
}
}
}
524enabled = {
525any_production_method = {
526produced_goods ?= root.var:mission_target_goods
527is_available_for = root
528custom_tooltip = {
529text = mission_secure_production_resource_tt All required Goods for the current Production Method are in surplus in Market
530any_required_goods = {
531is_in_surplus_in_market = {
531market = scope:mission_target_market
531country = root
531value > 0
}
532count = all
}
}
}
}
537on_persistent_completion = {
538hidden_effect = {
539set_variable = {
541value = {
542value = "total_effective_goods_production_buildings(var:mission_target_goods)"
543multiply = 1.2
544ceiling = yes
}
}
547round_variable = {
549nearest = 1
}
}
}
553on_completion = {
554ordered_owned_location = {
555limit = {
556raw_material = {
557any_production_method = {
558is_available_for = root
559produced_goods ?= root.var:mission_target_goods
560requires_goods = prev
}
}
}
564order_by = raw_material_output
565check_range_bounds = no
566max = {
567value = "estate_power(estate_type:crown_estate)"
568multiply = 5
569ceiling = yes
}
571add_location_modifier = {
574mode = replace
}
}
}
}
580mission_construct_goods_industry = {
581icon = colonial_heritage
582visible = {
582mission_task_completed = mission_task:mission_prepare_industry_focus
}
583requires = {
mission_secure_construction_material
mission_secure_production_resource
}
587highlight = {
588has_owner = yes
589owner = root
}
591enabled = {
592trigger_if = {
594total_effective_goods_production_buildings = {
}
598always = yes
}
600trigger_else = {
601custom_tooltip = {
602text = when_we_complete_mission_secure_production_resource_tt The requirements of this Mission Task will be revealed when we complete the Gain Production Goods Mission Task
603always = no
}
}
}
607on_completion = {
608add_country_modifier = {
611mode = replace
}
}
}
616mission_satisfy_own_demands = {
617icon = local_nobility
618visible = {
618mission_task_completed = mission_task:mission_prepare_industry_focus
}
619requires = {
mission_construct_goods_industry
}
620highlight = {
621has_owner = yes
622owner = root
}
624enabled = {
625scope:mission_target_market ?= {
626exists = root.var:mission_target_goods
627NOT = {
627demands_goods_by_pops = root.var:mission_target_goods
}
}
}
}
635mission_export_produced_goods = {
636icon = maritime_advance_age_2
637visible = {
637mission_task_completed = mission_task:mission_prepare_industry_focus
}
638requires = {
mission_construct_goods_industry
}
639highlight = {
640has_owner = yes
641owner = root
}
643enabled = {
644trigger_if = {
649scope:mission_target_market = {
650any_export = {
651owner ?= root
652goods = root.var:mission_target_goods
653trade_profit > 0
}
}
}
657trigger_else_if = {
659scope:mission_target_market = {
660any_export = {
661owner ?= root
662trade_profit > 0
}
}
}
666trigger_else = {
667capital.market = {
668any_export = {
669owner ?= root
670trade_profit > 0
}
}
}
}
675on_persistent_completion = {
676hidden_effect = {
677if = {
678limit = {
679exists = root.var:mission_target_goods
}
681scope:mission_target_market = {
682random_export = {
683limit = {
684owner ?= root
685goods = root.var:mission_target_goods
686trade_profit > 0
}
688save_scope_as = target_trade
}
}
691set_variable = {
693value = {
694value = scope:target_trade.trade_profit
695multiply = 2
696add = 1
}
}
}
}
}
703on_completion = {
704add_country_modifier = {
707mode = replace
}
}
}
712mission_create_profit = {
713icon = improve_relation_impact_renaissance
714visible = {
714mission_task_completed = mission_task:mission_prepare_industry_focus
}
715requires = {
mission_satisfy_own_demands
mission_export_produced_goods
}
719final = yes
720highlight = {
721has_owner = yes
722owner = root
}
724enabled = {
725trigger_if = {
727scope:mission_target_market = {
728any_export = {
729owner ?= root
730goods = root.var:mission_target_goods
731trade_profit > root.var:mission_profit_to_beat
}
}
}
735trigger_else = {
736custom_tooltip = {
737text = requires_mission_export_produced_goods_tt The requirements of this Mission Task will activate once we complete its prerequisite Mission Tasks
738always = no
}
}
}
742on_completion = {
743add_country_modifier = {
746mode = replace
}
}
}
751mission_prepare_trade_focus = {
752visible = {
753NOT = {
753mission_task_completed = mission_task:mission_prepare_industry_focus
}
}
755icon = merchant_power_from_maritime_reformation_advance
756requires = {
mission_embrace_capital_economy
}
757enabled = {
758scope:mission_target_market = {
759has_merchant = root
760used_merchant_capacity = {
761country = root
762value > 5
}
}
765NOT = {
765mission_task_completed = mission_task:mission_prepare_industry_focus
}
}
767duration = 0
768on_persistent_start = {
769set_variable = {
771value = {
772value = "scope:mission_target_market.merchant_capacity(root)"
773multiply = 1.5
}
}
776set_variable = {
778value = {
779value = "scope:mission_target_market.merchant_power_in_market(root)"
780if = {
787multiply = 1.15
}
}
}
}
808on_completion = {
809add_country_modifier = {
812mode = replace
}
}
}
817mission_expand_merchant_capacity = {
819icon = maritime_advance_age_2
820requires = {
mission_prepare_trade_focus
}
821enabled = {
822trigger_if = {
824scope:mission_target_market = {
825merchant_capacity = {
826country = root
827value >= root.var:mission_task_merchant_capacity_increase
}
}
}
831trigger_else = {
831always = no
}
}
833duration = 0
835on_completion = {
836add_country_modifier = {
}
}
}
844mission_expand_merchant_power = {
846icon = global_supply_limit_modifier_advance_5
847requires = {
mission_prepare_trade_focus
}
848enabled = {
849trigger_if = {
851scope:mission_target_market = {
852merchant_power_in_market = {
853country = root
854value >= root.var:mission_task_merchant_power_increase
}
}
}
858trigger_else = {
859custom_tooltip = {
860text = requirements_for_this_task_arent_available_yet_tt The requirements of this Task are not available until its Mission becomes active
861always = no
}
}
}
865duration = 0
867on_completion = {
868add_country_modifier = {
}
}
}
876mission_get_into_profitable_export = {
878icon = merchants_and_trade
879requires = {
mission_expand_merchant_capacity
}
880enabled = {
881scope:mission_target_market = {
882any_export = {
883owner ?= root
884trade_profit > 0
885count >= 4
}
}
}
889duration = 0
}
896mission_get_into_profitable_import = {
898icon = merchant_power_from_maritime_reformation_advance
899requires = {
mission_expand_merchant_power
}
900enabled = {
901scope:mission_target_market = {
902any_import = {
903owner ?= root
904trade_profit > 0
905count >= 4
}
}
}
909duration = 0
910on_persistent_completion = {
911set_variable = {
913value = {
914value = scope:mission_target_market.total_goods_value_traded
915multiply = {
1.05
1.1
}
}
}
}
}
925mission_improve_market_worth = {
927icon = court_accounting
928requires = {
mission_get_into_profitable_export
mission_get_into_profitable_import
}
932enabled = {
933trigger_if = {
935scope:mission_target_market = {
936total_goods_value_traded > root.var:mission_task_total_goods_value_increase
}
}
939trigger_else = {
939always = no
}
}
941duration = 0
942on_persistent_completion = {
944set_variable = {
946value = {
947value = num_of_markets_with_merchants
948add = 3
}
}
}
953on_completion = {
954custom_tooltip = up_to_5_locations_decaying_mod_based_on_crown_power_and_scale_dev_tt Up to 5 Locations will gain Development based on our Crown Power. The Development gain will depend on each location's Market Access to the Mission Target Market Market
955ordered_owned_location = {
956limit = {
957market = scope:mission_target_market
}
959order_by = market_access
960check_range_bounds = no
961max = {
962value = "estate_power(estate_type:crown_estate)"
963multiply = 5
964ceiling = yes
}
}
}
}
974mission_trade_in_new_markets = {
976icon = route_to_the_indies_advance
977requires = {
mission_improve_market_worth
}
978enabled = {
979trigger_if = {
982always = yes
}
984trigger_else = {
984always = no
}
}
986duration = 0
987on_persistent_completion = {
989set_variable = {
991value = {
992value = monthly_trade_income
993multiply = 1.25
}
}
}
997on_completion = {
998capital = {
999add_location_modifier = {
1002mode = extend
}
}
}
}
1008mission_light_ships = {
1013icon = global_trade_routes_advance
1014requires = {
mission_improve_market_worth
}
1015bypass = {
1016num_of_ports = 0
}
1018enabled = {
1019OR = {
1020navy_size_percentage >= 0.5
1021total_sub_unit_count:navy_light_ship >= {
1022value = 1
1023add = {
1024value = root.monthly_income_trade_and_tax
1025multiply = 0.05
}
}
}
}
1030duration = 0
}
1037mission_embrace_capital_economy_trade_focus = {
1039icon = improve_relation_impact_renaissance
1040requires = {
mission_trade_in_new_markets
mission_light_ships
}
1044enabled = {
1045trigger_if = {
}
1049trigger_else = {
1049always = no
}
}
1051final = yes
1052duration = 0
1053on_completion = {
1054add_country_modifier = {
}
}
}