﻿# vgl. game > common > on_action > game_start.txt
# vgl. game > common > on_action > religion_on_action.txt

## Called from code after history generation

# Like on_game_start, except it is called once the host (or player, in single player) exits the lobby. Good for anything where you need to know who the players are, or what the game rules are
on_game_start_after_lobby = {
	on_actions = {
		on_mts_ce_start							# Set Global Variables
		# mts_ce_ltd_on_game_start_after_lobby	# Limited Customizable Ethics
	}
}

## Called from 'on_game_start_after_lobby'

# Set Global Variables
on_mts_ce_start = {
	effect = {
		# Needed by 'Unified UI' mod
		set_global_variable = {
			name = MTS_CE_is_loaded
			value = yes
		}
	}
}

# Inserting Virtues and Sins Doctrines into every faith for 'Limited Customizable Ethics'
# mts_ce_ltd_on_game_start_after_lobby = {
# 	effect = {
# 		limited_customizable_ethics_effect = yes
# 	}
# }


# CK3 1.20: the on_faith_created cleanup of empty placeholder tenets is gone. Core tenet slots now come
# from the define FAITH_CORE_TENETS_CAP (common/defines/pr_mts_defines.txt), so no placeholder tenets exist.
