Code:
local function OnFactionTurnStart(context)
if conditions.TurnNumber(context) == 2 then
if conditions.FactionName("britain", context) and conditions.FactionIsHuman("britain", context) then
scripting.game_interface:trigger_custom_mission("britain_protectorate", "britain", "protectorate_region_capture", 0, "georgia_usa+cherokee_territory+new_france", "", "mission_text_text_main_protectorate_thirteen_colonies_text", "mission_text_text_main_protectorate_thirteen_colonies_reward", 0, "thirteen_colonies", context)
elseif conditions.FactionName("spain", context) and conditions.FactionIsHuman("spain", context) then
scripting.game_interface:trigger_custom_mission("spain_protectorate", "spain", "protectorate_region_capture", 0, "trinidad_tobago+tejas+curacao", "", "mission_text_text_main_protectorate_new_spain_text", "mission_text_text_main_protectorate_new_spain_reward", 0, "new_spain", context)
elseif conditions.FactionName("france", context) and conditions.FactionIsHuman("france", context) then
scripting.game_interface:trigger_custom_mission("france_protectorate", "france", "protectorate_region_capture", 0, "michigan_territory+algonquin_territory+cherokee_territory", "", "mission_text_text_main_protectorate_louisiana_text", "mission_text_text_main_protectorate_louisiana_reward", 0, "louisiana", context)
end
elseif conditions.TurnNumber(context) == 5 then
scripting.game_interface:enable_auto_generated_missions(true)
end
if conditions.FactionName("britain", context) and not conditions.FactionIsHuman("britain", context) then
scripting.game_interface:grant_faction_handover("britain", "thirteen_colonies", 6, 15, context)
elseif conditions.FactionName("spain", context) and not conditions.FactionIsHuman("spain", context) then
scripting.game_interface:grant_faction_handover("spain", "new_spain", 6, 15, context)
elseif conditions.FactionName("france", context) and not conditions.FactionIsHuman("france", context) then
scripting.game_interface:grant_faction_handover("france", "louisiana", 6, 15, context)
end
end
3) put a couple spaces past the last end and put this code: