Altering and understanding the Marian Reforms

Moderator: Pocus

Post Reply
ralaric
Private First Class - Wehrmacht Inf
Private First Class - Wehrmacht Inf
Posts: 7
Joined: Fri Mar 12, 2021 7:39 am

Altering and understanding the Marian Reforms

Post by ralaric »

I'd like to alter the triggers for the Marian Reforms.

They have triggered early (IMO) in several games.
Playing as Carthage by turn 15, another around turn 20. Playing as Rome, they happened quite early - around 260BC.

One the one hand, it's a great challenge to play against! As Carthage my army exhausted itself taking Italia Inferior and lost to Rome's never ending legions.

On the other, it made me curious about the triggers - are the reforms more likely if Italy is invaded? I'd also like to ensure more time with the Polybian units when playing as Rome.

In my next attempt, I rushed the Etruscans as they seem to also frequently agree to become Rome's client-state). That was when the reforms triggered at least by turn 15.

So, how can I change the probability, or perhaps ensure the reforms can only trigger after a certain date - e.g. 220BC?

I found this line in \Data\Scripts\Events.bsf but unsure if this is the right place or how to proceed.

Code: Select all

TraceLogEx(gVerbosity.decisions, "", "decisions", -1, " %S triggering Decision Marian Reform, choice %d", gString, choice);
Pocus
Ageod
Ageod
Posts: 7115
Joined: Tue Oct 02, 2012 3:05 pm

Re: Altering and understanding the Marian Reforms

Post by Pocus »

Hi Ralaric,

Thanks for bringing this question in the public forum, so that it can help others too!

This is not the correct line to change, you are within Decision_Rome_Marian_Reform in this line, the function that will do the changes. What you want is to modify the conditions, before the changes.

The Marian reform should not be given before turn 47, so I'm surprised here. The formula is this line

Code: Select all

				// Rome - Marian Reform
				else if ( (decisionID == $ID_DEC_ROM_MARIAN_REFORM && Evt_Rome_Marian_Tracker == FALSE) && (Evt_Rome_ImperialLegion_Tracker == FALSE && Dice(100) <= (turn + scenAdvance - 60) /3) )
				{
					Faction_Decisions_Add(factionID, decisionID);		
					given++;
					overall++;		
					Evt_Rome_Marian_Tracker = TRUE; // won't be given again
				}	
In any case, and to be pragmatic in my answer ... The -60 you see, change it to -80 or even -100 (but not more!), this should delay it.
AGEOD Team - Makers of Kingdoms, Empires, ACW2, WON, EAW, PON, AJE, RUS, ROP, WIA.
ralaric
Private First Class - Wehrmacht Inf
Private First Class - Wehrmacht Inf
Posts: 7
Joined: Fri Mar 12, 2021 7:39 am

Re: Altering and understanding the Marian Reforms

Post by ralaric »

How interesting! The code, I mean.

The specific code is intact in any case. I've changed the variable to 80. Thank you!


In terms of understanding the code: what is 'scenAdvance'? It looks like it could be turn number, but that variable is presumably 'turn'. I'm guessing here, but is it average HCV?

Perhaps I messed with the files? I have a save from around turn 20 when I realized that Rome had reformed - I can send a screenshot if that would help. I thought it may have had something to do with playing on very hard or threatening Rome :lol:

I managed to succeed, but it meant declining to 'old' shortly afterwards.

EDIT: I was wrong about the reforms triggering early. I misinterpreted the Campus Martius building for a Legion Camp :shock:

Thank you nonetheless for helping me delay it!
Pocus
Ageod
Ageod
Posts: 7115
Joined: Tue Oct 02, 2012 3:05 pm

Re: Altering and understanding the Marian Reforms

Post by Pocus »

Haha, so no bug on my end :)
AGEOD Team - Makers of Kingdoms, Empires, ACW2, WON, EAW, PON, AJE, RUS, ROP, WIA.
Post Reply

Return to “MOD”