﻿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_richard_lee = { NOT = { is_courtier_of = character:rh_robin_hood } } }
					add_courtier = character:rh_richard_lee
				}
				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_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
				}
			}
		}
	}
}