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 }
		  	}
		}
	}	
}