CaptainLost
Oberleutnant
This is concerning the text files for event modding. In there it often has %s1, %s2, etc referring to strings defined in a python/sdk file.. where is that file? I can't find it anywhere!
std::vector<CvWString> aszTexts;
for (int i = 0; i < kTrigger.getNumTexts(); ++i)
{
if (NO_ERA == kTrigger.getTextEra(i) || kTrigger.getTextEra(i) == getCurrentEra())
{
aszTexts.push_back(kTrigger.getText(i));
}
}
if (aszTexts.size() > 0)
{
int iText = GC.getGameINLINE().getSorenRandNum(aszTexts.size(), "Event Text choice");
pTriggerData->m_szText = gDLL->getText(aszTexts[iText].GetCString(),
eOtherPlayer != NO_PLAYER ? GET_PLAYER(eOtherPlayer).getCivilizationAdjectiveKey() : L"",
NULL != pCity ? pCity->getNameKey() : L"",
NULL != pUnit ? pUnit->getNameKey() : L"",
NO_RELIGION != eReligion ? GC.getReligionInfo(eReligion).getAdjectiveKey() : L"",
NO_BUILDING != eBuilding ? GC.getBuildingInfo(eBuilding).getTextKeyWide() : L"",
NULL != pOtherPlayerCity ? pOtherPlayerCity->getNameKey() : L"",
NULL != pPlot && NO_TERRAIN != pPlot->getTerrainType() ? GC.getTerrainInfo(pPlot->getTerrainType()).getTextKeyWide() : L"",
NULL != pPlot && NO_IMPROVEMENT != pPlot->getImprovementType() ? GC.getImprovementInfo(pPlot->getImprovementType()).getTextKeyWide() : L"",
NULL != pPlot && NO_BONUS != pPlot->getBonusType() ? GC.getBonusInfo(pPlot->getBonusType()).getTextKeyWide() : L"",
NULL != pPlot && NO_ROUTE != pPlot->getRouteType() ? GC.getRouteInfo(pPlot->getRouteType()).getTextKeyWide() : L"",
NO_CORPORATION != eCorporation ? GC.getCorporationInfo(eCorporation).getTextKeyWide() : L""
);
}