Перейти к содержимому
Strategium.ru

Вопросы по моддингу Victoria 2


Andreo

Рекомендованные сообщения

PandaBlin
Изменено пользователем PandaBlin
грамотность

пытался создать идеологию в New Time Lines Chronology Mod
с эвентом о появлении идеологии, как и игра тут же вылетает, что делать?
идеологию и эвент с ребелами сделал как в учебнике на примере нациков


Zelchenko
1 час назад, PandaBlin сказал:

пытался создать идеологию в New Time Lines Chronology Mod
с эвентом о появлении идеологии, как и игра тут же вылетает, что делать?
идеологию и эвент с ребелами сделал как в учебнике на примере нациков

Такое действительно часто случается.

Самые очевидные варианты:

1.Не очищен кэш

2.Пропущены какие-нибудь скобки

Если точно исключены эти 2 пункта, пишите здесь, будем разбираться:)


PandaBlin
1 час назад, Zelchenko сказал:

Такое действительно часто случается.

Самые очевидные варианты:

1.Не очищен кэш

2.Пропущены какие-нибудь скобки

Если точно исключены эти 2 пункта, пишите здесь, будем разбираться:)

 

к сожалению не помогло

хотя может где сам накосячил, не подскажите?
вот например само событие

id не занято


#####################
# Enable Social-Anarchist
#####################
country_event = {
    id = 8000
    title = "EVTONAME8000"
    desc = "EVTDESC8000"
    picture = "Socialism"

    trigger = {
        NOT = {
            is_ideology_enabled = social_anarchist
        }

        year = 1855
        literacy = 0.15
        civilized = yes
        OR = {
                unemployment = 0.2
            NOT = {
                poor_strata_life_needs = 0.8
            }
            NOT = {
                poor_strata_everyday_needs = 0.5
            }
            NOT = {
                middle_strata_everyday_needs = 0.5
            }
        }
    }

    major = yes
    fire_only_once = yes

    mean_time_to_happen =  {
    months = 200

        modifier = {
            factor = 0.5
            invention = pierre_joseph_proudhon
    }
        modifier = {
            factor = 0.5
            OR = {
            unemployment = 0.2
            NOT = {
                poor_strata_life_needs = 0.5
                }
            NOT = {
                poor_strata_everyday_needs = 0.25
                }
            NOT = {
                middle_strata_everyday_needs = 0.25
                }
            }
        }
        modifier = {
            factor = 1.5
            poor_strata_life_needs = 0.95
            }
    }

    option = {
        name = "EVTOPTA8000"
        enable_ideology = social_anarchist
    }
}

 

и локализация в text

EVTNAME8000;Социал-анархисты;Х
EVTDESC8000;Все шире распространяются идеи "социал- анархизма" таких теоретиков как Уильям Годвин, Роберт Оуэн и Пьер Жозеф Прудон. Теперь появились люди готовые воплотить их в жизнь.;Х

EVOPTA8000;Хорошо;Х


сразу после события вылетает


Zelchenko

Ивент по боку, а вот содержание common\ideologies.txt хорошо было бы показать:)


PandaBlin

в целом просто к социалистической группе добавил
не особо парясь копировал социалистов

    social_anarchist = {
        color = { 200 100 0 }
        date = 1840.1.1
        
        add_political_reform = {
            base = 0
            group = {
                modifier = {
                    factor = 0.1
                        political_movement_strength = 0.1
                }
                modifier = {
                    factor = 0.1
                        political_movement_strength = 0.2
                }
                modifier = {
                    factor = 0.1
                        political_movement_strength = 0.3
                }
                modifier = {
                    factor = 0.1
                        political_movement_strength = 0.4
                }
                modifier = {
                    factor = 0.1
                        political_movement_strength = 0.5
                }
                modifier = {
                    factor = 0.1
                        political_movement_strength = 0.6
                }
                modifier = {
                    factor = 0.1
                        political_movement_strength = 0.7
                }
                modifier = {
                    factor = 0.1
                        political_movement_strength = 0.8
                }
                modifier = {
                    factor = 0.1
                        political_movement_strength = 0.9
                }
            }
        }
        remove_political_reform = {
            base = 0
        }
        add_social_reform = {
            base = 1
        }
        remove_social_reform = {
            base = 0
        }
    }


Zelchenko

Ошибок в скобках нет, локализация на работоспособность не влияет, наличие партий тоже. Не исключу, что проблема в файле governments.txt

Пока что более определенной версии я не выдвину.


PandaBlin
Изменено пользователем PandaBlin
21 минуту назад, Zelchenko сказал:

Ивент по боку, а вот содержание common\ideologies.txt хорошо было бы показать:)

я добавил там новую форму правления, из-за этого может?


federation_of_communes = {
    socialist = yes
    communist = yes
    social_anarchist = yes
    
    
    election = yes
    duration = 48
    appoint_ruling_party = no
    flagType = communist
}
 

 


Zelchenko
5 минут назад, PandaBlin сказал:

я добавил там новую форму правления, из-за этого может?

Тогда должно вылетать еще при загрузке data2.bin, а Вы успешно обошли эти проблемы)

Я пойду, вспомню моддинг Виктории и завтра отпишусь Вам, потому как сам решал подобную проблему. Ждите:)


PandaBlin
Только что, Zelchenko сказал:

Тогда должно вылетать еще при загрузке data2.bin, а Вы успешно обошли эти проблемы)

Я пойду, вспомню моддинг Виктории и завтра отпишусь Вам, потому как сам решал подобную проблему. Ждите:)

Огромное спасибо!)


Zelchenko
2 минуты назад, PandaBlin сказал:

Огромное спасибо!)

А так я бы порекомендовал моддинг ХОИ4 - более преспективно, учитывая возможность появления через год третьей Виктории. Но имеющаяся игра - хорошее учебное пособие для парадоксовских мододелов.


PandaBlin
2 минуты назад, Zelchenko сказал:

А так я бы порекомендовал моддинг ХОИ4 - более преспективно, учитывая возможность появления через год третьей Виктории. Но имеющаяся игра - хорошее учебное пособие для парадоксовских мододелов.

каких то конкретных своих идей для реализации нет
да и мне не нравится что серия HOI вообще игнорирует население 
как будто история творится лишь государством, а не объективными общественными тенденциями


Zelchenko
1 минуту назад, PandaBlin сказал:

каких то конкретных своих идей для реализации нет
да и мне не нравится что серия HOI вообще игнорирует население 
как будто история творится лишь государством, а не объективными общественными тенденциями

Теперь в меньшей степени - присутствуют гражданские войны, какие в Виктории и не снились)

i

Давайте прекратим оффтоп и перейдем куда-нибудь Войдите или зарегистрируйтесь, чтобы увидеть скрытое содержимое.


Изменено пользователем Hafltry
4 часа назад, PandaBlin сказал:

вот например само событие

 

4 часа назад, PandaBlin сказал:

в целом просто к социалистической группе добавил
не особо парясь копировал социалистов
 

Переписав этот код в оригинальную V2 и запустив на самом старте, вылетов не получил. Может быть конфликт с модом?

Спойлер

v2_1.jpg

4 часа назад, Zelchenko сказал:

присутствуют гражданские войны, какие в Виктории и не снились

ну, в моде Napoleon's Legacy, например, есть разделения Франции и Рос.Империи по событиям. А HoI4 не нравится мне. Т.е. смотреть как войска выстраиваются во фронт - замечательно, а вот то, что они поголовно вместе с командирами состоят из капиталистов V2 - это провал.

 


PandaBlin
6 часов назад, Hafltry сказал:

 

Переписав этот код в оригинальную V2 и запустив на самом старте, вылетов не получил. Может быть конфликт с модом?

Войдите или зарегистрируйтесь, чтобы увидеть скрытое содержимое. Показать содержимое

v2_1.jpg

ну, в моде Napoleon's Legacy, например, есть разделения Франции и Рос.Империи по событиям. А HoI4 не нравится мне. Т.е. смотреть как войска выстраиваются во фронт - замечательно, а вот то, что они поголовно вместе с командирами состоят из капиталистов V2 - это провал.

 

у меня давал вылеты в двух сценариях из 4 в данном моде
это 1914 и 1923
в 1861 игра запускается, но как только событие о появлении идеологии появляется вылетает

с изменением кода я не силен, не подскажите как проверить и что то в нем поменять если не так что то?


PandaBlin
11 час назад, Hafltry сказал:

 

Переписав этот код в оригинальную V2 и запустив на самом старте, вылетов не получил. Может быть конфликт с модом?

Войдите или зарегистрируйтесь, чтобы увидеть скрытое содержимое. Показать содержимое

v2_1.jpg

ну, в моде Napoleon's Legacy, например, есть разделения Франции и Рос.Империи по событиям. А HoI4 не нравится мне. Т.е. смотреть как войска выстраиваются во фронт - замечательно, а вот то, что они поголовно вместе с командирами состоят из капиталистов V2 - это провал.

 

 

я также создал в файле issue  новую политику "кооперативная экономика" может в этом проблема?

        cooperative_economy = {
            factory_output = 0.15
            factory_owner_cost = 0.5
            
            max_tax = 0.25
            rules = {
                build_factory = yes
                expand_factory = yes
                open_factory = yes
                destroy_factory = no
                build_railway = yes
                factory_priority = no
                can_subsidise = yes
                pop_build_factory = yes
                pop_expand_factory = yes
                pop_open_factory = yes
                delete_factory_if_no_input = no
                pop_build_factory_invest = no
                pop_expand_factory_invest = no
                open_factory_invest = no
                build_factory_invest = no
                expand_factory_invest = no
                build_railway_invest = no
                allow_foreign_investment = no
                can_invest_in_pop_projects = no
            }


В 02.12.2016 at 15:19, Ex-doter сказал:

В моде 1700 сделали криво. vk.com/mod1700

Спасибо. Криво, да, но есть над чем подумать. т.е. можно было бы расставлять в начале года через эвент (""Ревизорро" нагрянул в Гамбург") инфраструктуру всех провинций, основываясь на потреблении "transportation" и известных технологий.

2 часа назад, PandaBlin сказал:

я также создал в файле issue  новую политику "кооперативная экономика"

И это тоже работает. Может быть тогда отделить эти 3 части от остального (новые ребелы, например, тоже ведь были добавлены?), нанести их на чистый мод и посмотреть будет ли работать? Если будет, то проблема в том остальном.

 

 

 

От меня вопрос по поиску модификаций. Сейчас запускал игру с читом "debug fow", который "туман войны" убирает, и для скриншотов мешался только интерфейс. Как-то я сокращал кнопки субсидий до размера 1х1 пиксель, а что-то подобное с основным интерфейсом сделать не было модификаций?


PandaBlin
2 часа назад, Hafltry сказал:

Спасибо. Криво, да, но есть над чем подумать. т.е. можно было бы расставлять в начале года через эвент (""Ревизорро" нагрянул в Гамбург") инфраструктуру всех провинций, основываясь на потреблении "transportation" и известных технологий.

И это тоже работает. Может быть тогда отделить эти 3 части от остального (новые ребелы, например, тоже ведь были добавлены?), нанести их на чистый мод и посмотреть будет ли работать? Если будет, то проблема в том остальном.

 

 

 

От меня вопрос по поиску модификаций. Сейчас запускал игру с читом "debug fow", который "туман войны" убирает, и для скриншотов мешался только интерфейс. Как-то я сокращал кнопки субсидий до размера 1х1 пиксель, а что-то подобное с основным интерфейсом сделать не было модификаций?

спасибо за совет! в ребелах было дело, исправил теперь все работает


Вопрос относительно товаров и их потребления населением. Население потребляет безальтернативно, строго в заданных количествах строго прописанные вещи. Но если речь идёт о кулинарии, заводах об изготовлении тортов, сладостей, других изделиях высокой кухни с различными пряностями и приправами, то как их подразделить для населения?


Химик

        political_parties = underground_parties
        vote_franschise = none_voting
        upper_house_composition = party_appointed


Doctor Tea
Спойлер

# INSTRUCTIONS:
# -------------
# constructing_cb - default to yes. if "no", cant be picked for generation or as add_wargoal if no CB already
# is_triggered_only - Triggered from within the code or by event effects. DO NOT REMOVE THE STOCK ONES.
# mutual - The CB effects will also be used by the defender in peace treaties
# months - The number of months this CB will be valid. Only works for triggered CBs.
# prerequisites - A condition that automatically activates a CB. Does not work for triggered CBs. 'THIS' scope is the target country.
# badboy_factor - Multiplied with any badboy increase normally associated with a peace option.
# prestige_factor - Multiplied with any prestige increase normally associated with a peace option.
# peace_cost_factor - Multiplied with the cost of the peace options in the peace treaty
# po_xxx - Peace options. If toggled on, badboy_factor and prestige_factor are multiplied with any associated base changes to these (see defines.txt.)
# allowed_states - If 'po_demand_states' is on, badboy_factor applies to these provinces. 'THIS' scope is us.
# on_add - effect triggered when war goal added (triggering country's scope)
# construction_speed - base modifier for how long creating this CB will take. default is 1. 1.2 means 20% faster
# great_war_obligatory - cb is always added to the peace offer/demand in great wars.
# po_remove_cores - may be used only with: po_transfer_provinces, po_demand_state, po_annex
# crisis - can be offered as a wargoal in a crisis
#
# The peace options are:
#po_annex
#po_demand_state
#po_add_to_sphere
#po_disarmament
#po_reparations
#po_transfer_provinces
#po_remove_prestige
#po_make_puppet
#po_release_puppet
#po_status_quo
#po_install_communist_gov_type
#po_uninstall_communist_gov_type
#po_remove_cores
#po_colony

# NOTE: The order in which the peace options are listed is the order in which the AI will normally prioritize them in peace treaties

# TRIGGERED - Triggered from within the code or by event effects
# --------------------------------------------------------------

# Order that CBs are executed in a peace treaty
peace_order = { 
add_to_sphere 
take_from_sphere 
status_quo 
gunboat 
conquest 
civil_war 
acquire_core_state 
annex_core_country
acquire_state 
acquire_substate_region
place_in_the_sun
colonial_competition
cut_down_to_size_boxer
cut_down_to_size 
free_peoples
liberate_country
release_puppet
become_independent
make_puppet
dismantle_forts
humiliate
demand_concession_casus_belli
establish_protectorate_casus_belli
unification_humiliate_cb
unification_release_puppet_cb
unification_casus_belli
unification_annex_casus_belli
rude_boy
annex
install_rev_gov_cb
uninstall_rev_gov_cb
install_communist_gov_cb
uninstall_communist_gov_cb
great_war_penalty_cb
conquest_1836
conquest_1850
conquest_1880
conquest_1900
conquest_1930
add_to_sphere_1930
add_to_sphere_1900
add_to_sphere_1880
add_to_sphere_1850
add_to_sphere_1836
take_from_sphere_1930
take_from_sphere_1900
take_from_sphere_1880
take_from_sphere_1850
take_from_sphere_1836
acquire_core_state_1930
acquire_core_state_1900
acquire_core_state_1880
acquire_core_state_1850
acquire_core_state_1836
annex_core_country_1930
annex_core_country_1900
annex_core_country_1880
annex_core_country_1850
annex_core_country_1836
acquire_substate_region_1930
acquire_substate_region_1900
acquire_substate_region_1880
acquire_substate_region_1850
acquire_substate_region_1836
acquire_state_1930
acquire_state_1900
acquire_state_1880
acquire_state_1850
acquire_state_1836
place_in_the_sun_1930
place_in_the_sun_1900
place_in_the_sun_1880
place_in_the_sun_1850
place_in_the_sun_1836
cut_down_to_size_1930
cut_down_to_size_1900
cut_down_to_size_1880
cut_down_to_size_1850
cut_down_to_size_1836
free_peoples_1930
free_peoples_1900
free_peoples_1880
free_peoples_1850
free_peoples_1836
liberate_country_1930
liberate_country_1900
liberate_country_1880
liberate_country_1850
liberate_country_1836
release_puppet_1930
release_puppet_1900
release_puppet_1880
release_puppet_1850
release_puppet_1836
make_puppet_1930
make_puppet_1900
make_puppet_1880
make_puppet_1850
make_puppet_1836
demand_concession_casus_belli_CHI36
demand_concession_casus_belli_CHI16
demand_concession_casus_belli_1930
demand_concession_casus_belli_1900
demand_concession_casus_belli_1880
demand_concession_casus_belli_1850
demand_concession_casus_belli_1836
establish_protectorate_casus_belli_1930
establish_protectorate_casus_belli_1900
establish_protectorate_casus_belli_1880
establish_protectorate_casus_belli_1850
establish_protectorate_casus_belli_1836
great_war_install_democracy
great_war_install_communism
conquest_facist
}

gunboat = {
    sprite_index = 1
    is_triggered_only = yes
    months = 12
    constructing_cb = no
    crisis = no
    
    can_use = {
        NOT = { is_our_vassal = THIS }
        OR =
        {
            has_country_modifier = in_bankrupcy
            has_country_modifier = generalised_debt_default
        }
        
        in_default = THIS
    }

    break_truce_prestige_factor = 0
    break_truce_infamy_factor = 0
    break_truce_militancy_factor = 0
    truce_months = 0
    
    badboy_factor = 1
    prestige_factor = 5
    peace_cost_factor = 1
    penalty_factor = 1
    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.01
        }
    }
    
    po_gunboat = yes
    
    war_name = WAR_GUNBOAT_NAME
}

status_quo = {
    sprite_index = 1
    is_triggered_only = yes
    months = 12
    constructing_cb = no
    
    can_use = {
        NOT = { is_our_vassal = THIS }
        always = no
    }

    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    badboy_factor = 1
    prestige_factor = 1
    peace_cost_factor = 1
    penalty_factor = 1
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0
        }
    }
    
    po_status_quo = yes
    
    war_name = WAR_NAME
}

# Conquest
conquest = {
    sprite_index = 2
    is_triggered_only = yes
    months = 12
    crisis = no
    
    can_use = {
            THIS = {
        AND = {
        NOT = { ideological_thought = 1    }
        NOT = {    phenomenology_n_hermeneutic = 1 }
              }
               }
        NOT = { is_our_vassal = THIS }
        # only one state or unciv
        NOT = { number_of_states = 6 }
        OR = {
            AND = {
                civilized = yes
            NOT = {
                any_state = {
                    is_colonial = no
                    NOT = { any_owned_province = { is_capital = yes } }
                }
                }
            }
            AND = {
                civilized = yes
                NOT = { number_of_states = 3 }
            }
            AND = {
                civilized = no
                NOT = { number_of_states = 6 }
                NOT = {
                tag = CHI
                tag = KOR
                tag = TKG
                tag = SAT
                tag = TOS
                tag = CHO
                tag = KAG
                tag = YZW
                tag = SEN
                tag = IMP
                }
            }
            AND = {
                civilized = no
                tag = ASM
            }
        }
        is_independant = yes
    }

    badboy_factor = 2
    prestige_factor = 2
    peace_cost_factor = 1
    penalty_factor = 1
    
    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1
    
    construction_speed = 0.5
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.25
        }
    }
    
    po_annex = yes
    
    war_name = WAR_CONQUEST_NAME
}

conquest_1836 = {
    sprite_index = 2
    is_triggered_only = yes
    months = 12
    crisis = no
    
    can_use = {
            THIS = {
        AND = {
        ideological_thought = 1
        NOT = {    nationalism_n_imperialism = 1 }
        NOT = {    phenomenology_n_hermeneutic = 1 }
            }
             }
        NOT = { is_our_vassal = THIS }
        # only one state or unciv
        NOT = { number_of_states = 7 }
        OR = {
            AND = {
            civilized = yes
            NOT = {
                any_state = {
                    is_colonial = no
                    NOT = { any_owned_province = { is_capital = yes } }
                }
                }
            }
            AND = {
                civilized = yes
                NOT = { number_of_states = 4 }
            }
            AND = {
                civilized = no
                NOT = { number_of_states = 7 }
                NOT = {
                tag = CHI
                tag = KOR
                tag = TKG
                tag = SAT
                tag = TOS
                tag = CHO
                tag = KAG
                tag = YZW
                tag = SEN
                tag = IMP
                }
            }
            AND = {
                civilized = no
                tag = ASM
            }
        }
        is_independant = yes
    }

    badboy_factor = 2.25
    prestige_factor = 2
    peace_cost_factor = 1
    penalty_factor = 1
    
    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1
    
    construction_speed = 0.5
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.25
        }
    }
    
    po_annex = yes
    
    war_name = WAR_CONQUEST_NAME
}

conquest_1850 = {
    sprite_index = 2
    is_triggered_only = yes
    months = 12
    crisis = no
    
    can_use = {
            THIS = {
        AND = {
        nationalism_n_imperialism = 1
        NOT = {    phenomenology_n_hermeneutic = 1 }
              }
                }
        NOT = { is_our_vassal = THIS }
        # only one state or unciv
        NOT = { number_of_states = 9 }
        OR = {
            AND = {
                civilized = yes
            NOT = {
                any_state = {
                    is_colonial = no
                    NOT = { any_owned_province = { is_capital = yes } }
                }
                }
            }
            AND = {
                civilized = yes
                NOT = { number_of_states = 6 }
            }
            AND = {
                civilized = no
                NOT = { number_of_states = 9 }
                NOT = {
                tag = CHI
                tag = KOR
                tag = TKG
                tag = SAT
                tag = TOS
                tag = CHO
                tag = KAG
                tag = YZW
                tag = SEN
                tag = IMP
                }
            }
            AND = {
                civilized = no
                tag = ASM
            }
        }
        is_independant = yes
    }

    badboy_factor = 2.5
    prestige_factor = 3
    peace_cost_factor = 1
    penalty_factor = 1
    
    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1
    
    construction_speed = 0.5
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.25
        }
    }
    
    po_annex = yes
    
    war_name = WAR_CONQUEST_NAME
}

conquest_1880 = {
    sprite_index = 2
    is_triggered_only = yes
    months = 12
    crisis = no
    
    can_use = {
            THIS = {
        AND = {
        phenomenology_n_hermeneutic = 1
        NOT = {    mass_politics = 1 }
              }
               }
        NOT = { is_our_vassal = THIS }
        # only one state or unciv
        NOT = { number_of_states = 14 }
        OR = {
            AND = {
                civilized = yes
            NOT = {
                any_state = {
                    is_colonial = no
                    NOT = { any_owned_province = { is_capital = yes } }
                }
                }
            }
            AND = {
                civilized = yes
                NOT = { number_of_states = 6 }
            }
            AND = {
                civilized = no
                NOT = { number_of_states = 14 }
                    THIS = {
                    AND = {
                                phenomenology_n_hermeneutic = 1
                                NOT = {    mass_politics = 1 }
                    }
                }
            }
            AND = {
                civilized = no
                tag = ASM
            }
        }
        is_independant = yes
    }

    badboy_factor = 2.5
    prestige_factor = 3
    peace_cost_factor = 1
    penalty_factor = 1
    
    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1
    
    construction_speed = 0.5
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.25
        }
    }
    
    po_annex = yes
    
    war_name = WAR_CONQUEST_NAME
}

conquest_1900 = {
    sprite_index = 2
    is_triggered_only = yes
    months = 12
    crisis = no
    
    can_use = {
            THIS = {
        AND = {
        mass_politics = 1
        NOT = {    global_policy = 1 }
              }
               }
        NOT = { is_our_vassal = THIS }
        # only one state or unciv
        NOT = { number_of_states = 15 }
        OR = {
            AND = {
                civilized = yes
            NOT = {
                any_state = {
                    is_colonial = no
                    NOT = { any_owned_province = { is_capital = yes } }
                }
                }
            }
            AND = {
                civilized = yes
                NOT = { number_of_states = 6 }
            }
            AND = {
                civilized = no
                NOT = { number_of_states = 15 }
            }
            AND = {
                civilized = no
                tag = ASM
            }
        }
        is_independant = yes
    }

    badboy_factor = 2.5
    prestige_factor = 3
    peace_cost_factor = 1
    penalty_factor = 1
    
    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1
    
    construction_speed = 0.5
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.25
        }
    }
    
    po_annex = yes
    
    war_name = WAR_CONQUEST_NAME
}

conquest_facist = {
    sprite_index = 2
    is_triggered_only = yes
    months = 12
    crisis = no
    
    can_use = {
            THIS = {
        AND = {
        mass_politics = 1
            THIS = { government = fascist_dictatorship }
              }
               }
        NOT = { is_our_vassal = THIS }
        # only one state or unciv
        NOT = { number_of_states = 600 }
    }

    badboy_factor = 5.5
    prestige_factor = 3
    peace_cost_factor = 1
    penalty_factor = 1
    
    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1
    
    construction_speed = 0.5
    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.25
        }
    }
    
    po_annex = yes
    
    war_name = WAR_CONQUEST_NAME
}

conquest_1930 = {
    sprite_index = 2
    is_triggered_only = yes
    months = 12
    crisis = no
    
    can_use = {
            THIS = {
        AND = {
        global_policy = 1
              }
               }
        NOT = { is_our_vassal = THIS }
        # only one state or unciv
        NOT = { number_of_states = 17 }
        OR = {
            AND = {
                civilized = yes
            NOT = {
                any_state = {
                    is_colonial = no
                    NOT = { any_owned_province = { is_capital = yes } }
                }
                }
            }
            AND = {
                civilized = yes
                NOT = { number_of_states = 6 }
            }
            AND = {
                civilized = no
                NOT = { number_of_states = 17 }
            }
            AND = {
                civilized = no
                tag = ASM
            }
        }
        is_independant = yes
    }

    badboy_factor = 2.5
    prestige_factor = 3
    peace_cost_factor = 1
    penalty_factor = 1
    
    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1
    
    construction_speed = 0.5
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.25
        }
    }
    
    po_annex = yes
    
    war_name = WAR_CONQUEST_NAME
}

# Civil war
civil_war = {
    sprite_index = 2
    is_triggered_only = yes
    months = 1
    constructing_cb = no
    crisis = no
    
    can_use = {
        NOT = { is_our_vassal = THIS }
        always = no
    }

    badboy_factor = 0
    prestige_factor = 1
    peace_cost_factor = 1
    penalty_factor = 1
    #is_civil_war = yes #this is a civil war

    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    po_annex = yes
    
    war_name = CIVIL_WAR_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0
        }
    }
}

# Sphere of Influence Gain
add_to_sphere = {
    sprite_index = 3
    is_triggered_only = yes
    months = 12
    crisis = no

    badboy_factor = 2.5
    prestige_factor = 2
    peace_cost_factor = 25
    penalty_factor = 1

    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        NOT = { ideological_thought = 1    }
        NOT = {    phenomenology_n_hermeneutic = 1 }
              }
               }
        NOT = { is_our_vassal = THIS }
        this = { is_greater_power = yes }
        is_greater_power = no
        is_independant = yes
        part_of_sphere = no
    }
    
    is_valid = {
        this = { is_greater_power = yes }
        is_greater_power = no
    }
    
    po_add_to_sphere = yes
    
    war_name = WAR_ADD_SPHERE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.01
        }
    }
}

