namespace = kala_story_rdlg

#¼

#Ը
country_event = {
	id = kala_story_rdlg.1
	title = kala_story_rdlg.1.name
	desc = kala_story_rdlg.1.desc
	picture = GFX_evt_psionics
	
	is_triggered_only = yes
	
	immediate = {
		 random_country = {
		 		limit = { has_country_flag = f_xilin_empire }
		 		save_event_target_as = Dip_Country
		 }	   
	}
	
	option = {
		name = KALA_WANT_CHILD
		custom_tooltip = WILL_CONNECT_TO_XILIN
		hidden_effect = {
		  		country_event = { id = kala_story_rdlg.2 }
		}
	}
	
}

#Ǿ10
country_event = {
	id =  kala_story_rdlg.2
	title = NAME_KALA
	desc = KALA_CON_US_TALK10
	
	is_triggered_only = yes
	diplomatic = yes
	force_open = yes
	
	picture_event_data = {	  
		portrait = event_target:Dip_Country.ruler
		planet_background = event_target:Dip_Country
		graphical_culture = event_target:Dip_Country
		city_level = event_target:Dip_Country
		room = event_target:Dip_Country.ruler
	}
	
	option = { 
		name = SEND
		hidden_effect = {
				event_target:Dip_Country = {
		  		country_event = { id = kala_story_dlg.1 }
		  	}
		}
	}	
}

#Ǿ11
country_event = {
	id =  kala_story_rdlg.3
	title = npc_chenjun
	desc = KALA_CON_US_TALK11
	
	is_triggered_only = yes
	diplomatic = yes
	force_open = yes
	
	picture_event_data = {	  
		portrait = event_target:Dip_Country.ruler
		planet_background = event_target:Dip_Country
		graphical_culture = event_target:Dip_Country
		city_level = event_target:Dip_Country
		room = event_target:Dip_Country.ruler
	}
	
	option = { 
		name = CONTINUE
		hidden_effect = {
				event_target:Dip_Country = {
		  		country_event = { id = kala_story_dlg.3 }
		  	}
		}
	}	
}

#Ǿ12
country_event = {
	id =  kala_story_rdlg.4
	title = npc_lilina
	desc = KALA_CON_US_TALK12
	
	is_triggered_only = yes
	diplomatic = yes
	force_open = yes
	
	picture_event_data = {	  
		portrait = lilina
		planet_background = event_target:Dip_Country
		graphical_culture = event_target:Dip_Country
		city_level = event_target:Dip_Country
		room = event_target:Dip_Country.ruler
	}
	
	option = { 
		name = CONTINUE
		hidden_effect = {
				event_target:Dip_Country = {
		  		country_event = { id = kala_story_dlg.4 }
		  	}
		}
	}	
}

#Ǿ13
country_event = {
	id =  kala_story_rdlg.5
	title = npc_chenjun
	desc = KALA_CON_US_TALK13
	
	is_triggered_only = yes
	diplomatic = yes
	force_open = yes
	
	picture_event_data = {	  
		portrait = chenjun
		planet_background = event_target:Dip_Country
		graphical_culture = event_target:Dip_Country
		city_level = event_target:Dip_Country
		room = event_target:Dip_Country.ruler
	}
	
	option = { 
		name = FINISHED
		hidden_effect = {
				country_event = { id = kala_story_rdlg.6  days = 10  random = 1 }
		}
	}	
}

#ɹ
country_event = {
	id = kala_story_rdlg.6
	title = kala_story_rdlg.6.name
	desc = kala_story_rdlg.6.desc
	picture = GFX_evt_psionics
	
	is_triggered_only = yes
	
	immediate = {
		 random_country = {
		 		limit = { has_country_flag = f_xilin_empire }
		 		save_event_target_as = Dip_Country
		 }	   
	}
	
	option = {
		name = OK
		custom_tooltip = WILL_CONNECT_TO_XILIN
		hidden_effect = {
		  		country_event = { id = kala_story_rdlg.7 }
		}
	}	
}

#
country_event = {
	id =  kala_story_rdlg.7
	title = NAME_KALA
	desc = KALA_CON_US_TALK14
	
	is_triggered_only = yes
	diplomatic = yes
	force_open = yes
	
	picture_event_data = {	  
		portrait = lilina
		planet_background = event_target:Dip_Country
		graphical_culture = event_target:Dip_Country
		city_level = event_target:Dip_Country
		room = event_target:Dip_Country.ruler
	}
	
	option = { 
		name = CONTINUE
		hidden_effect = {
		    set_country_flag = f_kala
				event_target:Dip_Country = {
		  		country_event = { id = kala_story_dlg.5 }
		  	}
		}
	}	
}

#ϣ۹ɹֲȥ̽ĺ
country_event = {
	id = kala_story_rdlg.8
	title = kala_story_rdlg.8.name
	desc = kala_story_rdlg.8.desc
	picture = GFX_evt_alien_nature
	
	is_triggered_only = yes
	
	immediate = {
		 random_country = {
		 		limit = { has_country_flag = f_xilin_empire }
		 		save_event_target_as = Dip_Country
		 }	   
	}
	
	option = {
		name = OK
		hidden_effect = {
				event_target:Dip_Country = {
		  		country_event = { id = kala_story_dlg.6 }
		  	}
		}
	}	
}