Total War: ATTILA

Total War: ATTILA

Medieval Kingdoms 1212 AD Script Update 0.9 (WIP)
Showing 1-10 of 34 entries
< 1  2  3  4 >
Update: 14 Feb @ 9:28pm

The last update I introduced stopped Loyal factions from voting for the emperor_faction on turn end. This has been fixed.

Update: 14 Feb @ 5:34pm

Worked on the Regions.lua script to address an issue with the debuff after the HRE reforms. When the Holy Roman Empire (HRE) is unified, the debuff remains. Here's what was done:

Removed references to self.unified as it was not functioning as intended.
Added a check for self.current_reform == 9 along with a destroyed check to properly remove the effect bundle debuffs.
Moved the effect bundle removal to the beginning and added an early return if the HRE is destroyed or unified.
Refined the code structure for improved readability.
Preserved the original functionality for region tracking and expansionism debuffs, including their levels, for now.
This should resolve the issue, but it requires testing. It should now properly remove the territory debuff once the final HRE reform is completed.

Update: 14 Feb @ 6:29am

Fixed puppet faction state.
- Now Puppet state is granted only to vassals of the current Holy Roman Empire Faction.
- When the HRE is a player and you cast a vote, your puppets will cast votes alongside you, unfortunately this was broken and the puppets were resetting their votes during the end turn phase making the mechanic null, this has been fixed.

Faction Voting Dominance
- Added a change to make sure that when there are no ambitious/discontent/pretender/malcontent factions for neutrals to vote for 50% of the the time then the strongest neutral faction should now become an ambitious faction so those neutral factions can actually be neutral. (This also fixes a bug where voting becomes broken).

Update: 8 Feb @ 11:32pm

Fixed the Elections Image - Now it is of a coronation. - Seems to be working fine now.

Update: 7 Feb @ 7:49am

Update 30. Version 0.8.
Feedback needed before removing debugging and moving on!

Update: 7 Feb @ 5:41am

Added fix for HRE Voting mechanic wherein factions that were not within the HRE or elector states (After reform #1) were able to vote for their overlord.

Now only HRE member states or the designated elector states can vote.

Update: 7 Feb @ 5:14am

Updated to fix issues around election and voting due to new changes. - Working fine from my testing.

Planning to update the voting mechanic so that only puppet states/vassals that are already chosen as elector states can vote for their master. So for example if you vassalize factions outside of the HRE you won't be able to secure votes for it anymore.

Update: 6 Feb @ 5:36am

Removes weakest non-player electors when over 7
Adds strongest available factions when under 7


Voting logic is solid:


Proper reform-based restrictions
Correct state-based voting behavior
Proper faction membership checks

Update: 5 Feb @ 11:48pm

Added bug fix for debuffs not going away for Mecca event.

Update: 5 Feb @ 11:15pm

Updated mechanic that finds the strongest faction amoungst HRE states to have discontent factions vote, ect.

This also updates the function that picks which elector states can vote (basing it off of the most rich and powerful)!

Updated both Find_Strongest_Faction_HRE_Elections and Add_New_Electors_HRE_Elections functions so that the follow the following rules of value to determine strength.
3 regions (3 × 10 = 30 points)
20 units (20 × 1 = 20 points)
2 allies (2 × 15 = 30 points)
10,000 gold (10 points)
= Would have a total strength of 90 points.