primordial stew
Emperor
This is for RFRE, which is a historical mod for Warlords.
The Social War breaks out in 91BC (?) because the cities in Italy are demanding Roman citizenship. The civ of "Italia" is spawned [game.createNewPlayer] and it takes over a bunch of cities [pAssimPlayer.acquireCity] in Italy, converts garrison units, and gets some random amount of Roman classes of units. I got most of that working. Now the more complicated part, how to end the war???
It can either be ended by conquering all of Italia's cities (probably difficult due to the number that flipped), or by building Lex Agraria. Lex Agraia is the reforms that opened up citizenship to peoples living in Italy, and this ended the war. The Romans took back some of the cities during the 3 year war.
Some mechanism must be created to allow Lex Agraria to be built (it could also be auto-built in python) after a min of 3 turns of war. The normal tech tree can't do a good enough job of hitting that mark. However, could a special tech be made researchable at this time? It would have beakers targeted at 3 turns, and would only enable the wonder BUILDING_LEX_AGRARIA. It would have to be enabled with the code that spawns Italia so the player can't just research it before the crisis erupts.
The list of cities is known, barring them being razed (eg by Hannibal's army when it invades Italy in 209BC).. a counter will run to make sure the Romans have conquered.. 2 of them. With the conquests and having built Lex Agraria the civ of Italia will have all it's assets converted to the iRomanID thus ending the war.
Is this overly complex?? What is a better way to do it?
The Social War breaks out in 91BC (?) because the cities in Italy are demanding Roman citizenship. The civ of "Italia" is spawned [game.createNewPlayer] and it takes over a bunch of cities [pAssimPlayer.acquireCity] in Italy, converts garrison units, and gets some random amount of Roman classes of units. I got most of that working. Now the more complicated part, how to end the war???
It can either be ended by conquering all of Italia's cities (probably difficult due to the number that flipped), or by building Lex Agraria. Lex Agraia is the reforms that opened up citizenship to peoples living in Italy, and this ended the war. The Romans took back some of the cities during the 3 year war.
Some mechanism must be created to allow Lex Agraria to be built (it could also be auto-built in python) after a min of 3 turns of war. The normal tech tree can't do a good enough job of hitting that mark. However, could a special tech be made researchable at this time? It would have beakers targeted at 3 turns, and would only enable the wonder BUILDING_LEX_AGRARIA. It would have to be enabled with the code that spawns Italia so the player can't just research it before the crisis erupts.
The list of cities is known, barring them being razed (eg by Hannibal's army when it invades Italy in 209BC).. a counter will run to make sure the Romans have conquered.. 2 of them. With the conquests and having built Lex Agraria the civ of Italia will have all it's assets converted to the iRomanID thus ending the war.
Is this overly complex?? What is a better way to do it?