I am working on a mod called 1861 AD. The scenario begins in April 1861, at the beginning of the American Civil War. I want to write events for later declarations of war between civs, but I am not sure how to write the Python event code.
What is the basic code to make one civ declare war on another, and to have the war last up to a certain point?
I am reverting my game turns back to weeks, instead of two turns a month.
The wars I want to have occur at the proper time are as follows.
-The American Civil War from April 12, 1861 April 9, 1865, I have this war in progress at the outset. I gave each side a attitude modifier of -75 towards the other, that should keep them fighting for more than 6 months I hope.
- The French-Mexican War from 8 December 1861 - 21 June 1867 The belligerents in clude Spain, and England, but being as they played a small role in any fighting, France will be the main participant. So week 2, December 1862- Week 3, 1867.
-The Austro-Prussian War, or the Seven Weeks War should occur between 14 June 23 August 1866. So we'll say Week 2 June, 1866 and week 4 August, 1866
There are others such as the Taiping Rebellion, Franco-Prussian War, Zulu Wars, and the 1st Boer War, just for starters.
Thanks for any help with Python. I want to learn, but code for BTS 3.19 is more advanced, than it was for vanilla, and I do not know any of it.
What is the basic code to make one civ declare war on another, and to have the war last up to a certain point?
I am reverting my game turns back to weeks, instead of two turns a month.
The wars I want to have occur at the proper time are as follows.
-The American Civil War from April 12, 1861 April 9, 1865, I have this war in progress at the outset. I gave each side a attitude modifier of -75 towards the other, that should keep them fighting for more than 6 months I hope.
- The French-Mexican War from 8 December 1861 - 21 June 1867 The belligerents in clude Spain, and England, but being as they played a small role in any fighting, France will be the main participant. So week 2, December 1862- Week 3, 1867.
-The Austro-Prussian War, or the Seven Weeks War should occur between 14 June 23 August 1866. So we'll say Week 2 June, 1866 and week 4 August, 1866
There are others such as the Taiping Rebellion, Franco-Prussian War, Zulu Wars, and the 1st Boer War, just for starters.
Thanks for any help with Python. I want to learn, but code for BTS 3.19 is more advanced, than it was for vanilla, and I do not know any of it.