add_to_sphere_1836 = {
    sprite_index = 3
    is_triggered_only = yes
    months = 12
    crisis = no

    badboy_factor = 2
    prestige_factor = 2
    peace_cost_factor = 20
    penalty_factor = 1

    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        NOT = {    phenomenology_n_hermeneutic = 1 }
        ideological_thought = 1
        NOT = {    nationalism_n_imperialism = 1 }
            }
             }
        NOT = { is_our_vassal = THIS }
        this = { is_greater_power = yes }
        is_greater_power = no
        is_independant = yes
        part_of_sphere = no
    }
    
    is_valid = {
        this = { is_greater_power = yes }
        is_greater_power = no
    }
    
    po_add_to_sphere = yes
    
    war_name = WAR_ADD_SPHERE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.01
        }
    }
}

add_to_sphere_1850 = {
    sprite_index = 3
    is_triggered_only = yes
    months = 12
    crisis = no

    badboy_factor = 1.5
    prestige_factor = 2
    peace_cost_factor = 15
    penalty_factor = 1

    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
        THIS = {
        AND = {
        nationalism_n_imperialism = 1
        NOT = {    phenomenology_n_hermeneutic = 1 }
              }
                }
        NOT = { is_our_vassal = THIS }
        this = { is_greater_power = yes }
        is_greater_power = no
        is_independant = yes
        part_of_sphere = no
    }
    
    is_valid = {
        this = { is_greater_power = yes }
        is_greater_power = no
    }
    
    po_add_to_sphere = yes
    
    war_name = WAR_ADD_SPHERE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.01
        }
    }
}

add_to_sphere_1880 = {
    sprite_index = 3
    is_triggered_only = yes
    months = 12
    crisis = no

    badboy_factor = 1
    prestige_factor = 1
    peace_cost_factor = 15
    penalty_factor = 1

    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
        THIS = {
        AND = {
        phenomenology_n_hermeneutic = 1
        NOT = {    mass_politics = 1 }
              }
               }
        NOT = { is_our_vassal = THIS }
        this = { is_greater_power = yes }
        is_greater_power = no
        is_independant = yes
        part_of_sphere = no
    }
    
    is_valid = {
        this = { is_greater_power = yes }
        is_greater_power = no
    }
    
    po_add_to_sphere = yes
    
    war_name = WAR_ADD_SPHERE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.01
        }
    }
}

add_to_sphere_1900 = {
    sprite_index = 3
    is_triggered_only = yes
    months = 12
    crisis = no

    badboy_factor = 0.5
    prestige_factor = 1
    peace_cost_factor = 10
    penalty_factor = 1

    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
        THIS = {
        AND = {
        mass_politics = 1
        NOT = {    global_policy = 1 }
              }
               }
        NOT = { is_our_vassal = THIS }
        this = { is_greater_power = yes }
        is_greater_power = no
        is_independant = yes
        part_of_sphere = no
    }
    
    is_valid = {
        this = { is_greater_power = yes }
        is_greater_power = no
    }
    
    po_add_to_sphere = yes
    
    war_name = WAR_ADD_SPHERE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.01
        }
    }
}

add_to_sphere_1930 = {
    sprite_index = 3
    is_triggered_only = yes
    months = 12
    crisis = no

    badboy_factor = 0.5
    prestige_factor = 0.5
    peace_cost_factor = 5
    penalty_factor = 1

    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
        THIS = {
        AND = {
        global_policy = 1
              }
               }
        NOT = { is_our_vassal = THIS }
        this = { is_greater_power = yes }
        is_greater_power = no
        is_independant = yes
        part_of_sphere = no
    }
    
    is_valid = {
        this = { is_greater_power = yes }
        is_greater_power = no
    }
    
    po_add_to_sphere = yes
    
    war_name = WAR_ADD_SPHERE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.01
        }
    }
}

take_from_sphere = {
    sprite_index = 4
    is_triggered_only = yes
    months = 12
    
    badboy_factor = 3
    prestige_factor = 3
    peace_cost_factor = 25
    penalty_factor = 1

    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        NOT = {    phenomenology_n_hermeneutic = 1 }
        NOT = { ideological_thought = 1    }
              }
               }
        NOT = { is_our_vassal = THIS }
        this = { is_greater_power = yes }
        is_greater_power = yes
    }

    
    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal is scope
    allowed_countries = {
        is_sphere_leader_of = FROM
        FROM = { is_vassal = no }
    }
    
    po_add_to_sphere = yes
    
    war_name = WAR_TAKE_SPHERE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.01
        }
    }
}

take_from_sphere_1836 = {
    sprite_index = 4
    is_triggered_only = yes
    months = 12
    
    badboy_factor = 2.5
    prestige_factor = 3
    peace_cost_factor = 20
    penalty_factor = 1

    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        NOT = {    phenomenology_n_hermeneutic = 1 }
        ideological_thought = 1
        NOT = {    nationalism_n_imperialism = 1 }
            }
             }
        NOT = { is_our_vassal = THIS }
        this = { is_greater_power = yes }
        is_greater_power = yes
    }

    
    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal is scope
    allowed_countries = {
        is_sphere_leader_of = FROM
        FROM = { is_vassal = no }
    }
    
    po_add_to_sphere = yes
    
    war_name = WAR_TAKE_SPHERE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.01
        }
    }
}

take_from_sphere_1850 = {
    sprite_index = 4
    is_triggered_only = yes
    months = 12
    
    badboy_factor = 2
    prestige_factor = 3
    peace_cost_factor = 15
    penalty_factor = 1

    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        nationalism_n_imperialism = 1
        NOT = {    phenomenology_n_hermeneutic = 1 }
              }
                }
        NOT = { is_our_vassal = THIS }
        this = { is_greater_power = yes }
        is_greater_power = yes
    }

    
    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal is scope
    allowed_countries = {
        is_sphere_leader_of = FROM
        FROM = { is_vassal = no }
    }
    
    po_add_to_sphere = yes
    
    war_name = WAR_TAKE_SPHERE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.01
        }
    }
}

take_from_sphere_1880 = {
    sprite_index = 4
    is_triggered_only = yes
    months = 12
    
    badboy_factor = 1.5
    prestige_factor = 3
    peace_cost_factor = 15
    penalty_factor = 1

    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        phenomenology_n_hermeneutic = 1
        NOT = {    mass_politics = 1 }
              }
               }
        NOT = { is_our_vassal = THIS }
        this = { is_greater_power = yes }
        is_greater_power = yes
    }

    
    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal is scope
    allowed_countries = {
        is_sphere_leader_of = FROM
        FROM = { is_vassal = no }
    }
    
    po_add_to_sphere = yes
    
    war_name = WAR_TAKE_SPHERE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.01
        }
    }
}

take_from_sphere_1900 = {
    sprite_index = 4
    is_triggered_only = yes
    months = 12
    
    badboy_factor = 1
    prestige_factor = 3
    peace_cost_factor = 10
    penalty_factor = 1

    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        mass_politics = 1
        NOT = {    global_policy = 1 }
              }
               }
        NOT = { is_our_vassal = THIS }
        this = { is_greater_power = yes }
        is_greater_power = yes
    }

    
    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal is scope
    allowed_countries = {
        is_sphere_leader_of = FROM
        FROM = { is_vassal = no }
    }
    
    po_add_to_sphere = yes
    
    war_name = WAR_TAKE_SPHERE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.01
        }
    }
}

take_from_sphere_1930 = {
    sprite_index = 4
    is_triggered_only = yes
    months = 12
    
    badboy_factor = 1
    prestige_factor = 3
    peace_cost_factor = 5
    penalty_factor = 1

    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        global_policy = 1
              }
               }
        NOT = { is_our_vassal = THIS }
        this = { is_greater_power = yes }
        is_greater_power = yes
    }

    
    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal is scope
    allowed_countries = {
        is_sphere_leader_of = FROM
        FROM = { is_vassal = no }
    }
    
    po_add_to_sphere = yes
    
    war_name = WAR_TAKE_SPHERE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.01
        }
    }
}

# Acquire Core State
acquire_core_state = {
    sprite_index = 5
    is_triggered_only = yes
    months = 12
    
    construction_speed = 0.8
    
    badboy_factor = 0
    prestige_factor = 2
    peace_cost_factor = 0.65
    penalty_factor = 1
    always = yes

    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        NOT = {    phenomenology_n_hermeneutic = 1 }
        NOT = { ideological_thought = 1    }
              }
               }
        NOT = { is_our_vassal = THIS }
        any_owned_province = {
            is_core = THIS
        }
    }
    
    allowed_states = {
        any_owned_province = {
            is_core = THIS
        }
    }

    po_demand_state = yes
    
    war_name = WAR_TAKE_CORE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.05
        }
    }
}

acquire_core_state_1836 = {
    sprite_index = 5
    is_triggered_only = yes
    months = 12
    
    construction_speed = 0.8
    
    badboy_factor = 0
    prestige_factor = 2
    peace_cost_factor = 0.50
    penalty_factor = 1
    always = yes

    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        NOT = {    phenomenology_n_hermeneutic = 1 }
        ideological_thought = 1
        NOT = {    nationalism_n_imperialism = 1 }
            }
             }
        NOT = { is_our_vassal = THIS }
        any_owned_province = {
            is_core = THIS
        }
    }
    
    allowed_states = {
        any_owned_province = {
            is_core = THIS
        }
    }

    po_demand_state = yes
    
    war_name = WAR_TAKE_CORE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.05
        }
    }
}

acquire_core_state_1850 = {
    sprite_index = 5
    is_triggered_only = yes
    months = 12
    
    construction_speed = 0.8
    
    badboy_factor = 0
    prestige_factor = 2
    peace_cost_factor = 0.35
    penalty_factor = 1
    always = yes

    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        nationalism_n_imperialism = 1
        NOT = {    phenomenology_n_hermeneutic = 1 }
              }
                }
        NOT = { is_our_vassal = THIS }
        any_owned_province = {
            is_core = THIS
        }
    }
    
    allowed_states = {
        any_owned_province = {
            is_core = THIS
        }
    }

    po_demand_state = yes
    
    war_name = WAR_TAKE_CORE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.05
        }
    }
}

acquire_core_state_1880 = {
    sprite_index = 5
    is_triggered_only = yes
    months = 12
    
    construction_speed = 0.8
    
    badboy_factor = 0
    prestige_factor = 2
    peace_cost_factor = 0.35
    penalty_factor = 1
    always = yes

    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        phenomenology_n_hermeneutic = 1
        NOT = {    mass_politics = 1 }
              }
               }
        NOT = { is_our_vassal = THIS }
        any_owned_province = {
            is_core = THIS
        }
    }
    
    allowed_states = {
        any_owned_province = {
            is_core = THIS
        }
    }

    po_demand_state = yes
    
    war_name = WAR_TAKE_CORE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.05
        }
    }
}

acquire_core_state_1900 = {
    sprite_index = 5
    is_triggered_only = yes
    months = 12
    
    construction_speed = 0.8
    
    badboy_factor = 0
    prestige_factor = 2
    peace_cost_factor = 0.35
    penalty_factor = 1
    always = yes

    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        mass_politics = 1
        NOT = {    global_policy = 1 }
              }
               }
        NOT = { is_our_vassal = THIS }
        any_owned_province = {
            is_core = THIS
        }
    }
    
    allowed_states = {
        any_owned_province = {
            is_core = THIS
        }
    }

    po_demand_state = yes
    
    war_name = WAR_TAKE_CORE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.05
        }
    }
}

acquire_core_state_1930 = {
    sprite_index = 5
    is_triggered_only = yes
    months = 12
    
    construction_speed = 0.8
    
    badboy_factor = 0
    prestige_factor = 2
    peace_cost_factor = 0.35
    penalty_factor = 1
    always = yes

    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        global_policy = 1
              }
               }
        NOT = { is_our_vassal = THIS }
        any_owned_province = {
            is_core = THIS
        }
    }
    
    allowed_states = {
        any_owned_province = {
            is_core = THIS
        }
    }

    po_demand_state = yes
    
    war_name = WAR_TAKE_CORE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.05
        }
    }
}


# Annex Core Country
annex_core_country = {
    sprite_index = 5
    is_triggered_only = yes
    months = 12
    crisis = no

    badboy_factor = 0
    prestige_factor = 3
    peace_cost_factor = 1
    penalty_factor = 1
    always = yes

    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        NOT = {    phenomenology_n_hermeneutic = 1 }
        NOT = { ideological_thought = 1    }
              }
               }
        NOT = { is_our_vassal = THIS }
        any_owned_province = {
            is_core = THIS
        }
        NOT = {
            any_owned_province = {
                NOT = {
                    is_core = THIS
                }
            }
        }
    }

    po_annex = yes
    
    war_name = WAR_RESTORE_ORDER_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.15
        }
    }
}

annex_core_country_1836 = {
    sprite_index = 5
    is_triggered_only = yes
    months = 12
    crisis = no

    badboy_factor = 0
    prestige_factor = 3
    peace_cost_factor = 0.85
    penalty_factor = 1
    always = yes

    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        NOT = {    phenomenology_n_hermeneutic = 1 }
        ideological_thought = 1
        NOT = {    nationalism_n_imperialism = 1 }
            }
             }
        NOT = { is_our_vassal = THIS }
        any_owned_province = {
            is_core = THIS
        }
        NOT = {
            any_owned_province = {
                NOT = {
                    is_core = THIS
                }
            }
        }
    }

    po_annex = yes
    
    war_name = WAR_RESTORE_ORDER_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.15
        }
    }
}

annex_core_country_1850 = {
    sprite_index = 5
    is_triggered_only = yes
    months = 12
    crisis = no

    badboy_factor = 0
    prestige_factor = 3
    peace_cost_factor = 0.7
    penalty_factor = 1
    always = yes

    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        nationalism_n_imperialism = 1
        NOT = {    phenomenology_n_hermeneutic = 1 }
              }
                }
        NOT = { is_our_vassal = THIS }
        any_owned_province = {
            is_core = THIS
        }
        NOT = {
            any_owned_province = {
                NOT = {
                    is_core = THIS
                }
            }
        }
    }

    po_annex = yes
    
    war_name = WAR_RESTORE_ORDER_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.15
        }
    }
}

annex_core_country_1880 = {
    sprite_index = 5
    is_triggered_only = yes
    months = 12
    crisis = no

    badboy_factor = 0
    prestige_factor = 3
    peace_cost_factor = 0.7
    penalty_factor = 1
    always = yes

    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        phenomenology_n_hermeneutic = 1
        NOT = {    mass_politics = 1 }
              }
               }
        NOT = { is_our_vassal = THIS }
        any_owned_province = {
            is_core = THIS
        }
        NOT = {
            any_owned_province = {
                NOT = {
                    is_core = THIS
                }
            }
        }
    }

    po_annex = yes
    
    war_name = WAR_RESTORE_ORDER_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.15
        }
    }
}

annex_core_country_1900 = {
    sprite_index = 5
    is_triggered_only = yes
    months = 12
    crisis = no

    badboy_factor = 0
    prestige_factor = 3
    peace_cost_factor = 0.7
    penalty_factor = 1
    always = yes

    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        mass_politics = 1
        NOT = {    global_policy = 1 }
              }
               }
        NOT = { is_our_vassal = THIS }
        any_owned_province = {
            is_core = THIS
        }
        NOT = {
            any_owned_province = {
                NOT = {
                    is_core = THIS
                }
            }
        }
    }

    po_annex = yes
    
    war_name = WAR_RESTORE_ORDER_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.15
        }
    }
}

annex_core_country_1930 = {
    sprite_index = 5
    is_triggered_only = yes
    months = 12
    crisis = no

    badboy_factor = 0
    prestige_factor = 2
    peace_cost_factor = 0.7
    penalty_factor = 1
    always = yes

    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        global_policy = 1
              }
               }
        NOT = { is_our_vassal = THIS }
        any_owned_province = {
            is_core = THIS
        }
        NOT = {
            any_owned_province = {
                NOT = {
                    is_core = THIS
                }
            }
        }
    }

    po_annex = yes
    
    war_name = WAR_RESTORE_ORDER_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.15
        }
    }
}

# Gain control of Substate region
acquire_substate_region = {
    sprite_index = 6
    is_triggered_only = yes
    months = 12
    construction_speed = 0.5
    crisis = no
    
    badboy_factor = 2
    prestige_factor = 1
    peace_cost_factor = 1
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        NOT = {    phenomenology_n_hermeneutic = 1 }
        NOT = { ideological_thought = 1    }
              }
               }
        NOT = { is_our_vassal = THIS }
        num_of_substates = 1 # if has any substate
        any_substate = {
            number_of_states = 1
            any_owned_province = {
                not = { is_core = THIS }
                is_colonial = no
            }
        }
    }
    
    allowed_substate_regions = {
        is_colonial = no
        owner = { NOT = { in_sphere = THIS } }
        any_owned_province = {
            not = {    is_core = THIS }
            is_colonial = no
        }
    }

    po_demand_state = yes
    
    war_name = WAR_TAKE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.01
        }
    }
}

acquire_substate_region_1836 = {
    sprite_index = 6
    is_triggered_only = yes
    months = 12
    construction_speed = 0.5
    crisis = no
    
    badboy_factor = 1.5
    prestige_factor = 1
    peace_cost_factor = 0.75
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        NOT = {    phenomenology_n_hermeneutic = 1 }
        ideological_thought = 1
        NOT = {    nationalism_n_imperialism = 1 }
            }
             }
        NOT = { is_our_vassal = THIS }
        num_of_substates = 1 # if has any substate
        any_substate = {
            number_of_states = 1
            any_owned_province = {
                not = { is_core = THIS }
                is_colonial = no
            }
        }
    }
    
    allowed_substate_regions = {
        is_colonial = no
        owner = { NOT = { in_sphere = THIS } }
        any_owned_province = {
            not = {    is_core = THIS }
            is_colonial = no
        }
    }

    po_demand_state = yes
    
    war_name = WAR_TAKE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.01
        }
    }
}

acquire_substate_region_1850 = {
    sprite_index = 6
    is_triggered_only = yes
    months = 12
    construction_speed = 0.5
    crisis = no
    
    badboy_factor = 1.0
    prestige_factor = 1
    peace_cost_factor = 0.5
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        nationalism_n_imperialism = 1
        NOT = {    phenomenology_n_hermeneutic = 1 }
              }
                }
        NOT = { is_our_vassal = THIS }
        num_of_substates = 1 # if has any substate
        any_substate = {
            number_of_states = 1
            any_owned_province = {
                not = { is_core = THIS }
                is_colonial = no
            }
        }
    }
    
    allowed_substate_regions = {
        is_colonial = no
        owner = { NOT = { in_sphere = THIS } }
        any_owned_province = {
            not = {    is_core = THIS }
            is_colonial = no
        }
    }

    po_demand_state = yes
    
    war_name = WAR_TAKE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.01
        }
    }
}

acquire_substate_region_1880 = {
    sprite_index = 6
    is_triggered_only = yes
    months = 12
    construction_speed = 0.5
    crisis = no
    
    badboy_factor = 0.6
    prestige_factor = 1
    peace_cost_factor = 0.4
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        phenomenology_n_hermeneutic = 1
        NOT = {    mass_politics = 1 }
              }
               }
        NOT = { is_our_vassal = THIS }
        num_of_substates = 1 # if has any substate
        any_substate = {
            number_of_states = 1
            any_owned_province = {
                not = { is_core = THIS }
                is_colonial = no
            }
        }
    }
    
    allowed_substate_regions = {
        is_colonial = no
        owner = { NOT = { in_sphere = THIS } }
        any_owned_province = {
            not = {    is_core = THIS }
            is_colonial = no
        }
    }

    po_demand_state = yes
    
    war_name = WAR_TAKE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.01
        }
    }
}

acquire_substate_region_1900 = {
    sprite_index = 6
    is_triggered_only = yes
    months = 12
    construction_speed = 0.5
    crisis = no
    
    badboy_factor = 0.6
    prestige_factor = 1
    peace_cost_factor = 0.35
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        mass_politics = 1
        NOT = {    global_policy = 1 }
              }
               }
        NOT = { is_our_vassal = THIS }
        num_of_substates = 1 # if has any substate
        any_substate = {
            number_of_states = 1
            any_owned_province = {
                not = { is_core = THIS }
                is_colonial = no
            }
        }
    }
    
    allowed_substate_regions = {
        is_colonial = no
        owner = { NOT = { in_sphere = THIS } }
        any_owned_province = {
            not = {    is_core = THIS }
            is_colonial = no
        }
    }

    po_demand_state = yes
    
    war_name = WAR_TAKE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.01
        }
    }
}

acquire_substate_region_1930 = {
    sprite_index = 6
    is_triggered_only = yes
    months = 12
    construction_speed = 0.5
    crisis = no
    
    badboy_factor = 0.6
    prestige_factor = 1
    peace_cost_factor = 0.3
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        global_policy = 1
              }
               }
        NOT = { is_our_vassal = THIS }
        num_of_substates = 1 # if has any substate
        any_substate = {
            number_of_states = 1
            any_owned_province = {
                not = { is_core = THIS }
                is_colonial = no
            }
        }
    }
    
    allowed_substate_regions = {
        is_colonial = no
        owner = { NOT = { in_sphere = THIS } }
        any_owned_province = {
            not = {    is_core = THIS }
            is_colonial = no
        }
    }

    po_demand_state = yes
    
    war_name = WAR_TAKE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.01
        }
    }
}


# Gain control of State
acquire_state = {
    sprite_index = 6
    is_triggered_only = yes
    months = 12
    construction_speed = 0.5
    
    badboy_factor = 2
    prestige_factor = 1
    peace_cost_factor = 1
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        NOT = {    phenomenology_n_hermeneutic = 1 }
        NOT = { ideological_thought = 1    }
              }
               }
        NOT = { is_our_vassal = THIS }
        any_owned_province = {
            not = { is_core = THIS }
            is_colonial = no
        }
        OR = {
            AND = {
                civilized = yes
                THIS = {
                    civilized = yes
                }
            }
            AND = {
                civilized = no
                THIS = {
                    civilized = no
                }
            }
        }
        is_independant = yes
    }
    
    allowed_states = {
        is_colonial = no
        any_owned_province = {
            not = {    is_core = THIS }
            is_colonial = no
        }
    }
    
    allowed_states_in_crisis = {
        any_owned_province = {
            any_neighbor_province = {
                owner = { tag = THIS }
            }
        }
    }        

    po_demand_state = yes
    
    war_name = WAR_TAKE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0
        }
    }
}

acquire_state_1836 = {
    sprite_index = 6
    is_triggered_only = yes
    months = 12
    construction_speed = 0.5
    
    badboy_factor = 1.5
    prestige_factor = 1
    peace_cost_factor = 0.75
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        NOT = {    phenomenology_n_hermeneutic = 1 }
        ideological_thought = 1
        NOT = {    nationalism_n_imperialism = 1 }
            }
             }
        NOT = { is_our_vassal = THIS }
        any_owned_province = {
            not = { is_core = THIS }
            is_colonial = no
        }
        OR = {
            AND = {
                civilized = yes
                THIS = {
                    civilized = yes
                }
            }
            AND = {
                civilized = no
                THIS = {
                    civilized = no
                }
            }
        }
        is_independant = yes
    }
    
    allowed_states = {
        is_colonial = no
        any_owned_province = {
            not = {    is_core = THIS }
            is_colonial = no
        }
    }
    
    allowed_states_in_crisis = {
        any_owned_province = {
            any_neighbor_province = {
                owner = { tag = THIS }
            }
        }
    }        

    po_demand_state = yes
    
    war_name = WAR_TAKE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0
        }
    }
}

acquire_state_1850 = {
    sprite_index = 6
    is_triggered_only = yes
    months = 12
    construction_speed = 0.5
    
    badboy_factor = 1
    prestige_factor = 1
    peace_cost_factor = 0.5
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        nationalism_n_imperialism = 1
        NOT = {    phenomenology_n_hermeneutic = 1 }
              }
                }
        NOT = { is_our_vassal = THIS }
        any_owned_province = {
            not = { is_core = THIS }
            is_colonial = no
        }
        OR = {
            AND = {
                civilized = yes
                THIS = {
                    civilized = yes
                }
            }
            AND = {
                civilized = no
                THIS = {
                    civilized = no
                }
            }
        }
        is_independant = yes
    }
    
    allowed_states = {
        is_colonial = no
        any_owned_province = {
            not = {    is_core = THIS }
            is_colonial = no
        }
    }
    
    allowed_states_in_crisis = {
        any_owned_province = {
            any_neighbor_province = {
                owner = { tag = THIS }
            }
        }
    }        

    po_demand_state = yes
    
    war_name = WAR_TAKE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0
        }
    }
}

acquire_state_1880 = {
    sprite_index = 6
    is_triggered_only = yes
    months = 12
    construction_speed = 0.5
    
    badboy_factor = 1
    prestige_factor = 1
    peace_cost_factor = 0.4
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        phenomenology_n_hermeneutic = 1
        NOT = {    mass_politics = 1 }
              }
               }
        NOT = { is_our_vassal = THIS }
        any_owned_province = {
            not = { is_core = THIS }
            is_colonial = no
        }
        OR = {
            AND = {
                civilized = yes
                THIS = {
                    civilized = yes
                }
            }
            AND = {
                civilized = no
                THIS = {
                    civilized = no
                }
            }
        }
        is_independant = yes
    }
    
    allowed_states = {
        is_colonial = no
        any_owned_province = {
            not = {    is_core = THIS }
            is_colonial = no
        }
    }
    
    allowed_states_in_crisis = {
        any_owned_province = {
            any_neighbor_province = {
                owner = { tag = THIS }
            }
        }
    }        

    po_demand_state = yes
    
    war_name = WAR_TAKE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0
        }
    }
}

acquire_state_1900 = {
    sprite_index = 6
    is_triggered_only = yes
    months = 12
    construction_speed = 0.5
    
    badboy_factor = 1
    prestige_factor = 1
    peace_cost_factor = 0.35
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        mass_politics = 1
        NOT = {    global_policy = 1 }
              }
               }
        NOT = { is_our_vassal = THIS }
        any_owned_province = {
            not = { is_core = THIS }
            is_colonial = no
        }
        OR = {
            AND = {
                civilized = yes
                THIS = {
                    civilized = yes
                }
            }
            AND = {
                civilized = no
                THIS = {
                    civilized = no
                }
            }
        }
        is_independant = yes
    }
    
    allowed_states = {
        is_colonial = no
        any_owned_province = {
            not = {    is_core = THIS }
            is_colonial = no
        }
    }
    
    allowed_states_in_crisis = {
        any_owned_province = {
            any_neighbor_province = {
                owner = { tag = THIS }
            }
        }
    }        

    po_demand_state = yes
    
    war_name = WAR_TAKE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0
        }
    }
}

acquire_state_1930 = {
    sprite_index = 6
    is_triggered_only = yes
    months = 12
    construction_speed = 0.5
    
    badboy_factor = 1
    prestige_factor = 1
    peace_cost_factor = 0.25
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        global_policy = 1
              }
               }
        NOT = { is_our_vassal = THIS }
        any_owned_province = {
            not = { is_core = THIS }
            is_colonial = no
        }
        OR = {
            AND = {
                civilized = yes
                THIS = {
                    civilized = yes
                }
            }
            AND = {
                civilized = no
                THIS = {
                    civilized = no
                }
            }
        }
        is_independant = yes
    }
    
    allowed_states = {
        is_colonial = no
        any_owned_province = {
            not = {    is_core = THIS }
            is_colonial = no
        }
    }
    
    allowed_states_in_crisis = {
        any_owned_province = {
            any_neighbor_province = {
                owner = { tag = THIS }
            }
        }
    }        

    po_demand_state = yes
    
    war_name = WAR_TAKE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0
        }
    }
}


