einayim
Warlord
Hey, did anyone ever get the Leonidas pedia done?
Hey, did anyone ever get the Leonidas pedia done?
It seems not, would you like to write the Leonidas entry?
How can you add CIV IV Trait compatibility to one of the MC civs that don't already have it? I tried to copy the method used in the Kilwa/Nubia support files (since they are compatible) and just fill it in with the bits of Gaul code, but that doesn't seem to do anything.
Would I have to rearrange the Gaul files to be in the same layout as the Kilwa/Nubia files? The Kilwa/Nubia files are in an "XML" folder and sorted into their own separate sub-folders (Buildings, Civilizations, Leaders, etc) but the Gaul files are all just put together in one "Core" folder.
I'm not very good with code or programming so trying to figure this out is pretty much just me taking shots in the dark. D:
I did it! : D Thanks for the help. <3
![]()
It's actually my icon for the Bundesrat from Events and Decisions, the mod in question just fitted it with US flags.![]()
function IsCPDLL()
for _, mod in pairs(Modding.GetActivatedMods()) do
if mod.ID == "d1b6328c-ff44-4b0d-aad7-c657f83610cd" then
return true
end
end
return false
end
local isCPDLL = IsCPDLL()
-- HasTrait
function HasTrait(player, traitID)
if isCPDLL then
return player:HasTrait(traitID)
else
local leaderType = GameInfo.Leaders[player:GetLeaderType()].Type
local traitType = GameInfo.Traits[traitID].Type
for row in GameInfo.Leader_Traits("LeaderType = '" .. leaderType .. "' AND TraitType = '" .. traitType .. "'") do
return true
end
end
return false
end
if HasTrait(player, GameInfoTypes["TRAIT_JFD_BURGUNDY"]) then
The effects of both changes will stack.
EDIT: Well, no, JFD, they won't. Actually, JFD, the CID UA is technically new, whereas the MC UA is technically attached to the vanilla. So, you see, JFD, this means Ghandhi gets only the CID UA when CID is active. Understand, JFD?
EDIT: Look, JFD, that's just plain misleading. You were right the first time. Because MC - like most modders - hardcodes the Lua to check for the civilization and not the trait, the effect of both UAs will be active. One benefit to my switching to checking Trait over Civ as of late. Good work, JFD.
*article 12 of the UDHR is right to privacy and article 17 of the ICCPR is the same right*