I have not tested this yet, but I believe adding the following block of code to ModsSinglePlayer.lua in a Mod would do the trick:
For any XML for DLC specific stuff, instead of OnModActivated, you set it to OnBabylon or OnSpainInca.
Going to give this bad boy a test run in a minute.
Code:
BabylonCheck = false
SpainIncaCheck = false
for i, v in ipairs(GameInfo.Civilizations) do
if v.Type == "CIVILIZATION_SPAIN" or i.Type == "CIVILIZATION_INCA" then
SpainIncaCheck = true
elseif v.Type == "CIVILIZATION_BABYLON" then
BabylonCheck = true
end
end
if BabylonCheck == true then Modding.PerformActions("OnBabylon") end
if SpainIncaCheck == true then Modding.PerformActions("OnSpainInca") end
For any XML for DLC specific stuff, instead of OnModActivated, you set it to OnBabylon or OnSpainInca.
Going to give this bad boy a test run in a minute.