[Python] zUnit Enslavement

I Should mention i'm using patch 3.13 for BtS.
A Further question springs to mind. When the random events are used does a slave revolt in a city spawn any rebellious slave units, such as Eunus & Kleon 135 - 132 BC, Salvion & Athenion 104 - 100 BC or Spartacus 73 - 71 BC led? These are the Roman slave revolts but there could well be more in other countries/empires.
 
Is there a civic prereq on this one? That is a sort of make or break type of thing for me. THanks though, either way it is a great mod.

I'm not sure if it currently does but:

Code:
		pPlayer = PyPlayer(pWinner.getOwner())

		iLaborCivicOption = CvUtil.findInfoTypeNum(gc.getCivicOptionInfo,gc.getNumCivicOptionInfos(),'CIVICOPTION_LABOR')
		iSlavery = CvUtil.findInfoTypeNum(gc.getCivicInfo,gc.getNumCivicInfos(),'CIVIC_SLAVERY')
		iLaborCivic = pPlayer.getCivics(iLaborCivicOption)

		if (iLaborCivic == iSlavery):

Just put that before the code and you'd have to be in Slavery to fire. You can add a description with the Help XML tag in the Civic Infos
 
Tsentom1; I am most likely going to add this to my mod, but I'd much rather have it use the Slavery Civic as a prerequisite. I was just wondering if, since you have the code there, you have played/tested it yet and I just wanted to get a reaction from you as to how well this works and if there are bugs (or python errors involved) before I put it in my mod. I had this same problem with the superspies promotions, which finally came out wth a working version of the assassin mission. I don't want to repeat that with this one because it was annoying.
 
Tsentom1; I am most likely going to add this to my mod, but I'd much rather have it use the Slavery Civic as a prerequisite. I was just wondering if, since you have the code there, you have played/tested it yet and I just wanted to get a reaction from you as to how well this works and if there are bugs (or python errors involved) before I put it in my mod. I had this same problem with the superspies promotions, which finally came out wth a working version of the assassin mission. I don't want to repeat that with this one because it was annoying.

Actually, I don't have the code. Someone sent me a pm asking if I could write a few lines of code that asks for Slavery Civic as a prerequisite and then pointed me to the thread (which is what I posted before. It's simply defining the slavery civic and then saying only to fire if your using it, you'd have to put it before the main Zebra code). So I guess I'm not really that helpful in answering your questions.

If you do plan to use it and encounter problems, however, I'm sure I can probably correct the errors for you. Just pm me.
 
Back
Top Bottom