﻿namespace = mpo_bb_events

############################
## Nomadic blood brother events
## 0001-0099
## By Alexander Windahl
############################

mpo_bb_events.0001 = {	
	type = character_event
	title = mpo_bb_events.0001.t
	desc = mpo_bb_events.0001.desc
	theme = nomads
	cooldown = { years = 15 }

	left_portrait = {
		character = root
		animation = stayback
	}

	right_portrait = {
		character = scope:my_blood_brother
		animation = aggressive_unarmed
	}

	
	trigger = {
		has_mpo_dlc_trigger = yes
		government_has_flag = government_is_nomadic
		is_available_adult = yes
		any_ally = {
			has_relation_blood_brother = root
			is_available_ai_adult = yes
		}
	}
	
	immediate = {
		random_ally = {
			limit = {
				has_relation_blood_brother = root
				is_available_ai_adult = yes
			}
			save_scope_as = my_blood_brother
		}
	}
	
	option = {
		ai_chance = {
			base = 100
		}
		name = mpo_bb_events.0001.a

		duel = {
			skill = prowess
			target = scope:my_blood_brother
			# You win
			50 = {
				compare_modifier = {
					value = scope:duel_value
					multiplier = 3.5
					min = -49
				}
				desc = mpo_bb_events.0001.a.tt_success
				send_interface_toast = {
					title = mpo_bb_events.0001.a.tt_success
					left_icon = scope:my_blood_brother
					add_prestige = minor_prestige_gain
					reverse_add_opinion = {
						target = scope:my_blood_brother
						modifier = impressed_opinion
						opinion = 30
					}
				}
			}
			# You lose
			50 = {
				compare_modifier = {
					value = scope:duel_value
					multiplier = -3.5
					min = -49
				}
				desc = mpo_bb_events.0001.a.tt_failure
				send_interface_toast = {
					title = mpo_bb_events.0001.a.tt_failure
					left_icon = scope:my_blood_brother
					add_prestige = miniscule_prestige_loss
					reverse_add_opinion = {
						target = scope:my_blood_brother
						modifier = amused_opinion
						opinion = 10
					}
				}
			}
		}
	}
	
	option = {
		ai_chance = {
			base = 100
		}
		name = mpo_bb_events.0001.b
		add_dread = minor_dread_loss

		reverse_add_opinion = {
			target = scope:my_blood_brother
			modifier = softening_disposition_opinion
			opinion = 5
		}
	}
	
	option = {
		ai_chance = {
			base = 100
		}
		name = mpo_bb_events.0001.c
		add_dread = minor_dread_gain
		

		stress_impact = {
			callous = miniscule_stress_impact_loss
			arbitrary = miniscule_stress_impact_loss
			eccentric = miniscule_stress_impact_loss
		}

		reverse_add_opinion = {
			target = scope:my_blood_brother
			modifier = angry_opinion
			opinion = -30
		}
	}
}
