I searched 10 pages of threads, but my internet connection is terrible today, so I suppose I'll just ask.
I've added a couple of new XML values to the DLL and they are working fine, but I would like to be able to make one of the XML values conditional depending on the active civic. In this case, Emancipation.
I've done it in Python like so:
But I'm having trouble finding the actual method to do it in the SDK. There has to be a way to do it easily, but I'm missing it completely.
Help? (Please?)
I've added a couple of new XML values to the DLL and they are working fine, but I would like to be able to make one of the XML values conditional depending on the active civic. In this case, Emancipation.
I've done it in Python like so:
Code:
iRnd = CyGame().getSorenRandNum(100, "female CEO")
if iplayer.isCivic(gc.getInfoTypeForString("CIVIC_EMANCIPATION")):
But I'm having trouble finding the actual method to do it in the SDK. There has to be a way to do it easily, but I'm missing it completely.

Help? (Please?)