# Scripted AI desire for peace actions. # See documentation.info file for more detailed scripting information. peace_ai_desires = { # don't create warlord or PRC puppets JAP_avoid_puppeting_warlords_prc = { peace_action_type = { puppet force_government } enable = { FROM = { OR = { original_tag = PRC WTT_is_chinese_warlord = yes } } ROOT = { original_tag = JAP } } ai_desire = -200 } # Try to grab cities and hainan JAP_take_chinese_cities_if_possible = { peace_action_type = take_states enable = { FROM.FROM.FROM = { is_state_japan_wants = yes } ROOT = { original_tag = JAP } } ai_desire = 150 } # If Mengkukuo exists, increase the Inner Mongolian state JAP_inner_mongolia = { peace_action_type = take_states enable = { FROM = { original_tag = MEN is_subject_of = ROOT } FROM.FROM.FROM = { OR = { state = 621 # Suiyuan state = 746 # Ordos state = 1039 # Hebei-Chahar state = 616 # Ningxia state = 1040 # Alxa } } ROOT = { original_tag = JAP } } ai_desire = 150 } # Create a chinese puppet state from the rest of China JAP_create_chinese_puppet = { peace_action_type = puppet enable = { FROM.FROM = { original_tag = CHI } FROM.FROM.FROM = { NOT = { is_state_japan_wants = yes } any_neighbor_state = { OR = { is_owned_by = ROOT.FROM pc_is_state_claimed_by = ROOT is_coastal = yes } } } ROOT = { original_tag = JAP NOT = { has_subject = RNG } } } ai_desire = 150 } JAP_dont_eat_chinese_puppet = { peace_action_type = take_states enable = { FROM.FROM = { original_tag = CHI } FROM.FROM.FROM = { NOT = { is_state_japan_wants = yes } } ROOT = { original_tag = JAP } } ai_desire = -100 } #Don't give things to communist china JAP_dont_support_prc = { peace_action_type = take_states enable = { FROM = { OR = { original_tag = PRC original_tag = SIK } has_government = communism } ROOT = { original_tag = JAP NOT = { has_government = communism } } } ai_desire = -200 } # If Reorganized Naitonal Government exists, try to give them stuff JAP_support_rng_if_exists = { peace_action_type = take_states enable = { FROM = { original_tag = RNG is_subject_of = ROOT } FROM.FROM.FROM = { OR = { is_claimed_by = RNG is_core_of = RNG has_state_flag = is_state_rng_wants_flag } NOT = { is_state_japan_wants = yes } } ROOT = { original_tag = JAP } } ai_desire = 200 } # If Japan defeats themselves in a civil war, they want to take the states for themselves JAP_wants_all_of_japan = { peace_action_type = take_states enable = { original_tag = JAP # Negotiatior is Japan FROM = { tag = ROOT } # And the negotiator is also taking for themselves FROM.FROM.FROM = { is_core_of = JAP # Japanese Core Territory } } ai_desire = 200 # 200 percent higher desire } # If Japan defeats themselves in a civil war, they don't want to puppet etc JAP_wants_all_of_japan_2 = { peace_action_type = { puppet liberate force_government } enable = { original_tag = JAP # Negotiatior is Japan FROM.FROM.FROM = { is_core_of = JAP # Japanese Core Territory } } ai_desire = -200 # 200 percent lower desire } }