
ActionChanged this version
Spread an Old World Good
We can spread one of our traditional goods to our Locations in America, but the locals will not like it, and we will need to restart the development of that location's R.G.O.
ArcticClimateselect trigger 4
Hot AridClimateselect trigger 4
Cold AridClimateselect trigger 4
ContinentalClimateselect trigger 4
MediterraneanClimateselect trigger 4
OceanicClimateselect trigger 4
SubtropicalClimateselect trigger 4
TropicalClimateselect trigger 4
BeeswaxGoodsselect trigger 4
ClovesGoodsselect trigger 4
CoffeeGoodsselect trigger 4
CottonGoodsselect trigger 4Definitionin_game/common/generic_actions/columbian_exchange.txt:392
393type = situation
395ai_tick = monthly
396ai_tick_frequency = 60
397automation_tick = never
398automation_tick_frequency = 12
400maximum_targets_in_one_tick = 20
401disallowed_duplicates_of_targets_for_ai = {
target_location
}
403potential = {
}
406allow = {
407scope:actor ?= {
408any_market_present_in_country = {
409has_old_world_goods_in_market = yes
}
}
}
414price = price:move_good_to_new_location
416select_trigger = {
417looking_for_a = situation
418target_flag = recipient
419name = "choose_situation" Choose the Situation:
420column = {
420data = name
}
}
428select_trigger = {
429looking_for_a = goods
430target_flag = target_good
431ai_interaction_source_list = {
432every_goods = {
433limit = {
434has_origin_in_old_world = yes
}
436save_temporary_scope_as = temp_good
437scope:actor = {
438random_market_present_in_country = {
439limit = {
440goods_demand_in_market(scope:temp_good) > "goods_supply_in_market(scope:temp_good)"
}
442scope:temp_good = {
443add_to_list = source
445if = {
446limit = {
447is_food = yes
}
449add_to_list = source
}
}
}
}
}
}
456name = "spread_select_goods" Select the Goods to spread
457none_available_msg_key = "move_ow_good_to_new_location_no_available_good"
458column = {
458data = name
}
459visible = {
460has_origin_in_old_world = yes
}
}
465select_trigger = {
466looking_for_a = region
467source = actor
468target_flag = target_region
469name = "choose_a_region" Choose a Region
470none_available_msg_key = "no_regions_available"
471column = {
471data = name
}
472visible = {
473OR = {
474continent = continent:america
475continent = continent:oceania
476this = region:macaronesia_region
}
478scope:actor = {
479owns_or_has_subject_in = prev
}
}
}
484select_trigger = {
485looking_for_a = location
486source = target_region
487source_flags = only_actual_locations
488target_flag = target_location
489ai_interaction_source_list = {
490scope:target_region = {
491every_area_in_region = {
492limit = {
493scope:actor = {
493owns_or_has_subject_in = prev
}
}
495every_province_definition_in_area = {
496limit = {
497scope:actor = {
497owns_or_has_subject_in = prev
}
499raw_material_amount(scope:target_good) < 2
}
501every_ownable_location_in_province_definition = {
502limit = {
503owner ?= {
504is_subject_or_below_of = scope:actor
}
507NOT = {
507raw_material ?= scope:target_good
}
}
509add_to_list = source
}
}
}
}
}
515name = "choose_location" Choose a Location
516none_available_msg_key = "move_ow_good_to_new_location_no_available_location"
517column = {
517data = name
}
518column = {
518data = raw_material
}
519visible = {
520is_ownable = yes
521has_owner = yes
522OR = {
523owner ?= scope:actor
524top_owner ?= scope:actor
}
526OR = {
527continent = continent:america
528continent = continent:oceania
529region = region:macaronesia_region
}
532trigger_if = {
545OR = {
}
}
554trigger_if = {
568OR = {
}
}
577trigger_if = {
592OR = {}
}
603trigger_if = {
}
624trigger_if = {
634OR = {
}
644NOR = {
645region = region:east_coast_region
646region = region:great_plains_region
647region = region:caribbean_region
}
}
651trigger_if = {
656OR = {
}
671NOR = {
672region = region:east_coast_region
}
}
676trigger_if = {
}
697trigger_if = {
706OR = {
}
712OR = {
}
718NOR = {
719region = region:great_plains_region
720region = region:caribbean_region
}
}
724trigger_if = {
738OR = {
}
}
748trigger_if = {
762OR = {
}
}
776trigger_if = {
}
796trigger_if = {
}
818trigger_if = {
}
836trigger_if = {
}
850trigger_if = {
}
}
}
865effect = {
866scope:target_location ?= {
867change_max_raw_material_workers = {
868value = rgo_workers
869subtract = 1
870min = 0
871multiply = -1
}
874change_raw_material = scope:target_good
}
}
878ai_will_do = {
881add = 200
}