RandomCatEyeColor = {
	type = character
	random_valid = yes

	text = {
		trigger = {
			var:cat_eye_color = flag:blue
		}
		localization_key = eye_color_blue
	}

	text = {
		trigger = {
			var:cat_eye_color = flag:yellow
		}
		localization_key = eye_color_yellow
	}

	text = {
		trigger = {
			var:cat_eye_color = flag:green
		}
		localization_key = eye_color_green
	}

	text = {
		trigger = {
			var:cat_eye_color = flag:amber
		}
		localization_key = eye_color_amber
	}

	text = {
		trigger = {
			var:cat_eye_color = flag:copper
		}
		localization_key = eye_color_copper
	}

	text = {
		trigger = {
			var:cat_eye_color = flag:emerald
		}
		localization_key = eye_color_emerald
	}
}


#For cat story
CatStoryName = {
	type = character

	text = {
		trigger = {
			OR = {
				AND = {
					exists = var:story_cycle_cat_name
					var:story_cycle_cat_name = flag:custom
				}
				AND = {
					exists = var:sacrificed_cat_name
					var:sacrificed_cat_name = flag:custom
				}
			}
		}
		localization_key = cat_name
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = var:story_cycle_cat_name
					var:story_cycle_cat_name = flag:cat_name_gyb
					NOT = { exists = var:book_topic_cat_name }
				}
				AND = {
					exists = var:book_topic_cat_name
					var:book_topic_cat_name = flag:cat_name_gyb
				}
				AND = {
					exists = var:sacrificed_cat_name
					var:sacrificed_cat_name = flag:cat_name_gyb
				}
			}
		}
		localization_key = cat_name_gyb
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = var:story_cycle_cat_name
					var:story_cycle_cat_name = flag:cat_name_mite
					NOT = { exists = var:book_topic_cat_name }
				}
				AND = {
					exists = var:book_topic_cat_name
					var:book_topic_cat_name = flag:cat_name_mite
				}
				AND = {
					exists = var:sacrificed_cat_name
					var:sacrificed_cat_name = flag:cat_name_mite
				}
			}
		}
		localization_key = cat_name_mite
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = var:story_cycle_cat_name
					var:story_cycle_cat_name = flag:cat_name_gray
					NOT = { exists = var:book_topic_cat_name }
				}
				AND = {
					exists = var:book_topic_cat_name
					var:book_topic_cat_name = flag:cat_name_gray
				}
				AND = {
					exists = var:sacrificed_cat_name
					var:sacrificed_cat_name = flag:cat_name_gray
				}
			}
		}
		localization_key = cat_name_gray
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = var:story_cycle_cat_name
					var:story_cycle_cat_name = flag:cat_name_flame
					NOT = { exists = var:book_topic_cat_name }
				}
				AND = {
					exists = var:book_topic_cat_name
					var:book_topic_cat_name = flag:cat_name_flame
				}
				AND = {
					exists = var:sacrificed_cat_name
					var:sacrificed_cat_name = flag:cat_name_flame
				}
			}
		}
		localization_key = cat_name_flame
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = var:story_cycle_cat_name
					var:story_cycle_cat_name = flag:cat_name_meone
					NOT = { exists = var:book_topic_cat_name }
				}
				AND = {
					exists = var:book_topic_cat_name
					var:book_topic_cat_name = flag:cat_name_meone
				}
				AND = {
					exists = var:sacrificed_cat_name
					var:sacrificed_cat_name = flag:cat_name_meone
				}
			}
		}
		localization_key = cat_name_meone
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = var:story_cycle_cat_name
					var:story_cycle_cat_name = flag:cat_name_cruibne
					NOT = { exists = var:book_topic_cat_name }
				}
				AND = {
					exists = var:book_topic_cat_name
					var:book_topic_cat_name = flag:cat_name_cruibne
				}
				AND = {
					exists = var:sacrificed_cat_name
					var:sacrificed_cat_name = flag:cat_name_cruibne
				}
			}
		}
		localization_key = cat_name_cruibne
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = var:story_cycle_cat_name
					var:story_cycle_cat_name = flag:cat_name_snow
					NOT = { exists = var:book_topic_cat_name }
				}
				AND = {
					exists = var:book_topic_cat_name
					var:book_topic_cat_name = flag:cat_name_snow
				}
				AND = {
					exists = var:sacrificed_cat_name
					var:sacrificed_cat_name = flag:cat_name_snow
				}
			}
		}
		localization_key = cat_name_snow
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = var:story_cycle_cat_name
					var:story_cycle_cat_name = flag:cat_name_shadow
					NOT = { exists = var:book_topic_cat_name }
				}
				AND = {
					exists = var:book_topic_cat_name
					var:book_topic_cat_name = flag:cat_name_shadow
				}
				AND = {
					exists = var:sacrificed_cat_name
					var:sacrificed_cat_name = flag:cat_name_shadow
				}
			}
		}
		localization_key = cat_name_shadow
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = var:story_cycle_cat_name
					var:story_cycle_cat_name = flag:cat_name_paws
					NOT = { exists = var:book_topic_cat_name }
				}
				AND = {
					exists = var:book_topic_cat_name
					var:book_topic_cat_name = flag:cat_name_paws
				}
				AND = {
					exists = var:sacrificed_cat_name
					var:sacrificed_cat_name = flag:cat_name_paws
				}
			}
		}
		localization_key = cat_name_paws
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = var:story_cycle_cat_name
					var:story_cycle_cat_name = flag:cat_name_mittens
					NOT = { exists = var:book_topic_cat_name }
				}
				AND = {
					exists = var:book_topic_cat_name
					var:book_topic_cat_name = flag:cat_name_mittens
				}
				AND = {
					exists = var:sacrificed_cat_name
					var:sacrificed_cat_name = flag:cat_name_mittens
				}
			}
		}
		localization_key = cat_name_mittens
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = var:story_cycle_cat_name
					var:story_cycle_cat_name = flag:cat_name_spooky
					NOT = { exists = var:book_topic_cat_name }
				}
				AND = {
					exists = var:book_topic_cat_name
					var:book_topic_cat_name = flag:cat_name_spooky
				}
				AND = {
					exists = var:sacrificed_cat_name
					var:sacrificed_cat_name = flag:cat_name_spooky
				}
			}
		}
		localization_key = cat_name_spooky
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = var:story_cycle_cat_name
					var:story_cycle_cat_name = flag:name_lil_city
					NOT = { exists = var:book_topic_cat_name }
				}
				AND = {
					exists = var:book_topic_cat_name
					var:book_topic_cat_name = flag:name_lil_city
				}
				AND = {
					exists = var:sacrificed_cat_name
					var:sacrificed_cat_name = flag:name_lil_city
				}
			}
		}
		localization_key = name_lil_city
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = var:story_cycle_cat_name
					var:story_cycle_cat_name = flag:name_pride_of_city
					NOT = { exists = var:book_topic_cat_name }
				}
				AND = {
					exists = var:book_topic_cat_name
					var:book_topic_cat_name = flag:name_pride_of_city
				}
				AND = {
					exists = var:sacrificed_cat_name
					var:sacrificed_cat_name = flag:name_pride_of_city
				}
			}
		}
		localization_key = name_pride_of_city
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = var:story_cycle_cat_name
					var:story_cycle_cat_name = flag:name_tail_of_city
					NOT = { exists = var:book_topic_cat_name }
				}
				AND = {
					exists = var:book_topic_cat_name
					var:book_topic_cat_name = flag:name_tail_of_city
				}
				AND = {
					exists = var:sacrificed_cat_name
					var:sacrificed_cat_name = flag:name_tail_of_city
				}
			}
		}
		localization_key = name_tail_of_city
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = var:story_cycle_cat_name
					var:story_cycle_cat_name = flag:name_tigon
					NOT = { exists = var:book_topic_cat_name }
				}
				AND = {
					exists = var:book_topic_cat_name
					var:book_topic_cat_name = flag:name_tigon
				}
				AND = {
					exists = var:sacrificed_cat_name
					var:sacrificed_cat_name = flag:name_tigon
				}
			}
		}
		localization_key = name_tigon
	}
}