# Place in the Sun
place_in_the_sun = {
    sprite_index = 7
    is_triggered_only = yes
    months = 12

    badboy_factor = 1
    prestige_factor = 1
    peace_cost_factor = 1
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        NOT = {    phenomenology_n_hermeneutic = 1 }
        NOT = { ideological_thought = 1    }
              }
               }
        NOT = { is_our_vassal = THIS }
        any_owned_province = {
            is_colonial = yes
        }    
    }
    
    allowed_states = {
        is_colonial = yes
    }
    
    allowed_states_in_crisis = {
        any_owned_province = {
            OR = {
                is_coastal = yes
                any_neighbor_province = {
                    owner = { tag = THIS }
                }
            }
        }
    }

    po_demand_state = yes

    war_name = WAR_COLONIAL_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.05
        }
    }
}

place_in_the_sun_1836 = {
    sprite_index = 7
    is_triggered_only = yes
    months = 12

    badboy_factor = 0.75
    prestige_factor = 1
    peace_cost_factor = 0.75
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        NOT = {    phenomenology_n_hermeneutic = 1 }
        ideological_thought = 1
        NOT = {    nationalism_n_imperialism = 1 }
            }
             }
        NOT = { is_our_vassal = THIS }
        any_owned_province = {
            is_colonial = yes
        }    
    }
    
    allowed_states = {
        is_colonial = yes
    }
    
    allowed_states_in_crisis = {
        any_owned_province = {
            OR = {
                is_coastal = yes
                any_neighbor_province = {
                    owner = { tag = THIS }
                }
            }
        }
    }

    po_demand_state = yes

    war_name = WAR_COLONIAL_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.05
        }
    }
}

place_in_the_sun_1850 = {
    sprite_index = 7
    is_triggered_only = yes
    months = 12

    badboy_factor = 0.5
    prestige_factor = 1
    peace_cost_factor = 0.5
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        nationalism_n_imperialism = 1
        NOT = {    phenomenology_n_hermeneutic = 1 }
              }
                }
        NOT = { is_our_vassal = THIS }
        any_owned_province = {
            is_colonial = yes
        }    
    }
    
    allowed_states = {
        is_colonial = yes
    }
    
    allowed_states_in_crisis = {
        any_owned_province = {
            OR = {
                is_coastal = yes
                any_neighbor_province = {
                    owner = { tag = THIS }
                }
            }
        }
    }

    po_demand_state = yes

    war_name = WAR_COLONIAL_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.05
        }
    }
}

place_in_the_sun_1880 = {
    sprite_index = 7
    is_triggered_only = yes
    months = 12

    badboy_factor = 0.5
    prestige_factor = 1
    peace_cost_factor = 0.4
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        phenomenology_n_hermeneutic = 1
        NOT = {    mass_politics = 1 }
              }
               }
        NOT = { is_our_vassal = THIS }
        any_owned_province = {
            is_colonial = yes
        }    
    }
    
    allowed_states = {
        is_colonial = yes
    }
    
    allowed_states_in_crisis = {
        any_owned_province = {
            OR = {
                is_coastal = yes
                any_neighbor_province = {
                    owner = { tag = THIS }
                }
            }
        }
    }

    po_demand_state = yes

    war_name = WAR_COLONIAL_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.05
        }
    }
}

place_in_the_sun_1900 = {
    sprite_index = 7
    is_triggered_only = yes
    months = 12

    badboy_factor = 0.4
    prestige_factor = 1
    peace_cost_factor = 0.35
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
        THIS = {
        AND = {
        mass_politics = 1
        NOT = {    global_policy = 1 }
              }
               }
        
        NOT = { is_our_vassal = THIS }
        any_owned_province = {
            is_colonial = yes
        }    
    }
    
    allowed_states = {
        is_colonial = yes
    }
    
    allowed_states_in_crisis = {
        any_owned_province = {
            OR = {
                is_coastal = yes
                any_neighbor_province = {
                    owner = { tag = THIS }
                }
            }
        }
    }

    po_demand_state = yes

    war_name = WAR_COLONIAL_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.05
        }
    }
}

place_in_the_sun_1930 = {
    sprite_index = 7
    is_triggered_only = yes
    months = 12

    badboy_factor = 0.4
    prestige_factor = 1
    peace_cost_factor = 0.3
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        global_policy = 1
              }
               }
        NOT = { is_our_vassal = THIS }
        any_owned_province = {
            is_colonial = yes
        }    
    }
    
    allowed_states = {
        is_colonial = yes
    }
    
    allowed_states_in_crisis = {
        any_owned_province = {
            OR = {
                is_coastal = yes
                any_neighbor_province = {
                    owner = { tag = THIS }
                }
            }
        }
    }

    po_demand_state = yes

    war_name = WAR_COLONIAL_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.05
        }
    }
}

# Colonial competition
colonial_competition = {
    sprite_index = 7
    is_triggered_only = yes
    constructing_cb = no    # only used in crises
    crisis = no
    months = 12

    badboy_factor = 0
    prestige_factor = 2
    peace_cost_factor = 0.25
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    po_colony = yes

    war_name = WAR_COLONIAL_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0
        }
    }
}

# Cut Down to size
cut_down_to_size = {
    sprite_index = 8
    is_triggered_only = yes
    months = 12
    
    badboy_factor = 1.2
    prestige_factor = 1
    peace_cost_factor = 24
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    po_disarmament = yes
    po_reparations = yes

    war_name = WAR_NAME
    
    can_use = {
            THIS = {
        AND = {
        NOT = {    phenomenology_n_hermeneutic = 1 }
        NOT = { ideological_thought = 1    }
              }
               }
        NOT = { is_our_vassal = THIS }
        is_disarmed = no
    }
    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.05
        }
    }
}

cut_down_to_size_1836 = {
    sprite_index = 8
    is_triggered_only = yes
    months = 12
    
    badboy_factor = 1.0
    prestige_factor = 1
    peace_cost_factor = 12
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    po_disarmament = yes
    po_reparations = yes

    war_name = WAR_NAME
    
    can_use = {
            THIS = {
        AND = {
        NOT = {    phenomenology_n_hermeneutic = 1 }
        ideological_thought = 1
        NOT = {    nationalism_n_imperialism = 1 }
            }
             }
        NOT = { is_our_vassal = THIS }
        is_disarmed = no
    }
    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.05
        }
    }
}

cut_down_to_size_1850 = {
    sprite_index = 8
    is_triggered_only = yes
    months = 12
    
    badboy_factor = 0.6
    prestige_factor = 2
    peace_cost_factor = 12
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    po_disarmament = yes
    po_reparations = yes

    war_name = WAR_NAME
    
    can_use = {
            THIS = {
        AND = {
        nationalism_n_imperialism = 1
        NOT = {    phenomenology_n_hermeneutic = 1 }
              }
                }
        NOT = { is_our_vassal = THIS }
        is_disarmed = no
    }
    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.05
        }
    }
}

cut_down_to_size_1880 = {
    sprite_index = 8
    is_triggered_only = yes
    months = 12
    
    badboy_factor = 0.6
    prestige_factor = 2
    peace_cost_factor = 12
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    po_disarmament = yes
    po_reparations = yes

    war_name = WAR_NAME
    
    can_use = {
            THIS = {
        AND = {
        phenomenology_n_hermeneutic = 1
        NOT = {    mass_politics = 1 }
              }
               }
        NOT = { is_our_vassal = THIS }
        is_disarmed = no
    }
    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.05
        }
    }
}

cut_down_to_size_1900 = {
    sprite_index = 8
    is_triggered_only = yes
    months = 12
    
    badboy_factor = 1.0
    prestige_factor = 2
    peace_cost_factor = 10
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    po_disarmament = yes
    po_reparations = yes

    war_name = WAR_NAME
    
    can_use = {
            THIS = {
        AND = {
        mass_politics = 1
        NOT = {    global_policy = 1 }
              }
               }
        NOT = { is_our_vassal = THIS }
        is_disarmed = no
    }
    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.05
        }
    }
}

cut_down_to_size_1930 = {
    sprite_index = 8
    is_triggered_only = yes
    months = 12
    
    badboy_factor = 1.5
    prestige_factor = 3
    peace_cost_factor = 10
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    po_disarmament = yes
    po_reparations = yes

    war_name = WAR_NAME
    
    can_use = {
            THIS = {
        AND = {
        global_policy = 1
              }
               }
        NOT = { is_our_vassal = THIS }
        is_disarmed = no
    }
    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.05
        }
    }
}

    
cut_down_to_size_boxer = {
    sprite_index = 8
    is_triggered_only = yes
    months = 12
    constructing_cb = no
    crisis = no
    
    can_use = {
        NOT = { is_our_vassal = THIS }
        is_disarmed = no
    }
    
    badboy_factor = 0
    prestige_factor = 1
    peace_cost_factor = 12
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    po_disarmament = yes
    po_reparations = yes

    war_name = WAR_BOXER_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.01
        }
    }
}

# Free Peoples
free_peoples = {
    sprite_index = 9
    is_triggered_only = yes
    months = 12

    badboy_factor = 1.2
    prestige_factor = 1
    peace_cost_factor = 1
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1
    
    
    can_use = {
            THIS = {
        AND = {
        NOT = {    phenomenology_n_hermeneutic = 1 }
        NOT = { ideological_thought = 1    }
              }
               }
        NOT = { is_our_vassal = THIS }
    }

    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal is scope
    allowed_countries = {
        number_of_states = 2
        NOT = {
            tag = FROM
            this_culture_union = FROM    
        }
        from = {
            OR = {
                exists = yes
                NOT = {
                        OR = {
                            tag = GER
                            tag = SCA
                            tag = ITA
                            tag = YUG
                            tag = ROM
                            tag = CZH
                        }
                    }
                }
            }
        
        any_owned_province = {
            is_core = FROM
            NOT =
            {
                is_core = THIS
            }
        }
        is_releasable_vassal = FROM
    }

    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal's state
    allowed_states = {
        any_owned_province = {
            is_core = FROM
        }
    }

    po_transfer_provinces = yes
    po_remove_cores = yes

    war_name = WAR_FREE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0
        }
    }
}

free_peoples_1836 = {
    sprite_index = 9
    is_triggered_only = yes
    months = 12

    badboy_factor = 1.1
    prestige_factor = 1
    peace_cost_factor = 0.8
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1
    
    
    can_use = {
            THIS = {
        AND = {
        NOT = {    phenomenology_n_hermeneutic = 1 }
        ideological_thought = 1
        NOT = {    nationalism_n_imperialism = 1 }
            }
             }
        NOT = { is_our_vassal = THIS }
    }

    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal is scope
    allowed_countries = {
        number_of_states = 2
        NOT = {
            tag = FROM
            this_culture_union = FROM    
        }
        from = {
            OR = {
                exists = yes
                NOT = {
                        OR = {
                            tag = GER
                            tag = SCA
                            tag = ITA
                            tag = YUG
                            tag = ROM
                            tag = CZH
                        }
                    }
                }
            }
        
        any_owned_province = {
            is_core = FROM
            NOT =
            {
                is_core = THIS
            }
        }
        is_releasable_vassal = FROM
    }

    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal's state
    allowed_states = {
        any_owned_province = {
            is_core = FROM
        }
    }

    po_transfer_provinces = yes
    po_remove_cores = yes

    war_name = WAR_FREE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0
        }
    }
}

free_peoples_1850 = {
    sprite_index = 9
    is_triggered_only = yes
    months = 12

    badboy_factor = 1
    prestige_factor = 1
    peace_cost_factor = 0.5
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1
    
    
    can_use = {
            THIS = {
        AND = {
        nationalism_n_imperialism = 1
        NOT = {    phenomenology_n_hermeneutic = 1 }
              }
                }
        NOT = { is_our_vassal = THIS }
    }

    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal is scope
    allowed_countries = {
        number_of_states = 2
        NOT = {
            tag = FROM
            this_culture_union = FROM    
        }
        from = {
            OR = {
                exists = yes
                NOT = {
                        OR = {
                            tag = GER
                            tag = SCA
                            tag = ITA
                            tag = YUG
                            tag = ROM
                            tag = CZH
                        }
                    }
                }
            }
        
        any_owned_province = {
            is_core = FROM
            NOT =
            {
                is_core = THIS
            }
        }
        is_releasable_vassal = FROM
    }

    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal's state
    allowed_states = {
        any_owned_province = {
            is_core = FROM
        }
    }

    po_transfer_provinces = yes
    po_remove_cores = yes

    war_name = WAR_FREE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0
        }
    }
}

free_peoples_1880 = {
    sprite_index = 9
    is_triggered_only = yes
    months = 12

    badboy_factor = 1
    prestige_factor = 1.5
    peace_cost_factor = 0.4
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1
    
    
    can_use = {
            THIS = {
        AND = {
        phenomenology_n_hermeneutic = 1
        NOT = {    mass_politics = 1 }
              }
               }
        NOT = { is_our_vassal = THIS }
    }

    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal is scope
    allowed_countries = {
        number_of_states = 2
        NOT = {
            tag = FROM
            this_culture_union = FROM    
        }
        from = {
            OR = {
                exists = yes
                NOT = {
                        OR = {
                            tag = GER
                            tag = SCA
                            tag = ITA
                            tag = YUG
                            tag = ROM
                            tag = CZH
                        }
                    }
                }
            }
        
        any_owned_province = {
            is_core = FROM
            NOT =
            {
                is_core = THIS
            }
        }
        is_releasable_vassal = FROM
    }

    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal's state
    allowed_states = {
        any_owned_province = {
            is_core = FROM
        }
    }

    po_transfer_provinces = yes
    po_remove_cores = yes

    war_name = WAR_FREE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0
        }
    }
}

free_peoples_1900 = {
    sprite_index = 9
    is_triggered_only = yes
    months = 12

    badboy_factor = 1
    prestige_factor = 2
    peace_cost_factor = 0.3
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1
    
    
    can_use = {
            THIS = {
        AND = {
        mass_politics = 1
        NOT = {    global_policy = 1 }
              }
               }
        NOT = { is_our_vassal = THIS }
    }

    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal is scope
    allowed_countries = {
        number_of_states = 2
        NOT = {
            tag = FROM
            this_culture_union = FROM    
        }
        from = {
            OR = {
                exists = yes
                NOT = {
                        OR = {
                            tag = GER
                            tag = SCA
                            tag = ITA
                            tag = YUG
                            tag = ROM
                            tag = CZH
                        }
                    }
                }
            }
        
        any_owned_province = {
            is_core = FROM
            NOT =
            {
                is_core = THIS
            }
        }
        is_releasable_vassal = FROM
    }

    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal's state
    allowed_states = {
        any_owned_province = {
            is_core = FROM
        }
    }

    po_transfer_provinces = yes
    po_remove_cores = yes

    war_name = WAR_FREE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0
        }
    }
}

free_peoples_1930 = {
    sprite_index = 9
    is_triggered_only = yes
    months = 12

    badboy_factor = 0.7
    prestige_factor = 3
    peace_cost_factor = 0.2
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1
    
    
    can_use = {
            THIS = {
        AND = {
        global_policy = 1
              }
               }
        NOT = { is_our_vassal = THIS }
    }

    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal is scope
    allowed_countries = {
        number_of_states = 2
        NOT = {
            tag = FROM
            this_culture_union = FROM    
        }
        from = {
            OR = {
                exists = yes
                NOT = {
                        OR = {
                            tag = GER
                            tag = SCA
                            tag = ITA
                            tag = YUG
                            tag = ROM
                            tag = CZH
                        }
                    }
                }
            }
        
        any_owned_province = {
            is_core = FROM
            NOT =
            {
                is_core = THIS
            }
        }
        is_releasable_vassal = FROM
    }

    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal's state
    allowed_states = {
        any_owned_province = {
            is_core = FROM
        }
    }

    po_transfer_provinces = yes
    po_remove_cores = yes

    war_name = WAR_FREE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0
        }
    }
}


# Liberate country
liberate_country = {
    sprite_index = 15
    is_triggered_only = yes
    months = 12

    badboy_factor = 4
    prestige_factor = 2
    peace_cost_factor = 1
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1
    
    
    can_use = {
            THIS = {
        AND = {
        NOT = {    phenomenology_n_hermeneutic = 1 }
        NOT = { ideological_thought = 1    }
              }
               }
        NOT = { is_our_vassal = THIS }
    }

    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal is scope
    allowed_countries = {
        number_of_states = 2
        NOT = {
            tag = FROM
            this_culture_union = FROM    
        }
        from = {
            OR = {
                exists = yes
                NOT = {
                        OR = {
                            tag = GER
                            tag = SCA
                            tag = ITA
                            tag = YUG
                            #tag = ROM
                            tag = CZH
                        }
                    }
                }
            }
        
        any_owned_province = {
            is_core = FROM
            OR = {
                NOT = { is_core = THIS }
                FROM = { tag = ECU }
            }
        }
        is_releasable_vassal = FROM
    }

    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal's state
    allowed_states = {
        any_owned_province = {
            is_core = FROM
        }
    }
    all_allowed_states = yes
    po_transfer_provinces = yes
    po_remove_cores = yes

    war_name = WAR_LIBERATE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.05
        }
    }
}

liberate_country_1836 = {
    sprite_index = 15
    is_triggered_only = yes
    months = 12

    badboy_factor = 3
    prestige_factor = 2
    peace_cost_factor = 0.75
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1
    
    
    can_use = {
        THIS = {
        AND = {
        NOT = {    phenomenology_n_hermeneutic = 1 }
        ideological_thought = 1
        NOT = {    nationalism_n_imperialism = 1 }
            }
             }    
        NOT = { is_our_vassal = THIS }
    }

    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal is scope
    allowed_countries = {
        number_of_states = 2
        NOT = {
            tag = FROM
            this_culture_union = FROM    
        }
        from = {
            OR = {
                exists = yes
                NOT = {
                        OR = {
                            tag = GER
                            tag = SCA
                            tag = ITA
                            tag = YUG
                            #tag = ROM
                            tag = CZH
                        }
                    }
                }
            }
        
        any_owned_province = {
            is_core = FROM
            OR = {
                NOT = { is_core = THIS }
                FROM = { tag = ECU }
            }
        }
        is_releasable_vassal = FROM
    }

    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal's state
    allowed_states = {
        any_owned_province = {
            is_core = FROM
        }
    }
    all_allowed_states = yes
    po_transfer_provinces = yes
    po_remove_cores = yes

    war_name = WAR_LIBERATE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.05
        }
    }
}

liberate_country_1850 = {
    sprite_index = 15
    is_triggered_only = yes
    months = 12

    badboy_factor = 3
    prestige_factor = 3
    peace_cost_factor = 0.5
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1
    
    
    can_use = {
            THIS = {
        AND = {
        nationalism_n_imperialism = 1
        NOT = {    phenomenology_n_hermeneutic = 1 }
              }
                }
        NOT = { is_our_vassal = THIS }
    }

    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal is scope
    allowed_countries = {
        number_of_states = 2
        NOT = {
            tag = FROM
            this_culture_union = FROM    
        }
        from = {
            OR = {
                exists = yes
                NOT = {
                        OR = {
                            tag = GER
                            tag = SCA
                            tag = ITA
                            tag = YUG
                            #tag = ROM
                            tag = CZH
                        }
                    }
                }
            }
        
        any_owned_province = {
            is_core = FROM
            OR = {
                NOT = { is_core = THIS }
                FROM = { tag = ECU }
            }
        }
        is_releasable_vassal = FROM
    }

    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal's state
    allowed_states = {
        any_owned_province = {
            is_core = FROM
        }
    }
    all_allowed_states = yes
    po_transfer_provinces = yes
    po_remove_cores = yes

    war_name = WAR_LIBERATE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.05
        }
    }
}

liberate_country_1880 = {
    sprite_index = 15
    is_triggered_only = yes
    months = 12

    badboy_factor = 2.5
    prestige_factor = 35
    peace_cost_factor = 0.5
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1
    
    
    can_use = {
            THIS = {
        AND = {
        phenomenology_n_hermeneutic = 1
        NOT = {    mass_politics = 1 }
              }
               }
        NOT = { is_our_vassal = THIS }
    }

    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal is scope
    allowed_countries = {
        number_of_states = 2
        NOT = {
            tag = FROM
            this_culture_union = FROM    
        }
        from = {
            OR = {
                exists = yes
                NOT = {
                        OR = {
                            tag = GER
                            tag = SCA
                            tag = ITA
                            tag = YUG
                            #tag = ROM
                            tag = CZH
                        }
                    }
                }
            }
        
        any_owned_province = {
            is_core = FROM
            OR = {
                NOT = { is_core = THIS }
                FROM = { tag = ECU }
            }
        }
        is_releasable_vassal = FROM
    }

    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal's state
    allowed_states = {
        any_owned_province = {
            is_core = FROM
        }
    }
    all_allowed_states = yes
    po_transfer_provinces = yes
    po_remove_cores = yes

    war_name = WAR_LIBERATE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.05
        }
    }
}

liberate_country_1900 = {
    sprite_index = 15
    is_triggered_only = yes
    months = 12

    badboy_factor = 2.35
    prestige_factor = 4
    peace_cost_factor = 0.45
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1
    
    
    can_use = {
            THIS = {
        AND = {
        mass_politics = 1
        NOT = {    global_policy = 1 }
              }
               }
        NOT = { is_our_vassal = THIS }
    }

    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal is scope
    allowed_countries = {
        number_of_states = 2
        NOT = {
            tag = FROM
            this_culture_union = FROM    
        }
        from = {
            OR = {
                exists = yes
                NOT = {
                        OR = {
                            tag = GER
                            tag = SCA
                            tag = ITA
                            tag = YUG
                            #tag = ROM
                            tag = CZH
                        }
                    }
                }
            }
        
        any_owned_province = {
            is_core = FROM
            OR = {
                NOT = { is_core = THIS }
                FROM = { tag = ECU }
            }
        }
        is_releasable_vassal = FROM
    }

    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal's state
    allowed_states = {
        any_owned_province = {
            is_core = FROM
        }
    }
    all_allowed_states = yes
    po_transfer_provinces = yes
    po_remove_cores = yes

    war_name = WAR_LIBERATE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.05
        }
    }
}

liberate_country_1930 = {
    sprite_index = 15
    is_triggered_only = yes
    months = 12

    badboy_factor = 2.2
    prestige_factor = 5
    peace_cost_factor = 0.4
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1
    
    
    can_use = {
        THIS = {
        AND = {
        global_policy = 1
              }
               }    
        NOT = { is_our_vassal = THIS }
    }

    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal is scope
    allowed_countries = {
        number_of_states = 2
        NOT = {
            tag = FROM
            this_culture_union = FROM    
        }
        from = {
            OR = {
                exists = yes
                NOT = {
                        OR = {
                            tag = GER
                            tag = SCA
                            tag = ITA
                            tag = YUG
                            #tag = ROM
                            tag = CZH
                        }
                    }
                }
            }
        
        any_owned_province = {
            is_core = FROM
            OR = {
                NOT = { is_core = THIS }
                FROM = { tag = ECU }
            }
        }
        is_releasable_vassal = FROM
    }

    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal's state
    allowed_states = {
        any_owned_province = {
            is_core = FROM
        }
    }
    all_allowed_states = yes
    po_transfer_provinces = yes
    po_remove_cores = yes

    war_name = WAR_LIBERATE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.05
        }
    }
}


# Dismantle fortifications (forts + naval bases)
dismantle_forts = {
    sprite_index = 16
    is_triggered_only = yes
    months = 12

    badboy_factor = 0.05
    prestige_factor = 0.20
    peace_cost_factor = 0.5
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1
    
    
    can_use = {
        NOT = { is_our_vassal = THIS }
    }

    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal's state
    allowed_states = {
        any_owned_province = {
            OR = { 
                has_building = fort
                has_building = naval_base
            }
        }
    }

    po_destroy_forts = yes
    po_destroy_naval_bases = yes

    war_name = WAR_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.001
        }
    }
}


# Release Puppet
release_puppet = {
    sprite_index = 10
    is_triggered_only = yes
    months = 12

    badboy_factor = 3
    prestige_factor = 1
    peace_cost_factor = 15
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        NOT = {    phenomenology_n_hermeneutic = 1 }
        NOT = { ideological_thought = 1    }
              }
               }
        NOT = { is_our_vassal = THIS }
        num_of_vassals_no_substates = 1
    }
    
    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal is scope
    allowed_countries = {
        is_our_vassal = FROM
        FROM = { is_substate = no }
    }
    
    po_release_puppet = yes
    po_add_to_sphere = yes

    war_name = WAR_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0
        }
    }
}

release_puppet_1836 = {
    sprite_index = 10
    is_triggered_only = yes
    months = 12

    badboy_factor = 2.5
    prestige_factor = 1
    peace_cost_factor = 12.5
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        NOT = {    phenomenology_n_hermeneutic = 1 }
        ideological_thought = 1
        NOT = {    nationalism_n_imperialism = 1 }
            }
             }
        NOT = { is_our_vassal = THIS }
        num_of_vassals_no_substates = 1
    }
    
    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal is scope
    allowed_countries = {
        is_our_vassal = FROM
        FROM = { is_substate = no }
    }
    
    po_release_puppet = yes
    po_add_to_sphere = yes

    war_name = WAR_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0
        }
    }
}

release_puppet_1850 = {
    sprite_index = 10
    is_triggered_only = yes
    months = 12

    badboy_factor = 2
    prestige_factor = 1
    peace_cost_factor = 10
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        nationalism_n_imperialism = 1
        NOT = {    phenomenology_n_hermeneutic = 1 }
              }
                }
        NOT = { is_our_vassal = THIS }
        num_of_vassals_no_substates = 1
    }
    
    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal is scope
    allowed_countries = {
        is_our_vassal = FROM
        FROM = { is_substate = no }
    }
    
    po_release_puppet = yes
    po_add_to_sphere = yes

    war_name = WAR_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0
        }
    }
}

release_puppet_1880 = {
    sprite_index = 10
    is_triggered_only = yes
    months = 12

    badboy_factor = 1.5
    prestige_factor = 2
    peace_cost_factor = 10
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        phenomenology_n_hermeneutic = 1
        NOT = {    mass_politics = 1 }
              }
               }
        NOT = { is_our_vassal = THIS }
        num_of_vassals_no_substates = 1
    }
    
    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal is scope
    allowed_countries = {
        is_our_vassal = FROM
        FROM = { is_substate = no }
    }
    
    po_release_puppet = yes
    po_add_to_sphere = yes

    war_name = WAR_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0
        }
    }
}

release_puppet_1900 = {
    sprite_index = 10
    is_triggered_only = yes
    months = 12

    badboy_factor = 1
    prestige_factor = 3
    peace_cost_factor = 7.5
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        mass_politics = 1
        NOT = {    global_policy = 1 }
              }
               }
        NOT = { is_our_vassal = THIS }
        num_of_vassals_no_substates = 1
    }
    
    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal is scope
    allowed_countries = {
        is_our_vassal = FROM
        FROM = { is_substate = no }
    }
    
    po_release_puppet = yes
    po_add_to_sphere = yes

    war_name = WAR_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0
        }
    }
}

