﻿
namespace = physician_training

# use prestige to obtain gold

@cost_to_learn_physician_1 = 100
@cost_to_learn_physician_1_with_perk = 50

@cost_to_learn_physician_2 = 150
@cost_to_learn_physician_2_with_perk = 75

@cost_to_learn_physician_3 = 200
@cost_to_learn_physician_3_with_perk = 100

physician_training.0001 = {
	type = character_event
	title = physician_training.0001.title
	desc = physician_training.0001.desc
	
	theme = medicine
	
	left_portrait = {
		character = root
		animation = idle
	}

	right_portrait = {
		character = scope:recipient
		animation = idle
	}

	trigger = {
		exists = capital_province 
	}

	# physician training

	option = {
		name = physician_training.0001.a

		trigger = {
			scope:actor = { NOT = { has_perk = anatomical_studies_perk } }
			gold >= @cost_to_learn_physician_1
		}
		
		show_as_unavailable = {
			scope:actor = { NOT = { has_perk = anatomical_studies_perk } }
			gold < @cost_to_learn_physician_1
		}
		
		physician_training_1 = yes
		
	}
	
	option = {
		name = physician_training.0001.b

		trigger = {
			scope:actor = { has_perk = anatomical_studies_perk }
			gold >= @cost_to_learn_physician_1_with_perk
		}
		
		show_as_unavailable = {
			scope:actor = { has_perk = anatomical_studies_perk }
			gold < @cost_to_learn_physician_1_with_perk
		}
		
		physician_training_1 = yes
		
	}
	
	# nevermind

	option = {
		name = physician_training.0001.c
	}

}

physician_training.0002 = {
	type = character_event
	title = physician_training.0002.title
	desc = physician_training.0002.desc
	
	theme = medicine
	
	left_portrait = {
		character = root
		animation = idle
	}

	right_portrait = {
		character = scope:recipient
		animation = idle
	}

	trigger = {
		exists = capital_province 
	}

	# physician training

	option = {
		name = physician_training.0002.a

		trigger = {
			scope:actor = { NOT = { has_perk = anatomical_studies_perk } }
			gold >= @cost_to_learn_physician_2
		}
		
		show_as_unavailable = {
			scope:actor = { NOT = { has_perk = anatomical_studies_perk } }
			gold < @cost_to_learn_physician_2
		}
		
		physician_training_2 = yes
		
	}
	
	option = {
		name = physician_training.0002.b

		trigger = {
			scope:actor = { has_perk = anatomical_studies_perk }
			gold >= @cost_to_learn_physician_2_with_perk
		}
		
		show_as_unavailable = {
			scope:actor = { has_perk = anatomical_studies_perk }
			gold < @cost_to_learn_physician_2_with_perk
		}
		
		physician_training_2 = yes
		
	}
	
	# nevermind

	option = {
		name = physician_training.0002.c
	}

}

physician_training.0003 = {
	type = character_event
	title = physician_training.0003.title
	desc = physician_training.0003.desc
	
	theme = medicine
	
	left_portrait = {
		character = root
		animation = idle
	}

	right_portrait = {
		character = scope:recipient
		animation = idle
	}

	trigger = {
		exists = capital_province 
	}

	# physician training

	option = {
		name = physician_training.0003.a

		trigger = {
			scope:actor = { NOT = { has_perk = anatomical_studies_perk } }
			gold >= @cost_to_learn_physician_3
		}
		
		show_as_unavailable = {
			scope:actor = { NOT = { has_perk = anatomical_studies_perk } }
			gold < @cost_to_learn_physician_3
		}
		
		physician_training_3 = yes
		
	}
	
	option = {
		name = physician_training.0003.b

		trigger = {
			scope:actor = { has_perk = anatomical_studies_perk }
			gold >= @cost_to_learn_physician_3_with_perk
		}
		
		show_as_unavailable = {
			scope:actor = { has_perk = anatomical_studies_perk }
			gold < @cost_to_learn_physician_3_with_perk
		}
		
		physician_training_3 = yes
		
	}
	
	# nevermind

	option = {
		name = physician_training.0003.c
	}

}


physician_training.0011 = {
	type = character_event
	title = physician_training.0011.title
	desc = physician_training.0011.desc
	
	theme = medicine
	
	left_portrait = {
		character = root
		animation = idle
	}

	right_portrait = {
		character = scope:recipient
		animation = idle
	}

	trigger = {
		exists = capital_province 
	}

	immediate = {
		hidden_effect = {
			scope:recipient = {			
				remove_trait = ucp_busy_physician_training
			}
		}
	}

	option = {
		name = physician_training.0011.a		
		physician_training_1_complete = yes		
	}

	option = {
		name = physician_training.0011.b
		physician_training_1_complete_with_dismissal = yes		
	}

}

physician_training.0021 = {
	type = character_event
	title = physician_training.0021.title
	desc = physician_training.0021.desc
	
	theme = medicine
	
	left_portrait = {
		character = scope:recipient
		animation = idle
	}

	immediate = {
		hidden_effect = {
			scope:recipient = {			
				remove_trait = ucp_busy_physician_training
			}
		}
	}

	option = {
		name = physician_training.0021.a
		physician_training_1_complete = yes
	}

}

physician_training.0012 = {
	type = character_event
	title = physician_training.0012.title
	desc = physician_training.0012.desc
	
	theme = medicine
	
	left_portrait = {
		character = root
		animation = idle
	}

	right_portrait = {
		character = scope:recipient
		animation = idle
	}

	trigger = {
		exists = capital_province 
	}

	immediate = {
		hidden_effect = {
			scope:recipient = {			
				remove_trait = lifestyle_physician
				remove_trait = ucp_busy_physician_training
			}
		}
	}

	option = {
		name = physician_training.0012.a		
		physician_training_2_complete = yes		
	}

	option = {
		name = physician_training.0012.b		
		physician_training_2_complete_with_dismissal = yes		
	}

}

physician_training.0022 = {
	type = character_event
	title = physician_training.0022.title
	desc = physician_training.0022.desc
	
	theme = medicine
	
	left_portrait = {
		character = scope:recipient
		animation = idle
	}

	immediate = {
		hidden_effect = {
			scope:recipient = {			
				remove_trait = lifestyle_physician
				remove_trait = ucp_busy_physician_training
			}
		}
	}

	option = {
		name = physician_training.0022.a
		physician_training_2_complete = yes
	}

}

physician_training.0013 = {
	type = character_event
	title = physician_training.0013.title
	desc = physician_training.0013.desc
	
	theme = medicine
	
	left_portrait = {
		character = root
		animation = idle
	}

	right_portrait = {
		character = scope:recipient
		animation = idle
	}

	trigger = {
		exists = capital_province 
	}

	immediate = {
		hidden_effect = {
			scope:recipient = {
				remove_trait = lifestyle_physician
				remove_trait = ucp_busy_physician_training
			}
		}
	}

	option = {
		name = physician_training.0013.a
		physician_training_3_complete = yes		
	}

	option = {
		name = physician_training.0013.b
		physician_training_3_complete_with_dismissal = yes		
	}

}

physician_training.0023 = {
	type = character_event
	title = physician_training.0023.title
	desc = physician_training.0023.desc
	
	theme = medicine
	
	left_portrait = {
		character = scope:recipient
		animation = idle
	}

	immediate = {
		hidden_effect = {
			scope:recipient = {			
				remove_trait = lifestyle_physician
				remove_trait = ucp_busy_physician_training
			}
		}
	}

	option = {
		name = physician_training.0023.a
		physician_training_3_complete = yes
	}

}