CatStoryNamePossessive = {
	type = character

	text = { #Checks for pre-scripted names that ends with "s". Sadly we have no way to check custom names...
		trigger = { var:story_cycle_cat_name = flag:cat_name_mittens }
		localization_key = cat_name_mittens_possessive
	}

	text = {
		trigger = { var:story_cycle_cat_name = flag:cat_name_paws }
		localization_key = cat_name_paws_possessive
	}
	
	text = {
		localization_key = cat_name_possessive
	}
}

CatFurColor = {
	type = character
	
	text = {
		trigger = {
			any_owned_story = {
				story_type = story_cycle_pet_cat
				var:cat_fur_color = flag:brown
			}
		}
		localization_key = fur_color_brown
	}
	text = {
		trigger = {
			any_owned_story = {
				story_type = story_cycle_pet_cat
				var:cat_fur_color = flag:gray
			}
		}
		localization_key = fur_color_gray
	}
	text = {
		trigger = {
			any_owned_story = {
				story_type = story_cycle_pet_cat
				var:cat_fur_color = flag:orange
			}
		}
		localization_key = fur_color_orange
	}
	text = {
		trigger = {
			any_owned_story = {
				story_type = story_cycle_pet_cat
				var:cat_fur_color = flag:black
			}
		}
		localization_key = fur_color_black
	}
	text = {
		trigger = {
			any_owned_story = {
				story_type = story_cycle_pet_cat
				var:cat_fur_color = flag:white
			}
		}
		localization_key = fur_color_white
	}
}

