I'm asking this question here even though it pertains to my mod because I'm using the specific SoI respawn code. I'm trying to make a civ collapse and then respawn as a different civ, like Armenia>Cilicia or Ghorids>Delhi in SoI. I have been changing values (tRespawn, tResurrectionPossibility), and the putting my civs in place of the Armenians and Ghorids in RiseAndFall historical resurrections, and the collapse is working, but a different civ is respawning, even though their tRespawn is 0. I also set iMinNumTurns in def resurrection to equal 1 in the case of the civ I want to respawn. there is at least a 10 turn gap between the collapse and tRespawn.
I added print statements and it is correctly picking the civ on the right turn in the historical resurrection part and passing the values I want into def resurrection. I don't understand the next part of the code however. I'm confused about iForcedCiv and iDeadCiv. I thought iForcedCiv, the value passed from historical resurrections, was the civ that was respawning, so what is iDeadCiv?
I added print statements and it is correctly picking the civ on the right turn in the historical resurrection part and passing the values I want into def resurrection. I don't understand the next part of the code however. I'm confused about iForcedCiv and iDeadCiv. I thought iForcedCiv, the value passed from historical resurrections, was the civ that was respawning, so what is iDeadCiv?