release_puppet_1930 = {
    sprite_index = 10
    is_triggered_only = yes
    months = 12

    badboy_factor = 0.5
    prestige_factor = 3
    peace_cost_factor = 5
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        global_policy = 1
              }
               }
        NOT = { is_our_vassal = THIS }
        num_of_vassals_no_substates = 1
    }
    
    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal is scope
    allowed_countries = {
        is_our_vassal = FROM
        FROM = { is_substate = no }
    }
    
    po_release_puppet = yes
    po_add_to_sphere = yes

    war_name = WAR_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0
        }
    }
}
# Make Puppet
make_puppet = {
    sprite_index = 10
    is_triggered_only = yes
    months = 12
    crisis = no

    badboy_factor = 3
    prestige_factor = 1
    peace_cost_factor = 1
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        NOT = {    phenomenology_n_hermeneutic = 1 }
        NOT = { ideological_thought = 1    }
              }
               }
        NOT = { is_our_vassal = THIS }
        NOT = { number_of_states = 4 }
        is_greater_power = no
        is_vassal = no
    }
    
    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal is scope
    #allowed_countries = {
    #    NOT = { is_our_vassal = FROM }
        #FROM = { is_substate = no }
    #}
    
    po_make_puppet = yes

    war_name = WAR_PUPPET_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.01
        }
    }
}

make_puppet_1836 = {
    sprite_index = 10
    is_triggered_only = yes
    months = 12
    crisis = no

    badboy_factor = 3
    prestige_factor = 1
    peace_cost_factor = 1
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        NOT = {    phenomenology_n_hermeneutic = 1 }
        ideological_thought = 1
        NOT = {    nationalism_n_imperialism = 1 }
            }
             }
        NOT = { is_our_vassal = THIS }
        NOT = { number_of_states = 5 }
        is_greater_power = no
        is_vassal = no
    }
    
    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal is scope
    #allowed_countries = {
    #    NOT = { is_our_vassal = FROM }
        #FROM = { is_substate = no }
    #}
    
    po_make_puppet = yes

    war_name = WAR_PUPPET_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.01
        }
    }
}

make_puppet_1850 = {
    sprite_index = 10
    is_triggered_only = yes
    months = 12
    crisis = no

    badboy_factor = 4
    prestige_factor = 1
    peace_cost_factor = 1
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
        THIS = {
        AND = {
        nationalism_n_imperialism = 1
        NOT = {    phenomenology_n_hermeneutic = 1 }
              }
                }
        NOT = { is_our_vassal = THIS }
        NOT = { number_of_states = 7 }
        is_greater_power = no
        is_vassal = no
    }
    
    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal is scope
    #allowed_countries = {
    #    NOT = { is_our_vassal = FROM }
        #FROM = { is_substate = no }
    #}
    
    po_make_puppet = yes

    war_name = WAR_PUPPET_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.01
        }
    }
}

make_puppet_1880 = {
    sprite_index = 10
    is_triggered_only = yes
    months = 12
    crisis = no

    badboy_factor = 4
    prestige_factor = 2
    peace_cost_factor = 1
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        phenomenology_n_hermeneutic = 1
        NOT = {    mass_politics = 1 }
              }
               }
        NOT = { is_our_vassal = THIS }
        NOT = { number_of_states = 9 }
        is_greater_power = no
        is_vassal = no
    }
    
    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal is scope
    #allowed_countries = {
    #    NOT = { is_our_vassal = FROM }
        #FROM = { is_substate = no }
    #}
    
    po_make_puppet = yes

    war_name = WAR_PUPPET_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.01
        }
    }
}

make_puppet_1900 = {
    sprite_index = 10
    is_triggered_only = yes
    months = 12
    crisis = no

    badboy_factor = 5
    prestige_factor = 2
    peace_cost_factor = 1
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        mass_politics = 1
        NOT = {    global_policy = 1 }
              }
               }
        NOT = { is_our_vassal = THIS }
        NOT = { number_of_states = 11 }
        is_greater_power = no
        is_vassal = no
    }
    
    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal is scope
    #allowed_countries = {
    #    NOT = { is_our_vassal = FROM }
        #FROM = { is_substate = no }
    #}
    
    po_make_puppet = yes

    war_name = WAR_PUPPET_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.01
        }
    }
}

make_puppet_1930 = {
    sprite_index = 10
    is_triggered_only = yes
    months = 12
    crisis = no

    badboy_factor = 5
    prestige_factor = 3
    peace_cost_factor = 1
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        global_policy = 1
              }
               }
        NOT = { is_our_vassal = THIS }
        NOT = { number_of_states = 21 }
        is_greater_power = no
        is_vassal = no
    }
    
    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal is scope
    #allowed_countries = {
    #    NOT = { is_our_vassal = FROM }
        #FROM = { is_substate = no }
    #}
    
    po_make_puppet = yes

    war_name = WAR_PUPPET_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.01
        }
    }
}


# Become Independent
become_independent = {
    sprite_index = 10
    is_triggered_only = yes
    months = 12
    crisis = no
    
    always = yes

    badboy_factor = 0
    prestige_factor = 2
    peace_cost_factor = 0.5
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
        is_our_vassal = THIS
    }
    
    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal is scope
    allowed_countries = {
        OR = {
            FROM = { is_our_vassal = THIS }
            war_with = THIS
        }
    }
    
    po_release_puppet = yes
    po_add_to_sphere = yes

    war_name = WAR_INDEPENDENCE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.25
        }
        add_war_goal = {
            casus_belli = make_puppet
        }
        leave_alliance = FROM
        release_vassal = THIS
    }
}


# Humiliate
humiliate = {
    sprite_index = 11
    is_triggered_only = yes
    months = 12

    badboy_factor = 2.5
    prestige_factor = 1
    peace_cost_factor = 7.5
    penalty_factor = 1
    
    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1
    
    po_remove_prestige = yes

    tws_battle_factor = 2.0
    
    war_name = WAR_HUMILIATE_NAME

    can_use = {
        NOT = { is_our_vassal = THIS }
        has_recently_lost_war = no
    }    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.01
        }
    }
}

# Demand Concession
demand_concession_casus_belli = {
    sprite_index = 7
    is_triggered_only = yes
    months = 0
    construction_speed = 1.2
    crisis = no
    
    badboy_factor = 1
    prestige_factor = 0.1
    peace_cost_factor = 1
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 12
    
    good_relation_prestige_factor = 0
    good_relation_infamy_factor = 0
    good_relation_militancy_factor = 0
    
    always = no

    can_use = {
            THIS = {
        AND = {
        NOT = {    phenomenology_n_hermeneutic = 1 }
        NOT = { ideological_thought = 1    }
              }
               }
        NOT = { is_our_vassal = THIS }
        THIS = {
            civilized = yes
        }
        civilized = no
        number_of_states = 1
        NOT = {
                tag = CHI
                tag = KOR
                tag = TKG
                tag = SAT
                tag = TOS
                tag = CHO
                tag = KAG
                tag = YZW
                tag = SEN
                tag = IMP    
        }
    }
    
    allowed_states = {
        any_owned_province = {
            is_colonial = no
        }
    }
    
    po_demand_state = yes
    
    war_name = WAR_CONCESSION_NAME

    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.005
        }
    }
}

demand_concession_casus_belli_1836 = {
    sprite_index = 7
    is_triggered_only = yes
    months = 0
    construction_speed = 1.2
    crisis = no
    
    badboy_factor = 1
    prestige_factor = 0.2
    peace_cost_factor = 0.75
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 12
    
    good_relation_prestige_factor = 0
    good_relation_infamy_factor = 0
    good_relation_militancy_factor = 0
    
    always = no

    can_use = {
            THIS = {
        AND = {
        NOT = {    phenomenology_n_hermeneutic = 1 }
        ideological_thought = 1
        NOT = {    nationalism_n_imperialism = 1 }
            }
             }
        NOT = { is_our_vassal = THIS }
        THIS = {
            civilized = yes
        }
        civilized = no
        number_of_states = 1
        NOT = {
                tag = CHI
                tag = KOR
                tag = TKG
                tag = SAT
                tag = TOS
                tag = CHO
                tag = KAG
                tag = YZW
                tag = SEN
                tag = IMP            
        }
    }
    
    allowed_states = {
        any_owned_province = {
            is_colonial = no
        }
    }
    
    po_demand_state = yes
    
    war_name = WAR_CONCESSION_NAME

    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.005
        }
    }
}

demand_concession_casus_belli_1850 = {
    sprite_index = 7
    is_triggered_only = yes
    months = 0
    construction_speed = 1.2
    crisis = no
    
    badboy_factor = 1
    prestige_factor = 1
    peace_cost_factor = 0.5
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 12
    
    good_relation_prestige_factor = 0
    good_relation_infamy_factor = 0
    good_relation_militancy_factor = 0
    
    always = no

    can_use = {
            THIS = {
        AND = {
        nationalism_n_imperialism = 1
        NOT = {    phenomenology_n_hermeneutic = 1 }
              }
                }
        NOT = { is_our_vassal = THIS }
        THIS = {
            civilized = yes
        }
        civilized = no
        number_of_states = 1
    }
    
    allowed_states = {
        any_owned_province = {
            is_colonial = no
        }
    }
    
    po_demand_state = yes
    
    war_name = WAR_CONCESSION_NAME

    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.005
        }
    }
}

demand_concession_casus_belli_1880 = {
    sprite_index = 7
    is_triggered_only = yes
    months = 0
    construction_speed = 1.2
    crisis = no
    
    badboy_factor = 0.75
    prestige_factor = 1
    peace_cost_factor = 0.45
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 12
    
    good_relation_prestige_factor = 0
    good_relation_infamy_factor = 0
    good_relation_militancy_factor = 0
    
    always = no

    can_use = {
            THIS = {
        AND = {
        phenomenology_n_hermeneutic = 1
        NOT = {    mass_politics = 1 }
              }
               }
        NOT = { is_our_vassal = THIS }
        THIS = {
            civilized = yes
        }
        civilized = no
        number_of_states = 1
    }
    
    allowed_states = {
        any_owned_province = {
            is_colonial = no
        }
    }
    
    po_demand_state = yes
    
    war_name = WAR_CONCESSION_NAME

    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.005
        }
    }
}

demand_concession_casus_belli_1900 = {
    sprite_index = 7
    is_triggered_only = yes
    months = 0
    construction_speed = 1.2
    crisis = no
    
    badboy_factor = 0.5
    prestige_factor = 1
    peace_cost_factor = 0.4
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 12
    
    good_relation_prestige_factor = 0
    good_relation_infamy_factor = 0
    good_relation_militancy_factor = 0
    
    always = no

    can_use = {
            THIS = {
        AND = {
        mass_politics = 1
        NOT = {    global_policy = 1 }
              }
               }
        NOT = { is_our_vassal = THIS }
        THIS = {
            civilized = yes
        }
        civilized = no
        number_of_states = 1
    }
    
    allowed_states = {
        any_owned_province = {
            is_colonial = no
        }
    }
    
    po_demand_state = yes
    
    war_name = WAR_CONCESSION_NAME

    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.005
        }
    }
}

demand_concession_casus_belli_1930 = {
    sprite_index = 7
    is_triggered_only = yes
    months = 0
    construction_speed = 1.2
    crisis = no
    
    badboy_factor = 0.5
    prestige_factor = 1
    peace_cost_factor = 0.3
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 12
    
    good_relation_prestige_factor = 0
    good_relation_infamy_factor = 0
    good_relation_militancy_factor = 0
    
    always = no

    can_use = {
        THIS = {
        AND = {
        global_policy = 1
              }
               }
        NOT = { is_our_vassal = THIS }
        THIS = {
            civilized = yes
        }
        civilized = no
        number_of_states = 1
    }
    
    allowed_states = {
        any_owned_province = {
            is_colonial = no
        }
    }
    
    po_demand_state = yes
    
    war_name = WAR_CONCESSION_NAME

    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.005
        }
    }
}

demand_concession_casus_belli_CHI16 = {
    sprite_index = 7
    is_triggered_only = yes
    months = 0
    construction_speed = 1.2
    crisis = no
    
    badboy_factor = 2
    prestige_factor = 1
    peace_cost_factor = 1
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 12
    
    good_relation_prestige_factor = 0
    good_relation_infamy_factor = 0
    good_relation_militancy_factor = 0
    
    always = no

    can_use = {
            THIS = {
        AND = {
        NOT = {    phenomenology_n_hermeneutic = 1 }
        NOT = { ideological_thought = 1    }
              }
               }
        NOT = { is_our_vassal = THIS }
        THIS = {
            civilized = yes
        }
        civilized = no
        number_of_states = 1
        OR = {
                tag = CHI
                tag = KOR
                tag = TKG
                tag = SAT
                tag = TOS
                tag = CHO
                tag = KAG
                tag = YZW
                tag = SEN
                tag = IMP
        }
    }
    
    allowed_states = {
        any_owned_province = {
            is_colonial = no
        }
    }
    
    po_demand_state = yes
    
    war_name = WAR_CONCESSION_NAME

    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.005
        }
    }
}

demand_concession_casus_belli_CHI36 = {
    sprite_index = 7
    is_triggered_only = yes
    months = 0
    construction_speed = 1.2
    crisis = no
    
    badboy_factor = 1.5
    prestige_factor = 1
    peace_cost_factor = 0.75
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 12
    
    good_relation_prestige_factor = 0
    good_relation_infamy_factor = 0
    good_relation_militancy_factor = 0
    
    always = no

    can_use = {
            THIS = {
        AND = {
        NOT = {    phenomenology_n_hermeneutic = 1 }
        ideological_thought = 1
        NOT = {    nationalism_n_imperialism = 1 }
            }
             }
        NOT = { is_our_vassal = THIS }
        THIS = {
            civilized = yes
        }
        civilized = no
        number_of_states = 1
        OR = {
                tag = CHI
                tag = KOR
                tag = TKG
                tag = SAT
                tag = TOS
                tag = CHO
                tag = KAG
                tag = YZW
                tag = SEN
                tag = IMP
        }
    }
    
    allowed_states = {
        any_owned_province = {
            is_colonial = no
        }
    }
    
    po_demand_state = yes
    
    war_name = WAR_CONCESSION_NAME

    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.005
        }
    }
}

# Establish Protectorate
establish_protectorate_casus_belli = {
    sprite_index = 7
    is_triggered_only = yes
    months = 0
    construction_speed = 1.2
    crisis = no
    
    badboy_factor = 0.5
    prestige_factor = 1.2
    peace_cost_factor = 1
    penalty_factor = 1

    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 12
    
    good_relation_prestige_factor = 0
    good_relation_infamy_factor = 0
    good_relation_militancy_factor = 0
    
    always = no
    
    can_use = {
            THIS = {
        AND = {
        NOT = {    phenomenology_n_hermeneutic = 1 }
        NOT = { ideological_thought = 1    }
              }
               }
        NOT = { is_our_vassal = THIS }
        THIS = {
            civilized = yes
        }
            NOT = {
                number_of_states = 3 
            }
        civilized = no
        NOT = {
                tag = CHI
                tag = KOR
                tag = TKG
                tag = SAT
                tag = TOS
                tag = CHO
                tag = KAG
                tag = YZW
                tag = SEN
                tag = IMP
                }
    }
    
    po_annex = yes
    
    war_name = WAR_PROTECTORATE_NAME

    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.01
        }
    }
}

establish_protectorate_casus_belli_1836 = {
    sprite_index = 7
    is_triggered_only = yes
    months = 0
    construction_speed = 1.2
    crisis = no
    
    badboy_factor = 0.5
    prestige_factor = 1
    peace_cost_factor = 1
    penalty_factor = 1

    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 12
    
    good_relation_prestige_factor = 0
    good_relation_infamy_factor = 0
    good_relation_militancy_factor = 0
    
    always = no
    
    can_use = {
            THIS = {
        AND = {
        NOT = {    phenomenology_n_hermeneutic = 1 }
        ideological_thought = 1
        NOT = {    nationalism_n_imperialism = 1 }
            }
             }
        NOT = { is_our_vassal = THIS }
        THIS = {
            civilized = yes
        }
        OR = {
            NOT = {
                number_of_states = 4
            }
        }
        civilized = no
                NOT = {
                tag = CHI
                tag = KOR
                tag = TKG
                tag = SAT
                tag = TOS
                tag = CHO
                tag = KAG
                tag = YZW
                tag = SEN
                tag = IMP
                }
    }
    
    po_annex = yes
    
    war_name = WAR_PROTECTORATE_NAME

    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.01
        }
    }
}

establish_protectorate_casus_belli_1850 = {
    sprite_index = 7
    is_triggered_only = yes
    months = 0
    construction_speed = 1.2
    crisis = no
    
    badboy_factor = 0.5
    prestige_factor = 1
    peace_cost_factor = 1
    penalty_factor = 1

    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 12
    
    good_relation_prestige_factor = 0
    good_relation_infamy_factor = 0
    good_relation_militancy_factor = 0
    
    always = no
    
    can_use = {
            THIS = {
        AND = {
        nationalism_n_imperialism = 1
        NOT = {    phenomenology_n_hermeneutic = 1 }
              }
                }
        NOT = { is_our_vassal = THIS }
        THIS = {
            civilized = yes
        }
            NOT = {
                number_of_states = 6 
            }
        civilized = no
                NOT = {
                tag = CHI
                tag = KOR
                tag = TKG
                tag = SAT
                tag = TOS
                tag = CHO
                tag = KAG
                tag = YZW
                tag = SEN
                tag = IMP
                }
    }
    
    po_annex = yes
    
    war_name = WAR_PROTECTORATE_NAME

    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.01
        }
    }
}

establish_protectorate_casus_belli_1880 = {
    sprite_index = 7
    is_triggered_only = yes
    months = 0
    construction_speed = 1.2
    crisis = no
    
    badboy_factor = 0.5
    prestige_factor = 1
    peace_cost_factor = 1
    penalty_factor = 1

    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 12
    
    good_relation_prestige_factor = 0
    good_relation_infamy_factor = 0
    good_relation_militancy_factor = 0
    
    always = no
    
    can_use = {
            THIS = {
        AND = {
        phenomenology_n_hermeneutic = 1
        NOT = {    mass_politics = 1 }
              }
               }
        NOT = { is_our_vassal = THIS }
        THIS = {
            civilized = yes
        }
            NOT = {
                number_of_states = 7 
            }
        civilized = no
                NOT = {
                tag = CHI
                tag = KOR
                tag = TKG
                tag = SAT
                tag = TOS
                tag = CHO
                tag = KAG
                tag = YZW
                tag = SEN
                tag = IMP
                }
    }
    
    po_annex = yes
    
    war_name = WAR_PROTECTORATE_NAME

    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.01
        }
    }
}

establish_protectorate_casus_belli_1900 = {
    sprite_index = 7
    is_triggered_only = yes
    months = 0
    construction_speed = 1.2
    crisis = no
    
    badboy_factor = 0.5
    prestige_factor = 1
    peace_cost_factor = 1
    penalty_factor = 1

    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 12
    
    good_relation_prestige_factor = 0
    good_relation_infamy_factor = 0
    good_relation_militancy_factor = 0
    
    always = no
    
    can_use = {
            THIS = {
        AND = {
        mass_politics = 1
        NOT = {    global_policy = 1 }
              }
               }
        NOT = { is_our_vassal = THIS }
        THIS = {
            civilized = yes
        }
            NOT = {
                number_of_states = 8 
            }
        civilized = no
    }
    
    po_annex = yes
    
    war_name = WAR_PROTECTORATE_NAME

    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.01
        }
    }
}

establish_protectorate_casus_belli_1930 = {
    sprite_index = 7
    is_triggered_only = yes
    months = 0
    construction_speed = 1.2
    crisis = no
    
    badboy_factor = 0.5
    prestige_factor = 1
    peace_cost_factor = 1
    penalty_factor = 1

    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 12
    
    good_relation_prestige_factor = 0
    good_relation_infamy_factor = 0
    good_relation_militancy_factor = 0
    
    always = no
    
    can_use = {
            THIS = {
        AND = {
        global_policy = 1
              }
               }
        NOT = { is_our_vassal = THIS }
        THIS = {
            civilized = yes
        }
            NOT = {
                number_of_states = 8 
            }
        civilized = no
    }
    
    po_annex = yes
    
    war_name = WAR_PROTECTORATE_NAME

    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.01
        }
    }
}

# Unification Humiliate
unification_humiliate_cb = {
    sprite_index = 11
    is_triggered_only = no
    months = 12
    crisis = no

    badboy_factor = 0.5
    prestige_factor = 1
    peace_cost_factor = 5
    penalty_factor = 1
    
    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1
    
    always = yes
    
    can_use = {
        NOT = { is_our_vassal = THIS }
        THIS = {
            culture_has_union_tag = yes
            nationalism_n_imperialism = 1
            is_greater_power = yes
        }
        is_greater_power = yes
        is_culture_group = THIS
        NOT = { is_cultural_union = THIS }
        has_cultural_sphere = yes
    }
    
    po_clear_union_sphere = yes
    
    tws_battle_factor = 2.0 # battle score twice that of oppenent
    
    war_name = UNIFICATION_HUMILIATE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.05
        }
    }
}

# Release Puppet
unification_release_puppet_cb = {
    sprite_index = 10
    is_triggered_only = yes
    months = 12
    crisis = no

    badboy_factor = 0
    prestige_factor = 1
    peace_cost_factor = 7.5
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1
    
    always = yes

    can_use = {
        NOT = { is_our_vassal = THIS }
        num_of_vassals_no_substates = 1
        THIS = {
            culture_has_union_tag = yes
            nationalism_n_imperialism = 1
            is_greater_power = yes        
            is_cultural_union = no
        }
        NOT = {
            is_culture_group = THIS
        }        
    }
    
    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal is scope
    allowed_countries = {
        is_our_vassal = FROM
        FROM = { is_culture_group = THIS is_substate = no }
    }
    
    po_release_puppet = yes
    po_add_to_sphere = yes

    war_name = WAR_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.005
        }
    }
}

# Unification Demand State
unification_casus_belli = {
    sprite_index = 5
    is_triggered_only = no
    months = 12
    construction_speed = 1
    crisis = no
    
    badboy_factor = 0
    prestige_factor = 1
    peace_cost_factor = 1
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 12
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1
    
    always = yes
    
    can_use = {
        NOT = { is_our_vassal = THIS }
        THIS = {
            culture_has_union_tag = yes
            nationalism_n_imperialism = 1
            OR = { 
            is_greater_power = yes
            AND = {
            is_second_power = yes
            year = 1870 }
            }
            is_cultural_union = no
        }
        NOT = {
            is_culture_group = THIS
        }
        number_of_states = 2
        any_state = {
            any_owned_province = {
                any_core = {
                    this_culture_union = this_union
                    is_cultural_union = yes
                }
            }
            not = { any_owned_province = { is_capital = yes } }
        }
    }
    allowed_states = {
        any_owned_province = {
            any_core = {
                this_culture_union = this_union
                is_cultural_union = yes
            }
        }
        not = { any_owned_province = { is_capital = yes } }
    }
    
    po_demand_state = yes
    
    war_name = WAR_UNIFICATION_NAME

    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.05
        }
    }
}

#Unification Annex
unification_annex_casus_belli = {
    sprite_index = 5
    is_triggered_only = no
    months = 12
    crisis = no
    
    badboy_factor = 0
    prestige_factor = 0
    peace_cost_factor = 1
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 12
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1
    
    always = yes
    
    can_use = {
        NOT = { is_our_vassal = THIS }
        THIS = {
            culture_has_union_tag = yes
            nationalism_n_imperialism = 1
            OR = { 
            is_greater_power = yes
            AND = {
            is_second_power = yes
            year = 1870 }
            }
            is_cultural_union = no
        }
        NOT = {
            is_culture_group = THIS
        }
        NOT = {
            number_of_states = 2
        }
        any_owned_province = {
            any_core = {
                this_culture_union = this_union
                is_cultural_union = yes
            }
        }
    }
    
    po_annex = yes
    
    war_name = WAR_UNIFICATION_ANNEX_NAME

    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.05
        }
    }
}

# Bad Boy
rude_boy = {
    sprite_index = 11
    is_triggered_only = no
    months = 12
    construction_speed = 2
    crisis = no

    badboy_factor = 0
    prestige_factor = 1
    peace_cost_factor = 3
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 0
    good_relation_infamy_factor = 0
    good_relation_militancy_factor = 0
    
    always = yes

    can_use = {
        NOT = { is_our_vassal = THIS }
        badboy = 1
    }
    
    po_remove_prestige = yes
    po_disarmament = yes
    po_reparations = yes
    
    war_name = WAR_RUDEBOI_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.25
        }
    }

    on_po_accepted = {
        set_country_flag = infany_was_lose
    }
}

# Install Communist Government
install_communist_gov_cb = {
    sprite_index = 12
    is_triggered_only = yes
    months = 12
    crisis = no

    badboy_factor = 0.5
    prestige_factor = 1
    peace_cost_factor = 0.6
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
        THIS = {
            # If actor is a great power
            is_greater_power = yes
            
            # If actor gov truly communist
            government = proletarian_dictatorship
            
            # If actor ruling party is communist
            ruling_party_ideology = communist
        }
        
        AND = {
            # If reciever ruling party is not a communist
            #NOT = {
            #    ruling_party_ideology = communist
            #}
            
            # There are some amount of communist already in the country
            #communist = 0.1
                
            # If reciever current gov is not proletarian_dictatorship
            NOT = {
                government = proletarian_dictatorship
            }
            
            # If reciever is not a great power
            is_greater_power = no
        }
    }
    
    po_install_communist_gov_type = yes

    war_name = WAR_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.01
        }
    }
    
    on_po_accepted = {
        THIS = { set_country_flag = friendly_communist }
        country_event = 96087
    }
}

install_rev_gov_cb = {
    sprite_index = 13
    months = 6
    crisis = no

    badboy_factor = 0.5
    prestige_factor = 1
    peace_cost_factor = 0.6
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
        THIS = {
            # If actor is a great power
            is_greater_power = yes
            
            # If actor gov truly communist
            government = revolution_republic

        }
        
        AND = {
            # If reciever ruling party is not a communist
            NOT = {
                        government = revolution_republic
            }
        }
    }
    
    po_install_rev_gov_type = yes

    war_name = WAR_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.01
        }
    }
    
    on_po_accepted = {
        government = revolution_republic
    }
}

uninstall_rev_gov_cb = {
    sprite_index = 10
    months = 6
    crisis = no
    
    # Is automatically added to countries that intervened at while install_communist_gov_cb
    # so they can revert those countries government.
    constructing_cb = no

    badboy_factor = 1
    prestige_factor = 1
    peace_cost_factor = 15
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
        THIS = {
        mass_politics = 1
               }
        THIS = {
            # If actor ruling party is not communist
            OR = {
                          government = absolute_monarchy
                          government = hms_government
                          government = prussian_constitutionalism
                }
        }
        
        # If reciever current gov is proletarian_dictatorship
        government = revolution_republic
    }
    
    po_uninstall_rev_gov_type = yes

    war_name = WAR_NAME
    
    on_add = {
        move_issue_percentage = {
            from = jingoism 
            to = pro_military
            value = 0.25
        }
    }

        on_po_accepted = {
        government = absolute_monarchy
    }
}

# Revert from Communist Government
uninstall_communist_gov_cb = {
    sprite_index = 13
    is_triggered_only = yes
    months = 12
    crisis = no
    
    # Is automatically added to countries that intervened at while install_communist_gov_cb
    # so they can revert those countries government.
    constructing_cb = no

    badboy_factor = 1
    prestige_factor = 1
    peace_cost_factor = 15
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
        THIS = {
        mass_politics = 1
               }
        THIS = {
            # If actor ruling party is not communist
            OR = {
                government =     
            }
        }
        
        # If reciever current gov is proletarian_dictatorship
        government = proletarian_dictatorship
    }
    
    po_uninstall_communist_gov_type = yes

    war_name = WAR_NAME
    
    on_add = {
        move_issue_percentage = {
            from = jingoism 
            to = pro_military
            value = 0.25
        }
    }
}


