JFD
Kathigitarkh
I'm looking for a way that I can check if a civ's short description has a plurality of 2 (so if a civ has a definite article in it's name), but am not quite sure how I could do that.
I tried this: - though I didn't really expect it to work.
The plurality is defined like so:
I'd rather not hardcode it, so I'd appreciate any suggestions. Thanks.
I tried this: - though I didn't really expect it to work.
Spoiler :
Code:
function HasPlurality()
local pPlayer = Players[Game.GetActivePlayer()]
local sCivDesc = pPlayer:GetCivilizationShortDescription()
local iPlurality = GameInfo[sCivDesc].Plurality
if iPlurality == 2 then
return true
else
return;
end
end
The plurality is defined like so:
Spoiler :
Code:
<Row Tag="TXT_KEY_CIV_AZTEC_SHORT_DESC">
<Text>The Aztecs</Text>
<Gender>neuter:an</Gender>
<Plurality>2</Plurality>
</Row>
I'd rather not hardcode it, so I'd appreciate any suggestions. Thanks.