﻿on_game_start = {
	on_actions = { ho_start }
}

ho_start = {
	effect = {
		if = { # Teutonic
			limit = {
				game_start_date >= 1178.10.1
			}
			character:ho_gm_heinrich = {
				save_scope_as = leader
			}
			character:223523 = {
				save_scope_as = founder
			}
			title:b_tyre = {
				save_scope_as = barony
			}
			create_holy_order_neutral_effect = {
				LEADER = scope:leader
				CAPITAL = scope:barony
				NEW_HO_SCOPE = new_holy_order
				FOUNDER = scope:founder
			}
		}
		if = { # Calatrava 
			limit = {
				game_start_date >= 1178.10.1
			}
			character:ho_gm_calatrava = {
				save_scope_as = leader
			}
			character:207510 = {
				save_scope_as = founder
			}
			title:b_tomelloso = {
				save_scope_as = barony
			}
			create_holy_order_neutral_effect = {
				LEADER = scope:leader
				CAPITAL = scope:barony
				NEW_HO_SCOPE = new_holy_order
				FOUNDER = scope:founder
			}
		}
		if = { # Alcantara
			limit = {
				game_start_date >= 1178.10.1
			}
			character:ho_gm_alcantara = {
				save_scope_as = leader
			}
			character:208500 = {
				save_scope_as = founder
			}
			title:b_alcantara = {
				save_scope_as = barony
			}
			create_holy_order_neutral_effect = {
				LEADER = scope:leader
				CAPITAL = scope:barony
				NEW_HO_SCOPE = new_holy_order
				FOUNDER = scope:founder
			}
		}
		if = { # Santiago
			limit = {
				game_start_date >= 1178.10.1
			}
			character:ho_gm_santiago = {
				save_scope_as = leader
			}
			character:208500 = {
				save_scope_as = founder
			}
			title:b_sarria = {
				save_scope_as = barony
			}
			create_holy_order_neutral_effect = {
				LEADER = scope:leader
				CAPITAL = scope:barony
				NEW_HO_SCOPE = new_holy_order
				FOUNDER = scope:founder
			}
		}
	}
}