# Great War Penalty
great_war_penalty_cb = {
    sprite_index = 14
    is_triggered_only = yes
    months = 0
    crisis = no
    
    constructing_cb = no
    
    great_war_obligatory = yes
    
    badboy_factor = 1.3
    prestige_factor = 1.8
    peace_cost_factor = 1
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    po_disarmament = yes
    po_reparations = yes

    war_name = WAR_NAME
    
    #can_use = {
    #    NOT = { is_our_vassal = THIS }
    #    is_disarmed = no
    #}
    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.25
        }
    }
    on_po_accepted = {
        set_country_flag = world_war_loser
    }
}

install_democracy = {
    sprite_index = 13
    is_triggered_only = yes
    months = 12
    construction_speed = 1.5
    crisis = no

    badboy_factor = 3
    prestige_factor = 5
    peace_cost_factor = 50
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
        THIS = {
            is_greater_power = yes
            mass_politics = 1
            OR = {
                government = hms_government
                government = democracy
            }
        }
        is_greater_power = no
        is_vassal = no
        civilized = yes
        NOT = { is_our_vassal = THIS }
        OR = {
            government = proletarian_dictatorship
            government = fascist_dictatorship
            government = presidential_dictatorship
            government = bourgeois_dictatorship
            government = absolute_monarchy
            government = prussian_constitutionalism
            government = enlightened_absolutism
        }
    }
    
    po_remove_prestige = yes

    war_name = WAR_NAME
    
    on_add = {
        move_issue_percentage = {
            from = jingoism 
            to = pro_military
            value = 0.05
        }
    }
    
    on_po_accepted = {
        THIS = {
            set_country_flag = friendly_democracy
            any_country = {
                limit = {
                    OR = {
                        government = proletarian_dictatorship
                        government = fascist_dictatorship
                        government = presidential_dictatorship
                        government = bourgeois_dictatorship
                        government = absolute_monarchy
                        government = prussian_constitutionalism
                        government = enlightened_absolutism
                    }
                }
                relation = { who = THIS value = -50 }
            }
        }
        country_event = 96085
    }
}

great_war_install_democracy = {
    sprite_index = 13
    is_triggered_only = yes
    months = 12
    construction_speed = 1.5
    crisis = no

    badboy_factor = 25
    prestige_factor = 5
    peace_cost_factor = 100
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1
    always = yes

    can_use = {
        THIS = {
        global_policy = 1
               }
        THIS = {
            is_greater_power = yes
            OR = {
                government = hms_government
                government = democracy
            }
        }
        civilized = yes
        OR = {
            government = proletarian_dictatorship
            government = fascist_dictatorship
            government = presidential_dictatorship
            government = bourgeois_dictatorship
            government = absolute_monarchy
            government = prussian_constitutionalism
            government = enlightened_absolutism
        }
    }
    
    po_remove_prestige = yes

    war_name = WAR_NAME
    
    on_add = {
        move_issue_percentage = {
            from = jingoism 
            to = pro_military
            value = 0.05
        }
    }
    
    on_po_accepted = {
        THIS = { set_country_flag = friendly_democracy }
        country_event = 96085
    }
}

great_war_install_communism = {
    sprite_index = 12
    is_triggered_only = yes
    months = 12
    construction_speed = 1.5
    crisis = no

    badboy_factor = 25
    prestige_factor = 5
    peace_cost_factor = 100
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1

# INSTRUCTIONS:
# -------------
# constructing_cb - default to yes. if "no", cant be picked for generation or as add_wargoal if no CB already
# is_triggered_only - Triggered from within the code or by event effects. DO NOT REMOVE THE STOCK ONES.
# mutual - The CB effects will also be used by the defender in peace treaties
# months - The number of months this CB will be valid. Only works for triggered CBs.
# prerequisites - A condition that automatically activates a CB. Does not work for triggered CBs. 'THIS' scope is the target country.
# badboy_factor - Multiplied with any badboy increase normally associated with a peace option.
# prestige_factor - Multiplied with any prestige increase normally associated with a peace option.
# peace_cost_factor - Multiplied with the cost of the peace options in the peace treaty
# po_xxx - Peace options. If toggled on, badboy_factor and prestige_factor are multiplied with any associated base changes to these (see defines.txt.)
# allowed_states - If 'po_demand_states' is on, badboy_factor applies to these provinces. 'THIS' scope is us.
# on_add - effect triggered when war goal added (triggering country's scope)
# construction_speed - base modifier for how long creating this CB will take. default is 1. 1.2 means 20% faster
# great_war_obligatory - cb is always added to the peace offer/demand in great wars.
# po_remove_cores - may be used only with: po_transfer_provinces, po_demand_state, po_annex
# crisis - can be offered as a wargoal in a crisis
#
# The peace options are:
#po_annex
#po_demand_state
#po_add_to_sphere
#po_disarmament
#po_reparations
#po_transfer_provinces
#po_remove_prestige
#po_make_puppet
#po_release_puppet
#po_status_quo
#po_install_communist_gov_type
#po_uninstall_communist_gov_type
#po_remove_cores
#po_colony

# NOTE: The order in which the peace options are listed is the order in which the AI will normally prioritize them in peace treaties

# TRIGGERED - Triggered from within the code or by event effects
# --------------------------------------------------------------

# Order that CBs are executed in a peace treaty
peace_order = { 
add_to_sphere 
take_from_sphere 
status_quo 
gunboat 
conquest 
civil_war 
acquire_core_state 
annex_core_country
acquire_state 
acquire_substate_region
place_in_the_sun
colonial_competition
cut_down_to_size_boxer
cut_down_to_size 
free_peoples
liberate_country
release_puppet
become_independent
make_puppet
dismantle_forts
humiliate
demand_concession_casus_belli
establish_protectorate_casus_belli
unification_humiliate_cb
unification_release_puppet_cb
unification_casus_belli
unification_annex_casus_belli
rude_boy
annex
install_rev_gov_cb
uninstall_rev_gov_cb
install_communist_gov_cb
uninstall_communist_gov_cb
great_war_penalty_cb
conquest_1836
conquest_1850
conquest_1880
conquest_1900
conquest_1930
add_to_sphere_1930
add_to_sphere_1900
add_to_sphere_1880
add_to_sphere_1850
add_to_sphere_1836
take_from_sphere_1930
take_from_sphere_1900
take_from_sphere_1880
take_from_sphere_1850
take_from_sphere_1836
acquire_core_state_1930
acquire_core_state_1900
acquire_core_state_1880
acquire_core_state_1850
acquire_core_state_1836
annex_core_country_1930
annex_core_country_1900
annex_core_country_1880
annex_core_country_1850
annex_core_country_1836
acquire_substate_region_1930
acquire_substate_region_1900
acquire_substate_region_1880
acquire_substate_region_1850
acquire_substate_region_1836
acquire_state_1930
acquire_state_1900
acquire_state_1880
acquire_state_1850
acquire_state_1836
place_in_the_sun_1930
place_in_the_sun_1900
place_in_the_sun_1880
place_in_the_sun_1850
place_in_the_sun_1836
cut_down_to_size_1930
cut_down_to_size_1900
cut_down_to_size_1880
cut_down_to_size_1850
cut_down_to_size_1836
free_peoples_1930
free_peoples_1900
free_peoples_1880
free_peoples_1850
free_peoples_1836
liberate_country_1930
liberate_country_1900
liberate_country_1880
liberate_country_1850
liberate_country_1836
release_puppet_1930
release_puppet_1900
release_puppet_1880
release_puppet_1850
release_puppet_1836
make_puppet_1930
make_puppet_1900
make_puppet_1880
make_puppet_1850
make_puppet_1836
demand_concession_casus_belli_CHI36
demand_concession_casus_belli_CHI16
demand_concession_casus_belli_1930
demand_concession_casus_belli_1900
demand_concession_casus_belli_1880
demand_concession_casus_belli_1850
demand_concession_casus_belli_1836
establish_protectorate_casus_belli_1930
establish_protectorate_casus_belli_1900
establish_protectorate_casus_belli_1880
establish_protectorate_casus_belli_1850
establish_protectorate_casus_belli_1836
great_war_install_democracy
great_war_install_communism
conquest_facist
}

gunboat = {
    sprite_index = 1
    is_triggered_only = yes
    months = 12
    constructing_cb = no
    crisis = no
    
    can_use = {
        NOT = { is_our_vassal = THIS }
        OR =
        {
            has_country_modifier = in_bankrupcy
            has_country_modifier = generalised_debt_default
        }
        
        in_default = THIS
    }

    break_truce_prestige_factor = 0
    break_truce_infamy_factor = 0
    break_truce_militancy_factor = 0
    truce_months = 0
    
    badboy_factor = 1
    prestige_factor = 5
    peace_cost_factor = 1
    penalty_factor = 1
    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.01
        }
    }
    
    po_gunboat = yes
    
    war_name = WAR_GUNBOAT_NAME
}

status_quo = {
    sprite_index = 1
    is_triggered_only = yes
    months = 12
    constructing_cb = no
    
    can_use = {
        NOT = { is_our_vassal = THIS }
        always = no
    }

    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    badboy_factor = 1
    prestige_factor = 1
    peace_cost_factor = 1
    penalty_factor = 1
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0
        }
    }
    
    po_status_quo = yes
    
    war_name = WAR_NAME
}

# Conquest
conquest = {
    sprite_index = 2
    is_triggered_only = yes
    months = 12
    crisis = no
    
    can_use = {
            THIS = {
        AND = {
        NOT = { ideological_thought = 1    }
        NOT = {    phenomenology_n_hermeneutic = 1 }
              }
               }
        NOT = { is_our_vassal = THIS }
        # only one state or unciv
        NOT = { number_of_states = 6 }
        OR = {
            AND = {
                civilized = yes
            NOT = {
                any_state = {
                    is_colonial = no
                    NOT = { any_owned_province = { is_capital = yes } }
                }
                }
            }
            AND = {
                civilized = yes
                NOT = { number_of_states = 3 }
            }
            AND = {
                civilized = no
                NOT = { number_of_states = 6 }
                NOT = {
                tag = CHI
                tag = KOR
                tag = TKG
                tag = SAT
                tag = TOS
                tag = CHO
                tag = KAG
                tag = YZW
                tag = SEN
                tag = IMP
                }
            }
            AND = {
                civilized = no
                tag = ASM
            }
        }
        is_independant = yes
    }

    badboy_factor = 2
    prestige_factor = 2
    peace_cost_factor = 1
    penalty_factor = 1
    
    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1
    
    construction_speed = 0.5
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.25
        }
    }
    
    po_annex = yes
    
    war_name = WAR_CONQUEST_NAME
}

conquest_1836 = {
    sprite_index = 2
    is_triggered_only = yes
    months = 12
    crisis = no
    
    can_use = {
            THIS = {
        AND = {
        ideological_thought = 1
        NOT = {    nationalism_n_imperialism = 1 }
        NOT = {    phenomenology_n_hermeneutic = 1 }
            }
             }
        NOT = { is_our_vassal = THIS }
        # only one state or unciv
        NOT = { number_of_states = 7 }
        OR = {
            AND = {
            civilized = yes
            NOT = {
                any_state = {
                    is_colonial = no
                    NOT = { any_owned_province = { is_capital = yes } }
                }
                }
            }
            AND = {
                civilized = yes
                NOT = { number_of_states = 4 }
            }
            AND = {
                civilized = no
                NOT = { number_of_states = 7 }
                NOT = {
                tag = CHI
                tag = KOR
                tag = TKG
                tag = SAT
                tag = TOS
                tag = CHO
                tag = KAG
                tag = YZW
                tag = SEN
                tag = IMP
                }
            }
            AND = {
                civilized = no
                tag = ASM
            }
        }
        is_independant = yes
    }

    badboy_factor = 2.25
    prestige_factor = 2
    peace_cost_factor = 1
    penalty_factor = 1
    
    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1
    
    construction_speed = 0.5
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.25
        }
    }
    
    po_annex = yes
    
    war_name = WAR_CONQUEST_NAME
}

conquest_1850 = {
    sprite_index = 2
    is_triggered_only = yes
    months = 12
    crisis = no
    
    can_use = {
            THIS = {
        AND = {
        nationalism_n_imperialism = 1
        NOT = {    phenomenology_n_hermeneutic = 1 }
              }
                }
        NOT = { is_our_vassal = THIS }
        # only one state or unciv
        NOT = { number_of_states = 9 }
        OR = {
            AND = {
                civilized = yes
            NOT = {
                any_state = {
                    is_colonial = no
                    NOT = { any_owned_province = { is_capital = yes } }
                }
                }
            }
            AND = {
                civilized = yes
                NOT = { number_of_states = 6 }
            }
            AND = {
                civilized = no
                NOT = { number_of_states = 9 }
                NOT = {
                tag = CHI
                tag = KOR
                tag = TKG
                tag = SAT
                tag = TOS
                tag = CHO
                tag = KAG
                tag = YZW
                tag = SEN
                tag = IMP
                }
            }
            AND = {
                civilized = no
                tag = ASM
            }
        }
        is_independant = yes
    }

    badboy_factor = 2.5
    prestige_factor = 3
    peace_cost_factor = 1
    penalty_factor = 1
    
    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1
    
    construction_speed = 0.5
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.25
        }
    }
    
    po_annex = yes
    
    war_name = WAR_CONQUEST_NAME
}

conquest_1880 = {
    sprite_index = 2
    is_triggered_only = yes
    months = 12
    crisis = no
    
    can_use = {
            THIS = {
        AND = {
        phenomenology_n_hermeneutic = 1
        NOT = {    mass_politics = 1 }
              }
               }
        NOT = { is_our_vassal = THIS }
        # only one state or unciv
        NOT = { number_of_states = 14 }
        OR = {
            AND = {
                civilized = yes
            NOT = {
                any_state = {
                    is_colonial = no
                    NOT = { any_owned_province = { is_capital = yes } }
                }
                }
            }
            AND = {
                civilized = yes
                NOT = { number_of_states = 6 }
            }
            AND = {
                civilized = no
                NOT = { number_of_states = 14 }
                    THIS = {
                    AND = {
                                phenomenology_n_hermeneutic = 1
                                NOT = {    mass_politics = 1 }
                    }
                }
            }
            AND = {
                civilized = no
                tag = ASM
            }
        }
        is_independant = yes
    }

    badboy_factor = 2.5
    prestige_factor = 3
    peace_cost_factor = 1
    penalty_factor = 1
    
    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1
    
    construction_speed = 0.5
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.25
        }
    }
    
    po_annex = yes
    
    war_name = WAR_CONQUEST_NAME
}

conquest_1900 = {
    sprite_index = 2
    is_triggered_only = yes
    months = 12
    crisis = no
    
    can_use = {
            THIS = {
        AND = {
        mass_politics = 1
        NOT = {    global_policy = 1 }
              }
               }
        NOT = { is_our_vassal = THIS }
        # only one state or unciv
        NOT = { number_of_states = 15 }
        OR = {
            AND = {
                civilized = yes
            NOT = {
                any_state = {
                    is_colonial = no
                    NOT = { any_owned_province = { is_capital = yes } }
                }
                }
            }
            AND = {
                civilized = yes
                NOT = { number_of_states = 6 }
            }
            AND = {
                civilized = no
                NOT = { number_of_states = 15 }
            }
            AND = {
                civilized = no
                tag = ASM
            }
        }
        is_independant = yes
    }

    badboy_factor = 2.5
    prestige_factor = 3
    peace_cost_factor = 1
    penalty_factor = 1
    
    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1
    
    construction_speed = 0.5
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.25
        }
    }
    
    po_annex = yes
    
    war_name = WAR_CONQUEST_NAME
}

conquest_facist = {
    sprite_index = 2
    is_triggered_only = yes
    months = 12
    crisis = no
    
    can_use = {
            THIS = {
        AND = {
        mass_politics = 1
            THIS = { government = fascist_dictatorship }
              }
               }
        NOT = { is_our_vassal = THIS }
        # only one state or unciv
        NOT = { number_of_states = 600 }
    }

    badboy_factor = 5.5
    prestige_factor = 3
    peace_cost_factor = 1
    penalty_factor = 1
    
    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1
    
    construction_speed = 0.5
    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.25
        }
    }
    
    po_annex = yes
    
    war_name = WAR_CONQUEST_NAME
}

conquest_1930 = {
    sprite_index = 2
    is_triggered_only = yes
    months = 12
    crisis = no
    
    can_use = {
            THIS = {
        AND = {
        global_policy = 1
              }
               }
        NOT = { is_our_vassal = THIS }
        # only one state or unciv
        NOT = { number_of_states = 17 }
        OR = {
            AND = {
                civilized = yes
            NOT = {
                any_state = {
                    is_colonial = no
                    NOT = { any_owned_province = { is_capital = yes } }
                }
                }
            }
            AND = {
                civilized = yes
                NOT = { number_of_states = 6 }
            }
            AND = {
                civilized = no
                NOT = { number_of_states = 17 }
            }
            AND = {
                civilized = no
                tag = ASM
            }
        }
        is_independant = yes
    }

    badboy_factor = 2.5
    prestige_factor = 3
    peace_cost_factor = 1
    penalty_factor = 1
    
    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1
    
    construction_speed = 0.5
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.25
        }
    }
    
    po_annex = yes
    
    war_name = WAR_CONQUEST_NAME
}

# Civil war
civil_war = {
    sprite_index = 2
    is_triggered_only = yes
    months = 1
    constructing_cb = no
    crisis = no
    
    can_use = {
        NOT = { is_our_vassal = THIS }
        always = no
    }

    badboy_factor = 0
    prestige_factor = 1
    peace_cost_factor = 1
    penalty_factor = 1
    #is_civil_war = yes #this is a civil war

    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    po_annex = yes
    
    war_name = CIVIL_WAR_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0
        }
    }
}

# Sphere of Influence Gain
add_to_sphere = {
    sprite_index = 3
    is_triggered_only = yes
    months = 12
    crisis = no

    badboy_factor = 2.5
    prestige_factor = 2
    peace_cost_factor = 25
    penalty_factor = 1

    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        NOT = { ideological_thought = 1    }
        NOT = {    phenomenology_n_hermeneutic = 1 }
              }
               }
        NOT = { is_our_vassal = THIS }
        this = { is_greater_power = yes }
        is_greater_power = no
        is_independant = yes
        part_of_sphere = no
    }
    
    is_valid = {
        this = { is_greater_power = yes }
        is_greater_power = no
    }
    
    po_add_to_sphere = yes
    
    war_name = WAR_ADD_SPHERE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.01
        }
    }
}

add_to_sphere_1836 = {
    sprite_index = 3
    is_triggered_only = yes
    months = 12
    crisis = no

    badboy_factor = 2
    prestige_factor = 2
    peace_cost_factor = 20
    penalty_factor = 1

    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        NOT = {    phenomenology_n_hermeneutic = 1 }
        ideological_thought = 1
        NOT = {    nationalism_n_imperialism = 1 }
            }
             }
        NOT = { is_our_vassal = THIS }
        this = { is_greater_power = yes }
        is_greater_power = no
        is_independant = yes
        part_of_sphere = no
    }
    
    is_valid = {
        this = { is_greater_power = yes }
        is_greater_power = no
    }
    
    po_add_to_sphere = yes
    
    war_name = WAR_ADD_SPHERE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.01
        }
    }
}

add_to_sphere_1850 = {
    sprite_index = 3
    is_triggered_only = yes
    months = 12
    crisis = no

    badboy_factor = 1.5
    prestige_factor = 2
    peace_cost_factor = 15
    penalty_factor = 1

    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
        THIS = {
        AND = {
        nationalism_n_imperialism = 1
        NOT = {    phenomenology_n_hermeneutic = 1 }
              }
                }
        NOT = { is_our_vassal = THIS }
        this = { is_greater_power = yes }
        is_greater_power = no
        is_independant = yes
        part_of_sphere = no
    }
    
    is_valid = {
        this = { is_greater_power = yes }
        is_greater_power = no
    }
    
    po_add_to_sphere = yes
    
    war_name = WAR_ADD_SPHERE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.01
        }
    }
}

add_to_sphere_1880 = {
    sprite_index = 3
    is_triggered_only = yes
    months = 12
    crisis = no

    badboy_factor = 1
    prestige_factor = 1
    peace_cost_factor = 15
    penalty_factor = 1

    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
        THIS = {
        AND = {
        phenomenology_n_hermeneutic = 1
        NOT = {    mass_politics = 1 }
              }
               }
        NOT = { is_our_vassal = THIS }
        this = { is_greater_power = yes }
        is_greater_power = no
        is_independant = yes
        part_of_sphere = no
    }
    
    is_valid = {
        this = { is_greater_power = yes }
        is_greater_power = no
    }
    
    po_add_to_sphere = yes
    
    war_name = WAR_ADD_SPHERE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.01
        }
    }
}

add_to_sphere_1900 = {
    sprite_index = 3
    is_triggered_only = yes
    months = 12
    crisis = no

    badboy_factor = 0.5
    prestige_factor = 1
    peace_cost_factor = 10
    penalty_factor = 1

    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
        THIS = {
        AND = {
        mass_politics = 1
        NOT = {    global_policy = 1 }
              }
               }
        NOT = { is_our_vassal = THIS }
        this = { is_greater_power = yes }
        is_greater_power = no
        is_independant = yes
        part_of_sphere = no
    }
    
    is_valid = {
        this = { is_greater_power = yes }
        is_greater_power = no
    }
    
    po_add_to_sphere = yes
    
    war_name = WAR_ADD_SPHERE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.01
        }
    }
}

add_to_sphere_1930 = {
    sprite_index = 3
    is_triggered_only = yes
    months = 12
    crisis = no

    badboy_factor = 0.5
    prestige_factor = 0.5
    peace_cost_factor = 5
    penalty_factor = 1

    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
        THIS = {
        AND = {
        global_policy = 1
              }
               }
        NOT = { is_our_vassal = THIS }
        this = { is_greater_power = yes }
        is_greater_power = no
        is_independant = yes
        part_of_sphere = no
    }
    
    is_valid = {
        this = { is_greater_power = yes }
        is_greater_power = no
    }
    
    po_add_to_sphere = yes
    
    war_name = WAR_ADD_SPHERE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.01
        }
    }
}

take_from_sphere = {
    sprite_index = 4
    is_triggered_only = yes
    months = 12
    
    badboy_factor = 3
    prestige_factor = 3
    peace_cost_factor = 25
    penalty_factor = 1

    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        NOT = {    phenomenology_n_hermeneutic = 1 }
        NOT = { ideological_thought = 1    }
              }
               }
        NOT = { is_our_vassal = THIS }
        this = { is_greater_power = yes }
        is_greater_power = yes
    }

    
    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal is scope
    allowed_countries = {
        is_sphere_leader_of = FROM
        FROM = { is_vassal = no }
    }
    
    po_add_to_sphere = yes
    
    war_name = WAR_TAKE_SPHERE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.01
        }
    }
}

take_from_sphere_1836 = {
    sprite_index = 4
    is_triggered_only = yes
    months = 12
    
    badboy_factor = 2.5
    prestige_factor = 3
    peace_cost_factor = 20
    penalty_factor = 1

    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        NOT = {    phenomenology_n_hermeneutic = 1 }
        ideological_thought = 1
        NOT = {    nationalism_n_imperialism = 1 }
            }
             }
        NOT = { is_our_vassal = THIS }
        this = { is_greater_power = yes }
        is_greater_power = yes
    }

    
    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal is scope
    allowed_countries = {
        is_sphere_leader_of = FROM
        FROM = { is_vassal = no }
    }
    
    po_add_to_sphere = yes
    
    war_name = WAR_TAKE_SPHERE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.01
        }
    }
}

take_from_sphere_1850 = {
    sprite_index = 4
    is_triggered_only = yes
    months = 12
    
    badboy_factor = 2
    prestige_factor = 3
    peace_cost_factor = 15
    penalty_factor = 1

    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        nationalism_n_imperialism = 1
        NOT = {    phenomenology_n_hermeneutic = 1 }
              }
                }
        NOT = { is_our_vassal = THIS }
        this = { is_greater_power = yes }
        is_greater_power = yes
    }

    
    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal is scope
    allowed_countries = {
        is_sphere_leader_of = FROM
        FROM = { is_vassal = no }
    }
    
    po_add_to_sphere = yes
    
    war_name = WAR_TAKE_SPHERE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.01
        }
    }
}

take_from_sphere_1880 = {
    sprite_index = 4
    is_triggered_only = yes
    months = 12
    
    badboy_factor = 1.5
    prestige_factor = 3
    peace_cost_factor = 15
    penalty_factor = 1

    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        phenomenology_n_hermeneutic = 1
        NOT = {    mass_politics = 1 }
              }
               }
        NOT = { is_our_vassal = THIS }
        this = { is_greater_power = yes }
        is_greater_power = yes
    }

    
    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal is scope
    allowed_countries = {
        is_sphere_leader_of = FROM
        FROM = { is_vassal = no }
    }
    
    po_add_to_sphere = yes
    
    war_name = WAR_TAKE_SPHERE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.01
        }
    }
}

take_from_sphere_1900 = {
    sprite_index = 4
    is_triggered_only = yes
    months = 12
    
    badboy_factor = 1
    prestige_factor = 3
    peace_cost_factor = 10
    penalty_factor = 1

    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        mass_politics = 1
        NOT = {    global_policy = 1 }
              }
               }
        NOT = { is_our_vassal = THIS }
        this = { is_greater_power = yes }
        is_greater_power = yes
    }

    
    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal is scope
    allowed_countries = {
        is_sphere_leader_of = FROM
        FROM = { is_vassal = no }
    }
    
    po_add_to_sphere = yes
    
    war_name = WAR_TAKE_SPHERE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.01
        }
    }
}

take_from_sphere_1930 = {
    sprite_index = 4
    is_triggered_only = yes
    months = 12
    
    badboy_factor = 1
    prestige_factor = 3
    peace_cost_factor = 5
    penalty_factor = 1

    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        global_policy = 1
              }
               }
        NOT = { is_our_vassal = THIS }
        this = { is_greater_power = yes }
        is_greater_power = yes
    }

    
    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal is scope
    allowed_countries = {
        is_sphere_leader_of = FROM
        FROM = { is_vassal = no }
    }
    
    po_add_to_sphere = yes
    
    war_name = WAR_TAKE_SPHERE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.01
        }
    }
}

# Acquire Core State
acquire_core_state = {
    sprite_index = 5
    is_triggered_only = yes
    months = 12
    
    construction_speed = 0.8
    
    badboy_factor = 0
    prestige_factor = 2
    peace_cost_factor = 0.65
    penalty_factor = 1
    always = yes

    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        NOT = {    phenomenology_n_hermeneutic = 1 }
        NOT = { ideological_thought = 1    }
              }
               }
        NOT = { is_our_vassal = THIS }
        any_owned_province = {
            is_core = THIS
        }
    }
    
    allowed_states = {
        any_owned_province = {
            is_core = THIS
        }
    }

    po_demand_state = yes
    
    war_name = WAR_TAKE_CORE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.05
        }
    }
}

