Results 1 to 30 of 260

Thread: Fixing the AI money script (preliminary tests)

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Questor of AI revenue. Member The Errant's Avatar
    Join Date
    Feb 2007
    Location
    Limbo. Aka. the Empty Hold.
    Posts
    378

    Default Re: Fixing the AI money script (preliminary tests)

    OK. I got another PM from Eminos64. He once again came up with a new piece of code I'm adding to my script:

    monitor_event SettlementTurnStart FactionType scythia
    and not FactionIsLocal
    and Treasury < -3000

    console_command add_money pontus, 5000
    It's supposed to stop the small/weak factions from plummeting into debt and get a positive treasury to help them expand. I've also done what Sheep has done and added to the number of years at the beginning of the game that the AI gets additonal financial help to expand and build infrastructure. Once again only the Steppe and Barbarian factions get this benefit. The Barbarians for double of the origianal value, and the Steppe factions for triple of the original value.

    I am personally very interested in the results of Redmeth's infrastructure bonus. Please post screenies soon! Now I'll go back to being despot of the Casse for another 288 turns.

    Code:
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;Section 4: Money Assistance
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;Section 4a: Difficult Start Help
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    monitor_event FactionTurnStart FactionType romans_julii
    and not FactionIsLocal
    and Treasury < 3000
    and I_NumberOfSettlements romans_julii < 4
    and I_TurnNumber < 20
    
    console_command add_money romans_julii, 6000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii
    and not FactionIsLocal
    and Treasury < 3000
    and I_NumberOfSettlements romans_scipii < 4
    and I_TurnNumber < 20
    
    console_command add_money romans_scipii, 6000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii
    and not FactionIsLocal
    and Treasury < 3000
    and I_NumberOfSettlements romans_brutii < 4
    and I_TurnNumber < 40
    
    console_command add_money romans_brutii, 6000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt
    and not FactionIsLocal
    and Treasury < 3000
    and I_NumberOfSettlements egypt < 4
    and I_TurnNumber < 20
    
    console_command add_money egypt, 6000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid
    and not FactionIsLocal
    and Treasury < 3000
    and I_NumberOfSettlements seleucid < 4
    and I_TurnNumber < 20
    
    console_command add_money seleucid, 6000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage
    and not FactionIsLocal
    and Treasury < 3000
    and I_NumberOfSettlements carthage < 4
    and I_TurnNumber < 40
    
    console_command add_money carthage, 6000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia
    and not FactionIsLocal
    and Treasury < 3000
    and I_NumberOfSettlements parthia < 4
    and I_TurnNumber < 60
    
    console_command add_money parthia, 6000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType gauls
    and not FactionIsLocal
    and Treasury < 3000
    and I_NumberOfSettlements gauls < 4
    and I_TurnNumber < 40
    
    console_command add_money gauls, 6000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans
    and not FactionIsLocal
    and Treasury < 3000
    and I_NumberOfSettlements germans < 4
    and I_TurnNumber < 40
    
    console_command add_money germans, 6000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType britons
    and not FactionIsLocal
    and Treasury < 3000
    and I_NumberOfSettlements britons < 4
    and I_TurnNumber < 40
    
    console_command add_money britons, 6000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities
    and not FactionIsLocal
    and Treasury < 3000
    and I_NumberOfSettlements greek_cities < 4
    and I_TurnNumber < 20
    
    console_command add_money greek_cities, 6000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType macedon
    and not FactionIsLocal
    and Treasury < 3000
    and I_NumberOfSettlements macedon < 4
    and I_TurnNumber < 20
    
    console_command add_money macedon, 6000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType pontus
    and not FactionIsLocal
    and Treasury < 3000
    and I_NumberOfSettlements pontus < 4
    and I_TurnNumber < 60
    
    console_command add_money pontus, 6000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia
    and not FactionIsLocal
    and Treasury < 3000
    and I_NumberOfSettlements armenia < 4
    and I_TurnNumber < 60
    
    console_command add_money armenia, 6000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType dacia
    and not FactionIsLocal
    and Treasury < 3000
    and I_NumberOfSettlements dacia < 4
    and I_TurnNumber < 40
    
    console_command add_money dacia, 6000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType scythia
    and not FactionIsLocal
    and Treasury < 3000
    and I_NumberOfSettlements scythia < 4
    and I_TurnNumber < 40
    
    console_command add_money scythia, 6000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType spain
    and not FactionIsLocal
    and Treasury < 3000
    and I_NumberOfSettlements spain < 4
    and I_TurnNumber < 40
    
    console_command add_money spain, 6000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace
    and not FactionIsLocal
    and Treasury < 3000
    and I_NumberOfSettlements thrace < 4
    and I_TurnNumber < 20
    
    console_command add_money thrace, 6000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType numidia
    and not FactionIsLocal
    and Treasury < 3000
    and I_NumberOfSettlements numidia < 4
    and I_TurnNumber < 20
    
    console_command add_money numidia, 6000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba
    and not FactionIsLocal
    and Treasury < 3000
    and I_NumberOfSettlements saba < 4
    and I_TurnNumber < 20
    
    console_command add_money saba, 6000
    
    end_monitor
    
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;Section 4b: City Income Bonus
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    
    monitor_event CharacterTurnStart FactionType egypt
    and AgentType = admiral
    and not FactionIsLocal
    console_command add_money egypt, 1200
    
    end_monitor
    
    
    ;Rome
    
    monitor_event FactionTurnStart FactionType seleucid
    and Treasury > 80000
    console_command add_money seleucid, -30000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType seleucid
    and not FactionIsLocal
    and I_NumberOfSettlements seleucid < 6
    
    console_command add_money seleucid, 1200
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType seleucid
    and not FactionIsLocal
    and I_NumberOfSettlements seleucid < 12
    and I_NumberOfSettlements seleucid > 5
    
    console_command add_money seleucid, 1000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType seleucid
    and not FactionIsLocal
    and I_NumberOfSettlements seleucid < 20
    and I_NumberOfSettlements seleucid > 11
    
    console_command add_money seleucid, 800
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType seleucid
    and not FactionIsLocal
    and I_NumberOfSettlements seleucid < 30
    and I_NumberOfSettlements seleucid > 19
    
    console_command add_money seleucid, 500
    
    end_monitor
    
    
    ;Saka
    
    monitor_event SettlementTurnStart FactionType pontus
    and not FactionIsLocal
    and Treasury < -3000
    
    console_command add_money pontus, 5000
    
    monitor_event SettlementTurnStart FactionType pontus
    and not FactionIsLocal
    and I_NumberOfSettlements pontus < 6
    
    console_command add_money parthia, 1800
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType pontus
    and not FactionIsLocal
    and I_NumberOfSettlements pontus < 12
    and I_NumberOfSettlements pontus > 5
    
    console_command add_money parthia, 1400
    end_monitor
    
    monitor_event SettlementTurnStart FactionType pontus
    and not FactionIsLocal
    and I_NumberOfSettlements pontus < 20
    and I_NumberOfSettlements pontus > 11
    
    console_command add_money pontus, 1200
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType pontus
    and not FactionIsLocal
    and I_NumberOfSettlements pontus < 30
    and I_NumberOfSettlements pontus > 19
    
    console_command add_money pontus, 1000
    
    end_monitor
    
    
    ;Arverni
    
    monitor_event SettlementTurnStart FactionType scythia
    and not FactionIsLocal
    and Treasury < -3000
    
    console_command add_money scythia, 5000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType scythia
    and not FactionIsLocal
    and I_NumberOfSettlements scythia < 4
    
    console_command add_money scythia, 1200
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType scythia
    and not FactionIsLocal
    and I_NumberOfSettlements scythia < 9
    and I_NumberOfSettlements scythia > 3
    
    console_command add_money scythia, 1000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType scythia
    and not FactionIsLocal
    and I_NumberOfSettlements scythia < 16
    and I_NumberOfSettlements scythia > 8
    
    console_command add_money scythia, 800
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType scythia
    and not FactionIsLocal
    and I_NumberOfSettlements scythia < 25
    and I_NumberOfSettlements scythia > 15
    
    console_command add_money scythia, 500
    
    end_monitor
    
    
    ;Saba
    
    monitor_event FactionTurnStart FactionType saba
    and Treasury > 100000
    console_command add_money saba, -30000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType saba
    and not FactionIsLocal
    and I_NumberOfSettlements saba < 6
    
    console_command add_money saba, 1200
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType saba
    and not FactionIsLocal
    and I_NumberOfSettlements saba < 12
    and I_NumberOfSettlements saba > 5
    
    console_command add_money saba, 1000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType saba
    and not FactionIsLocal
    and I_NumberOfSettlements saba < 20
    and I_NumberOfSettlements saba > 11
    
    console_command add_money saba, 800
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType saba
    and not FactionIsLocal
    and I_NumberOfSettlements saba < 30
    and I_NumberOfSettlements saba > 19
    
    console_command add_money saba, 500
    
    end_monitor
    
    
    ;Makedon
    
    monitor_event FactionTurnStart FactionType macedon
    and Treasury > 80000
    console_command add_money macedon, -30000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType macedon
    and not FactionIsLocal
    and I_NumberOfSettlements macedon < 6
    
    console_command add_money macedon, 1200
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType macedon
    and not FactionIsLocal
    and I_NumberOfSettlements macedon < 12
    and I_NumberOfSettlements macedon > 5
    
    console_command add_money macedon, 1000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType macedon
    and not FactionIsLocal
    and I_NumberOfSettlements macedon < 20
    and I_NumberOfSettlements macedon > 11
    
    console_command add_money macedon, 800
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType macedon
    and not FactionIsLocal
    and I_NumberOfSettlements macedon < 30
    and I_NumberOfSettlements macedon > 19
    
    console_command add_money macedon, 500
    
    end_monitor
    
    
    ;Ptolemies
    
    monitor_event FactionTurnStart FactionType numidia
    and Treasury > 80000
    console_command add_money numidia, -30000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType numidia
    and not FactionIsLocal
    and I_NumberOfSettlements numidia < 6
    
    console_command add_money numidia, 1200
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType numidia
    and not FactionIsLocal
    and I_NumberOfSettlements numidia < 12
    and I_NumberOfSettlements numidia > 5
    
    console_command add_money numidia, 1000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType numidia
    and not FactionIsLocal
    and I_NumberOfSettlements numidia < 20
    and I_NumberOfSettlements numidia > 11
    
    console_command add_money numidia, 800
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType numidia
    and not FactionIsLocal
    and I_NumberOfSettlements numidia < 30
    and I_NumberOfSettlements numidia > 19
    
    console_command add_money numidia, 500
    
    end_monitor
    
    
    ;Arche Seleukeia
    
    monitor_event FactionTurnStart FactionType romans_julii
    and Treasury > 80000
    console_command add_money romans_julii, -30000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_julii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_julii < 6
    
    console_command add_money romans_julii, 1200
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_julii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_julii < 12
    and I_NumberOfSettlements romans_julii > 5
    
    console_command add_money romans_julii, 1000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_julii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_julii < 20
    and I_NumberOfSettlements romans_julii > 11
    
    console_command add_money romans_julii, 800
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_julii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_julii < 30
    and I_NumberOfSettlements romans_julii > 19
    
    console_command add_money romans_julii, 500
    
    end_monitor
    
    
    ;Carthage
    
    monitor_event FactionTurnStart FactionType egypt
    and Treasury > 80000
    console_command add_money egypt, -30000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType egypt
    and not FactionIsLocal
    and I_NumberOfSettlements egypt < 6
    
    console_command add_money egypt, 1200
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType egypt
    and not FactionIsLocal
    and I_NumberOfSettlements egypt < 12
    and I_NumberOfSettlements egypt > 5
    
    console_command add_money egypt, 1000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType egypt
    and not FactionIsLocal
    and I_NumberOfSettlements egypt < 20
    and I_NumberOfSettlements egypt > 11
    
    console_command add_money egypt, 800
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType egypt
    and not FactionIsLocal
    and I_NumberOfSettlements egypt < 30
    and I_NumberOfSettlements egypt > 19
    
    console_command add_money egypt, 500
    
    end_monitor
    
    
    ;Parthians
    
    monitor_event SettlementTurnStart FactionType parthia
    and not FactionIsLocal
    and Treasury < -3000
    
    console_command add_money parthia, 5000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType parthia
    and not FactionIsLocal
    and I_NumberOfSettlements parthia < 6
    
    console_command add_money parthia, 1800
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType parthia
    and not FactionIsLocal
    and I_NumberOfSettlements parthia < 12
    and I_NumberOfSettlements parthia > 5
    
    console_command add_money parthia, 1400
    end_monitor
    
    monitor_event SettlementTurnStart FactionType parthia
    and not FactionIsLocal
    and I_NumberOfSettlements parthia < 20
    and I_NumberOfSettlements parthia > 11
    
    console_command add_money parthia, 1200
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType parthia
    and not FactionIsLocal
    and I_NumberOfSettlements parthia < 30
    and I_NumberOfSettlements parthia > 19
    
    console_command add_money parthia, 1000
    
    end_monitor
    
    
    ;Pontus
    
    monitor_event SettlementTurnStart FactionType carthage
    and not FactionIsLocal
    and Treasury < -3000
    
    console_command add_money carthage, 5000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType carthage
    and not FactionIsLocal
    and I_NumberOfSettlements carthage < 4
    
    console_command add_money carthage, 1600
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType carthage
    and not FactionIsLocal
    and I_NumberOfSettlements carthage < 9
    and I_NumberOfSettlements carthage > 3
    
    console_command add_money carthage, 1200
    end_monitor
    
    monitor_event SettlementTurnStart FactionType carthage
    and not FactionIsLocal
    and I_NumberOfSettlements carthage < 16
    and I_NumberOfSettlements carthage > 8
    
    console_command add_money carthage, 1000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType carthage
    and not FactionIsLocal
    and I_NumberOfSettlements carthage < 25
    and I_NumberOfSettlements carthage > 15
    
    console_command add_money carthage, 800
    
    end_monitor
    
    
    ;Aedui
    
    monitor_event SettlementTurnStart FactionType gauls
    and not FactionIsLocal
    and Treasury < -3000
    
    console_command add_money gauls, 5000
    
    monitor_event SettlementTurnStart FactionType gauls
    and not FactionIsLocal
    and I_NumberOfSettlements gauls < 4
    
    console_command add_money gauls, 1200
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType gauls
    and not FactionIsLocal
    and I_NumberOfSettlements gauls < 9
    and I_NumberOfSettlements gauls > 3
    
    console_command add_money gauls, 1000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType gauls
    and not FactionIsLocal
    and I_NumberOfSettlements gauls < 16
    and I_NumberOfSettlements gauls > 8
    
    console_command add_money gauls, 800
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType gauls
    and not FactionIsLocal
    and I_NumberOfSettlements gauls < 25
    and I_NumberOfSettlements gauls > 15
    
    console_command add_money gauls, 500
    
    end_monitor
    
    
    ;Sweboz
    
    monitor_event SettlementTurnStart FactionType germans
    and not FactionIsLocal
    and Treasury < -3000
    
    console_command add_money germans, 5000
    end_monitor
    
    monitor_event SettlementTurnStart FactionType germans
    and not FactionIsLocal
    and I_NumberOfSettlements germans < 4
    
    console_command add_money germans, 1200
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType germans
    and not FactionIsLocal
    and I_NumberOfSettlements germans < 9
    and I_NumberOfSettlements germans > 3
    
    console_command add_money germans, 1000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType germans
    and not FactionIsLocal
    and I_NumberOfSettlements germans < 16
    and I_NumberOfSettlements germans > 8
    
    console_command add_money germans, 800
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType germans
    and not FactionIsLocal
    and I_NumberOfSettlements germans < 25
    and I_NumberOfSettlements germans > 15
    
    console_command add_money germans, 500
    
    end_monitor
    
    
    ;Casse
    
    monitor_event SettlementTurnStart FactionType britons
    and not FactionIsLocal
    and Treasury < -3000
    
    console_command add_money britons, 5000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType britons
    and not FactionIsLocal
    and I_NumberOfSettlements britons < 4
    
    console_command add_money britons, 1200
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType britons
    and not FactionIsLocal
    and I_NumberOfSettlements britons < 9
    and I_NumberOfSettlements britons > 3
    
    console_command add_money britons, 1000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType britons
    and not FactionIsLocal
    and I_NumberOfSettlements britons < 16
    and I_NumberOfSettlements britons > 8
    
    console_command add_money britons, 800
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType britons
    and not FactionIsLocal
    and I_NumberOfSettlements britons < 25
    and I_NumberOfSettlements britons > 15
    
    console_command add_money britons, 500
    
    end_monitor
    
    
    ;Hayasdan
    
    monitor_event SettlementTurnStart FactionType romans_scipii
    and not FactionIsLocal
    and Treasury < -3000
    
    console_command add_money romans_scipii, 5000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_scipii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_scipii < 6
    
    console_command add_money romans_scipii, 1200
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_scipii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_scipii < 12
    and I_NumberOfSettlements romans_scipii > 5
    
    console_command add_money romans_scipii, 1000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_scipii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_scipii < 20
    and I_NumberOfSettlements romans_scipii > 11
    
    console_command add_money romans_scipii, 800
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_scipii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_scipii < 30
    and I_NumberOfSettlements romans_scipii > 19
    
    console_command add_money romans_scipii, 500
    
    end_monitor
    
    
    ;Getai
    
    monitor_event SettlementTurnStart FactionType dacia
    and not FactionIsLocal
    and Treasury < -3000
    
    console_command add_money dacia, 5000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType dacia
    and not FactionIsLocal
    and I_NumberOfSettlements dacia < 4
    
    console_command add_money dacia, 1600
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType dacia
    and not FactionIsLocal
    and I_NumberOfSettlements dacia < 9
    and I_NumberOfSettlements dacia > 3
    
    console_command add_money dacia, 1200
    end_monitor
    
    monitor_event SettlementTurnStart FactionType dacia
    and not FactionIsLocal
    and I_NumberOfSettlements dacia < 16
    and I_NumberOfSettlements dacia > 8
    
    console_command add_money dacia, 1000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType dacia
    and not FactionIsLocal
    and I_NumberOfSettlements dacia < 25
    and I_NumberOfSettlements dacia > 15
    
    console_command add_money dacia, 800
    
    end_monitor
    
    
    ;Koinon Hellenon
    
    monitor_event FactionTurnStart FactionType greek_cities
    and Treasury > 80000
    console_command add_money greek_cities, -30000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType greek_cities
    and not FactionIsLocal
    and I_NumberOfSettlements greek_cities < 6
    
    console_command add_money greek_cities, 1200
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType greek_cities
    and not FactionIsLocal
    and I_NumberOfSettlements greek_cities < 12
    and I_NumberOfSettlements greek_cities > 5
    
    console_command add_money greek_cities, 1000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType greek_cities
    and not FactionIsLocal
    and I_NumberOfSettlements greek_cities < 20
    and I_NumberOfSettlements greek_cities > 11
    
    console_command add_money greek_cities, 800
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType greek_cities
    and not FactionIsLocal
    and I_NumberOfSettlements greek_cities < 30
    and I_NumberOfSettlements greek_cities > 19
    
    console_command add_money greek_cities, 500
    
    end_monitor
    
    
    ;Baktria
    
    monitor_event FactionTurnStart FactionType romans_brutii
    and Treasury > 80000
    console_command add_money romans_brutii, -30000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_brutii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_brutii < 4
    
    console_command add_money romans_brutii, 1200
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_brutii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_brutii < 9
    and I_NumberOfSettlements romans_brutii > 3
    
    console_command add_money romans_brutii, 1000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_brutii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_brutii < 16
    and I_NumberOfSettlements romans_brutii > 8
    
    console_command add_money romans_brutii, 800
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_brutii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_brutii < 25
    and I_NumberOfSettlements romans_brutii > 15
    
    console_command add_money romans_brutii, 500
    
    end_monitor
    
    
    ;Sarmatians
    
    monitor_event SettlementTurnStart FactionType armenia
    and not FactionIsLocal
    and Treasury < -3000
    
    console_command add_money armenia, 5000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType armenia
    and not FactionIsLocal
    and I_NumberOfSettlements armenia < 6
    
    console_command add_money armenia, 1800
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType armenia
    and not FactionIsLocal
    and I_NumberOfSettlements armenia < 12
    and I_NumberOfSettlements armenia > 5
    
    console_command add_money armenia, 1400
    end_monitor
    
    monitor_event SettlementTurnStart FactionType armenia
    and not FactionIsLocal
    and I_NumberOfSettlements armenia < 20
    and I_NumberOfSettlements armenia > 11
    
    console_command add_money armenia, 1200
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType armenia
    and not FactionIsLocal
    and I_NumberOfSettlements armenia < 30
    and I_NumberOfSettlements armenia > 19
    
    console_command add_money armenia, 1000
    
    end_monitor
    
    
    ;Lusotanians
    
    monitor_event SettlementTurnStart FactionType spain
    and not FactionIsLocal
    and Treasury < -3000
    
    console_command add_money spain, 5000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType spain
    and not FactionIsLocal
    and I_NumberOfSettlements spain < 4
    
    console_command add_money spain, 1200
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType spain
    and not FactionIsLocal
    and I_NumberOfSettlements spain < 9
    and I_NumberOfSettlements spain > 3
    
    console_command add_money spain, 1000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType spain
    and not FactionIsLocal
    and I_NumberOfSettlements spain < 16
    and I_NumberOfSettlements spain > 8
    
    console_command add_money spain, 800
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType spain
    and not FactionIsLocal
    and I_NumberOfSettlements spain < 25
    and I_NumberOfSettlements spain > 15
    
    console_command add_money spain, 500
    
    end_monitor
    
    
    ;Epirus
    
    monitor_event FactionTurnStart FactionType thrace
    and Treasury > 80000
    console_command add_money thrace, -30000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType thrace
    and not FactionIsLocal
    and I_NumberOfSettlements thrace < 6
    
    console_command add_money thrace, 1200
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType thrace
    and not FactionIsLocal
    and I_NumberOfSettlements thrace < 12
    and I_NumberOfSettlements thrace > 5
    
    console_command add_money thrace, 1000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType thrace
    and not FactionIsLocal
    and I_NumberOfSettlements thrace < 20
    and I_NumberOfSettlements thrace > 11
    
    console_command add_money thrace, 800
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType thrace
    and not FactionIsLocal
    and I_NumberOfSettlements thrace < 30
    and I_NumberOfSettlements thrace > 19
    
    console_command add_money thrace, 500
    
    end_monitor
    Last edited by The Errant; 04-23-2007 at 19:07.

    "If you listen, carefully. You can hear the Gods laughing."

    Last words of Emperor Commodus. From "The Fall of the Roman Empire".

  2. #2
    Closet Celtophile Member Redmeth's Avatar
    Join Date
    Mar 2007
    Location
    Bucharest, Romania
    Posts
    3,740

    Default Re: Fixing the AI money script (preliminary tests)

    Further testing revealed that 2900 I think is the best sum for balance between strong enough and too strong Eleutheroi the problem is that the slave faction favors full-stacking cities in Central Europe first i see stopping the Sweboz and Gallic expansion.
    And i changed these values
    Code:
    monitor_event FactionTurnStart FactionType romans_julii
    and not FactionIsLocal
    and Treasury < 3000
    and I_NumberOfSettlements romans_julii < 5 (from 4)
    and I_TurnNumber < 40  (from 20)
    
    console_command add_money romans_julii, 6000
    
    end_monitor
    the move from <4 to <5 is made to include the Sauromatae who are usually so weak that they fold when Parthia (those Grivpanhar also help) even tries to look at them.and 10 years iof "grace" period is better.
    Maybe implementing this help when the treasury goes below 0 will help but for a limited period and the "rough start" bonus already does because later when you could be fighting them this extra bonus for going into debt will just help them spawn more armies and we are trying to combat this also...
    Pictures coming later, today or tomorrow.
    Last edited by Redmeth; 04-23-2007 at 11:46.

  3. #3

    Default Re: Fixing the AI money script (preliminary tests)

    Do you have a new file with these changes?

  4. #4
    Closet Celtophile Member Redmeth's Avatar
    Join Date
    Mar 2007
    Location
    Bucharest, Romania
    Posts
    3,740

    Default Re: Fixing the AI money script (preliminary tests)

    Dan_Grr, I already posted about 3 scripts and soon I'll release my "final" script because I'm really using a lot of time on this, so I'll post it tonight I think and then leave it be for a week or more so people can test it and post pics and impressions and after seeing how people who tested it do and say I might change it more.
    And I'm also against differentiating between steppe, barbarian and civilized factions, because historically not all factions had the same potential and a "perfect balance" is not the objective but rather making sure they do something and are at least a challenge and the big factions do not get out of hand making the game too boring. The dev team said that the Sweboz and the Getai, or Sauromatae are not supposed to be big "players" on the scene for the first 20-30 years.
    EDIT: reached 260 and it's going well the Eleutheroi have strongly garrisoned some but not all the provinces, the Sauromatae have made some moves the Sweboz and the Getai seem promising the next step would be after 252 when the stepped bonuses will kick in but I have a good feeling about this setup. The first 20 years of each game are generally for building and developing an economy. I will say again that it's normal for some to be poorer than others that was the reality, it would not be normal for all factions to be equally challenging, equally rich and for all to hold relatively the same number of provinces. What they must NOT do is either stand doing nothing for more than 2 max 3 decades or become huge beasts that churn out without ever stopping to catch a breath great numbers of troops just to throw at you.
    Here is the latest version and hopefully I won't update every day, please try it and tell me how good it is . Just joking you can say whatever as long as you use it and thus help me test it.
    LINK HERE:http://www.axifile.com/?4934956
    Last edited by Redmeth; 04-23-2007 at 14:31.

  5. #5
    Questor of AI revenue. Member The Errant's Avatar
    Join Date
    Feb 2007
    Location
    Limbo. Aka. the Empty Hold.
    Posts
    378

    Default Re: Fixing the AI money script (preliminary tests)

    Quote Originally Posted by Redmeth
    Further testing revealed that 2900 I think is the best sum for balance between strong enough and too strong Eleutheroi the problem is that the slave faction favors full-stacking cities in Central Europe first i see stopping the Sweboz and Gallic expansion.
    And i changed these values
    Code:
    monitor_event FactionTurnStart FactionType romans_julii
    and not FactionIsLocal
    and Treasury < 3000
    and I_NumberOfSettlements romans_julii < 5 (from 4)
    and I_TurnNumber < 40  (from 20)
    
    console_command add_money romans_julii, 6000
    
    end_monitor
    the move from <4 to <5 is made to include the Sauromatae who are usually so weak that they fold when Parthia even tries to look at them.and 10 years iof "grace" period is better.
    Maybe implementing this help when the treasury goes below 0 will help but for a limited period and the "rough start" bonus already does because later when you could be fighting them this extra bonus for going into debt will just help them spawn more armies and we are trying to combat this also...
    Pictures coming later, today or tomorrow.
    Basically it's just another approach on the infrastructure bonus. It's supposed to help those faction that tend to get steamrolled by their larger and more powerful neighbors. The Carthies, Ptolies, Romans, AS and others can after some basic improvements to their infrastructure turn some hefty profits. With port development and mining centers, fielding large elite stacks isn't much of a problem.

    The Steppe factions on the other hand have the hardest economy in the game. Even fully developed their infrastructure sucks! To get decent infrastructure they have to conquer develped settlements. Their better troops aren't cheap either.
    The Barbarian factions lack advanced roads, high level markets, mining centers and highly advanced ports. This piece of script is supposed to help them overcome that.
    If it dosen't work, I'll just add a time conditional to the script. It's not like this script is the "final" version. It will get revised and re-revised lots of times before it's finished I think.

    Btw. I'll up the Eleutheroi settlement bonus to 2900 as you suggested to see if it has any impact on their development. Eminos64 was exploring reagional conditionals a while back. If it checks out we might be able to limit the fully stacked Eleutheroi cities with über generals hampering faction progression.

    "If you listen, carefully. You can hear the Gods laughing."

    Last words of Emperor Commodus. From "The Fall of the Roman Empire".

  6. #6

    Default Re: Fixing the AI money script (preliminary tests)

    I did notice people were saying that 230 is the usual time that most factions explode due to the Rebel generals dieing a peaceful death opening the route for factions to takeover those settlements. Since we are talking about the script anyway...would there be a way for use to spawn generals in those rebel settlements? I know some people would be against it but for those of us that want to play for a long time this maybe an optional add on that could keep superpowers from forming to early. I don't even know if it is possible but for those of us that want to play historically it would be a great boon to give us a longer game before it gets totally ahistoric. I'm just throwing it out there as something else we maybe can look into to force the hand of the AI to play histoically.
    Last edited by Wolfshart; 04-23-2007 at 16:03.
    Slainte!!

  7. #7

    Default Re: Fixing the AI money script (preliminary tests)

    I've made a clean RTW, BI and EB installation. I've installed the Watchman's mod and MAA's city mod. Now Im going to try yours out, I assume there isn't going to be any conflict because neither Watchman and MAA messes with the EBBS_SCRIPT.txt... I think.

  8. #8

    Default Re: Fixing the AI money script (preliminary tests)

    The Errant, I just copied your, script from post 111 and want to ask something: monitor_event SettlementTurnStart FactionType pontus
    and not FactionIsLocal
    and I_NumberOfSettlements parthia < 13
    and I_NumberOfSettlements parthia > 6

    console_command add_money parthia, 1500
    end_monitor

    Is it suposed to by like this or is it an error? the same for Armenia, Spaine and every one who has when in red, (stated pontus), roman_brutii (have spain where parthia is abow), egypt (has numidia at that place). The factions are the internal ones.
    Last edited by Ower; 04-23-2007 at 18:18.

  9. #9
    Questor of AI revenue. Member The Errant's Avatar
    Join Date
    Feb 2007
    Location
    Limbo. Aka. the Empty Hold.
    Posts
    378

    Default Re: Fixing the AI money script (preliminary tests)

    Quote Originally Posted by Ower
    The Errant, I just copied your, script from post 111 and want to ask something: monitor_event SettlementTurnStart FactionType pontus
    and not FactionIsLocal
    and I_NumberOfSettlements parthia < 13
    and I_NumberOfSettlements parthia > 6

    console_command add_money parthia, 1500
    end_monitor

    Is it suposed to by like this or is it an error? the same for Armenia, Spaine and every one who has when in red, (stated pontus), roman_brutii (have spain where parthia is abow), egypt (has numidia at that place). The factions are the internal ones.
    Oops! Major fuckup on my part. Fixed the typing errors in the code and it should be working now. Atleast the latest code a couple posts up. Looks like I'm going to have to start all ower again with Casse to test it though. Damn!

    "If you listen, carefully. You can hear the Gods laughing."

    Last words of Emperor Commodus. From "The Fall of the Roman Empire".

  10. #10

    Default Re: Fixing the AI money script (preliminary tests)

    No problem, something like that can hapen ju just copie it and forgot to chang somewehre, just a mather of thinkong and reading of what you change, not just copiing, from others. And besides i made some modifications as well, just wanted to know if its a error or what, i changet it in a copie file, and left your so, till I would get an ansewr

  11. #11

    Default Re: Fixing the AI money script (preliminary tests)

    Eh, just a small correction, it's not Spain, it's Lusotanna.

  12. #12
    Closet Celtophile Member Redmeth's Avatar
    Join Date
    Mar 2007
    Location
    Bucharest, Romania
    Posts
    3,740

    Default Re: Fixing the AI money script (preliminary tests)

    I'm posting pictures from my ongoing tests using the Casse and my latest script version that can be found here:
    http://www.axifile.com/?4934956
    More details in the posts in the previous pages
    270:

    Sorry for the bad shot I wasn't careful with the positioning of the mouse
    260:

    250:

    240:

    230:

    220:

    As you can see by 250BC all the factions even the Sauromatae and Saka are moving the Getai are going strong but the Eleutheroi towns are pretty well defended so the AI expansion is not that fast, I'm satisfied with how things are progressing and will post more screenshots in this same post as the game continues. In 252 BC the stepped bonus kicked in and I believe the Seleucids will lose a few provinces in the next decade.
    EDIT: Reached 240, still have doubts about the Eleutheroi, they seem a bit strong in Britain i fought 2/3 a stack of cwmyr and a couple of stacks of mixed armies and in one conquered city i saw an extensive small trade port upgrade so they have a lot of money, on the other hand the strong rebels are ok for a slow and more realistic expansion, but further testing will need to be done, I am content with the rest though, maybe 2800 or even 2700 a turn for the rebels would be better but I'll test this further first.
    I'm really undecided about the Eleutheroi bonus so I'm asking the people who are testing my script for their opinion should I go lower with the bonus? And if any members of the EB team are reading this is there any general consensus regarding the bonus for the Eleutheroi, or if they should be strong or less strong in order for the factions to expand a bit faster?
    EDIT2:220 now and I think another step should be added as the Selucids are nearing 40 provinces I think and just ">25" is not enough to convey their empire so let me see what I can tweak the rest is pretty good and the faction expansion is great.
    Last edited by Redmeth; 04-24-2007 at 22:26.

  13. #13
    Guest Dayve's Avatar
    Join Date
    Oct 2005
    Location
    England
    Posts
    1,659

    Default Re: Fixing the AI money script (preliminary tests)

    Quote Originally Posted by The Errant
    Oops! Major fuckup on my part. Fixed the typing errors in the code and it should be working now. Atleast the latest code a couple posts up. Looks like I'm going to have to start all ower again with Casse to test it though. Damn!
    You know i got banned from these forums (not the EB part, the M2TW ones) by a mod for saying an 'offensive' word much weaker than fuck, and demoted to a junior member, so now i can only post once every 22763732674326746 seconds...

  14. #14
    Now sporting a classic avatar! Member fallen851's Avatar
    Join Date
    Oct 2005
    Posts
    799

    Default Re: Fixing the AI money script (preliminary tests)

    Quote Originally Posted by Dayve
    You know i got banned from these forums (not the EB part, the M2TW ones) by a mod for saying an 'offensive' word much weaker than fuck, and demoted to a junior member, so now i can only post once every 22763732674326746 seconds...
    Owned.
    "It's true that when it's looked at isolated, Rome II is a good game... but every time I sit down to play it, every battle, through every turn, I see how Rome I was better. Not unanimously, but ultimately." - Dr. Sane

    http://www.youtube.com/watch?v=L6eaBtzqqFA#t=1h15m33s

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO