﻿# 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
# 	}
# }


## Unmodified code from 'More Religion Tenets Slots' mod by Karax

#On actions related to religion

# Code on-action: character creates a faith
# Root is the creator
# scope:old_faith is the faith they used to have
on_faith_created = {
	events = {
		faith_creation_clean.001 #clean empty doctrines
	}
}