acquire_core_state_1836 = {
    sprite_index = 5
    is_triggered_only = yes
    months = 12
    
    construction_speed = 0.8
    
    badboy_factor = 0
    prestige_factor = 2
    peace_cost_factor = 0.50
    penalty_factor = 1
    always = yes

    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        NOT = {    phenomenology_n_hermeneutic = 1 }
        ideological_thought = 1
        NOT = {    nationalism_n_imperialism = 1 }
            }
             }
        NOT = { is_our_vassal = THIS }
        any_owned_province = {
            is_core = THIS
        }
    }
    
    allowed_states = {
        any_owned_province = {
            is_core = THIS
        }
    }

    po_demand_state = yes
    
    war_name = WAR_TAKE_CORE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.05
        }
    }
}

acquire_core_state_1850 = {
    sprite_index = 5
    is_triggered_only = yes
    months = 12
    
    construction_speed = 0.8
    
    badboy_factor = 0
    prestige_factor = 2
    peace_cost_factor = 0.35
    penalty_factor = 1
    always = yes

    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        nationalism_n_imperialism = 1
        NOT = {    phenomenology_n_hermeneutic = 1 }
              }
                }
        NOT = { is_our_vassal = THIS }
        any_owned_province = {
            is_core = THIS
        }
    }
    
    allowed_states = {
        any_owned_province = {
            is_core = THIS
        }
    }

    po_demand_state = yes
    
    war_name = WAR_TAKE_CORE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.05
        }
    }
}

acquire_core_state_1880 = {
    sprite_index = 5
    is_triggered_only = yes
    months = 12
    
    construction_speed = 0.8
    
    badboy_factor = 0
    prestige_factor = 2
    peace_cost_factor = 0.35
    penalty_factor = 1
    always = yes

    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        phenomenology_n_hermeneutic = 1
        NOT = {    mass_politics = 1 }
              }
               }
        NOT = { is_our_vassal = THIS }
        any_owned_province = {
            is_core = THIS
        }
    }
    
    allowed_states = {
        any_owned_province = {
            is_core = THIS
        }
    }

    po_demand_state = yes
    
    war_name = WAR_TAKE_CORE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.05
        }
    }
}

acquire_core_state_1900 = {
    sprite_index = 5
    is_triggered_only = yes
    months = 12
    
    construction_speed = 0.8
    
    badboy_factor = 0
    prestige_factor = 2
    peace_cost_factor = 0.35
    penalty_factor = 1
    always = yes

    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        mass_politics = 1
        NOT = {    global_policy = 1 }
              }
               }
        NOT = { is_our_vassal = THIS }
        any_owned_province = {
            is_core = THIS
        }
    }
    
    allowed_states = {
        any_owned_province = {
            is_core = THIS
        }
    }

    po_demand_state = yes
    
    war_name = WAR_TAKE_CORE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.05
        }
    }
}

acquire_core_state_1930 = {
    sprite_index = 5
    is_triggered_only = yes
    months = 12
    
    construction_speed = 0.8
    
    badboy_factor = 0
    prestige_factor = 2
    peace_cost_factor = 0.35
    penalty_factor = 1
    always = yes

    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        global_policy = 1
              }
               }
        NOT = { is_our_vassal = THIS }
        any_owned_province = {
            is_core = THIS
        }
    }
    
    allowed_states = {
        any_owned_province = {
            is_core = THIS
        }
    }

    po_demand_state = yes
    
    war_name = WAR_TAKE_CORE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.05
        }
    }
}


# Annex Core Country
annex_core_country = {
    sprite_index = 5
    is_triggered_only = yes
    months = 12
    crisis = no

    badboy_factor = 0
    prestige_factor = 3
    peace_cost_factor = 1
    penalty_factor = 1
    always = yes

    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        NOT = {    phenomenology_n_hermeneutic = 1 }
        NOT = { ideological_thought = 1    }
              }
               }
        NOT = { is_our_vassal = THIS }
        any_owned_province = {
            is_core = THIS
        }
        NOT = {
            any_owned_province = {
                NOT = {
                    is_core = THIS
                }
            }
        }
    }

    po_annex = yes
    
    war_name = WAR_RESTORE_ORDER_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.15
        }
    }
}

annex_core_country_1836 = {
    sprite_index = 5
    is_triggered_only = yes
    months = 12
    crisis = no

    badboy_factor = 0
    prestige_factor = 3
    peace_cost_factor = 0.85
    penalty_factor = 1
    always = yes

    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        NOT = {    phenomenology_n_hermeneutic = 1 }
        ideological_thought = 1
        NOT = {    nationalism_n_imperialism = 1 }
            }
             }
        NOT = { is_our_vassal = THIS }
        any_owned_province = {
            is_core = THIS
        }
        NOT = {
            any_owned_province = {
                NOT = {
                    is_core = THIS
                }
            }
        }
    }

    po_annex = yes
    
    war_name = WAR_RESTORE_ORDER_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.15
        }
    }
}

annex_core_country_1850 = {
    sprite_index = 5
    is_triggered_only = yes
    months = 12
    crisis = no

    badboy_factor = 0
    prestige_factor = 3
    peace_cost_factor = 0.7
    penalty_factor = 1
    always = yes

    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        nationalism_n_imperialism = 1
        NOT = {    phenomenology_n_hermeneutic = 1 }
              }
                }
        NOT = { is_our_vassal = THIS }
        any_owned_province = {
            is_core = THIS
        }
        NOT = {
            any_owned_province = {
                NOT = {
                    is_core = THIS
                }
            }
        }
    }

    po_annex = yes
    
    war_name = WAR_RESTORE_ORDER_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.15
        }
    }
}

annex_core_country_1880 = {
    sprite_index = 5
    is_triggered_only = yes
    months = 12
    crisis = no

    badboy_factor = 0
    prestige_factor = 3
    peace_cost_factor = 0.7
    penalty_factor = 1
    always = yes

    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        phenomenology_n_hermeneutic = 1
        NOT = {    mass_politics = 1 }
              }
               }
        NOT = { is_our_vassal = THIS }
        any_owned_province = {
            is_core = THIS
        }
        NOT = {
            any_owned_province = {
                NOT = {
                    is_core = THIS
                }
            }
        }
    }

    po_annex = yes
    
    war_name = WAR_RESTORE_ORDER_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.15
        }
    }
}

annex_core_country_1900 = {
    sprite_index = 5
    is_triggered_only = yes
    months = 12
    crisis = no

    badboy_factor = 0
    prestige_factor = 3
    peace_cost_factor = 0.7
    penalty_factor = 1
    always = yes

    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        mass_politics = 1
        NOT = {    global_policy = 1 }
              }
               }
        NOT = { is_our_vassal = THIS }
        any_owned_province = {
            is_core = THIS
        }
        NOT = {
            any_owned_province = {
                NOT = {
                    is_core = THIS
                }
            }
        }
    }

    po_annex = yes
    
    war_name = WAR_RESTORE_ORDER_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.15
        }
    }
}

annex_core_country_1930 = {
    sprite_index = 5
    is_triggered_only = yes
    months = 12
    crisis = no

    badboy_factor = 0
    prestige_factor = 2
    peace_cost_factor = 0.7
    penalty_factor = 1
    always = yes

    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        global_policy = 1
              }
               }
        NOT = { is_our_vassal = THIS }
        any_owned_province = {
            is_core = THIS
        }
        NOT = {
            any_owned_province = {
                NOT = {
                    is_core = THIS
                }
            }
        }
    }

    po_annex = yes
    
    war_name = WAR_RESTORE_ORDER_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.15
        }
    }
}

# Gain control of Substate region
acquire_substate_region = {
    sprite_index = 6
    is_triggered_only = yes
    months = 12
    construction_speed = 0.5
    crisis = no
    
    badboy_factor = 2
    prestige_factor = 1
    peace_cost_factor = 1
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        NOT = {    phenomenology_n_hermeneutic = 1 }
        NOT = { ideological_thought = 1    }
              }
               }
        NOT = { is_our_vassal = THIS }
        num_of_substates = 1 # if has any substate
        any_substate = {
            number_of_states = 1
            any_owned_province = {
                not = { is_core = THIS }
                is_colonial = no
            }
        }
    }
    
    allowed_substate_regions = {
        is_colonial = no
        owner = { NOT = { in_sphere = THIS } }
        any_owned_province = {
            not = {    is_core = THIS }
            is_colonial = no
        }
    }

    po_demand_state = yes
    
    war_name = WAR_TAKE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.01
        }
    }
}

acquire_substate_region_1836 = {
    sprite_index = 6
    is_triggered_only = yes
    months = 12
    construction_speed = 0.5
    crisis = no
    
    badboy_factor = 1.5
    prestige_factor = 1
    peace_cost_factor = 0.75
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        NOT = {    phenomenology_n_hermeneutic = 1 }
        ideological_thought = 1
        NOT = {    nationalism_n_imperialism = 1 }
            }
             }
        NOT = { is_our_vassal = THIS }
        num_of_substates = 1 # if has any substate
        any_substate = {
            number_of_states = 1
            any_owned_province = {
                not = { is_core = THIS }
                is_colonial = no
            }
        }
    }
    
    allowed_substate_regions = {
        is_colonial = no
        owner = { NOT = { in_sphere = THIS } }
        any_owned_province = {
            not = {    is_core = THIS }
            is_colonial = no
        }
    }

    po_demand_state = yes
    
    war_name = WAR_TAKE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.01
        }
    }
}

acquire_substate_region_1850 = {
    sprite_index = 6
    is_triggered_only = yes
    months = 12
    construction_speed = 0.5
    crisis = no
    
    badboy_factor = 1.0
    prestige_factor = 1
    peace_cost_factor = 0.5
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        nationalism_n_imperialism = 1
        NOT = {    phenomenology_n_hermeneutic = 1 }
              }
                }
        NOT = { is_our_vassal = THIS }
        num_of_substates = 1 # if has any substate
        any_substate = {
            number_of_states = 1
            any_owned_province = {
                not = { is_core = THIS }
                is_colonial = no
            }
        }
    }
    
    allowed_substate_regions = {
        is_colonial = no
        owner = { NOT = { in_sphere = THIS } }
        any_owned_province = {
            not = {    is_core = THIS }
            is_colonial = no
        }
    }

    po_demand_state = yes
    
    war_name = WAR_TAKE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.01
        }
    }
}

acquire_substate_region_1880 = {
    sprite_index = 6
    is_triggered_only = yes
    months = 12
    construction_speed = 0.5
    crisis = no
    
    badboy_factor = 0.6
    prestige_factor = 1
    peace_cost_factor = 0.4
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        phenomenology_n_hermeneutic = 1
        NOT = {    mass_politics = 1 }
              }
               }
        NOT = { is_our_vassal = THIS }
        num_of_substates = 1 # if has any substate
        any_substate = {
            number_of_states = 1
            any_owned_province = {
                not = { is_core = THIS }
                is_colonial = no
            }
        }
    }
    
    allowed_substate_regions = {
        is_colonial = no
        owner = { NOT = { in_sphere = THIS } }
        any_owned_province = {
            not = {    is_core = THIS }
            is_colonial = no
        }
    }

    po_demand_state = yes
    
    war_name = WAR_TAKE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.01
        }
    }
}

acquire_substate_region_1900 = {
    sprite_index = 6
    is_triggered_only = yes
    months = 12
    construction_speed = 0.5
    crisis = no
    
    badboy_factor = 0.6
    prestige_factor = 1
    peace_cost_factor = 0.35
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        mass_politics = 1
        NOT = {    global_policy = 1 }
              }
               }
        NOT = { is_our_vassal = THIS }
        num_of_substates = 1 # if has any substate
        any_substate = {
            number_of_states = 1
            any_owned_province = {
                not = { is_core = THIS }
                is_colonial = no
            }
        }
    }
    
    allowed_substate_regions = {
        is_colonial = no
        owner = { NOT = { in_sphere = THIS } }
        any_owned_province = {
            not = {    is_core = THIS }
            is_colonial = no
        }
    }

    po_demand_state = yes
    
    war_name = WAR_TAKE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.01
        }
    }
}

acquire_substate_region_1930 = {
    sprite_index = 6
    is_triggered_only = yes
    months = 12
    construction_speed = 0.5
    crisis = no
    
    badboy_factor = 0.6
    prestige_factor = 1
    peace_cost_factor = 0.3
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        global_policy = 1
              }
               }
        NOT = { is_our_vassal = THIS }
        num_of_substates = 1 # if has any substate
        any_substate = {
            number_of_states = 1
            any_owned_province = {
                not = { is_core = THIS }
                is_colonial = no
            }
        }
    }
    
    allowed_substate_regions = {
        is_colonial = no
        owner = { NOT = { in_sphere = THIS } }
        any_owned_province = {
            not = {    is_core = THIS }
            is_colonial = no
        }
    }

    po_demand_state = yes
    
    war_name = WAR_TAKE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.01
        }
    }
}


# Gain control of State
acquire_state = {
    sprite_index = 6
    is_triggered_only = yes
    months = 12
    construction_speed = 0.5
    
    badboy_factor = 2
    prestige_factor = 1
    peace_cost_factor = 1
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        NOT = {    phenomenology_n_hermeneutic = 1 }
        NOT = { ideological_thought = 1    }
              }
               }
        NOT = { is_our_vassal = THIS }
        any_owned_province = {
            not = { is_core = THIS }
            is_colonial = no
        }
        OR = {
            AND = {
                civilized = yes
                THIS = {
                    civilized = yes
                }
            }
            AND = {
                civilized = no
                THIS = {
                    civilized = no
                }
            }
        }
        is_independant = yes
    }
    
    allowed_states = {
        is_colonial = no
        any_owned_province = {
            not = {    is_core = THIS }
            is_colonial = no
        }
    }
    
    allowed_states_in_crisis = {
        any_owned_province = {
            any_neighbor_province = {
                owner = { tag = THIS }
            }
        }
    }        

    po_demand_state = yes
    
    war_name = WAR_TAKE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0
        }
    }
}

acquire_state_1836 = {
    sprite_index = 6
    is_triggered_only = yes
    months = 12
    construction_speed = 0.5
    
    badboy_factor = 1.5
    prestige_factor = 1
    peace_cost_factor = 0.75
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        NOT = {    phenomenology_n_hermeneutic = 1 }
        ideological_thought = 1
        NOT = {    nationalism_n_imperialism = 1 }
            }
             }
        NOT = { is_our_vassal = THIS }
        any_owned_province = {
            not = { is_core = THIS }
            is_colonial = no
        }
        OR = {
            AND = {
                civilized = yes
                THIS = {
                    civilized = yes
                }
            }
            AND = {
                civilized = no
                THIS = {
                    civilized = no
                }
            }
        }
        is_independant = yes
    }
    
    allowed_states = {
        is_colonial = no
        any_owned_province = {
            not = {    is_core = THIS }
            is_colonial = no
        }
    }
    
    allowed_states_in_crisis = {
        any_owned_province = {
            any_neighbor_province = {
                owner = { tag = THIS }
            }
        }
    }        

    po_demand_state = yes
    
    war_name = WAR_TAKE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0
        }
    }
}

acquire_state_1850 = {
    sprite_index = 6
    is_triggered_only = yes
    months = 12
    construction_speed = 0.5
    
    badboy_factor = 1
    prestige_factor = 1
    peace_cost_factor = 0.5
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        nationalism_n_imperialism = 1
        NOT = {    phenomenology_n_hermeneutic = 1 }
              }
                }
        NOT = { is_our_vassal = THIS }
        any_owned_province = {
            not = { is_core = THIS }
            is_colonial = no
        }
        OR = {
            AND = {
                civilized = yes
                THIS = {
                    civilized = yes
                }
            }
            AND = {
                civilized = no
                THIS = {
                    civilized = no
                }
            }
        }
        is_independant = yes
    }
    
    allowed_states = {
        is_colonial = no
        any_owned_province = {
            not = {    is_core = THIS }
            is_colonial = no
        }
    }
    
    allowed_states_in_crisis = {
        any_owned_province = {
            any_neighbor_province = {
                owner = { tag = THIS }
            }
        }
    }        

    po_demand_state = yes
    
    war_name = WAR_TAKE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0
        }
    }
}

acquire_state_1880 = {
    sprite_index = 6
    is_triggered_only = yes
    months = 12
    construction_speed = 0.5
    
    badboy_factor = 1
    prestige_factor = 1
    peace_cost_factor = 0.4
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        phenomenology_n_hermeneutic = 1
        NOT = {    mass_politics = 1 }
              }
               }
        NOT = { is_our_vassal = THIS }
        any_owned_province = {
            not = { is_core = THIS }
            is_colonial = no
        }
        OR = {
            AND = {
                civilized = yes
                THIS = {
                    civilized = yes
                }
            }
            AND = {
                civilized = no
                THIS = {
                    civilized = no
                }
            }
        }
        is_independant = yes
    }
    
    allowed_states = {
        is_colonial = no
        any_owned_province = {
            not = {    is_core = THIS }
            is_colonial = no
        }
    }
    
    allowed_states_in_crisis = {
        any_owned_province = {
            any_neighbor_province = {
                owner = { tag = THIS }
            }
        }
    }        

    po_demand_state = yes
    
    war_name = WAR_TAKE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0
        }
    }
}

acquire_state_1900 = {
    sprite_index = 6
    is_triggered_only = yes
    months = 12
    construction_speed = 0.5
    
    badboy_factor = 1
    prestige_factor = 1
    peace_cost_factor = 0.35
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        mass_politics = 1
        NOT = {    global_policy = 1 }
              }
               }
        NOT = { is_our_vassal = THIS }
        any_owned_province = {
            not = { is_core = THIS }
            is_colonial = no
        }
        OR = {
            AND = {
                civilized = yes
                THIS = {
                    civilized = yes
                }
            }
            AND = {
                civilized = no
                THIS = {
                    civilized = no
                }
            }
        }
        is_independant = yes
    }
    
    allowed_states = {
        is_colonial = no
        any_owned_province = {
            not = {    is_core = THIS }
            is_colonial = no
        }
    }
    
    allowed_states_in_crisis = {
        any_owned_province = {
            any_neighbor_province = {
                owner = { tag = THIS }
            }
        }
    }        

    po_demand_state = yes
    
    war_name = WAR_TAKE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0
        }
    }
}

acquire_state_1930 = {
    sprite_index = 6
    is_triggered_only = yes
    months = 12
    construction_speed = 0.5
    
    badboy_factor = 1
    prestige_factor = 1
    peace_cost_factor = 0.25
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        global_policy = 1
              }
               }
        NOT = { is_our_vassal = THIS }
        any_owned_province = {
            not = { is_core = THIS }
            is_colonial = no
        }
        OR = {
            AND = {
                civilized = yes
                THIS = {
                    civilized = yes
                }
            }
            AND = {
                civilized = no
                THIS = {
                    civilized = no
                }
            }
        }
        is_independant = yes
    }
    
    allowed_states = {
        is_colonial = no
        any_owned_province = {
            not = {    is_core = THIS }
            is_colonial = no
        }
    }
    
    allowed_states_in_crisis = {
        any_owned_province = {
            any_neighbor_province = {
                owner = { tag = THIS }
            }
        }
    }        

    po_demand_state = yes
    
    war_name = WAR_TAKE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0
        }
    }
}


# Place in the Sun
place_in_the_sun = {
    sprite_index = 7
    is_triggered_only = yes
    months = 12

    badboy_factor = 1
    prestige_factor = 1
    peace_cost_factor = 1
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        NOT = {    phenomenology_n_hermeneutic = 1 }
        NOT = { ideological_thought = 1    }
              }
               }
        NOT = { is_our_vassal = THIS }
        any_owned_province = {
            is_colonial = yes
        }    
    }
    
    allowed_states = {
        is_colonial = yes
    }
    
    allowed_states_in_crisis = {
        any_owned_province = {
            OR = {
                is_coastal = yes
                any_neighbor_province = {
                    owner = { tag = THIS }
                }
            }
        }
    }

    po_demand_state = yes

    war_name = WAR_COLONIAL_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.05
        }
    }
}

place_in_the_sun_1836 = {
    sprite_index = 7
    is_triggered_only = yes
    months = 12

    badboy_factor = 0.75
    prestige_factor = 1
    peace_cost_factor = 0.75
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        NOT = {    phenomenology_n_hermeneutic = 1 }
        ideological_thought = 1
        NOT = {    nationalism_n_imperialism = 1 }
            }
             }
        NOT = { is_our_vassal = THIS }
        any_owned_province = {
            is_colonial = yes
        }    
    }
    
    allowed_states = {
        is_colonial = yes
    }
    
    allowed_states_in_crisis = {
        any_owned_province = {
            OR = {
                is_coastal = yes
                any_neighbor_province = {
                    owner = { tag = THIS }
                }
            }
        }
    }

    po_demand_state = yes

    war_name = WAR_COLONIAL_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.05
        }
    }
}

place_in_the_sun_1850 = {
    sprite_index = 7
    is_triggered_only = yes
    months = 12

    badboy_factor = 0.5
    prestige_factor = 1
    peace_cost_factor = 0.5
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        nationalism_n_imperialism = 1
        NOT = {    phenomenology_n_hermeneutic = 1 }
              }
                }
        NOT = { is_our_vassal = THIS }
        any_owned_province = {
            is_colonial = yes
        }    
    }
    
    allowed_states = {
        is_colonial = yes
    }
    
    allowed_states_in_crisis = {
        any_owned_province = {
            OR = {
                is_coastal = yes
                any_neighbor_province = {
                    owner = { tag = THIS }
                }
            }
        }
    }

    po_demand_state = yes

    war_name = WAR_COLONIAL_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.05
        }
    }
}

place_in_the_sun_1880 = {
    sprite_index = 7
    is_triggered_only = yes
    months = 12

    badboy_factor = 0.5
    prestige_factor = 1
    peace_cost_factor = 0.4
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        phenomenology_n_hermeneutic = 1
        NOT = {    mass_politics = 1 }
              }
               }
        NOT = { is_our_vassal = THIS }
        any_owned_province = {
            is_colonial = yes
        }    
    }
    
    allowed_states = {
        is_colonial = yes
    }
    
    allowed_states_in_crisis = {
        any_owned_province = {
            OR = {
                is_coastal = yes
                any_neighbor_province = {
                    owner = { tag = THIS }
                }
            }
        }
    }

    po_demand_state = yes

    war_name = WAR_COLONIAL_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.05
        }
    }
}

place_in_the_sun_1900 = {
    sprite_index = 7
    is_triggered_only = yes
    months = 12

    badboy_factor = 0.4
    prestige_factor = 1
    peace_cost_factor = 0.35
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
        THIS = {
        AND = {
        mass_politics = 1
        NOT = {    global_policy = 1 }
              }
               }
        
        NOT = { is_our_vassal = THIS }
        any_owned_province = {
            is_colonial = yes
        }    
    }
    
    allowed_states = {
        is_colonial = yes
    }
    
    allowed_states_in_crisis = {
        any_owned_province = {
            OR = {
                is_coastal = yes
                any_neighbor_province = {
                    owner = { tag = THIS }
                }
            }
        }
    }

    po_demand_state = yes

    war_name = WAR_COLONIAL_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.05
        }
    }
}

place_in_the_sun_1930 = {
    sprite_index = 7
    is_triggered_only = yes
    months = 12

    badboy_factor = 0.4
    prestige_factor = 1
    peace_cost_factor = 0.3
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        global_policy = 1
              }
               }
        NOT = { is_our_vassal = THIS }
        any_owned_province = {
            is_colonial = yes
        }    
    }
    
    allowed_states = {
        is_colonial = yes
    }
    
    allowed_states_in_crisis = {
        any_owned_province = {
            OR = {
                is_coastal = yes
                any_neighbor_province = {
                    owner = { tag = THIS }
                }
            }
        }
    }

    po_demand_state = yes

    war_name = WAR_COLONIAL_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.05
        }
    }
}

# Colonial competition
colonial_competition = {
    sprite_index = 7
    is_triggered_only = yes
    constructing_cb = no    # only used in crises
    crisis = no
    months = 12

    badboy_factor = 0
    prestige_factor = 2
    peace_cost_factor = 0.25
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    po_colony = yes

    war_name = WAR_COLONIAL_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0
        }
    }
}

# Cut Down to size
cut_down_to_size = {
    sprite_index = 8
    is_triggered_only = yes
    months = 12
    
    badboy_factor = 1.2
    prestige_factor = 1
    peace_cost_factor = 24
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    po_disarmament = yes
    po_reparations = yes

    war_name = WAR_NAME
    
    can_use = {
            THIS = {
        AND = {
        NOT = {    phenomenology_n_hermeneutic = 1 }
        NOT = { ideological_thought = 1    }
              }
               }
        NOT = { is_our_vassal = THIS }
        is_disarmed = no
    }
    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.05
        }
    }
}

cut_down_to_size_1836 = {
    sprite_index = 8
    is_triggered_only = yes
    months = 12
    
    badboy_factor = 1.0
    prestige_factor = 1
    peace_cost_factor = 12
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    po_disarmament = yes
    po_reparations = yes

    war_name = WAR_NAME
    
    can_use = {
            THIS = {
        AND = {
        NOT = {    phenomenology_n_hermeneutic = 1 }
        ideological_thought = 1
        NOT = {    nationalism_n_imperialism = 1 }
            }
             }
        NOT = { is_our_vassal = THIS }
        is_disarmed = no
    }
    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.05
        }
    }
}

cut_down_to_size_1850 = {
    sprite_index = 8
    is_triggered_only = yes
    months = 12
    
    badboy_factor = 0.6
    prestige_factor = 2
    peace_cost_factor = 12
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    po_disarmament = yes
    po_reparations = yes

    war_name = WAR_NAME
    
    can_use = {
            THIS = {
        AND = {
        nationalism_n_imperialism = 1
        NOT = {    phenomenology_n_hermeneutic = 1 }
              }
                }
        NOT = { is_our_vassal = THIS }
        is_disarmed = no
    }
    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.05
        }
    }
}

cut_down_to_size_1880 = {
    sprite_index = 8
    is_triggered_only = yes
    months = 12
    
    badboy_factor = 0.6
    prestige_factor = 2
    peace_cost_factor = 12
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    po_disarmament = yes
    po_reparations = yes

    war_name = WAR_NAME
    
    can_use = {
            THIS = {
        AND = {
        phenomenology_n_hermeneutic = 1
        NOT = {    mass_politics = 1 }
              }
               }
        NOT = { is_our_vassal = THIS }
        is_disarmed = no
    }
    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.05
        }
    }
}

cut_down_to_size_1900 = {
    sprite_index = 8
    is_triggered_only = yes
    months = 12
    
    badboy_factor = 1.0
    prestige_factor = 2
    peace_cost_factor = 10
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    po_disarmament = yes
    po_reparations = yes

    war_name = WAR_NAME
    
    can_use = {
            THIS = {
        AND = {
        mass_politics = 1
        NOT = {    global_policy = 1 }
              }
               }
        NOT = { is_our_vassal = THIS }
        is_disarmed = no
    }
    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.05
        }
    }
}

