#	Triggers to control if diplomatic actions are enabled:
#		Format:
#
#		<diplomatic action tag>_enabled_trigger = {
#			<trigger contents>
#		}
#
#		ROOT is the country initiating the diplomatic action.
#		FROM is the recipient or target of the diplomatic action.
#
#		Note:  For cleaner tooltips, it is recommended that you use
#			IF triggers within the enable triggers, and a single
#			custom_trigger_tooltip trigger within each if trigger.
#
#		Example: (Germany is prevented from declaring war on the Soviet Union.)
#
#		DIPLOMACY_WAR_ENABLE_TRIGGER = {
#			IF = {
#				limit = {
#					tag = GER
#				}
#				custom_trigger_tooltip = {
#					tooltip = PREVENT_GER_WAR_ON_SOV
#					FROM = {
#						NOT = {
#							tag = SOV
#						}
#					}
#				}
#			}
#		}

DIPLOMACY_TAKE_OVER_FACTION_ENABLE_TRIGGER = {
	if = {
		limit = {
			has_global_flag = NNFAJ_no_allow_take_over_faction
		}
		custom_trigger_tooltip = {
			tooltip = RULE_ALLOW_TAKE_OVER_FACTION_BLOCKED_TOOLTIP
			always = no
		}
	}
	if = {
		limit = {
			is_ai = yes
		}
		custom_trigger_tooltip = {
			tooltip = RULE_BLOCKED_AI_TOOLTIP
			always = no
		}
	}
}

DIPLOMACY_CREATE_FACTION_ENABLE_TRIGGER = {
	if = {
		limit = {
			has_global_flag = NNFAJ_no_allow_create_faction
		}
		custom_trigger_tooltip = {
			tooltip = RULE_ALLOW_CREATE_FACTION_BLOCKED_TOOLTIP
			always = no
		}
	}
	if = {
		limit = {
			is_ai = yes
		}
		custom_trigger_tooltip = {
			tooltip = RULE_BLOCKED_AI_TOOLTIP
			always = no
		}
	}
}

DIPLOMACY_OFFER_JOIN_FACTION_ENABLE_TRIGGER = {
	if = {
		limit = {
			OR = {
				has_global_flag = NNFAJ_no_allow_join_faction
				is_ai = yes
			}
		}
		custom_trigger_tooltip = {
			tooltip = RULE_ALLOW_JOIN_FACTION_BLOCKED_TOOLTIP
			always = no
		}
	}
}

DIPLOMACY_JOIN_FACTION_ENABLE_TRIGGER = {
	if = {
		limit = {
			has_global_flag = NNFAJ_no_allow_join_faction
		}
		custom_trigger_tooltip = {
			tooltip = RULE_ALLOW_JOIN_FACTION_BLOCKED_TOOLTIP
			always = no
		}
	}
	if = {
		limit = {
			is_ai = yes
		}
		custom_trigger_tooltip = {
			tooltip = RULE_BLOCKED_AI_TOOLTIP
			always = no
		}
	}
}




		}
	}
}

