namespace = sensiblesatan

# Link demon child conceived through Unholy Impregnation to the SoA Spawn of Satan event chain
###########################

#Check for characters with hidden flag demon_child
character_event = {
	id = sensiblesatan.0002
	hide_window = yes
	mean_time_to_happen = {
		months = 1
	}
	
	has_character_flag = demon_child
	
	trigger = {
		NOT = { has_global_flag = demon_child_born }
	}
		
	immediate = {
		mother = {						
		if = {
			limit = {
				ai = no
			}
			character_event = { id = sensiblesatan.0003 } #Ping event					
			}
		}
	}
}

#Get the mother in the FROM scope and start the SoA event chain
character_event = {
	id = sensiblesatan.0003
	hide_window = yes
	is_triggered_only = yes
	
	immediate = {
		FROM = { 
			character_event = { id = SoA.3001 days = 30 random = 500 }
		}
	}
}