﻿# Called from code after history generation
# Empty scope
#on_game_start = {
#}

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

on_to_live_and_learn_game_rules = {

	effect = {

		### GAME RULE: To Live and Learn (Conversion Ratio)
		if = {
			limit = { has_game_rule = to_live_and_learn_1 }
			set_global_variable = {
				name = to_live_and_learn_variable
				value = 1
			}
		}
		else_if = {
			limit = { has_game_rule = to_live_and_learn_2 }
			set_global_variable = {
				name = to_live_and_learn_variable
				value = 2
			}
		}
		else_if = {
			limit = { has_game_rule = to_live_and_learn_3 }
			set_global_variable = {
				name = to_live_and_learn_variable
				value = 3
			}
		}

	}

}