CatEyeColor = {
	type = character
	
	text = {
		trigger = {
			any_owned_story = {
				story_type = story_cycle_pet_cat
				var:cat_eye_color = flag:blue
			}
		}
		localization_key = eye_color_blue
	}
	text = {
		trigger = {
			any_owned_story = {
				story_type = story_cycle_pet_cat
				var:cat_eye_color = flag:yellow
			}
		}
		localization_key = eye_color_yellow
	}
	text = {
		trigger = {
			any_owned_story = {
				story_type = story_cycle_pet_cat
				var:cat_eye_color = flag:green
			}
		}
		localization_key = eye_color_green
	}
	text = {
		trigger = {
			any_owned_story = {
				story_type = story_cycle_pet_cat
				var:cat_eye_color = flag:amber
			}
		}
		localization_key = eye_color_amber
	}
	text = {
		trigger = {
			any_owned_story = {
				story_type = story_cycle_pet_cat
				var:cat_eye_color = flag:copper
			}
		}
		localization_key = eye_color_copper
	}
	text = {
		trigger = {
			any_owned_story = {
				story_type = story_cycle_pet_cat
				var:cat_eye_color = flag:emerald
			}
		}
		localization_key = eye_color_emerald
	}
}

CatStoryHerHis = {
	type = character

	text = {
		trigger = {
			any_owned_story = {
				story_type = story_cycle_pet_cat
				var:cat_gender = flag:female
			}
		}
		localization_key = cat_gender_her
	}
	text = {
		trigger = {
			any_owned_story = {
				story_type = story_cycle_pet_cat
				var:cat_gender = flag:male
			}
		}
		localization_key = cat_gender_his
	}
}

CatStoryHerHim = {
	type = character

	text = {
		trigger = {
			any_owned_story = {
				story_type = story_cycle_pet_cat
				var:cat_gender = flag:female
			}
		}
		localization_key = cat_gender_her
	}
	text = {
		trigger = {
			any_owned_story = {
				story_type = story_cycle_pet_cat
				var:cat_gender = flag:male
			}
		}
		localization_key = cat_gender_him
	}
}

CatStorySheHe = {
	type = character

	text = {
		trigger = {
			any_owned_story = {
				story_type = story_cycle_pet_cat
				var:cat_gender = flag:female
			}
		}
		localization_key = cat_gender_she
	}
	text = {
		trigger = {
			any_owned_story = {
				story_type = story_cycle_pet_cat
				var:cat_gender = flag:male
			}
		}
		localization_key = cat_gender_he
	}
}

CatStoryHerselfHimself = {
	type = character

	text = {
		trigger = {
			any_owned_story = {
				story_type = story_cycle_pet_cat
				var:cat_gender = flag:female
			}
		}
		localization_key = cat_gender_herself
	}
	text = {
		trigger = {
			any_owned_story = {
				story_type = story_cycle_pet_cat
				var:cat_gender = flag:male
			}
		}
		localization_key = cat_gender_himself
	}
}

CatStoryFemaleMale = {
	type = character

	text = {
		trigger = {
			any_owned_story = {
				story_type = story_cycle_pet_cat
				var:cat_gender = flag:female
			}
		}
		localization_key = cat_gender_female
	}
	text = {
		trigger = {
			any_owned_story = {
				story_type = story_cycle_pet_cat
				var:cat_gender = flag:male
			}
		}
		localization_key = cat_gender_male
	}
}

