﻿on_game_start_after_lobby = {
	on_actions = { rh_start }
}

rh_start = {
	effect = {
		character:rh_robin_hood ?= {
			if = {
				limit = {
					is_alive = yes
					is_landless_adventurer = yes
				}
				if = {
					limit = { character:rh_maid_marian = { NOT = { is_courtier_of = character:rh_robin_hood } } }
					add_courtier = character:rh_maid_marian
				}
				if = {
					limit = { character:rh_little_john = { NOT = { is_courtier_of = character:rh_robin_hood } } }
					add_courtier = character:rh_little_john
				}
				if = {
					limit = { character:rh_friar_tuck = { NOT = { is_courtier_of = character:rh_robin_hood } } }
					add_courtier = character:rh_friar_tuck
				}
				if = {
					limit = { character:rh_much_miller = { NOT = { is_courtier_of = character:rh_robin_hood } } }
					add_courtier = character:rh_much_miller
				}
				if = {
					limit = { character:rh_will_scarlet = { NOT = { is_courtier_of = character:rh_robin_hood } } }
					add_courtier = character:rh_will_scarlet
				}
				if = {
					limit = { character:rh_alan_a_dale = { NOT = { is_courtier_of = character:rh_robin_hood } } }
					add_courtier = character:rh_alan_a_dale
				}
				if = {
					limit = { character:rh_arthur_a_bland = { NOT = { is_courtier_of = character:rh_robin_hood } } }
					add_courtier = character:rh_arthur_a_bland
				}
				if = {
					limit = { character:rh_will_stutely = { NOT = { is_courtier_of = character:rh_robin_hood } } }
					add_courtier = character:rh_will_stutely
				}
			}
		}
		character:rh_wilfred_ivanhoe ?= {
			if = {
				limit = {
					is_alive = yes
					is_landless_adventurer = yes
				}
				if = {
					limit = { character:rh_gurth = { NOT = { is_courtier_of = character:rh_wilfred_ivanhoe } } }
					add_courtier = character:rh_gurth
				}
				if = {
					limit = { character:rh_wamba = { NOT = { is_courtier_of = character:rh_wilfred_ivanhoe } } }
					add_courtier = character:rh_wamba
				}
				if = {
					limit = { character:rh_isaac_york = { NOT = { is_courtier_of = character:rh_wilfred_ivanhoe } } }
					add_courtier = character:rh_isaac_york
				}
				if = {
					limit = { character:rh_rebecca = { NOT = { is_courtier_of = character:rh_wilfred_ivanhoe } } }
					add_courtier = character:rh_rebecca
				}
			}
		}
	}
}