PDA

View Full Version : Celtic reforms



Oleo
01-05-2007, 17:51
Just a FYI if you dont know already, I hope you don't cause then I am not wasting time :laugh4: :laugh4: .

I figured I'd try the celtic second reforms after having difficulty's with the marian reforms. I have an old casse savegame laying around.

I changed the condition from 608 to 209 turns and noticed that the appropriate reform building and new MIC were only built in cities that had a 1st or 2nd level MIC built. Cities with a 3rd, 4th or 5th level MIC would not get the new MIC and the time of soldiers buildingmarker.

Then I changed the code for Camulosadae (with a 5th level MIC) from:


monitor_event SettlementTurnStart SettlementName Camulosadae
and I_CompareCounter Celt_Reform = 2
and not SettlementBuildingExists = celt3
and not SettlementBuildingExists > muster_field_D

if not I_SettlementOwner Camulosadae = seleucid
and not I_SettlementOwner Camulosadae = parthia
and not I_SettlementOwner Camulosadae = pontus
and not I_SettlementOwner Camulosadae = numidia
and not I_SettlementOwner Camulosadae = romans_julii
and not I_SettlementOwner Camulosadae = egypt
and not I_SettlementOwner Camulosadae = germans
and not I_SettlementOwner Camulosadae = greek_cities
and not I_SettlementOwner Camulosadae = macedon
and not I_SettlementOwner Camulosadae = carthage
and not I_SettlementOwner Camulosadae = romans_scipii
and not I_SettlementOwner Camulosadae = dacia
and not I_SettlementOwner Camulosadae = armenia
and not I_SettlementOwner Camulosadae = spain
and not I_SettlementOwner Camulosadae = thrace
and not I_SettlementOwner Camulosadae = romans_brutii
and not I_SettlementOwner Camulosadae = saba
and not I_SettlementOwner Camulosadae = slave

console_command create_building Camulosadae "celt3"
console_command create_building Camulosadae "muster_field_E"
console_command set_building_health Camulosadae Barracks_D 0

end_if
end_monitor

monitor_event SettlementTurnStart SettlementName Camulosadae
and I_CompareCounter Celt_Reform = 2
and not SettlementBuildingExists = celt3
and SettlementBuildingExists > muster_field_D
and not SettlementBuildingExists = city_barracks_D1
and not SettlementBuildingExists = army_barracks_D1
and not SettlementBuildingExists = royal_barracks_D1
and not SettlementBuildingExists = city_barracks_D2
and not SettlementBuildingExists = army_barracks_D2
and not SettlementBuildingExists = royal_barracks_D2

if not I_SettlementOwner Camulosadae = seleucid
and not I_SettlementOwner Camulosadae = parthia
and not I_SettlementOwner Camulosadae = pontus
and not I_SettlementOwner Camulosadae = numidia
and not I_SettlementOwner Camulosadae = romans_julii
and not I_SettlementOwner Camulosadae = egypt
and not I_SettlementOwner Camulosadae = germans
and not I_SettlementOwner Camulosadae = greek_cities
and not I_SettlementOwner Camulosadae = macedon
and not I_SettlementOwner Camulosadae = carthage
and not I_SettlementOwner Camulosadae = romans_scipii
and not I_SettlementOwner Camulosadae = dacia
and not I_SettlementOwner Camulosadae = armenia
and not I_SettlementOwner Camulosadae = spain
and not I_SettlementOwner Camulosadae = thrace
and not I_SettlementOwner Camulosadae = romans_brutii
and not I_SettlementOwner Camulosadae = saba
and not I_SettlementOwner Camulosadae = slave

console_command create_building Camulosadae "celt3"
console_command create_building Camulosadae "militia_barracks_E1"
console_command set_building_health Camulosadae Barracks_D 0

end_if
end_monitor

monitor_event SettlementTurnStart SettlementName Camulosadae
and I_CompareCounter Celt_Reform = 2
and not SettlementBuildingExists = celt3
and SettlementBuildingExists > muster_field_A
and not SettlementBuildingExists = militia_barracks_D1
and not SettlementBuildingExists = army_barracks_D1
and not SettlementBuildingExists = royal_barracks_D1
and not SettlementBuildingExists = militia_barracks_D2
and not SettlementBuildingExists = army_barracks_D2
and not SettlementBuildingExists = royal_barracks_D2

if not I_SettlementOwner Camulosadae = seleucid
and not I_SettlementOwner Camulosadae = parthia
and not I_SettlementOwner Camulosadae = pontus
and not I_SettlementOwner Camulosadae = numidia
and not I_SettlementOwner Camulosadae = romans_julii
and not I_SettlementOwner Camulosadae = egypt
and not I_SettlementOwner Camulosadae = germans
and not I_SettlementOwner Camulosadae = greek_cities
and not I_SettlementOwner Camulosadae = macedon
and not I_SettlementOwner Camulosadae = carthage
and not I_SettlementOwner Camulosadae = romans_scipii
and not I_SettlementOwner Camulosadae = dacia
and not I_SettlementOwner Camulosadae = armenia
and not I_SettlementOwner Camulosadae = spain
and not I_SettlementOwner Camulosadae = thrace
and not I_SettlementOwner Camulosadae = romans_brutii
and not I_SettlementOwner Camulosadae = saba
and not I_SettlementOwner Camulosadae = slave

console_command create_building Camulosadae "celt3"
console_command create_building Camulosadae "city_barracks_E1"
console_command set_building_health Camulosadae Barracks_D 0

end_if
end_monitor

monitor_event SettlementTurnStart SettlementName Camulosadae
and I_CompareCounter Celt_Reform = 2
and not SettlementBuildingExists = celt3
and SettlementBuildingExists > muster_field_A
and not SettlementBuildingExists = militia_barracks_D1
and not SettlementBuildingExists = city_barracks_D1
and not SettlementBuildingExists = royal_barracks_D1
and not SettlementBuildingExists = militia_barracks_D2
and not SettlementBuildingExists = city_barracks_D2
and not SettlementBuildingExists = royal_barracks_D2

if not I_SettlementOwner Camulosadae = seleucid
and not I_SettlementOwner Camulosadae = parthia
and not I_SettlementOwner Camulosadae = pontus
and not I_SettlementOwner Camulosadae = numidia
and not I_SettlementOwner Camulosadae = romans_julii
and not I_SettlementOwner Camulosadae = egypt
and not I_SettlementOwner Camulosadae = germans
and not I_SettlementOwner Camulosadae = greek_cities
and not I_SettlementOwner Camulosadae = macedon
and not I_SettlementOwner Camulosadae = carthage
and not I_SettlementOwner Camulosadae = romans_scipii
and not I_SettlementOwner Camulosadae = dacia
and not I_SettlementOwner Camulosadae = armenia
and not I_SettlementOwner Camulosadae = spain
and not I_SettlementOwner Camulosadae = thrace
and not I_SettlementOwner Camulosadae = romans_brutii
and not I_SettlementOwner Camulosadae = saba
and not I_SettlementOwner Camulosadae = slave

console_command create_building Camulosadae "celt3"
console_command create_building Camulosadae "army_barracks_E1"
console_command set_building_health Camulosadae Barracks_D 0

end_if
end_monitor

monitor_event SettlementTurnStart SettlementName Camulosadae
and I_CompareCounter Celt_Reform = 2
and not SettlementBuildingExists = celt3
and SettlementBuildingExists > muster_field_A
and not SettlementBuildingExists = militia_barracks_D1
and not SettlementBuildingExists = city_barracks_D1
and not SettlementBuildingExists = army_barracks_D1
and not SettlementBuildingExists = militia_barracks_D2
and not SettlementBuildingExists = city_barracks_D2
and not SettlementBuildingExists = army_barracks_D2

if not I_SettlementOwner Camulosadae = seleucid
and not I_SettlementOwner Camulosadae = parthia
and not I_SettlementOwner Camulosadae = pontus
and not I_SettlementOwner Camulosadae = numidia
and not I_SettlementOwner Camulosadae = romans_julii
and not I_SettlementOwner Camulosadae = egypt
and not I_SettlementOwner Camulosadae = germans
and not I_SettlementOwner Camulosadae = greek_cities
and not I_SettlementOwner Camulosadae = macedon
and not I_SettlementOwner Camulosadae = carthage
and not I_SettlementOwner Camulosadae = romans_scipii
and not I_SettlementOwner Camulosadae = dacia
and not I_SettlementOwner Camulosadae = armenia
and not I_SettlementOwner Camulosadae = spain
and not I_SettlementOwner Camulosadae = thrace
and not I_SettlementOwner Camulosadae = romans_brutii
and not I_SettlementOwner Camulosadae = saba
and not I_SettlementOwner Camulosadae = slave

console_command create_building Camulosadae "celt3"
console_command create_building Camulosadae "royal_barracks_E1"
console_command set_building_health Camulosadae Barracks_D 0

end_if
end_monitor

to:


monitor_event SettlementTurnStart SettlementName Camulosadae
and I_CompareCounter Celt_Reform = 2
and not SettlementBuildingExists = celt3
and not SettlementBuildingExists > muster_field_D

if not I_SettlementOwner Camulosadae = seleucid
and not I_SettlementOwner Camulosadae = parthia
and not I_SettlementOwner Camulosadae = pontus
and not I_SettlementOwner Camulosadae = numidia
and not I_SettlementOwner Camulosadae = romans_julii
and not I_SettlementOwner Camulosadae = egypt
and not I_SettlementOwner Camulosadae = germans
and not I_SettlementOwner Camulosadae = greek_cities
and not I_SettlementOwner Camulosadae = macedon
and not I_SettlementOwner Camulosadae = carthage
and not I_SettlementOwner Camulosadae = romans_scipii
and not I_SettlementOwner Camulosadae = dacia
and not I_SettlementOwner Camulosadae = armenia
and not I_SettlementOwner Camulosadae = spain
and not I_SettlementOwner Camulosadae = thrace
and not I_SettlementOwner Camulosadae = romans_brutii
and not I_SettlementOwner Camulosadae = saba
and not I_SettlementOwner Camulosadae = slave

console_command create_building Camulosadae "celt3"
console_command create_building Camulosadae "muster_field_E"
console_command set_building_health Camulosadae Barracks_D 0

end_if
end_monitor

monitor_event SettlementTurnStart SettlementName Camulosadae
and I_CompareCounter Celt_Reform = 2
and not SettlementBuildingExists = celt3
and SettlementBuildingExists > muster_field_D
and not SettlementBuildingExists = city_barracks_D1
and not SettlementBuildingExists = army_barracks_D1
and not SettlementBuildingExists = royal_barracks_D1
and not SettlementBuildingExists = city_barracks_D2
and not SettlementBuildingExists = army_barracks_D2
and not SettlementBuildingExists = royal_barracks_D2

if not I_SettlementOwner Camulosadae = seleucid
and not I_SettlementOwner Camulosadae = parthia
and not I_SettlementOwner Camulosadae = pontus
and not I_SettlementOwner Camulosadae = numidia
and not I_SettlementOwner Camulosadae = romans_julii
and not I_SettlementOwner Camulosadae = egypt
and not I_SettlementOwner Camulosadae = germans
and not I_SettlementOwner Camulosadae = greek_cities
and not I_SettlementOwner Camulosadae = macedon
and not I_SettlementOwner Camulosadae = carthage
and not I_SettlementOwner Camulosadae = romans_scipii
and not I_SettlementOwner Camulosadae = dacia
and not I_SettlementOwner Camulosadae = armenia
and not I_SettlementOwner Camulosadae = spain
and not I_SettlementOwner Camulosadae = thrace
and not I_SettlementOwner Camulosadae = romans_brutii
and not I_SettlementOwner Camulosadae = saba
and not I_SettlementOwner Camulosadae = slave

console_command create_building Camulosadae "celt3"
console_command create_building Camulosadae "militia_barracks_E1"
console_command set_building_health Camulosadae Barracks_D 0

end_if
end_monitor

monitor_event SettlementTurnStart SettlementName Camulosadae
and I_CompareCounter Celt_Reform = 2
and not SettlementBuildingExists = celt3
and SettlementBuildingExists > militia_barracks_D1
and not SettlementBuildingExists = army_barracks_D1
and not SettlementBuildingExists = royal_barracks_D1
and not SettlementBuildingExists = army_barracks_D2
and not SettlementBuildingExists = royal_barracks_D2

if not I_SettlementOwner Camulosadae = seleucid
and not I_SettlementOwner Camulosadae = parthia
and not I_SettlementOwner Camulosadae = pontus
and not I_SettlementOwner Camulosadae = numidia
and not I_SettlementOwner Camulosadae = romans_julii
and not I_SettlementOwner Camulosadae = egypt
and not I_SettlementOwner Camulosadae = germans
and not I_SettlementOwner Camulosadae = greek_cities
and not I_SettlementOwner Camulosadae = macedon
and not I_SettlementOwner Camulosadae = carthage
and not I_SettlementOwner Camulosadae = romans_scipii
and not I_SettlementOwner Camulosadae = dacia
and not I_SettlementOwner Camulosadae = armenia
and not I_SettlementOwner Camulosadae = spain
and not I_SettlementOwner Camulosadae = thrace
and not I_SettlementOwner Camulosadae = romans_brutii
and not I_SettlementOwner Camulosadae = saba
and not I_SettlementOwner Camulosadae = slave

console_command create_building Camulosadae "celt3"
console_command create_building Camulosadae "city_barracks_E1"
console_command set_building_health Camulosadae Barracks_D 0

end_if
end_monitor

monitor_event SettlementTurnStart SettlementName Camulosadae
and I_CompareCounter Celt_Reform = 2
and not SettlementBuildingExists = celt3
and SettlementBuildingExists > city_barracks_D1
and not SettlementBuildingExists = royal_barracks_D1
and not SettlementBuildingExists = royal_barracks_D2

if not I_SettlementOwner Camulosadae = seleucid
and not I_SettlementOwner Camulosadae = parthia
and not I_SettlementOwner Camulosadae = pontus
and not I_SettlementOwner Camulosadae = numidia
and not I_SettlementOwner Camulosadae = romans_julii
and not I_SettlementOwner Camulosadae = egypt
and not I_SettlementOwner Camulosadae = germans
and not I_SettlementOwner Camulosadae = greek_cities
and not I_SettlementOwner Camulosadae = macedon
and not I_SettlementOwner Camulosadae = carthage
and not I_SettlementOwner Camulosadae = romans_scipii
and not I_SettlementOwner Camulosadae = dacia
and not I_SettlementOwner Camulosadae = armenia
and not I_SettlementOwner Camulosadae = spain
and not I_SettlementOwner Camulosadae = thrace
and not I_SettlementOwner Camulosadae = romans_brutii
and not I_SettlementOwner Camulosadae = saba
and not I_SettlementOwner Camulosadae = slave

console_command create_building Camulosadae "celt3"
console_command create_building Camulosadae "army_barracks_E1"
console_command set_building_health Camulosadae Barracks_D 0

end_if
end_monitor

monitor_event SettlementTurnStart SettlementName Camulosadae
and I_CompareCounter Celt_Reform = 2
and not SettlementBuildingExists = celt3
and SettlementBuildingExists > army_barracks_D1

if not I_SettlementOwner Camulosadae = seleucid
and not I_SettlementOwner Camulosadae = parthia
and not I_SettlementOwner Camulosadae = pontus
and not I_SettlementOwner Camulosadae = numidia
and not I_SettlementOwner Camulosadae = romans_julii
and not I_SettlementOwner Camulosadae = egypt
and not I_SettlementOwner Camulosadae = germans
and not I_SettlementOwner Camulosadae = greek_cities
and not I_SettlementOwner Camulosadae = macedon
and not I_SettlementOwner Camulosadae = carthage
and not I_SettlementOwner Camulosadae = romans_scipii
and not I_SettlementOwner Camulosadae = dacia
and not I_SettlementOwner Camulosadae = armenia
and not I_SettlementOwner Camulosadae = spain
and not I_SettlementOwner Camulosadae = thrace
and not I_SettlementOwner Camulosadae = romans_brutii
and not I_SettlementOwner Camulosadae = saba
and not I_SettlementOwner Camulosadae = slave

console_command create_building Camulosadae "celt3"
console_command create_building Camulosadae "royal_barracks_E1"
console_command set_building_health Camulosadae Barracks_D 0

end_if
end_monitor

Then the reform worked for Camulosadae. So increasing the buildinglevel in
and SettlementBuildingExists > muster_field_D when wanting to place a bigger level mic fixed the problem for me.

:frog:

BozosLiveHere
01-05-2007, 18:23
I really don't know what muster_field_A is supposed to be doing there. the A MIC variant is for romans.

Oleo
01-05-2007, 19:08
I really don't know what muster_field_A is supposed to be doing there. the A MIC variant is for romans.


lol, I didnt notice that, or well I did a while ago, but I forgot, sort of... The fix (D for A) should be rather easy then I guess. :2thumbsup: .

blacksnail
01-05-2007, 19:45
Wow. Great catch, Oleo. Bozos, I'm scratching my head too. It looks like code was copied and pasted but not changed all the way.

BozosLiveHere
01-05-2007, 20:58
Somebody tried to recycle the Roman code and forgot to update that line, that's all. I've already posted a fix for .81.