cut_down_to_size_1930 = {
    sprite_index = 8
    is_triggered_only = yes
    months = 12
    
    badboy_factor = 1.5
    prestige_factor = 3
    peace_cost_factor = 10
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    po_disarmament = yes
    po_reparations = yes

    war_name = WAR_NAME
    
    can_use = {
            THIS = {
        AND = {
        global_policy = 1
              }
               }
        NOT = { is_our_vassal = THIS }
        is_disarmed = no
    }
    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.05
        }
    }
}

    
cut_down_to_size_boxer = {
    sprite_index = 8
    is_triggered_only = yes
    months = 12
    constructing_cb = no
    crisis = no
    
    can_use = {
        NOT = { is_our_vassal = THIS }
        is_disarmed = no
    }
    
    badboy_factor = 0
    prestige_factor = 1
    peace_cost_factor = 12
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    po_disarmament = yes
    po_reparations = yes

    war_name = WAR_BOXER_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.01
        }
    }
}

# Free Peoples
free_peoples = {
    sprite_index = 9
    is_triggered_only = yes
    months = 12

    badboy_factor = 1.2
    prestige_factor = 1
    peace_cost_factor = 1
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1
    
    
    can_use = {
            THIS = {
        AND = {
        NOT = {    phenomenology_n_hermeneutic = 1 }
        NOT = { ideological_thought = 1    }
              }
               }
        NOT = { is_our_vassal = THIS }
    }

    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal is scope
    allowed_countries = {
        number_of_states = 2
        NOT = {
            tag = FROM
            this_culture_union = FROM    
        }
        from = {
            OR = {
                exists = yes
                NOT = {
                        OR = {
                            tag = GER
                            tag = SCA
                            tag = ITA
                            tag = YUG
                            tag = ROM
                            tag = CZH
                        }
                    }
                }
            }
        
        any_owned_province = {
            is_core = FROM
            NOT =
            {
                is_core = THIS
            }
        }
        is_releasable_vassal = FROM
    }

    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal's state
    allowed_states = {
        any_owned_province = {
            is_core = FROM
        }
    }

    po_transfer_provinces = yes
    po_remove_cores = yes

    war_name = WAR_FREE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0
        }
    }
}

free_peoples_1836 = {
    sprite_index = 9
    is_triggered_only = yes
    months = 12

    badboy_factor = 1.1
    prestige_factor = 1
    peace_cost_factor = 0.8
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1
    
    
    can_use = {
            THIS = {
        AND = {
        NOT = {    phenomenology_n_hermeneutic = 1 }
        ideological_thought = 1
        NOT = {    nationalism_n_imperialism = 1 }
            }
             }
        NOT = { is_our_vassal = THIS }
    }

    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal is scope
    allowed_countries = {
        number_of_states = 2
        NOT = {
            tag = FROM
            this_culture_union = FROM    
        }
        from = {
            OR = {
                exists = yes
                NOT = {
                        OR = {
                            tag = GER
                            tag = SCA
                            tag = ITA
                            tag = YUG
                            tag = ROM
                            tag = CZH
                        }
                    }
                }
            }
        
        any_owned_province = {
            is_core = FROM
            NOT =
            {
                is_core = THIS
            }
        }
        is_releasable_vassal = FROM
    }

    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal's state
    allowed_states = {
        any_owned_province = {
            is_core = FROM
        }
    }

    po_transfer_provinces = yes
    po_remove_cores = yes

    war_name = WAR_FREE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0
        }
    }
}

free_peoples_1850 = {
    sprite_index = 9
    is_triggered_only = yes
    months = 12

    badboy_factor = 1
    prestige_factor = 1
    peace_cost_factor = 0.5
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1
    
    
    can_use = {
            THIS = {
        AND = {
        nationalism_n_imperialism = 1
        NOT = {    phenomenology_n_hermeneutic = 1 }
              }
                }
        NOT = { is_our_vassal = THIS }
    }

    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal is scope
    allowed_countries = {
        number_of_states = 2
        NOT = {
            tag = FROM
            this_culture_union = FROM    
        }
        from = {
            OR = {
                exists = yes
                NOT = {
                        OR = {
                            tag = GER
                            tag = SCA
                            tag = ITA
                            tag = YUG
                            tag = ROM
                            tag = CZH
                        }
                    }
                }
            }
        
        any_owned_province = {
            is_core = FROM
            NOT =
            {
                is_core = THIS
            }
        }
        is_releasable_vassal = FROM
    }

    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal's state
    allowed_states = {
        any_owned_province = {
            is_core = FROM
        }
    }

    po_transfer_provinces = yes
    po_remove_cores = yes

    war_name = WAR_FREE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0
        }
    }
}

free_peoples_1880 = {
    sprite_index = 9
    is_triggered_only = yes
    months = 12

    badboy_factor = 1
    prestige_factor = 1.5
    peace_cost_factor = 0.4
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1
    
    
    can_use = {
            THIS = {
        AND = {
        phenomenology_n_hermeneutic = 1
        NOT = {    mass_politics = 1 }
              }
               }
        NOT = { is_our_vassal = THIS }
    }

    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal is scope
    allowed_countries = {
        number_of_states = 2
        NOT = {
            tag = FROM
            this_culture_union = FROM    
        }
        from = {
            OR = {
                exists = yes
                NOT = {
                        OR = {
                            tag = GER
                            tag = SCA
                            tag = ITA
                            tag = YUG
                            tag = ROM
                            tag = CZH
                        }
                    }
                }
            }
        
        any_owned_province = {
            is_core = FROM
            NOT =
            {
                is_core = THIS
            }
        }
        is_releasable_vassal = FROM
    }

    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal's state
    allowed_states = {
        any_owned_province = {
            is_core = FROM
        }
    }

    po_transfer_provinces = yes
    po_remove_cores = yes

    war_name = WAR_FREE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0
        }
    }
}

free_peoples_1900 = {
    sprite_index = 9
    is_triggered_only = yes
    months = 12

    badboy_factor = 1
    prestige_factor = 2
    peace_cost_factor = 0.3
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1
    
    
    can_use = {
            THIS = {
        AND = {
        mass_politics = 1
        NOT = {    global_policy = 1 }
              }
               }
        NOT = { is_our_vassal = THIS }
    }

    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal is scope
    allowed_countries = {
        number_of_states = 2
        NOT = {
            tag = FROM
            this_culture_union = FROM    
        }
        from = {
            OR = {
                exists = yes
                NOT = {
                        OR = {
                            tag = GER
                            tag = SCA
                            tag = ITA
                            tag = YUG
                            tag = ROM
                            tag = CZH
                        }
                    }
                }
            }
        
        any_owned_province = {
            is_core = FROM
            NOT =
            {
                is_core = THIS
            }
        }
        is_releasable_vassal = FROM
    }

    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal's state
    allowed_states = {
        any_owned_province = {
            is_core = FROM
        }
    }

    po_transfer_provinces = yes
    po_remove_cores = yes

    war_name = WAR_FREE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0
        }
    }
}

free_peoples_1930 = {
    sprite_index = 9
    is_triggered_only = yes
    months = 12

    badboy_factor = 0.7
    prestige_factor = 3
    peace_cost_factor = 0.2
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1
    
    
    can_use = {
            THIS = {
        AND = {
        global_policy = 1
              }
               }
        NOT = { is_our_vassal = THIS }
    }

    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal is scope
    allowed_countries = {
        number_of_states = 2
        NOT = {
            tag = FROM
            this_culture_union = FROM    
        }
        from = {
            OR = {
                exists = yes
                NOT = {
                        OR = {
                            tag = GER
                            tag = SCA
                            tag = ITA
                            tag = YUG
                            tag = ROM
                            tag = CZH
                        }
                    }
                }
            }
        
        any_owned_province = {
            is_core = FROM
            NOT =
            {
                is_core = THIS
            }
        }
        is_releasable_vassal = FROM
    }

    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal's state
    allowed_states = {
        any_owned_province = {
            is_core = FROM
        }
    }

    po_transfer_provinces = yes
    po_remove_cores = yes

    war_name = WAR_FREE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0
        }
    }
}


# Liberate country
liberate_country = {
    sprite_index = 15
    is_triggered_only = yes
    months = 12

    badboy_factor = 4
    prestige_factor = 2
    peace_cost_factor = 1
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1
    
    
    can_use = {
            THIS = {
        AND = {
        NOT = {    phenomenology_n_hermeneutic = 1 }
        NOT = { ideological_thought = 1    }
              }
               }
        NOT = { is_our_vassal = THIS }
    }

    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal is scope
    allowed_countries = {
        number_of_states = 2
        NOT = {
            tag = FROM
            this_culture_union = FROM    
        }
        from = {
            OR = {
                exists = yes
                NOT = {
                        OR = {
                            tag = GER
                            tag = SCA
                            tag = ITA
                            tag = YUG
                            #tag = ROM
                            tag = CZH
                        }
                    }
                }
            }
        
        any_owned_province = {
            is_core = FROM
            OR = {
                NOT = { is_core = THIS }
                FROM = { tag = ECU }
            }
        }
        is_releasable_vassal = FROM
    }

    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal's state
    allowed_states = {
        any_owned_province = {
            is_core = FROM
        }
    }
    all_allowed_states = yes
    po_transfer_provinces = yes
    po_remove_cores = yes

    war_name = WAR_LIBERATE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.05
        }
    }
}

liberate_country_1836 = {
    sprite_index = 15
    is_triggered_only = yes
    months = 12

    badboy_factor = 3
    prestige_factor = 2
    peace_cost_factor = 0.75
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1
    
    
    can_use = {
        THIS = {
        AND = {
        NOT = {    phenomenology_n_hermeneutic = 1 }
        ideological_thought = 1
        NOT = {    nationalism_n_imperialism = 1 }
            }
             }    
        NOT = { is_our_vassal = THIS }
    }

    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal is scope
    allowed_countries = {
        number_of_states = 2
        NOT = {
            tag = FROM
            this_culture_union = FROM    
        }
        from = {
            OR = {
                exists = yes
                NOT = {
                        OR = {
                            tag = GER
                            tag = SCA
                            tag = ITA
                            tag = YUG
                            #tag = ROM
                            tag = CZH
                        }
                    }
                }
            }
        
        any_owned_province = {
            is_core = FROM
            OR = {
                NOT = { is_core = THIS }
                FROM = { tag = ECU }
            }
        }
        is_releasable_vassal = FROM
    }

    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal's state
    allowed_states = {
        any_owned_province = {
            is_core = FROM
        }
    }
    all_allowed_states = yes
    po_transfer_provinces = yes
    po_remove_cores = yes

    war_name = WAR_LIBERATE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.05
        }
    }
}

liberate_country_1850 = {
    sprite_index = 15
    is_triggered_only = yes
    months = 12

    badboy_factor = 3
    prestige_factor = 3
    peace_cost_factor = 0.5
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1
    
    
    can_use = {
            THIS = {
        AND = {
        nationalism_n_imperialism = 1
        NOT = {    phenomenology_n_hermeneutic = 1 }
              }
                }
        NOT = { is_our_vassal = THIS }
    }

    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal is scope
    allowed_countries = {
        number_of_states = 2
        NOT = {
            tag = FROM
            this_culture_union = FROM    
        }
        from = {
            OR = {
                exists = yes
                NOT = {
                        OR = {
                            tag = GER
                            tag = SCA
                            tag = ITA
                            tag = YUG
                            #tag = ROM
                            tag = CZH
                        }
                    }
                }
            }
        
        any_owned_province = {
            is_core = FROM
            OR = {
                NOT = { is_core = THIS }
                FROM = { tag = ECU }
            }
        }
        is_releasable_vassal = FROM
    }

    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal's state
    allowed_states = {
        any_owned_province = {
            is_core = FROM
        }
    }
    all_allowed_states = yes
    po_transfer_provinces = yes
    po_remove_cores = yes

    war_name = WAR_LIBERATE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.05
        }
    }
}

liberate_country_1880 = {
    sprite_index = 15
    is_triggered_only = yes
    months = 12

    badboy_factor = 2.5
    prestige_factor = 35
    peace_cost_factor = 0.5
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1
    
    
    can_use = {
            THIS = {
        AND = {
        phenomenology_n_hermeneutic = 1
        NOT = {    mass_politics = 1 }
              }
               }
        NOT = { is_our_vassal = THIS }
    }

    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal is scope
    allowed_countries = {
        number_of_states = 2
        NOT = {
            tag = FROM
            this_culture_union = FROM    
        }
        from = {
            OR = {
                exists = yes
                NOT = {
                        OR = {
                            tag = GER
                            tag = SCA
                            tag = ITA
                            tag = YUG
                            #tag = ROM
                            tag = CZH
                        }
                    }
                }
            }
        
        any_owned_province = {
            is_core = FROM
            OR = {
                NOT = { is_core = THIS }
                FROM = { tag = ECU }
            }
        }
        is_releasable_vassal = FROM
    }

    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal's state
    allowed_states = {
        any_owned_province = {
            is_core = FROM
        }
    }
    all_allowed_states = yes
    po_transfer_provinces = yes
    po_remove_cores = yes

    war_name = WAR_LIBERATE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.05
        }
    }
}

liberate_country_1900 = {
    sprite_index = 15
    is_triggered_only = yes
    months = 12

    badboy_factor = 2.35
    prestige_factor = 4
    peace_cost_factor = 0.45
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1
    
    
    can_use = {
            THIS = {
        AND = {
        mass_politics = 1
        NOT = {    global_policy = 1 }
              }
               }
        NOT = { is_our_vassal = THIS }
    }

    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal is scope
    allowed_countries = {
        number_of_states = 2
        NOT = {
            tag = FROM
            this_culture_union = FROM    
        }
        from = {
            OR = {
                exists = yes
                NOT = {
                        OR = {
                            tag = GER
                            tag = SCA
                            tag = ITA
                            tag = YUG
                            #tag = ROM
                            tag = CZH
                        }
                    }
                }
            }
        
        any_owned_province = {
            is_core = FROM
            OR = {
                NOT = { is_core = THIS }
                FROM = { tag = ECU }
            }
        }
        is_releasable_vassal = FROM
    }

    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal's state
    allowed_states = {
        any_owned_province = {
            is_core = FROM
        }
    }
    all_allowed_states = yes
    po_transfer_provinces = yes
    po_remove_cores = yes

    war_name = WAR_LIBERATE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.05
        }
    }
}

liberate_country_1930 = {
    sprite_index = 15
    is_triggered_only = yes
    months = 12

    badboy_factor = 2.2
    prestige_factor = 5
    peace_cost_factor = 0.4
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1
    
    
    can_use = {
        THIS = {
        AND = {
        global_policy = 1
              }
               }    
        NOT = { is_our_vassal = THIS }
    }

    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal is scope
    allowed_countries = {
        number_of_states = 2
        NOT = {
            tag = FROM
            this_culture_union = FROM    
        }
        from = {
            OR = {
                exists = yes
                NOT = {
                        OR = {
                            tag = GER
                            tag = SCA
                            tag = ITA
                            tag = YUG
                            #tag = ROM
                            tag = CZH
                        }
                    }
                }
            }
        
        any_owned_province = {
            is_core = FROM
            OR = {
                NOT = { is_core = THIS }
                FROM = { tag = ECU }
            }
        }
        is_releasable_vassal = FROM
    }

    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal's state
    allowed_states = {
        any_owned_province = {
            is_core = FROM
        }
    }
    all_allowed_states = yes
    po_transfer_provinces = yes
    po_remove_cores = yes

    war_name = WAR_LIBERATE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.05
        }
    }
}


# Dismantle fortifications (forts + naval bases)
dismantle_forts = {
    sprite_index = 16
    is_triggered_only = yes
    months = 12

    badboy_factor = 0.05
    prestige_factor = 0.20
    peace_cost_factor = 0.5
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1
    
    
    can_use = {
        NOT = { is_our_vassal = THIS }
    }

    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal's state
    allowed_states = {
        any_owned_province = {
            OR = { 
                has_building = fort
                has_building = naval_base
            }
        }
    }

    po_destroy_forts = yes
    po_destroy_naval_bases = yes

    war_name = WAR_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.001
        }
    }
}


# Release Puppet
release_puppet = {
    sprite_index = 10
    is_triggered_only = yes
    months = 12

    badboy_factor = 3
    prestige_factor = 1
    peace_cost_factor = 15
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        NOT = {    phenomenology_n_hermeneutic = 1 }
        NOT = { ideological_thought = 1    }
              }
               }
        NOT = { is_our_vassal = THIS }
        num_of_vassals_no_substates = 1
    }
    
    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal is scope
    allowed_countries = {
        is_our_vassal = FROM
        FROM = { is_substate = no }
    }
    
    po_release_puppet = yes
    po_add_to_sphere = yes

    war_name = WAR_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0
        }
    }
}

release_puppet_1836 = {
    sprite_index = 10
    is_triggered_only = yes
    months = 12

    badboy_factor = 2.5
    prestige_factor = 1
    peace_cost_factor = 12.5
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        NOT = {    phenomenology_n_hermeneutic = 1 }
        ideological_thought = 1
        NOT = {    nationalism_n_imperialism = 1 }
            }
             }
        NOT = { is_our_vassal = THIS }
        num_of_vassals_no_substates = 1
    }
    
    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal is scope
    allowed_countries = {
        is_our_vassal = FROM
        FROM = { is_substate = no }
    }
    
    po_release_puppet = yes
    po_add_to_sphere = yes

    war_name = WAR_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0
        }
    }
}

release_puppet_1850 = {
    sprite_index = 10
    is_triggered_only = yes
    months = 12

    badboy_factor = 2
    prestige_factor = 1
    peace_cost_factor = 10
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        nationalism_n_imperialism = 1
        NOT = {    phenomenology_n_hermeneutic = 1 }
              }
                }
        NOT = { is_our_vassal = THIS }
        num_of_vassals_no_substates = 1
    }
    
    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal is scope
    allowed_countries = {
        is_our_vassal = FROM
        FROM = { is_substate = no }
    }
    
    po_release_puppet = yes
    po_add_to_sphere = yes

    war_name = WAR_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0
        }
    }
}

release_puppet_1880 = {
    sprite_index = 10
    is_triggered_only = yes
    months = 12

    badboy_factor = 1.5
    prestige_factor = 2
    peace_cost_factor = 10
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        phenomenology_n_hermeneutic = 1
        NOT = {    mass_politics = 1 }
              }
               }
        NOT = { is_our_vassal = THIS }
        num_of_vassals_no_substates = 1
    }
    
    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal is scope
    allowed_countries = {
        is_our_vassal = FROM
        FROM = { is_substate = no }
    }
    
    po_release_puppet = yes
    po_add_to_sphere = yes

    war_name = WAR_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0
        }
    }
}

release_puppet_1900 = {
    sprite_index = 10
    is_triggered_only = yes
    months = 12

    badboy_factor = 1
    prestige_factor = 3
    peace_cost_factor = 7.5
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        mass_politics = 1
        NOT = {    global_policy = 1 }
              }
               }
        NOT = { is_our_vassal = THIS }
        num_of_vassals_no_substates = 1
    }
    
    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal is scope
    allowed_countries = {
        is_our_vassal = FROM
        FROM = { is_substate = no }
    }
    
    po_release_puppet = yes
    po_add_to_sphere = yes

    war_name = WAR_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0
        }
    }
}

release_puppet_1930 = {
    sprite_index = 10
    is_triggered_only = yes
    months = 12

    badboy_factor = 0.5
    prestige_factor = 3
    peace_cost_factor = 5
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        global_policy = 1
              }
               }
        NOT = { is_our_vassal = THIS }
        num_of_vassals_no_substates = 1
    }
    
    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal is scope
    allowed_countries = {
        is_our_vassal = FROM
        FROM = { is_substate = no }
    }
    
    po_release_puppet = yes
    po_add_to_sphere = yes

    war_name = WAR_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0
        }
    }
}
# Make Puppet
make_puppet = {
    sprite_index = 10
    is_triggered_only = yes
    months = 12
    crisis = no

    badboy_factor = 3
    prestige_factor = 1
    peace_cost_factor = 1
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        NOT = {    phenomenology_n_hermeneutic = 1 }
        NOT = { ideological_thought = 1    }
              }
               }
        NOT = { is_our_vassal = THIS }
        NOT = { number_of_states = 4 }
        is_greater_power = no
        is_vassal = no
    }
    
    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal is scope
    #allowed_countries = {
    #    NOT = { is_our_vassal = FROM }
        #FROM = { is_substate = no }
    #}
    
    po_make_puppet = yes

    war_name = WAR_PUPPET_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.01
        }
    }
}

make_puppet_1836 = {
    sprite_index = 10
    is_triggered_only = yes
    months = 12
    crisis = no

    badboy_factor = 3
    prestige_factor = 1
    peace_cost_factor = 1
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        NOT = {    phenomenology_n_hermeneutic = 1 }
        ideological_thought = 1
        NOT = {    nationalism_n_imperialism = 1 }
            }
             }
        NOT = { is_our_vassal = THIS }
        NOT = { number_of_states = 5 }
        is_greater_power = no
        is_vassal = no
    }
    
    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal is scope
    #allowed_countries = {
    #    NOT = { is_our_vassal = FROM }
        #FROM = { is_substate = no }
    #}
    
    po_make_puppet = yes

    war_name = WAR_PUPPET_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.01
        }
    }
}

make_puppet_1850 = {
    sprite_index = 10
    is_triggered_only = yes
    months = 12
    crisis = no

    badboy_factor = 4
    prestige_factor = 1
    peace_cost_factor = 1
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
        THIS = {
        AND = {
        nationalism_n_imperialism = 1
        NOT = {    phenomenology_n_hermeneutic = 1 }
              }
                }
        NOT = { is_our_vassal = THIS }
        NOT = { number_of_states = 7 }
        is_greater_power = no
        is_vassal = no
    }
    
    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal is scope
    #allowed_countries = {
    #    NOT = { is_our_vassal = FROM }
        #FROM = { is_substate = no }
    #}
    
    po_make_puppet = yes

    war_name = WAR_PUPPET_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.01
        }
    }
}

make_puppet_1880 = {
    sprite_index = 10
    is_triggered_only = yes
    months = 12
    crisis = no

    badboy_factor = 4
    prestige_factor = 2
    peace_cost_factor = 1
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        phenomenology_n_hermeneutic = 1
        NOT = {    mass_politics = 1 }
              }
               }
        NOT = { is_our_vassal = THIS }
        NOT = { number_of_states = 9 }
        is_greater_power = no
        is_vassal = no
    }
    
    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal is scope
    #allowed_countries = {
    #    NOT = { is_our_vassal = FROM }
        #FROM = { is_substate = no }
    #}
    
    po_make_puppet = yes

    war_name = WAR_PUPPET_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.01
        }
    }
}

make_puppet_1900 = {
    sprite_index = 10
    is_triggered_only = yes
    months = 12
    crisis = no

    badboy_factor = 5
    prestige_factor = 2
    peace_cost_factor = 1
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        mass_politics = 1
        NOT = {    global_policy = 1 }
              }
               }
        NOT = { is_our_vassal = THIS }
        NOT = { number_of_states = 11 }
        is_greater_power = no
        is_vassal = no
    }
    
    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal is scope
    #allowed_countries = {
    #    NOT = { is_our_vassal = FROM }
        #FROM = { is_substate = no }
    #}
    
    po_make_puppet = yes

    war_name = WAR_PUPPET_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.01
        }
    }
}

make_puppet_1930 = {
    sprite_index = 10
    is_triggered_only = yes
    months = 12
    crisis = no

    badboy_factor = 5
    prestige_factor = 3
    peace_cost_factor = 1
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
            THIS = {
        AND = {
        global_policy = 1
              }
               }
        NOT = { is_our_vassal = THIS }
        NOT = { number_of_states = 21 }
        is_greater_power = no
        is_vassal = no
    }
    
    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal is scope
    #allowed_countries = {
    #    NOT = { is_our_vassal = FROM }
        #FROM = { is_substate = no }
    #}
    
    po_make_puppet = yes

    war_name = WAR_PUPPET_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.01
        }
    }
}


# Become Independent
become_independent = {
    sprite_index = 10
    is_triggered_only = yes
    months = 12
    crisis = no
    
    always = yes

    badboy_factor = 0
    prestige_factor = 2
    peace_cost_factor = 0.5
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
        is_our_vassal = THIS
    }
    
    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal is scope
    allowed_countries = {
        OR = {
            FROM = { is_our_vassal = THIS }
            war_with = THIS
        }
    }
    
    po_release_puppet = yes
    po_add_to_sphere = yes

    war_name = WAR_INDEPENDENCE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.25
        }
        add_war_goal = {
            casus_belli = make_puppet
        }
        leave_alliance = FROM
        release_vassal = THIS
    }
}


# Humiliate
humiliate = {
    sprite_index = 11
    is_triggered_only = yes
    months = 12

    badboy_factor = 2.5
    prestige_factor = 1
    peace_cost_factor = 7.5
    penalty_factor = 1
    
    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1
    
    po_remove_prestige = yes

    tws_battle_factor = 2.0
    
    war_name = WAR_HUMILIATE_NAME

    can_use = {
        NOT = { is_our_vassal = THIS }
        has_recently_lost_war = no
    }    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.01
        }
    }
}

# Demand Concession
demand_concession_casus_belli = {
    sprite_index = 7
    is_triggered_only = yes
    months = 0
    construction_speed = 1.2
    crisis = no
    
    badboy_factor = 1
    prestige_factor = 0.1
    peace_cost_factor = 1
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 12
    
    good_relation_prestige_factor = 0
    good_relation_infamy_factor = 0
    good_relation_militancy_factor = 0
    
    always = no

    can_use = {
            THIS = {
        AND = {
        NOT = {    phenomenology_n_hermeneutic = 1 }
        NOT = { ideological_thought = 1    }
              }
               }
        NOT = { is_our_vassal = THIS }
        THIS = {
            civilized = yes
        }
        civilized = no
        number_of_states = 1
        NOT = {
                tag = CHI
                tag = KOR
                tag = TKG
                tag = SAT
                tag = TOS
                tag = CHO
                tag = KAG
                tag = YZW
                tag = SEN
                tag = IMP    
        }
    }
    
    allowed_states = {
        any_owned_province = {
            is_colonial = no
        }
    }
    
    po_demand_state = yes
    
    war_name = WAR_CONCESSION_NAME

    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.005
        }
    }
}

demand_concession_casus_belli_1836 = {
    sprite_index = 7
    is_triggered_only = yes
    months = 0
    construction_speed = 1.2
    crisis = no
    
    badboy_factor = 1
    prestige_factor = 0.2
    peace_cost_factor = 0.75
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 12
    
    good_relation_prestige_factor = 0
    good_relation_infamy_factor = 0
    good_relation_militancy_factor = 0
    
    always = no

    can_use = {
            THIS = {
        AND = {
        NOT = {    phenomenology_n_hermeneutic = 1 }
        ideological_thought = 1
        NOT = {    nationalism_n_imperialism = 1 }
            }
             }
        NOT = { is_our_vassal = THIS }
        THIS = {
            civilized = yes
        }
        civilized = no
        number_of_states = 1
        NOT = {
                tag = CHI
                tag = KOR
                tag = TKG
                tag = SAT
                tag = TOS
                tag = CHO
                tag = KAG
                tag = YZW
                tag = SEN
                tag = IMP            
        }
    }
    
    allowed_states = {
        any_owned_province = {
            is_colonial = no
        }
    }
    
    po_demand_state = yes
    
    war_name = WAR_CONCESSION_NAME

    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.005
        }
    }
}