#For dog story
DogStoryName = {
	type = character

	text = {
		trigger = {
			OR = {
				AND = {
					exists = var:story_cycle_dog_name
					var:story_cycle_dog_name = flag:custom
				}
				AND = {
					exists = var:sacrificed_dog_name
					var:sacrificed_dog_name = flag:custom
				}
			}
		}
		localization_key = dog_name
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = var:story_cycle_dog_name
					var:story_cycle_dog_name = flag:dog_name_amiable
					NOT = { exists = var:book_topic_dog_name }
				}
				AND = {
					exists = var:book_topic_dog_name
					var:book_topic_dog_name = flag:dog_name_amiable
				}
				AND = {
					exists = var:sacrificed_dog_name
					var:sacrificed_dog_name = flag:dog_name_amiable
				}
			}
		}
		localization_key = dog_name_amiable
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = var:story_cycle_dog_name
					var:story_cycle_dog_name = flag:dog_name_nosewise
					NOT = { exists = var:book_topic_dog_name  }
				}
				AND = {
					exists = var:book_topic_dog_name
					var:book_topic_dog_name = flag:dog_name_nosewise
				}
				AND = {
					exists = var:sacrificed_dog_name
					var:sacrificed_dog_name = flag:dog_name_nosewise
				}
			}
		}
		localization_key = dog_name_nosewise
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = var:story_cycle_dog_name
					var:story_cycle_dog_name = flag:dog_name_holdfast
					NOT = { exists = var:book_topic_dog_name  }
				}
				AND = {
					exists = var:book_topic_dog_name
					var:book_topic_dog_name = flag:dog_name_holdfast
				}
				AND = {
					exists = var:sacrificed_dog_name
					var:sacrificed_dog_name = flag:dog_name_holdfast
				}
			}
		}
		localization_key = dog_name_holdfast
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = var:story_cycle_dog_name
					var:story_cycle_dog_name = flag:dog_name_gray
					NOT = { exists = var:book_topic_dog_name  }
				}
				AND = {
					exists = var:book_topic_dog_name
					var:book_topic_dog_name = flag:dog_name_gray
				}
				AND = {
					exists = var:sacrificed_dog_name
					var:sacrificed_dog_name = flag:dog_name_gray
				}
			}
		}
		localization_key = dog_name_gray
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = var:story_cycle_dog_name
					var:story_cycle_dog_name = flag:dog_name_choplicker
					NOT = { exists = var:book_topic_dog_name  }
				}
				AND = {
					exists = var:book_topic_dog_name
					var:book_topic_dog_name = flag:dog_name_choplicker
				}
				AND = {
					exists = var:sacrificed_dog_name
					var:sacrificed_dog_name = flag:dog_name_choplicker
				}
			}
		}
		localization_key = dog_name_choplicker
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = var:story_cycle_dog_name
					var:story_cycle_dog_name = flag:dog_name_shadow
					NOT = { exists = var:book_topic_dog_name  }
				}
				AND = {
					exists = var:book_topic_dog_name
					var:book_topic_dog_name = flag:dog_name_shadow
				}
				AND = {
					exists = var:sacrificed_dog_name
					var:sacrificed_dog_name = flag:dog_name_shadow
				}
			}
		}
		localization_key = dog_name_shadow
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = var:story_cycle_dog_name
					var:story_cycle_dog_name = flag:dog_name_snow
					NOT = { exists = var:book_topic_dog_name  }
				}
				AND = {
					exists = var:book_topic_dog_name
					var:book_topic_dog_name = flag:dog_name_snow
				}
				AND = {
					exists = var:sacrificed_dog_name
					var:sacrificed_dog_name = flag:dog_name_snow
				}
			}
		}
		localization_key = dog_name_snow
	}
}

DogStoryNamePossessive = {
	type = character
	
	text = {
		localization_key = dog_name_possessive
	}
}

