Afforess
The White Wizard
Just passing through, but did you edit the python for the screens to handle with the new parameter you added?
Which then led to another hour of checking for a bug that didn't exist.
You have to fix that check to work properly (Since it was probably not set to check specific Civs, just to check that there was ANY prereqCiv, you want to target the "eProject.getNumPrereqCivilizations() > 0" condition now). If it was a sort rule, then that one you have to get creative on, either it sorts by just the first Civ prereq, or it needs removed completely, or you have to set up special rules such that it will sort/sub-sort however seems to make sense for you.


Didn't realize getTeam() only returned the teamnumber, not the actual team... And I should have, as Player works the same way. Grey Fox straightened me out. 

gc.getTeam(pLoopPlayer.getTeam()).setVassal(pPlayer.getTeam(), true, false)
containerUnit = -1
pPlot = pBestCity.plot()
for i in range(pPlot.getNumUnits()):
if pPlot.getUnit(i).getUnitType() == gc.getInfoTypeForString('EQUIPMENT_CONTAINER'):
containerUnit = pPlot.getUnit(i)
if containerUnit == -1:
containerUnit = gc.getPlayer(gc.getORC_PLAYER()).initUnit(gc.getInfoTypeForString('EQUIPMENT_CONTAINER'), [B]Caster[/B].getX(), [B]Caster[/B].getY(), UnitAITypes.NO_UNITAI, DirectionTypes.DIRECTION_SOUTH)
containerUnit.setHasPromotion(gc.getInfoTypeForString('PROMOTION_GODSLAYER'), True)
eProject.getNumPrereqCivilizations() > 0"
I don't honestly need to keep the integer either, I can just use .size(), but since I have to store an integer for memory to read/write properly, I just decided to carry it around anyway so I didn't have to process .size() all the time either.
It is a bit of a tradeoff honestly. It saves storage space, since instead of a HUGE array with only 1 or 2 values being non-default, you just store those 1 or 2 values.

Thanks for the guidance! Haha, I only just realized that you are the author of that guide! I just set up Codeblocks. I will get started immediately.