Italian Unification AI
IMPORTANT:
You cannot play through the content of this mod as Sardinia-Piedmont. The scripts are active for the AI only. Essentially, this mod is meant to be installed if you do not plan to play as Savoy, but still want to see Italy form—or face a genuine unification threat while playing as Austria, France, or any other nation.
——————————————
–Venetia is now a primary target. As requested by the community, Venetia will now always be a primary target in the Sardinian-Austrian war, in order to increase historical borders formation.
The mod is compatible with the new update, of course. Enjoy!
——————————————
– Nullified some modifiers applied to Austria and Savoy when the player is involved in the war.
——————————————
–Added war killswitch. Austria will now give up if the war drags on for too long, IF and only if there are no player-led countries in the war.
As always, the logic is to ensure history takes its course in case the player does not intervene.
– Increased buffs and debuffs for the A.I. during the war.
Based on feedback, I might readjust these values.
——————————————
Several small and big fixes were made to the script.
– Fundamentally changed italian unification logic. It will not be possible (save very specific edge cases) for the A.I. to unify Italy until the mod’s JE are either completed, inactive or failed (save for a couple essential).
This was done to avoid scenarios like Two Siciles randomly unifying Italy. Normal unification logic re-applies if Sardinia-Piedmont is defeated in any way.
As always, the script does NOT apply to any player-controlled italian nation. The script also doesn’t apply to any italian nation under a player’s power bloc.
– Improved the script to account for more plausible alt-history scenarios like Lombardy being indipendent, granting Sardinia-Piedmont the state of Lombardy via treaty (thus avoiding war with Austria) and Sardinia-Piedmont automatically annexing Lombardy and Venetia because of a rebellion (not sure why this happens in the Vanilla game, but it’s now accounted for).
– Many more small improvements were made to the build up to the Second War of Indipendence, like waiting for France to have a certain level of army power projection. This was introduced to avoid to fire the war right after France had a disastrous war. It might delay the unification date in certain scenarios, but it’s better this way.
——————————————
– The modifiers logic was rebalanced and revised. They will now apply for a lenghty amount of time, only to be removed once the custom unification event fires.
– The Second War of Indipendence logic was revised: Sardinia-Piedmont will now get a truce with a bunch of Major and Great Powers for the duration of the war. This is to prevent random powerful countries to join against Savoy for basically no actual reason.
This is NOT an automatic effect: if the player chooses to play as Austria, the truce script WON’T fire, allowing the player to create any strategy they want to counter unification freely and without railroading.
At the same time, if any player decides to play as any other country normally hit by the effect (such as Prussia or Russia) the script will NOT apply to them specifically, allowing them to help Austria if they wish to.
Thank you for your attention! Let me know if you have any critique or feedback in general.
——————————————
This mod introduces a series of journal entries and events strictly for AI Savoy to ensure the formation of the Italian state with accurate borders around 1861.
The mod does NOT follow history on a 1:1 basis. It is designed to ensure the formation of Italy with the correct ruling dynasty and, most importantly, ON TIME.
While it is not guaranteed that Italy will form exactly in 1861, it makes it highly unlikely that it will form in 1870, 1880, or—even worse—in 1920.
Once AI Savoy unlocks Nationalism, a Journal Entry (JE) will appear. If Savoy manages to remain both independent AND a Minor Power by 1858, the game will simulate the Plombières Agreement between France and Savoy.
France receives Savoy and Nice, while Savoy receives military support and two claims on Lombardy and Venice.Additionally, the event will unlock a second Journal Entry which starts a countdown to a war to reclaim Lombardy and Venice.
If the war is successful and Savoy manages to reclaim at least Lombardy, another event will fire: Savoy will annex all free Italian states and launch a war against any existing unification candidate to annex them. If the process is successful, Italy will be born.
WHAT IS THE LOGIC?
The logic is to ensure the formation of a historical Italy, while allowing the player to alter history if they choose to intervene.
For instance, if the player wishes to stop Savoy from uniting the peninsula, they must either defeat them in war, turn them into an Insignificant Power, or make them a subject. The same logic applies to a player-controlled Italian state or any other nation.
At the same time, a player-controlled France has the opportunity to either accept or refuse the Accords. The second option will alter history significantly, unlocking a generic Journal Entry for Savoy.
The mod is NOT an automatic "Form Italy" button. It is merely a failsafe: If the player does nothing to alter history, history takes its course.
This, in my opinion, is better than… nothing happening.
Revisions:
Old revisions of this mod are available below. Click the link to download.