DogFurColor = {
	type = character
	
	text = {
		trigger = {
			any_owned_story = {
				story_type = story_cycle_pet_dog
				var:dog_fur_color = flag:brown
			}
		}
		localization_key = fur_color_brown
	}
	text = {
		trigger = {
			any_owned_story = {
				story_type = story_cycle_pet_dog
				var:dog_fur_color = flag:gray
			}
		}
		localization_key = fur_color_gray
	}
	text = {
		trigger = {
			any_owned_story = {
				story_type = story_cycle_pet_dog
				var:dog_fur_color = flag:black
			}
		}
		localization_key = fur_color_black
	}
	text = {
		trigger = {
			any_owned_story = {
				story_type = story_cycle_pet_dog
				var:dog_fur_color = flag:white
			}
		}
		localization_key = fur_color_white
	}
}

DogEyeColor = {
	type = character
	
	text = {
		trigger = {
			any_owned_story = {
				story_type = story_cycle_pet_dog
				var:dog_eye_color = flag:blue
			}
		}
		localization_key = eye_color_blue
	}
	text = {
		trigger = {
			any_owned_story = {
				story_type = story_cycle_pet_dog
				var:dog_eye_color = flag:amber
			}
		}
		localization_key = eye_color_amber
	}
	text = {
		trigger = {
			any_owned_story = {
				story_type = story_cycle_pet_dog
				var:dog_eye_color = flag:brown
			}
		}
		localization_key = eye_color_brown
	}
	text = {
		trigger = {
			any_owned_story = {
				story_type = story_cycle_pet_dog
				var:dog_eye_color = flag:gray
			}
		}
		localization_key = eye_color_gray
	}
}


DogStoryHerHis = {
	type = character

	text = {
		trigger = {
			any_owned_story = {
				story_type = story_cycle_pet_dog
				var:dog_gender = flag:female
			}
		}
		localization_key = dog_gender_her
	}
	text = {
		trigger = {
			any_owned_story = {
				story_type = story_cycle_pet_dog
				var:dog_gender = flag:male
			}
		}
		localization_key = dog_gender_his
	}
}

DogStoryHerHim = {
	type = character

	text = {
		trigger = {
			any_owned_story = {
				story_type = story_cycle_pet_dog
				var:dog_gender = flag:female
			}
		}
		localization_key = dog_gender_her
	}
	text = {
		trigger = {
			any_owned_story = {
				story_type = story_cycle_pet_dog
				var:dog_gender = flag:male
			}
		}
		localization_key = dog_gender_him
	}
}

DogStoryGirlBoy = {
	type = character

	text = {
		trigger = {
			any_owned_story = {
				story_type = story_cycle_pet_dog
				var:dog_gender = flag:female
			}
		}
		localization_key = girl
	}
	text = {
		trigger = {
			any_owned_story = {
				story_type = story_cycle_pet_dog
				var:dog_gender = flag:male
			}
		}
		localization_key = boy
	}
}

CatStoryGirlBoy = {
	type = character

	text = {
		trigger = {
			any_owned_story = {
				story_type = story_cycle_pet_cat
				var:cat_gender = flag:female
			}
		}
		localization_key = girl
	}
	text = {
		trigger = {
			any_owned_story = {
				story_type = story_cycle_pet_cat
				var:cat_gender = flag:male
			}
		}
		localization_key = boy
	}
}

DogStorySheHe = {
	type = character

	text = {
		trigger = {
			any_owned_story = {
				story_type = story_cycle_pet_dog
				var:dog_gender = flag:female
			}
		}
		localization_key = dog_gender_she
	}
	text = {
		trigger = {
			any_owned_story = {
				story_type = story_cycle_pet_dog
				var:dog_gender = flag:male
			}
		}
		localization_key = dog_gender_he
	}
}

DogStoryFemaleMale = {
	type = character

	text = {
		trigger = {
			any_owned_story = {
				story_type = story_cycle_pet_dog
				var:dog_gender = flag:female
			}
		}
		localization_key = dog_gender_female
	}
	text = {
		trigger = {
			any_owned_story = {
				story_type = story_cycle_pet_dog
				var:dog_gender = flag:male
			}
		}
		localization_key = dog_gender_male
	}
}

#We need to do something with the pet story cycle, I can't live like this - had to do a combined trigger for cat and dog names
CatOrDogStoryName = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					exists = var:story_cycle_dog_name
					var:story_cycle_dog_name = flag:custom
				}
				AND = {
					exists = var:sacrificed_dog_name
					var:sacrificed_dog_name = flag:custom
				}
			}
		}
		localization_key = dog_name
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = var:story_cycle_dog_name
					var:story_cycle_dog_name = flag:dog_name_amiable
					NOT = { exists = var:book_topic_dog_name }
				}
				AND = {
					exists = var:book_topic_dog_name
					var:book_topic_dog_name = flag:dog_name_amiable
				}
				AND = {
					exists = var:sacrificed_dog_name
					var:sacrificed_dog_name = flag:dog_name_amiable
				}
			}
		}
		localization_key = dog_name_amiable
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = var:story_cycle_dog_name
					var:story_cycle_dog_name = flag:dog_name_nosewise
					NOT = { exists = var:book_topic_dog_name  }
				}
				AND = {
					exists = var:book_topic_dog_name
					var:book_topic_dog_name = flag:dog_name_nosewise
				}
				AND = {
					exists = var:sacrificed_dog_name
					var:sacrificed_dog_name = flag:dog_name_nosewise
				}
			}
		}
		localization_key = dog_name_nosewise
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = var:story_cycle_dog_name
					var:story_cycle_dog_name = flag:dog_name_holdfast
					NOT = { exists = var:book_topic_dog_name  }
				}
				AND = {
					exists = var:book_topic_dog_name
					var:book_topic_dog_name = flag:dog_name_holdfast
				}
				AND = {
					exists = var:sacrificed_dog_name
					var:sacrificed_dog_name = flag:dog_name_holdfast
				}
			}
		}
		localization_key = dog_name_holdfast
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = var:story_cycle_dog_name
					var:story_cycle_dog_name = flag:dog_name_gray
					NOT = { exists = var:book_topic_dog_name  }
				}
				AND = {
					exists = var:book_topic_dog_name
					var:book_topic_dog_name = flag:dog_name_gray
				}
				AND = {
					exists = var:sacrificed_dog_name
					var:sacrificed_dog_name = flag:dog_name_gray
				}
			}
		}
		localization_key = dog_name_gray
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = var:story_cycle_dog_name
					var:story_cycle_dog_name = flag:dog_name_choplicker
					NOT = { exists = var:book_topic_dog_name  }
				}
				AND = {
					exists = var:book_topic_dog_name
					var:book_topic_dog_name = flag:dog_name_choplicker
				}
				AND = {
					exists = var:sacrificed_dog_name
					var:sacrificed_dog_name = flag:dog_name_choplicker
				}
			}
		}
		localization_key = dog_name_choplicker
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = var:story_cycle_dog_name
					var:story_cycle_dog_name = flag:dog_name_shadow
					NOT = { exists = var:book_topic_dog_name  }
				}
				AND = {
					exists = var:book_topic_dog_name
					var:book_topic_dog_name = flag:dog_name_shadow
				}
				AND = {
					exists = var:sacrificed_dog_name
					var:sacrificed_dog_name = flag:dog_name_shadow
				}
			}
		}
		localization_key = dog_name_shadow
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = var:story_cycle_dog_name
					var:story_cycle_dog_name = flag:dog_name_snow
					NOT = { exists = var:book_topic_dog_name  }
				}
				AND = {
					exists = var:book_topic_dog_name
					var:book_topic_dog_name = flag:dog_name_snow
				}
				AND = {
					exists = var:sacrificed_dog_name
					var:sacrificed_dog_name = flag:dog_name_snow
				}
			}
		}
		localization_key = dog_name_snow
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = var:story_cycle_cat_name
					var:story_cycle_cat_name = flag:custom
				}
				AND = {
					exists = var:sacrificed_cat_name
					var:sacrificed_cat_name = flag:custom
				}
			}
		}
		localization_key = cat_name
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = var:story_cycle_cat_name
					var:story_cycle_cat_name = flag:cat_name_gyb
					NOT = { exists = var:book_topic_cat_name }
				}
				AND = {
					exists = var:book_topic_cat_name
					var:book_topic_cat_name = flag:cat_name_gyb
				}
				AND = {
					exists = var:sacrificed_cat_name
					var:sacrificed_cat_name = flag:cat_name_gyb
				}
			}
		}
		localization_key = cat_name_gyb
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = var:story_cycle_cat_name
					var:story_cycle_cat_name = flag:cat_name_mite
					NOT = { exists = var:book_topic_cat_name }
				}
				AND = {
					exists = var:book_topic_cat_name
					var:book_topic_cat_name = flag:cat_name_mite
				}
				AND = {
					exists = var:sacrificed_cat_name
					var:sacrificed_cat_name = flag:cat_name_mite
				}
			}
		}
		localization_key = cat_name_mite
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = var:story_cycle_cat_name
					var:story_cycle_cat_name = flag:cat_name_gray
					NOT = { exists = var:book_topic_cat_name }
				}
				AND = {
					exists = var:book_topic_cat_name
					var:book_topic_cat_name = flag:cat_name_gray
				}
				AND = {
					exists = var:sacrificed_cat_name
					var:sacrificed_cat_name = flag:cat_name_gray
				}
			}
		}
		localization_key = cat_name_gray
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = var:story_cycle_cat_name
					var:story_cycle_cat_name = flag:cat_name_flame
					NOT = { exists = var:book_topic_cat_name }
				}
				AND = {
					exists = var:book_topic_cat_name
					var:book_topic_cat_name = flag:cat_name_flame
				}
				AND = {
					exists = var:sacrificed_cat_name
					var:sacrificed_cat_name = flag:cat_name_flame
				}
			}
		}
		localization_key = cat_name_flame
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = var:story_cycle_cat_name
					var:story_cycle_cat_name = flag:cat_name_meone
					NOT = { exists = var:book_topic_cat_name }
				}
				AND = {
					exists = var:book_topic_cat_name
					var:book_topic_cat_name = flag:cat_name_meone
				}
				AND = {
					exists = var:sacrificed_cat_name
					var:sacrificed_cat_name = flag:cat_name_meone
				}
			}
		}
		localization_key = cat_name_meone
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = var:story_cycle_cat_name
					var:story_cycle_cat_name = flag:cat_name_cruibne
					NOT = { exists = var:book_topic_cat_name }
				}
				AND = {
					exists = var:book_topic_cat_name
					var:book_topic_cat_name = flag:cat_name_cruibne
				}
				AND = {
					exists = var:sacrificed_cat_name
					var:sacrificed_cat_name = flag:cat_name_cruibne
				}
			}
		}
		localization_key = cat_name_cruibne
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = var:story_cycle_cat_name
					var:story_cycle_cat_name = flag:cat_name_snow
					NOT = { exists = var:book_topic_cat_name }
				}
				AND = {
					exists = var:book_topic_cat_name
					var:book_topic_cat_name = flag:cat_name_snow
				}
				AND = {
					exists = var:sacrificed_cat_name
					var:sacrificed_cat_name = flag:cat_name_snow
				}
			}
		}
		localization_key = cat_name_snow
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = var:story_cycle_cat_name
					var:story_cycle_cat_name = flag:cat_name_shadow
					NOT = { exists = var:book_topic_cat_name }
				}
				AND = {
					exists = var:book_topic_cat_name
					var:book_topic_cat_name = flag:cat_name_shadow
				}
				AND = {
					exists = var:sacrificed_cat_name
					var:sacrificed_cat_name = flag:cat_name_shadow
				}
			}
		}
		localization_key = cat_name_shadow
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = var:story_cycle_cat_name
					var:story_cycle_cat_name = flag:cat_name_paws
					NOT = { exists = var:book_topic_cat_name }
				}
				AND = {
					exists = var:book_topic_cat_name
					var:book_topic_cat_name = flag:cat_name_paws
				}
				AND = {
					exists = var:sacrificed_cat_name
					var:sacrificed_cat_name = flag:cat_name_paws
				}
			}
		}
		localization_key = cat_name_paws
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = var:story_cycle_cat_name
					var:story_cycle_cat_name = flag:cat_name_mittens
					NOT = { exists = var:book_topic_cat_name }
				}
				AND = {
					exists = var:book_topic_cat_name
					var:book_topic_cat_name = flag:cat_name_mittens
				}
				AND = {
					exists = var:sacrificed_cat_name
					var:sacrificed_cat_name = flag:cat_name_mittens
				}
			}
		}
		localization_key = cat_name_mittens
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = var:story_cycle_cat_name
					var:story_cycle_cat_name = flag:cat_name_spooky
					NOT = { exists = var:book_topic_cat_name }
				}
				AND = {
					exists = var:book_topic_cat_name
					var:book_topic_cat_name = flag:cat_name_spooky
				}
				AND = {
					exists = var:sacrificed_cat_name
					var:sacrificed_cat_name = flag:cat_name_spooky
				}
			}
		}
		localization_key = cat_name_spooky
	}
}