decisions = {

	invest_in_lapis_lazuli_mines = {
		only_playable = yes
		#is_high_prio = yes
		ai_check_interval = 24
		
		potential = {
			is_playable = yes
			is_adult = yes
			has_landed_title = c_badakhshan
		}
		allow = {
			war = no
			prisoner = no
			NOT = { trait = incapable }
			NOT = { is_inaccessible_trigger = yes }
			wealth = 25
			prestige = 100
			NOT = { has_character_flag = VIET_investing_in_lapis_lazuli_mines_currently }
			custom_tooltip = { 
				text = VIET_recent_lapis_lazuli_mine_investment 
				hidden_tooltip = {
					1547 = {
						NOT = {
							has_province_modifier = VIET_pamir_lapis_lazuli_investment_timer
						}
					}
				}
			}
		}
		effect = {
			set_character_flag = VIET_investing_in_lapis_lazuli_mines_currently
			hidden_tooltip = {
				1547 = {
					province_event = { id = pamir.20 }
				}
			}
		}
		ai_will_do = {
			factor = 0.3
			modifier = {
				factor = 0.1
				trait = content
			}
			modifier = {
				factor = 0.1
				trait = slothful
			}
			modifier = {
				factor = 2
				trait = ambitious
			}
			modifier = {
				factor = 2
				trait = diligent
			}
			modifier = {
				factor = 3
				trait = greedy
			}
		}
	}
	
	restore_watchposts_of_wakhan = {
		only_playable = yes
		#is_high_prio = yes
		ai_check_interval = 24
		
		potential = {
			is_playable = yes
			is_adult = yes
			has_landed_title = c_vakhan
			1543 = {
				has_province_modifier = VIET_wakhan_watchposts_ruined
				#NOT = {
				#	has_province_modifier = VIET_wakhan_watchposts_maintained
				#}
			}
		}
		allow = {
			war = no
			prisoner = no
			NOT = { trait = incapable }
			NOT = { is_inaccessible_trigger = yes }
			wealth = 25
			prestige = 50
			NOT = { has_character_flag = VIET_currently_repairing_wakhan_watchposts }
		}
		effect = {
			set_character_flag = VIET_currently_repairing_wakhan_watchposts
			hidden_tooltip = {
				1543 = {
					province_event = { id = pamir.21 }
				}
			}
		}
		ai_will_do = {
			factor = 0.3
			modifier = {
				factor = 0.1
				trait = content
			}
			modifier = {
				factor = 0.1
				trait = slothful
			}
			modifier = {
				factor = 2
				trait = ambitious
			}
			modifier = {
				factor = 2
				trait = diligent
			}
		}
	}
	
	restore_watchposts_of_karakoram = {
		only_playable = yes
		#is_high_prio = yes
		ai_check_interval = 24
		
		potential = {
			is_playable = yes
			is_adult = yes
			has_landed_title = c_gilgit
			1464 = {
				has_province_modifier = VIET_karakoram_watchposts_ruined
				#NOT = {
				#	has_province_modifier = VIET_karakoram_watchposts_maintained
				#}
			}
		}
		allow = {
			war = no
			prisoner = no
			NOT = { trait = incapable }
			NOT = { is_inaccessible_trigger = yes }
			wealth = 25
			prestige = 50
			NOT = { has_character_flag = VIET_currently_repairing_karakoram_watchposts }
		}
		effect = {
			set_character_flag = VIET_currently_repairing_karakoram_watchposts
			hidden_tooltip = {
				1464 = {
					province_event = { id = pamir.23 }
				}
			}
		}
		ai_will_do = {
			factor = 0.3
			modifier = {
				factor = 0.1
				trait = content
			}
			modifier = {
				factor = 0.1
				trait = slothful
			}
			modifier = {
				factor = 2
				trait = ambitious
			}
			modifier = {
				factor = 2
				trait = diligent
			}
		}
	}
	
	attend_chinir_festival = {
		only_playable = yes
		ai_check_interval = 12
		potential = {
			is_playable = yes
			OR = {
				culture = pamiri
				any_demesne_province = {
					OR = {
						culture = pamiri
						is_pamir_mountain_trigger = yes
					}
				}
				#has_landed_title = c_skardu
				#has_landed_title = c_tashkurgan
				#has_landed_title = c_gilgit
				#has_landed_title = c_pamir
				#has_landed_title = c_badakhshan
			}
		}
		allow = {
			month = 6
			NOT = {
				month = 10
			}
			war = no
			custom_tooltip = {
				text = UNOCCUPIED_DEMESNE_TITLE
				hidden_tooltip = {
					any_demesne_title = {
						NOT = { higher_tier_than = count }
						is_occupied = no
					}
				}
			}
			in_command = no
			any_demesne_title = {
				is_occupied = no
			}
			prisoner = no
			wealth = 25
			age = 16
			NOT = { has_character_flag = VIET_holding_chinir_festival }
			NOT = { is_inaccessible_trigger = yes }
			OR = {
				culture = pamiri
				any_demesne_province = {
					OR = {
						culture = pamiri
						custom_tooltip = {
							text = VIET_in_pamir_mountain_region_trigger_text
							hidden_tooltip = {
								is_pamir_mountain_trigger = yes
							}
						}
					}
				}
			}
			custom_tooltip = {
				text = is_not_busy_trigger_tooltip
				hidden_tooltip = { NOT = { has_character_flag = do_not_disturb } }
			}
			custom_tooltip = {
				text = VIET_recently_attended_chinir_text
				hidden_tooltip = { NOT = { has_character_modifier = VIET_chinir_timer } }
			}
			custom_tooltip = {
				text = IS_HEALTHY
				NOR = {
					is_ill = yes
					has_symptom_trigger = yes
				}
			}
		}
		effect = {
			wealth = -25
			set_character_flag = VIET_holding_chinir_festival
			hidden_tooltip = {
				character_event = { 
					id = pamir.50
				}
			}
			set_character_flag = do_not_disturb
		}
		#revoke_allowed = {
		#	always = no
		#}
		ai_will_do = {
			factor = 0.5         # Reduce chances of happening
			modifier = {
				factor = 2
				trait = drunkard
			}
			modifier = {
				factor = 2
				trait = gregarious
			}
			modifier = {
				factor = 0.5
				trait = shy
			}
			modifier = {
				factor = 2
				trait = ambitious
			}
			modifier = {
				factor = 0.5
				trait = content
			}
			modifier = {
				factor = 2
				trait = charitable
			}
			modifier = {
				factor = 0.5
				trait = greedy
			}
		}
	}	
	
}