
Originally Posted by
Scorpius_Brutii
in data/campaigns/main/scripting.lua
If I were to make it so that I inherit the colonies regardless of objectives met in turn 108, would this be the correct code?
if conditions.TurnNumber(context) == 108 then
if conditions.FactionName("britain", context) and conditions.FactionIsHuman("britain", context) then
scripting.game_interface:grant_faction_handover("britain", "thirteen_colonies", 6, 15, context)
elseif conditions.FactionName("spain", context) and conditions.FactionIsHuman("spain", context) then
scripting.game_interface:grant_faction_handover("spain", "new_spain", 6, 15, context)
elseif conditions.FactionName("france", context) and conditions.FactionIsHuman("france", context) then
scripting.game_interface:grant_faction_handover("france", "louisiana", 6, 15, context)
end
end
Would I need to restart my campaign? Also on "("britain", "thirteen_colonies", 6, 15, context)", what is the '6', '15' and 'context'?