﻿
###EFFECT LIST

#save_friendly_unlanded_sibling_as_et_effect

#Effects for increasing and decreasing sibling variable trackers:
#increase_helped_landed_sibling_value_effect
#decrease_helped_landed_sibling_value_effect
#increase_sibling_causing_trouble_value_effect
#decrease_sibling_causing_trouble_value_effect


save_friendly_unlanded_sibling_as_et_effect = {
	random_sibling = {
		limit = {
			is_playable_character = no
			is_adult = yes
			opinion = {
				target = root
				value > 30
			}
		}
		save_scope_as = sibling
	}
}




increase_helped_landed_sibling_value_effect = {
	custom_tooltip = accepted_sibling_help_tt
	hidden_effect = {
		if = {
			limit = {
				root = { is_ai = no }
				has_variable = helped_landed_sibling
			}
			change_variable = {
				name = helped_landed_sibling
				add = 1
			}
		}
		else = {
			set_variable = {
				name = helped_landed_sibling
				value = 1
			}
		}
	}
}


decrease_helped_landed_sibling_value_effect = {
	hidden_effect = {
		if = {
			limit = {
				root = { is_ai = no }
				has_variable = helped_landed_sibling
				var:helped_landed_sibling > 1
			}
			change_variable = {
				name = helped_landed_sibling
				add = -1
			}
		}
		else = {
			remove_variable = helped_landed_sibling
		}
	}
}


increase_sibling_causing_trouble_value_effect = {
	hidden_effect = {
		if = {
			limit = {
				root = { is_ai = no }
				has_variable = sibling_causing_trouble
			}
			change_variable = {
				name = sibling_causing_trouble
				add = 1
			}
		}
		else = {
			set_variable = {
				name = sibling_causing_trouble
				value = 1
			}
		}
	}
}


decrease_sibling_causing_trouble_value_effect = {
	hidden_effect = {
		if = {
			limit = {
				root = { is_ai = no }
				has_variable = sibling_causing_trouble
				var:sibling_causing_trouble > 1
			}
			change_variable = {
				name = sibling_causing_trouble
				add = -1
			}
		}
		else = {
			remove_variable = sibling_causing_trouble
		}
	}
}