Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace = improved_colonial
- #Pass control on finished
- province_event = {
- id = improved_colonial.1
- title = "improved_colonial.1.t"
- desc = "improved_colonial.1.d"
- picture = POPE_PREACHING_eventPicture
- trigger = {
- OR = {
- continent = north_america
- continent = south_america
- }
- is_colony = no
- has_province_flag = improved_colonial_give_away
- any_neighbor_province = {
- has_province_flag = improved_colonial_give_province
- owner = {
- is_colonial_nation = yes
- colonial_parent = {
- OR = {
- ROOT = {
- owned_by = PREV
- }
- any_country = {
- is_colonial_nation = yes
- is_colonial_nation_of = PREV
- ROOT = {
- owned_by = PREV
- }
- }
- }
- }
- }
- }
- }
- mean_time_to_happen = {
- days = 1
- }
- hidden = yes
- option = {
- name = "improved_colonial.1.a"
- random_neighbor_province = {
- limit = {
- has_province_flag = improved_colonial_give_province
- owner = {
- is_colonial_nation = yes
- colonial_parent = {
- OR = {
- ROOT = {
- owned_by = PREV
- }
- any_country = {
- is_colonial_nation = yes
- is_colonial_nation_of = PREV
- ROOT = {
- owned_by = PREV
- }
- }
- }
- }
- }
- }
- clr_province_flag = improved_colonial_give_province
- owner = {
- save_event_target_as = colnat
- }
- }
- owner = {
- save_event_target_as = daddy
- }
- clr_province_flag = improved_colonial_give_away
- event_target:colnat = {
- ROOT = {
- cede_province = PREV
- add_core = PREV
- }
- }
- event_target:daddy = {
- ROOT = {
- remove_core = PREV
- }
- }
- add_local_autonomy = -100
- add_local_autonomy = 50
- }
- }
- #Remove flag if impossible to pass control
- province_event = {
- id = improved_colonial.2
- title = "improved_colonial.1.t"
- desc = "improved_colonial.1.d"
- picture = POPE_PREACHING_eventPicture
- trigger = {
- OR = {
- continent = north_america
- continent = south_america
- }
- is_overseas = yes
- is_colony = no
- has_province_flag = improved_colonial_give_away
- all_neighbor_province = {
- NOT = {
- has_province_flag = improved_colonial_give_province
- }
- }
- }
- mean_time_to_happen = {
- days = 1
- }
- hidden = yes
- option = {
- name = "improved_colonial.1.a"
- clr_province_flag = improved_colonial_give_away
- }
- }
- #Remove is mine if stuff goes wrong
- province_event = {
- id = improved_colonial.3
- title = "improved_colonial.2.t"
- desc = "improved_colonial.2.d"
- picture = POPE_PREACHING_eventPicture
- mean_time_to_happen = {
- days = 1
- }
- hidden = yes
- trigger = {
- has_province_flag = improved_colonial_give_province
- all_neighbor_province = {
- NOT = {
- has_province_flag = improved_colonial_give_away
- }
- }
- }
- }
- option = {
- name = "improved_colonial.1.a"
- clr_province_flag = improved_colonial_give_province
- }
- }
- #On colony made
- province_event = {
- id = improved_colonial.4
- title = "improved_colonial.2.t"
- desc = "improved_colonial.2.d"
- picture = POPE_PREACHING_eventPicture
- trigger = {
- OR = {
- continent = north_america
- continent = south_america
- }
- NOT = {
- has_province_flag = improved_colonial_give_away
- }
- is_overseas = yes
- is_colony = yes
- any_neighbor_province = {
- owner = {
- is_colonial_nation = yes
- colonial_parent = {
- ROOT = {
- owned_by = PREV
- }
- }
- }
- }
- }
- mean_time_to_happen = {
- days = 1
- }
- hidden = yes
- option = {
- name = "improved_colonial.2.a"
- random_neighbor_province = {
- limit = {
- owner = {
- is_colonial_nation = yes
- colonial_parent = {
- ROOT = {
- owned_by = PREV
- }
- }
- }
- }
- add_local_autonomy = -100
- set_province_flag = improved_colonial_give_province
- }
- set_province_flag = improved_colonial_give_away
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement