PDA

View Full Version : Reform-script editing problems



Rogge
04-21-2007, 19:36
I've been trying to change the roman reform conditions as described in this topic: https://forums.totalwar.org/vb/showthread.php?t=80502

But so far I've been unsuccessful, and I have no idea why. And as last resort I thought maybe someone could help me shed some light on this.

I'm trying to get the 1st reform after 10 provinces, the 2nd after 30 and the 3rd after 60. In order to achieve this I copied the marian reforms unconditional code to trigger all three reforms and changed the numbers accordingly. I deleted all conditional entries but left declare_counter GalCondition and declare_counter CartCondition.
But now, after being the owner of 10 provinces, nothing happens.

The reform triggers looks like this now:

;Counters that count number of cities conquared
declare_counter GalCondition
declare_counter CartCondition

;Unconditional Reforms
monitor_event FactionTurnEnd FactionType seleucid
and I_CompareCounter Romanii_Reform = 0
and I_NumberOfSettlements seleucid > 9

set_counter Romanii_Reform 1
terminate_monitor

end_monitor

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; MARIAN TRIGGER

;Unconditional Reforms
monitor_event FactionTurnEnd FactionType seleucid
and I_CompareCounter Romanii_Reform = 1
and I_NumberOfSettlements seleucid > 30

set_counter Romanii_Reform 2
terminate_monitor

end_monitor

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Imperial trigger

;Unconditional Reforms
monitor_event FactionTurnEnd FactionType seleucid
and I_CompareCounter Romanii_Reform = 2
and I_NumberOfSettlements seleucid > 60

set_counter Romanii_Reform 3
terminate_monitor

end_monitor

As far as I can tell from looking at the code this should work. And maybe it does if "I_NumberOfSettlements" is in fact number of conquered provinces, but I assume it refers to the general count of settlements.

So what is wrong? And is editing the script safe for saves?

EDIT

Either I solved it or I was blind to begin with. I got the reforms now either way.