plot_decisions = {

	faction_lower_republic_administration_ultimatum = {
		is_high_prio = yes
		
		potential = {
			leads_faction = faction_lower_republic_administration
			OR = {
				NOT = { has_character_flag = faction_lower_RA_ultimatum_taken }
				had_character_flag = { flag = faction_lower_RA_ultimatum_taken days = 7 }
			}
		}
		allow = {
			war = no
			prisoner = no
			liege = {
				NOT = { war_with = ROOT }
				NOT = { reverse_has_truce = ROOT }
			}
			capital_holding = {
				controller = {
					character = ROOT
				}
			}
		}
		
		effect = {
			liege = {
				letter_event = { id = RV.8025 days = 3 tooltip = EVTTOOLTIP8005 }
			}
			hidden_tooltip = {
				set_character_flag = faction_lower_RA_ultimatum_taken
			}
		}
		revoke_allowed = {
			always = no
		}
		
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				NOT = { 
					faction_power = 
					{
						faction = faction_lower_republic_administration
						power = 0.75
					}
				}
			}			
			modifier = {
				factor = 0.1
				NOT = { 
					faction_power = 
					{
						faction = faction_lower_republic_administration
						power = 1.0
					}
				}
			}
			modifier = {
				factor = 0.1
				NOT = { 
					faction_power = 
					{
						faction = faction_lower_republic_administration
						power = 1.5
					}
				}
			}			
			
			modifier = {
				factor = 0.5 # Slow it down a bit
			}
			
			modifier = {
				factor = 0
				liege = {
					any_war = {
						OR = {
							AND = {
								defender = { character = PREV }
								NOT = { using_cb = depose_liege }
								NOT = { using_cb = overthrow_ruler }
								NOT = { using_cb = overthrow_ruler_no_calls }
								NOT = { using_cb = succession_on_liege }
								NOT = { using_cb = other_succession_on_liege }
							}
							AND = {
								attacker = { character = PREV }
								OR = {
									using_cb = invasion
									using_cb = religious
									using_cb = tribal_invasion
									using_cb = muslim_invasion
									using_cb = viking_invasion
									using_cb = claim_all
									using_cb = claim
									using_cb = other_claim
								}
							}
						}
					}
				}
			}
		}
	}

}