demand_concession_casus_belli_1850 = {
    sprite_index = 7
    is_triggered_only = yes
    months = 0
    construction_speed = 1.2
    crisis = no
    
    badboy_factor = 1
    prestige_factor = 1
    peace_cost_factor = 0.5
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 12
    
    good_relation_prestige_factor = 0
    good_relation_infamy_factor = 0
    good_relation_militancy_factor = 0
    
    always = no

    can_use = {
            THIS = {
        AND = {
        nationalism_n_imperialism = 1
        NOT = {    phenomenology_n_hermeneutic = 1 }
              }
                }
        NOT = { is_our_vassal = THIS }
        THIS = {
            civilized = yes
        }
        civilized = no
        number_of_states = 1
    }
    
    allowed_states = {
        any_owned_province = {
            is_colonial = no
        }
    }
    
    po_demand_state = yes
    
    war_name = WAR_CONCESSION_NAME

    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.005
        }
    }
}

demand_concession_casus_belli_1880 = {
    sprite_index = 7
    is_triggered_only = yes
    months = 0
    construction_speed = 1.2
    crisis = no
    
    badboy_factor = 0.75
    prestige_factor = 1
    peace_cost_factor = 0.45
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 12
    
    good_relation_prestige_factor = 0
    good_relation_infamy_factor = 0
    good_relation_militancy_factor = 0
    
    always = no

    can_use = {
            THIS = {
        AND = {
        phenomenology_n_hermeneutic = 1
        NOT = {    mass_politics = 1 }
              }
               }
        NOT = { is_our_vassal = THIS }
        THIS = {
            civilized = yes
        }
        civilized = no
        number_of_states = 1
    }
    
    allowed_states = {
        any_owned_province = {
            is_colonial = no
        }
    }
    
    po_demand_state = yes
    
    war_name = WAR_CONCESSION_NAME

    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.005
        }
    }
}

demand_concession_casus_belli_1900 = {
    sprite_index = 7
    is_triggered_only = yes
    months = 0
    construction_speed = 1.2
    crisis = no
    
    badboy_factor = 0.5
    prestige_factor = 1
    peace_cost_factor = 0.4
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 12
    
    good_relation_prestige_factor = 0
    good_relation_infamy_factor = 0
    good_relation_militancy_factor = 0
    
    always = no

    can_use = {
            THIS = {
        AND = {
        mass_politics = 1
        NOT = {    global_policy = 1 }
              }
               }
        NOT = { is_our_vassal = THIS }
        THIS = {
            civilized = yes
        }
        civilized = no
        number_of_states = 1
    }
    
    allowed_states = {
        any_owned_province = {
            is_colonial = no
        }
    }
    
    po_demand_state = yes
    
    war_name = WAR_CONCESSION_NAME

    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.005
        }
    }
}

demand_concession_casus_belli_1930 = {
    sprite_index = 7
    is_triggered_only = yes
    months = 0
    construction_speed = 1.2
    crisis = no
    
    badboy_factor = 0.5
    prestige_factor = 1
    peace_cost_factor = 0.3
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 12
    
    good_relation_prestige_factor = 0
    good_relation_infamy_factor = 0
    good_relation_militancy_factor = 0
    
    always = no

    can_use = {
        THIS = {
        AND = {
        global_policy = 1
              }
               }
        NOT = { is_our_vassal = THIS }
        THIS = {
            civilized = yes
        }
        civilized = no
        number_of_states = 1
    }
    
    allowed_states = {
        any_owned_province = {
            is_colonial = no
        }
    }
    
    po_demand_state = yes
    
    war_name = WAR_CONCESSION_NAME

    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.005
        }
    }
}

demand_concession_casus_belli_CHI16 = {
    sprite_index = 7
    is_triggered_only = yes
    months = 0
    construction_speed = 1.2
    crisis = no
    
    badboy_factor = 2
    prestige_factor = 1
    peace_cost_factor = 1
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 12
    
    good_relation_prestige_factor = 0
    good_relation_infamy_factor = 0
    good_relation_militancy_factor = 0
    
    always = no

    can_use = {
            THIS = {
        AND = {
        NOT = {    phenomenology_n_hermeneutic = 1 }
        NOT = { ideological_thought = 1    }
              }
               }
        NOT = { is_our_vassal = THIS }
        THIS = {
            civilized = yes
        }
        civilized = no
        number_of_states = 1
        OR = {
                tag = CHI
                tag = KOR
                tag = TKG
                tag = SAT
                tag = TOS
                tag = CHO
                tag = KAG
                tag = YZW
                tag = SEN
                tag = IMP
        }
    }
    
    allowed_states = {
        any_owned_province = {
            is_colonial = no
        }
    }
    
    po_demand_state = yes
    
    war_name = WAR_CONCESSION_NAME

    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.005
        }
    }
}

demand_concession_casus_belli_CHI36 = {
    sprite_index = 7
    is_triggered_only = yes
    months = 0
    construction_speed = 1.2
    crisis = no
    
    badboy_factor = 1.5
    prestige_factor = 1
    peace_cost_factor = 0.75
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 12
    
    good_relation_prestige_factor = 0
    good_relation_infamy_factor = 0
    good_relation_militancy_factor = 0
    
    always = no

    can_use = {
            THIS = {
        AND = {
        NOT = {    phenomenology_n_hermeneutic = 1 }
        ideological_thought = 1
        NOT = {    nationalism_n_imperialism = 1 }
            }
             }
        NOT = { is_our_vassal = THIS }
        THIS = {
            civilized = yes
        }
        civilized = no
        number_of_states = 1
        OR = {
                tag = CHI
                tag = KOR
                tag = TKG
                tag = SAT
                tag = TOS
                tag = CHO
                tag = KAG
                tag = YZW
                tag = SEN
                tag = IMP
        }
    }
    
    allowed_states = {
        any_owned_province = {
            is_colonial = no
        }
    }
    
    po_demand_state = yes
    
    war_name = WAR_CONCESSION_NAME

    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.005
        }
    }
}

# Establish Protectorate
establish_protectorate_casus_belli = {
    sprite_index = 7
    is_triggered_only = yes
    months = 0
    construction_speed = 1.2
    crisis = no
    
    badboy_factor = 0.5
    prestige_factor = 1.2
    peace_cost_factor = 1
    penalty_factor = 1

    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 12
    
    good_relation_prestige_factor = 0
    good_relation_infamy_factor = 0
    good_relation_militancy_factor = 0
    
    always = no
    
    can_use = {
            THIS = {
        AND = {
        NOT = {    phenomenology_n_hermeneutic = 1 }
        NOT = { ideological_thought = 1    }
              }
               }
        NOT = { is_our_vassal = THIS }
        THIS = {
            civilized = yes
        }
            NOT = {
                number_of_states = 3 
            }
        civilized = no
        NOT = {
                tag = CHI
                tag = KOR
                tag = TKG
                tag = SAT
                tag = TOS
                tag = CHO
                tag = KAG
                tag = YZW
                tag = SEN
                tag = IMP
                }
    }
    
    po_annex = yes
    
    war_name = WAR_PROTECTORATE_NAME

    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.01
        }
    }
}

establish_protectorate_casus_belli_1836 = {
    sprite_index = 7
    is_triggered_only = yes
    months = 0
    construction_speed = 1.2
    crisis = no
    
    badboy_factor = 0.5
    prestige_factor = 1
    peace_cost_factor = 1
    penalty_factor = 1

    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 12
    
    good_relation_prestige_factor = 0
    good_relation_infamy_factor = 0
    good_relation_militancy_factor = 0
    
    always = no
    
    can_use = {
            THIS = {
        AND = {
        NOT = {    phenomenology_n_hermeneutic = 1 }
        ideological_thought = 1
        NOT = {    nationalism_n_imperialism = 1 }
            }
             }
        NOT = { is_our_vassal = THIS }
        THIS = {
            civilized = yes
        }
        OR = {
            NOT = {
                number_of_states = 4
            }
        }
        civilized = no
                NOT = {
                tag = CHI
                tag = KOR
                tag = TKG
                tag = SAT
                tag = TOS
                tag = CHO
                tag = KAG
                tag = YZW
                tag = SEN
                tag = IMP
                }
    }
    
    po_annex = yes
    
    war_name = WAR_PROTECTORATE_NAME

    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.01
        }
    }
}

establish_protectorate_casus_belli_1850 = {
    sprite_index = 7
    is_triggered_only = yes
    months = 0
    construction_speed = 1.2
    crisis = no
    
    badboy_factor = 0.5
    prestige_factor = 1
    peace_cost_factor = 1
    penalty_factor = 1

    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 12
    
    good_relation_prestige_factor = 0
    good_relation_infamy_factor = 0
    good_relation_militancy_factor = 0
    
    always = no
    
    can_use = {
            THIS = {
        AND = {
        nationalism_n_imperialism = 1
        NOT = {    phenomenology_n_hermeneutic = 1 }
              }
                }
        NOT = { is_our_vassal = THIS }
        THIS = {
            civilized = yes
        }
            NOT = {
                number_of_states = 6 
            }
        civilized = no
                NOT = {
                tag = CHI
                tag = KOR
                tag = TKG
                tag = SAT
                tag = TOS
                tag = CHO
                tag = KAG
                tag = YZW
                tag = SEN
                tag = IMP
                }
    }
    
    po_annex = yes
    
    war_name = WAR_PROTECTORATE_NAME

    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.01
        }
    }
}

establish_protectorate_casus_belli_1880 = {
    sprite_index = 7
    is_triggered_only = yes
    months = 0
    construction_speed = 1.2
    crisis = no
    
    badboy_factor = 0.5
    prestige_factor = 1
    peace_cost_factor = 1
    penalty_factor = 1

    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 12
    
    good_relation_prestige_factor = 0
    good_relation_infamy_factor = 0
    good_relation_militancy_factor = 0
    
    always = no
    
    can_use = {
            THIS = {
        AND = {
        phenomenology_n_hermeneutic = 1
        NOT = {    mass_politics = 1 }
              }
               }
        NOT = { is_our_vassal = THIS }
        THIS = {
            civilized = yes
        }
            NOT = {
                number_of_states = 7 
            }
        civilized = no
                NOT = {
                tag = CHI
                tag = KOR
                tag = TKG
                tag = SAT
                tag = TOS
                tag = CHO
                tag = KAG
                tag = YZW
                tag = SEN
                tag = IMP
                }
    }
    
    po_annex = yes
    
    war_name = WAR_PROTECTORATE_NAME

    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.01
        }
    }
}

establish_protectorate_casus_belli_1900 = {
    sprite_index = 7
    is_triggered_only = yes
    months = 0
    construction_speed = 1.2
    crisis = no
    
    badboy_factor = 0.5
    prestige_factor = 1
    peace_cost_factor = 1
    penalty_factor = 1

    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 12
    
    good_relation_prestige_factor = 0
    good_relation_infamy_factor = 0
    good_relation_militancy_factor = 0
    
    always = no
    
    can_use = {
            THIS = {
        AND = {
        mass_politics = 1
        NOT = {    global_policy = 1 }
              }
               }
        NOT = { is_our_vassal = THIS }
        THIS = {
            civilized = yes
        }
            NOT = {
                number_of_states = 8 
            }
        civilized = no
    }
    
    po_annex = yes
    
    war_name = WAR_PROTECTORATE_NAME

    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.01
        }
    }
}

establish_protectorate_casus_belli_1930 = {
    sprite_index = 7
    is_triggered_only = yes
    months = 0
    construction_speed = 1.2
    crisis = no
    
    badboy_factor = 0.5
    prestige_factor = 1
    peace_cost_factor = 1
    penalty_factor = 1

    break_truce_prestige_factor = 5
    break_truce_infamy_factor = 2
    break_truce_militancy_factor = 2
    truce_months = 12
    
    good_relation_prestige_factor = 0
    good_relation_infamy_factor = 0
    good_relation_militancy_factor = 0
    
    always = no
    
    can_use = {
            THIS = {
        AND = {
        global_policy = 1
              }
               }
        NOT = { is_our_vassal = THIS }
        THIS = {
            civilized = yes
        }
            NOT = {
                number_of_states = 8 
            }
        civilized = no
    }
    
    po_annex = yes
    
    war_name = WAR_PROTECTORATE_NAME

    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.01
        }
    }
}

# Unification Humiliate
unification_humiliate_cb = {
    sprite_index = 11
    is_triggered_only = no
    months = 12
    crisis = no

    badboy_factor = 0.5
    prestige_factor = 1
    peace_cost_factor = 5
    penalty_factor = 1
    
    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1
    
    always = yes
    
    can_use = {
        NOT = { is_our_vassal = THIS }
        THIS = {
            culture_has_union_tag = yes
            nationalism_n_imperialism = 1
            is_greater_power = yes
        }
        is_greater_power = yes
        is_culture_group = THIS
        NOT = { is_cultural_union = THIS }
        has_cultural_sphere = yes
    }
    
    po_clear_union_sphere = yes
    
    tws_battle_factor = 2.0 # battle score twice that of oppenent
    
    war_name = UNIFICATION_HUMILIATE_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.05
        }
    }
}

# Release Puppet
unification_release_puppet_cb = {
    sprite_index = 10
    is_triggered_only = yes
    months = 12
    crisis = no

    badboy_factor = 0
    prestige_factor = 1
    peace_cost_factor = 7.5
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1
    
    always = yes

    can_use = {
        NOT = { is_our_vassal = THIS }
        num_of_vassals_no_substates = 1
        THIS = {
            culture_has_union_tag = yes
            nationalism_n_imperialism = 1
            is_greater_power = yes        
            is_cultural_union = no
        }
        NOT = {
            is_culture_group = THIS
        }        
    }
    
    # THIS - us
    # FROM - country scope is possible match?
    # war target country of goal is scope
    allowed_countries = {
        is_our_vassal = FROM
        FROM = { is_culture_group = THIS is_substate = no }
    }
    
    po_release_puppet = yes
    po_add_to_sphere = yes

    war_name = WAR_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.005
        }
    }
}

# Unification Demand State
unification_casus_belli = {
    sprite_index = 5
    is_triggered_only = no
    months = 12
    construction_speed = 1
    crisis = no
    
    badboy_factor = 0
    prestige_factor = 1
    peace_cost_factor = 1
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 12
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1
    
    always = yes
    
    can_use = {
        NOT = { is_our_vassal = THIS }
        THIS = {
            culture_has_union_tag = yes
            nationalism_n_imperialism = 1
            OR = { 
            is_greater_power = yes
            AND = {
            is_second_power = yes
            year = 1870 }
            }
            is_cultural_union = no
        }
        NOT = {
            is_culture_group = THIS
        }
        number_of_states = 2
        any_state = {
            any_owned_province = {
                any_core = {
                    this_culture_union = this_union
                    is_cultural_union = yes
                }
            }
            not = { any_owned_province = { is_capital = yes } }
        }
    }
    allowed_states = {
        any_owned_province = {
            any_core = {
                this_culture_union = this_union
                is_cultural_union = yes
            }
        }
        not = { any_owned_province = { is_capital = yes } }
    }
    
    po_demand_state = yes
    
    war_name = WAR_UNIFICATION_NAME

    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.05
        }
    }
}

#Unification Annex
unification_annex_casus_belli = {
    sprite_index = 5
    is_triggered_only = no
    months = 12
    crisis = no
    
    badboy_factor = 0
    prestige_factor = 0
    peace_cost_factor = 1
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 12
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1
    
    always = yes
    
    can_use = {
        NOT = { is_our_vassal = THIS }
        THIS = {
            culture_has_union_tag = yes
            nationalism_n_imperialism = 1
            OR = { 
            is_greater_power = yes
            AND = {
            is_second_power = yes
            year = 1870 }
            }
            is_cultural_union = no
        }
        NOT = {
            is_culture_group = THIS
        }
        NOT = {
            number_of_states = 2
        }
        any_owned_province = {
            any_core = {
                this_culture_union = this_union
                is_cultural_union = yes
            }
        }
    }
    
    po_annex = yes
    
    war_name = WAR_UNIFICATION_ANNEX_NAME

    on_add = {
        move_issue_percentage = { 
            from = jingoism 
            to = pro_military
            value = 0.05
        }
    }
}

# Bad Boy
rude_boy = {
    sprite_index = 11
    is_triggered_only = no
    months = 12
    construction_speed = 2
    crisis = no

    badboy_factor = 0
    prestige_factor = 1
    peace_cost_factor = 3
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 0
    good_relation_infamy_factor = 0
    good_relation_militancy_factor = 0
    
    always = yes

    can_use = {
        NOT = { is_our_vassal = THIS }
        badboy = 1
    }
    
    po_remove_prestige = yes
    po_disarmament = yes
    po_reparations = yes
    
    war_name = WAR_RUDEBOI_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.25
        }
    }

    on_po_accepted = {
        set_country_flag = infany_was_lose
    }
}

# Install Communist Government
install_communist_gov_cb = {
    sprite_index = 12
    is_triggered_only = yes
    months = 12
    crisis = no

    badboy_factor = 0.5
    prestige_factor = 1
    peace_cost_factor = 0.6
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
        THIS = {
            # If actor is a great power
            is_greater_power = yes
            
            # If actor gov truly communist
            government = proletarian_dictatorship
            
            # If actor ruling party is communist
            ruling_party_ideology = communist
        }
        
        AND = {
            # If reciever ruling party is not a communist
            #NOT = {
            #    ruling_party_ideology = communist
            #}
            
            # There are some amount of communist already in the country
            #communist = 0.1
                
            # If reciever current gov is not proletarian_dictatorship
            NOT = {
                government = proletarian_dictatorship
            }
            
            # If reciever is not a great power
            is_greater_power = no
        }
    }
    
    po_install_communist_gov_type = yes

    war_name = WAR_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.01
        }
    }
    
    on_po_accepted = {
        THIS = { set_country_flag = friendly_communist }
        country_event = 96087
    }
}

install_rev_gov_cb = {
    sprite_index = 13
    months = 6
    crisis = no

    badboy_factor = 0.5
    prestige_factor = 1
    peace_cost_factor = 0.6
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
        THIS = {
            # If actor is a great power
            is_greater_power = yes
            
            # If actor gov truly communist
            government = revolution_republic

        }
        
        AND = {
            # If reciever ruling party is not a communist
            NOT = {
                        government = revolution_republic
            }
        }
    }
    
    po_install_rev_gov_type = yes

    war_name = WAR_NAME
    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.01
        }
    }
    
    on_po_accepted = {
        government = revolution_republic
    }
}

uninstall_rev_gov_cb = {
    sprite_index = 10
    months = 6
    crisis = no
    
    # Is automatically added to countries that intervened at while install_communist_gov_cb
    # so they can revert those countries government.
    constructing_cb = no

    badboy_factor = 1
    prestige_factor = 1
    peace_cost_factor = 15
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
        THIS = {
        mass_politics = 1
               }
        THIS = {
            # If actor ruling party is not communist
            OR = {
                          government = absolute_monarchy
                          government = hms_government
                          government = prussian_constitutionalism
                }
        }
        
        # If reciever current gov is proletarian_dictatorship
        government = revolution_republic
    }
    
    po_uninstall_rev_gov_type = yes

    war_name = WAR_NAME
    
    on_add = {
        move_issue_percentage = {
            from = jingoism 
            to = pro_military
            value = 0.25
        }
    }

        on_po_accepted = {
        government = absolute_monarchy
    }
}

# Revert from Communist Government
uninstall_communist_gov_cb = {
    sprite_index = 13
    is_triggered_only = yes
    months = 12
    crisis = no
    
    # Is automatically added to countries that intervened at while install_communist_gov_cb
    # so they can revert those countries government.
    constructing_cb = no

    badboy_factor = 1
    prestige_factor = 1
    peace_cost_factor = 15
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
        THIS = {
        mass_politics = 1
               }
        THIS = {
            # If actor ruling party is not communist
            OR = {
                government =     
            }
        }
        
        # If reciever current gov is proletarian_dictatorship
        government = proletarian_dictatorship
    }
    
    po_uninstall_communist_gov_type = yes

    war_name = WAR_NAME
    
    on_add = {
        move_issue_percentage = {
            from = jingoism 
            to = pro_military
            value = 0.25
        }
    }
}


# Great War Penalty
great_war_penalty_cb = {
    sprite_index = 14
    is_triggered_only = yes
    months = 0
    crisis = no
    
    constructing_cb = no
    
    great_war_obligatory = yes
    
    badboy_factor = 1.3
    prestige_factor = 1.8
    peace_cost_factor = 1
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    po_disarmament = yes
    po_reparations = yes

    war_name = WAR_NAME
    
    #can_use = {
    #    NOT = { is_our_vassal = THIS }
    #    is_disarmed = no
    #}
    
    on_add = {
        move_issue_percentage = { 
            from = pro_military
            to = jingoism
            value = 0.25
        }
    }
    on_po_accepted = {
        set_country_flag = world_war_loser
    }
}

install_democracy = {
    sprite_index = 13
    is_triggered_only = yes
    months = 12
    construction_speed = 1.5
    crisis = no

    badboy_factor = 3
    prestige_factor = 5
    peace_cost_factor = 50
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1

    can_use = {
        THIS = {
            is_greater_power = yes
            mass_politics = 1
            OR = {
                government = hms_government
                government = democracy
            }
        }
        is_greater_power = no
        is_vassal = no
        civilized = yes
        NOT = { is_our_vassal = THIS }
        OR = {
            government = proletarian_dictatorship
            government = fascist_dictatorship
            government = presidential_dictatorship
            government = bourgeois_dictatorship
            government = absolute_monarchy
            government = prussian_constitutionalism
            government = enlightened_absolutism
        }
    }
    
    po_remove_prestige = yes

    war_name = WAR_NAME
    
    on_add = {
        move_issue_percentage = {
            from = jingoism 
            to = pro_military
            value = 0.05
        }
    }
    
    on_po_accepted = {
        THIS = {
            set_country_flag = friendly_democracy
            any_country = {
                limit = {
                    OR = {
                        government = proletarian_dictatorship
                        government = fascist_dictatorship
                        government = presidential_dictatorship
                        government = bourgeois_dictatorship
                        government = absolute_monarchy
                        government = prussian_constitutionalism
                        government = enlightened_absolutism
                    }
                }
                relation = { who = THIS value = -50 }
            }
        }
        country_event = 96085
    }
}

great_war_install_democracy = {
    sprite_index = 13
    is_triggered_only = yes
    months = 12
    construction_speed = 1.5
    crisis = no

    badboy_factor = 25
    prestige_factor = 5
    peace_cost_factor = 100
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1
    always = yes

    can_use = {
        THIS = {
        global_policy = 1
               }
        THIS = {
            is_greater_power = yes
            OR = {
                government = hms_government
                government = democracy
            }
        }
        civilized = yes
        OR = {
            government = proletarian_dictatorship
            government = fascist_dictatorship
            government = presidential_dictatorship
            government = bourgeois_dictatorship
            government = absolute_monarchy
            government = prussian_constitutionalism
            government = enlightened_absolutism
        }
    }
    
    po_remove_prestige = yes

    war_name = WAR_NAME
    
    on_add = {
        move_issue_percentage = {
            from = jingoism 
            to = pro_military
            value = 0.05
        }
    }
    
    on_po_accepted = {
        THIS = { set_country_flag = friendly_democracy }
        country_event = 96085
    }
}

great_war_install_communism = {
    sprite_index = 12
    is_triggered_only = yes
    months = 12
    construction_speed = 1.5
    crisis = no

    badboy_factor = 25
    prestige_factor = 5
    peace_cost_factor = 100
    penalty_factor = 1

    break_truce_prestige_factor = 1
    break_truce_infamy_factor = 1
    break_truce_militancy_factor = 1
    truce_months = 0
    
    good_relation_prestige_factor = 1
    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1
    always = yes

    can_use = {
        THIS = {
        global_policy = 1
               }
        THIS = {
            is_greater_power = yes
            government = proletarian_dictatorship
        }
        NOT = { government = proletarian_dictatorship }
    }
    
    po_remove_prestige = yes

    war_name = WAR_NAME
    
    on_add = {
        move_issue_percentage = {
            from = jingoism 
            to = pro_military
            value = 0.05
        }
    }
    
    on_po_accepted = {
        THIS = { set_country_flag = friendly_communist }
        country_event = 96087
    }
}

    good_relation_infamy_factor = 1
    good_relation_militancy_factor = 1
    always = yes

    can_use = {
        THIS = {
        global_policy = 1
               }
        THIS = {
            is_greater_power = yes
            government = proletarian_dictatorship
        }
        NOT = { government = proletarian_dictatorship }
    }
    
    po_remove_prestige = yes

    war_name = WAR_NAME
    
    on_add = {
        move_issue_percentage = {
            from = jingoism 
            to = pro_military
            value = 0.05
        }
    }
    
    on_po_accepted = {
        THIS = { set_country_flag = friendly_communist }
        country_event = 96087
    }
}

Почему новые cb могут не пахать?


Присоединиться к обсуждению

Вы можете оставить комментарий уже сейчас, а зарегистрироваться позже! Если у вас уже есть аккаунт, войдите, чтобы оставить сообщение через него.

Гость
Ответить в тему...

×   Вы вставили отформатированное содержимое.   Удалить форматирование

  Only 75 emoji are allowed.

×   Ваша ссылка автоматически преображена.   Отображать как простую ссылку

×   Предыдущее содержимое было восстановлено..   Очистить текст в редакторе

×   Вы не можете вставлять картинки напрямую. Загрузите или вставьте их через URL.

  • Ответы 2881
  • Создано 13.08.2010
  • Последний ответ 28.05.2026
  • Просмотры 360954
  • Ответов в сутки 0.5
  • Просмотров в сутки 62.52

Лучшие авторы в этой теме

  • Truvor

    223

  • Димониус

    102

  • Aurelius36

    101

  • Pshek

    79

  • Louis XV

    65

  • Херсонський Кавун

    63

  • Nashetovich

    62

  • fursh

    52

  • Воле Шойинка

    47

  • Расен

    38

  • Yase

    35

  • Hafltry

    31

  • maksyutar

    29

  • Millenarian Emperor

    27

  • Пользователь 59486

    27

  • Nekka

    26

  • GArGuTZ

    26

  • Arktos

    26

  • Маринеско

    24

  • IvPBay

    24

  • national holiday

    23

  • JackSlater

    23

  • Вольт

    21

  • Ex-doter

    21

Лучшие авторы в этой теме

Популярные сообщения

Aurelius36

Вот смотри. Если у тебя одна культура - европейцы. Зачем тогда применил union? Ведь эта строка объединяет несколько культур в одну группу, верно же? Как может быть группа с одной культурой?

Aurelius36

У Южных Германцев было  germanic union = GER Может они теперь и Германцы у тебя и Европейцы? 

Aurelius36

Тогда снова возможно будет ноукультур. На одном форуме писали, чел создал свою страну и не прописал культуру, получил безкультурие. Вчера как раз находил подобное.

Aurelius36

Привет  Попробуй убрать строки  В файле Victoria 2 Heart of Darkness\mod\chronology\common\cb_types.txt Там в нескольких кб будет такая. Должно получиться, наверное 

makiavelli747

Если правильно помню, это приоритет на строительство, но не в смысле разных типов подразделений, а в смысле замены старых моделей на новые. То есть чтобы ИИ не строил больше фрегатов.

Aurelius36

Не, это про вассалов 

Aurelius36

Значит чтот неправильно   Лучше всего сразу текст файла .mod сюда прикреплять. 

Aurelius36

common/pop_types.txt general assimilation mtth, same for all pops assimilation_chance

  • Сейчас на странице   0 пользователей

    • Нет пользователей, просматривающих эту страницу
  • Модераторы онлайн

    • Blackfyre Kreis
    • enot1980
×
×
  • Создать...