﻿duel_with_your_rival = {

	on_other_nation = no
	on_own_nation = yes
	
	sound = "event:/SFX/UI/Character/sfx_ui_character_execute"
	
	potential_trigger = {
		hidden:scope:actor = {
			is_ai = no
		}
		hidden:scope:actor.current_ruler = {
			num_of_rivals >= 1
		}
		hidden:scope:target = {
			is_alive = yes
			is_rival = scope:actor.current_ruler
		}
	}
	
	allowed_trigger = {
		scope:actor = {
			is_ai = no
		}
		scope:actor.current_ruler = {
			num_of_rivals >= 1
		}
		scope:target = {
			is_alive = yes
			prisoner = no
			is_rival = scope:actor.current_ruler
		}
		custom_tooltip = {
			text = mi_duel_once_a_month
			scope:actor.current_ruler = {
				NOT = {
					has_variable = mi_duel_with_rival
				}
			}
		}
	}
	
	effect = {
		scope:actor.current_ruler = {
			set_variable = {
				name = mi_duel_with_rival
				days = 30
			}
		}
		custom_tooltip = current_ruler_duel_with_taget
		scope:actor = {
			trigger_event = {
				on_action = custom_on_action_mi_duel
				days = { 5 15 }
			}
		}
	}
}	

