dei army caps isn't working outside dei 'cause other "campaigns > main_rome > scripting.lua" don't have the armycaps callback
when you build an external script you must call it through the scripting.lua of the campaign
check the bottom of dei "campaigns > main_rome > scripting.lua"
there is a:
local army_caps = require "lua_scripts.army_caps";
copy it in the vanilla "campaigns > main_rome > scripting.lua"
and the script (if everything else is correct) will work
if you want start asking me detailed stuff join discord, twc is inadequate for proceeding
https://discord.gg/Wez6GSY