rapta_maritus_setup = {
	first_valid_on_action = {
		standard_rapta_maritus_method_setup
	}
}

standard_rapta_maritus_method_setup = {
	random_events = {
		100 = rapta_maritus_outcome.1001 # Seize from the roadside
	}
}

rapta_maritus_succeeded = {
	# Picks out the correct success event depending on setup.
	trigger = {
		exists = scope:scheme
	}
	events = {
		rapta_maritus_outcome.2001 #Seized Roadside
	}
}

rapta_maritus_failed = {
	# Picks out the correct failure event depending on setup/save.
	trigger = {
		exists = scope:scheme
	}
	events = {
		rapta_maritus_outcome.4001 #Seized Roadside
	}
}

rapta_maritus_ongoing = {
	# Events that can happen while planning to rapta_maritus someone. (shared with murder)
    ### Only the AI will ever see these, but I see no reason to change them.
	trigger = {
		exists = scope:scheme
	}
	
	random_events = {
		chance_to_happen = 10
		300 = 0
		#############
		# Generic Intrigue Scheme events
		#############
		#Agents:
		200 = intrigue_scheme_ongoing.1001 	# Pay gold for Scheme Progress
		200 = intrigue_scheme_ongoing.1002 	# Zealous agent promotes your agenda
		200 = intrigue_scheme_ongoing.1004 	# A Gregarious agent is a little too loose-lipped
		200 = intrigue_scheme_ongoing.1006 	# A Lazy agent is a little careless
		30 = intrigue_scheme_ongoing.1007 	# Caring agent wants you to stop
		100 = intrigue_scheme_ongoing.1008 	# Agent close to being discovered
		100 = intrigue_scheme_ongoing.1009 	# Close relation is willing to join your scheme after all
		100 = intrigue_scheme_ongoing.5019 	# Find old architectural papers
		
		#Target:
		200 = intrigue_scheme_ongoing.2001 	# Trusting target
		200 = intrigue_scheme_ongoing.2002 	# Drunkard target
		50 = intrigue_scheme_ongoing.2003 	# Discover a secret about someone else than your target
		
		#Child target:
		300 = intrigue_scheme_ongoing.4001 	# Agent is put in charge of a group of children
		300 = intrigue_scheme_ongoing.4002 	# Child is gullible
		200 = intrigue_scheme_ongoing.4003 	# Agent has second thoughts

		#Other
		100 = intrigue_scheme_ongoing.3003 	# Mapping the local surroundings
		100 = intrigue_scheme_ongoing.3005  # Messenger pigeon
		100 = intrigue_scheme_ongoing.5001 	# Distract guards with itching powder
		100 = intrigue_scheme_ongoing.5009 	# "Friend of Animals" gets some help

		#############
		# Lifestyle events
		#############
		200 = intrigue_scheme_lifestyle.1001 	# Opportunity for a general to set up a soldier spy ring
		100 = intrigue_scheme_lifestyle.1002 	# Your soldier spy ring has been compromised!
		200 = intrigue_scheme_lifestyle.3001 	# Study the targets habits
		200 = intrigue_scheme_lifestyle.3101 	# Convert informants in target´s court
		100 = intrigue_scheme_lifestyle.3102 	# Informants are revealed!
		200 = intrigue_scheme_lifestyle.3201 	# Intercept communication
		200 = intrigue_scheme_lifestyle.3301 	# Possible to gain hook - ends the scheme
		200 = intrigue_scheme_lifestyle.3401 	# Convince courtier at target's court to inform on them
	}
}