Results 1 to 23 of 23

Thread: Suggestions for further releases

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #14

    Default Re: Suggestions for further releases

    Ok, I will post my version of the script, give a little explanation and some other ideas.
    Code:
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;Section 4: Money Assistance
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;Section 4a: Difficult Start Help
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    monitor_event FactionTurnStart FactionType romans_julii
    and not FactionIsLocal
    and Treasury < 0
    and Treasury > -5001
    and RandomPercent < 20
    
    console_command add_money romans_julii, 15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_julii
    and not FactionIsLocal
    and Treasury < -5000
    and Treasury > -10001
    and RandomPercent < 30
    
    console_command add_money romans_julii, 20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_julii
    and not FactionIsLocal
    and Treasury < -10000
    and RandomPercent < 40
    
    console_command add_money romans_julii, 25000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_julii
    and not FactionIsLocal
    and Treasury < -20000
    and RandomPercent < 50
    
    console_command add_money romans_julii, 35000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii
    and not FactionIsLocal
    and Treasury < 0
    and Treasury > -5001
    and RandomPercent < 20
    
    console_command add_money romans_scipii, 15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii
    and not FactionIsLocal
    and Treasury < -5000
    and Treasury > -10001
    and RandomPercent < 30
    
    console_command add_money romans_scipii, 20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii
    and not FactionIsLocal
    and Treasury < -10000
    and RandomPercent < 40
    
    console_command add_money romans_scipii, 25000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii
    and not FactionIsLocal
    and Treasury < -20000
    and RandomPercent < 50
    
    console_command add_money romans_scipii, 35000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii
    and not FactionIsLocal
    and Treasury < 0
    and Treasury > -5001
    and RandomPercent < 20
    
    console_command add_money romans_brutii, 15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii
    and not FactionIsLocal
    and Treasury < -5000
    and Treasury > -10001
    and RandomPercent < 30
    
    console_command add_money romans_brutii, 20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii
    and not FactionIsLocal
    and Treasury < -10000
    and RandomPercent < 40
    
    console_command add_money romans_brutii, 25000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii
    and not FactionIsLocal
    and Treasury < -20000
    and RandomPercent < 50
    
    console_command add_money romans_brutii, 35000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt
    and not FactionIsLocal
    and Treasury < 0
    and Treasury > -5001
    and RandomPercent < 20
    
    console_command add_money egypt, 15000
    
    end_monitor
    
    
    monitor_event FactionTurnStart FactionType egypt
    and not FactionIsLocal
    and Treasury < -5000
    and Treasury > -10001
    and RandomPercent < 30
    
    console_command add_money egypt, 20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt
    and not FactionIsLocal
    and Treasury < -10000
    and RandomPercent < 40
    
    console_command add_money egypt, 25000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt
    and not FactionIsLocal
    and Treasury < -20000
    and RandomPercent < 50
    
    console_command add_money egypt, 35000
    
    end_monitor
    
    
    monitor_event FactionTurnStart FactionType seleucid
    and not FactionIsLocal
    and Treasury < 0
    and Treasury > -5001
    and RandomPercent < 20
    
    console_command add_money seleucid, 15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid
    and not FactionIsLocal
    and Treasury < -5000
    and Treasury > -10001
    and RandomPercent < 30
    
    console_command add_money seleucid, 20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid
    and not FactionIsLocal
    and Treasury < -10000
    and RandomPercent < 40
    
    console_command add_money seleucid, 25000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid
    and not FactionIsLocal
    and Treasury < -20000
    and RandomPercent < 50
    
    console_command add_money seleucid, 35000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage
    and not FactionIsLocal
    and Treasury < 0
    and Treasury > -5001
    and RandomPercent < 20
    
    console_command add_money carthage, 15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage
    and not FactionIsLocal
    and Treasury < -5000
    and Treasury > -10001
    and RandomPercent < 30
    
    console_command add_money carthage, 20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage
    and not FactionIsLocal
    and Treasury < -10000
    and RandomPercent < 40
    
    console_command add_money carthage, 25000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage
    and not FactionIsLocal
    and Treasury < -20000
    and RandomPercent < 50
    
    console_command add_money carthage, 35000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia
    and not FactionIsLocal
    and Treasury < 0
    and Treasury > -5001
    and RandomPercent < 20
    
    console_command add_money parthia, 15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia
    and not FactionIsLocal
    and Treasury < -5000
    and Treasury > -10001
    and RandomPercent < 30
    
    console_command add_money parthia, 20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia
    and not FactionIsLocal
    and Treasury < -10000
    and RandomPercent < 40
    
    console_command add_money parthia, 25000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia
    and not FactionIsLocal
    and Treasury < -20000
    and RandomPercent < 50
    
    console_command add_money parthia, 35000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType gauls
    and not FactionIsLocal
    and Treasury < 0
    and Treasury > -5001
    and RandomPercent < 20
    
    console_command add_money gauls, 15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType gauls
    and not FactionIsLocal
    and Treasury < -5000
    and Treasury > -10001
    and RandomPercent < 30
    
    console_command add_money gauls, 20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType gauls
    and not FactionIsLocal
    and Treasury < -10000
    and RandomPercent < 40
    
    console_command add_money gauls, 25000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType gauls
    and not FactionIsLocal
    and Treasury < -20000
    and RandomPercent < 50
    
    console_command add_money gauls, 35000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans
    and not FactionIsLocal
    and Treasury < 0
    and Treasury > -5001
    and RandomPercent < 20
    
    console_command add_money germans, 15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans
    and not FactionIsLocal
    and Treasury < -5000
    and Treasury > -10001
    and RandomPercent < 30
    
    console_command add_money germans, 20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans
    and not FactionIsLocal
    and Treasury < -10000
    and RandomPercent < 40
    
    console_command add_money germans, 25000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans
    and not FactionIsLocal
    and Treasury < -20000
    and RandomPercent < 50
    
    console_command add_money germans, 35000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType britons
    and not FactionIsLocal
    and Treasury < 0
    and Treasury > -5001
    and RandomPercent < 20
    
    console_command add_money britons, 15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType britons
    and not FactionIsLocal
    and Treasury < -5000
    and Treasury > -10001
    and RandomPercent < 30
    
    console_command add_money britons, 20000
    
    end_monitor
    
    
    monitor_event FactionTurnStart FactionType britons
    and not FactionIsLocal
    and Treasury < -10000
    and RandomPercent < 40
    
    console_command add_money britons, 25000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType britons
    and not FactionIsLocal
    and Treasury < -20000
    and RandomPercent < 50
    
    console_command add_money britons, 35000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities
    and not FactionIsLocal
    and Treasury < 0
    and Treasury > -5001
    and RandomPercent < 20
    
    console_command add_money greek_cities, 15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities
    and not FactionIsLocal
    and Treasury < -5000
    and Treasury > -10001
    and RandomPercent < 30
    
    console_command add_money greek_cities, 20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities
    and not FactionIsLocal
    and Treasury < -10000
    and RandomPercent < 40
    
    console_command add_money greek_cities, 25000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities
    and not FactionIsLocal
    and Treasury < -20000
    and RandomPercent < 50
    
    console_command add_money greek_cities, 35000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType macedon
    and not FactionIsLocal
    and Treasury < 0
    and Treasury > -5001
    and RandomPercent < 20
    
    console_command add_money macedon, 15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType macedon
    and not FactionIsLocal
    and Treasury < -5000
    and Treasury > -10001
    and RandomPercent < 30
    
    console_command add_money macedon, 20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType macedon
    and not FactionIsLocal
    and Treasury < -10000
    and RandomPercent < 40
    
    console_command add_money macedon, 25000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType macedon
    and not FactionIsLocal
    and Treasury < -20000
    and RandomPercent < 50
    
    console_command add_money macedon, 35000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType pontus
    and not FactionIsLocal
    and Treasury < 0
    and Treasury > -5001
    and RandomPercent < 20
    
    console_command add_money pontus, 15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType pontus
    and not FactionIsLocal
    and Treasury < -5000
    and Treasury > -10001
    and RandomPercent < 30
    
    console_command add_money pontus, 20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType pontus
    and not FactionIsLocal
    and Treasury < -10000
    and RandomPercent < 40
    
    console_command add_money pontus, 25000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType pontus
    and not FactionIsLocal
    and Treasury < -20000
    and RandomPercent < 50
    
    console_command add_money pontus, 35000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia
    and not FactionIsLocal
    and Treasury < 0
    and Treasury > -5001
    and RandomPercent < 20
    
    console_command add_money armenia, 15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia
    and not FactionIsLocal
    and Treasury < -5000
    and Treasury > -10001
    and RandomPercent < 30
    
    console_command add_money armenia, 20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia
    and not FactionIsLocal
    and Treasury < -10000
    and RandomPercent < 40
    
    console_command add_money armenia, 25000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia
    and not FactionIsLocal
    and Treasury < -20000
    and RandomPercent < 50
    
    console_command add_money armenia, 35000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType dacia
    and not FactionIsLocal
    and Treasury < 0
    and Treasury > -5001
    and RandomPercent < 20
    
    console_command add_money dacia, 15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType dacia
    and not FactionIsLocal
    and Treasury < -5000
    and Treasury > -10001
    and RandomPercent < 30
    
    console_command add_money dacia, 20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType dacia
    and not FactionIsLocal
    and Treasury < -10000
    and RandomPercent < 40
    
    console_command add_money dacia, 25000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType dacia
    and not FactionIsLocal
    and Treasury < -20000
    and RandomPercent < 50
    
    console_command add_money dacia, 35000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType scythia
    and not FactionIsLocal
    and Treasury < 0
    and Treasury > -5001
    and RandomPercent < 20
    
    console_command add_money scythia, 15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType scythia
    and not FactionIsLocal
    and Treasury < -5000
    and Treasury > -10001
    and RandomPercent < 30
    
    console_command add_money scythia, 20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType scythia
    and not FactionIsLocal
    and Treasury < -10000
    and RandomPercent < 40
    
    console_command add_money scythia, 25000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType scythia
    and not FactionIsLocal
    and Treasury < -20000
    and RandomPercent < 50
    
    console_command add_money scythia, 35000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType spain
    and not FactionIsLocal
    and Treasury < 0
    and Treasury > -5001
    and RandomPercent < 20
    
    console_command add_money spain, 15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType spain
    and not FactionIsLocal
    and Treasury < -5000
    and Treasury > -10001
    and RandomPercent < 30
    
    console_command add_money spain, 20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType spain
    and not FactionIsLocal
    and Treasury < -10000
    and RandomPercent < 40
    
    console_command add_money spain, 25000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType spain
    and not FactionIsLocal
    and Treasury < -20000
    and RandomPercent < 50
    
    console_command add_money spain, 35000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace
    and not FactionIsLocal
    and Treasury < 0
    and Treasury > -5001
    and RandomPercent < 20
    
    console_command add_money thrace, 15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace
    and not FactionIsLocal
    and Treasury < -5000
    and Treasury > -10001
    and RandomPercent < 30
    
    console_command add_money thrace, 20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace
    and not FactionIsLocal
    and Treasury < -10000
    and RandomPercent < 40
    
    console_command add_money thrace, 25000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace
    and not FactionIsLocal
    and Treasury < -20000
    and RandomPercent < 50
    
    console_command add_money thrace, 35000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType numidia
    and not FactionIsLocal
    and Treasury < 0
    and Treasury > -5001
    and RandomPercent < 20
    
    console_command add_money numidia, 15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType numidia
    and not FactionIsLocal
    and Treasury < -5000
    and Treasury > -10001
    and RandomPercent < 30
    
    console_command add_money numidia, 20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType numidia
    and not FactionIsLocal
    and Treasury < -10000
    and RandomPercent < 40
    
    console_command add_money numidia, 25000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType numidia
    and not FactionIsLocal
    and Treasury < -20000
    and RandomPercent < 50
    
    console_command add_money numidia, 35000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba
    and not FactionIsLocal
    and Treasury < 0
    and Treasury > -5001
    and RandomPercent < 20
    
    console_command add_money saba, 15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba
    and not FactionIsLocal
    and Treasury < -5000
    and Treasury > -10001
    and RandomPercent < 30
    
    console_command add_money saba, 20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba
    and not FactionIsLocal
    and Treasury < -10000
    and RandomPercent < 40
    
    console_command add_money saba, 25000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba
    and not FactionIsLocal
    and Treasury < -20000
    and RandomPercent < 50
    
    console_command add_money saba, 35000
    
    end_monitor
    
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;Section 4b: City Income Bonus
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    
    monitor_event CharacterTurnStart FactionType egypt ; Carthage fleet upkeep discount for the AI
    and AgentType = admiral
    and not FactionIsLocal
    console_command add_money egypt, 900
    end_monitor
    
    ; Saka
    
    monitor_event CharacterTurnStart FactionType pontus ; Spy upkeep discount for the AI
    and AgentType = spy
    and not FactionIsLocal
    console_command add_money pontus, 100 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType pontus ; Assassin upkeep discount for the AI
    and AgentType = assassin
    and not FactionIsLocal
    console_command add_money pontus, 200 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType pontus ; Diplomat upkeep discount for the AI
    and AgentType = diplomat
    and not FactionIsLocal
    console_command add_money pontus, 50 
    end_monitor
    
    monitor_event FactionTurnStart FactionType pontus ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements pontus > 30
    and RandomPercent < 60
    
    console_command add_money pontus, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType pontus ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements pontus > 25
    and RandomPercent < 50
    
    console_command add_money pontus, -15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType pontus ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements pontus > 20
    and RandomPercent < 40
    
    console_command add_money pontus, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType pontus ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements pontus > 15
    and RandomPercent < 25
    
    console_command add_money pontus, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType pontus ; Money penalty for the player and the AI
    and Treasury > 150000
    
    console_command add_money pontus, -80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType pontus ; Money penalty for the player and the AI
    and Treasury > 100000
    and RandomPercent < 80
    
    console_command add_money pontus, -40000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType pontus ; Money penalty for the player and the AI
    and Treasury > 60000
    and RandomPercent < 65
    
    console_command add_money pontus, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType pontus ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 40000
    and RandomPercent < 50
    
    console_command add_money pontus, -12500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType pontus ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 25000
    and RandomPercent < 35
    
    console_command add_money pontus, -7500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType pontus ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 15000
    and RandomPercent < 25
    
    console_command add_money pontus, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType pontus ; Money burst for the AI [Empire]
    and not FactionIsLocal
    and I_NumberOfSettlements pontus > 24
    and Treasury < 65000
    and RandomPercent < 5
    
    console_command add_money pontus, 120000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType pontus ; Money burst for the AI [Very Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements pontus < 25
    and I_NumberOfSettlements pontus > 15
    and Treasury < 55000
    and RandomPercent < 10
    
    console_command add_money pontus, 110000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType pontus ; Money burst for the AI [Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements pontus < 16
    and I_NumberOfSettlements pontus > 9
    and Treasury < 35000
    and RandomPercent < 15
    
    console_command add_money pontus, 100000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType pontus ; Money burst for the AI [Medium-sized Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements pontus < 10
    and I_NumberOfSettlements pontus > 4
    and Treasury < 25000
    and RandomPercent < 20
    
    console_command add_money pontus, 90000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType pontus ; Money burst for the AI [Small Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements pontus < 5
    and Treasury < 15000
    and RandomPercent < 25
    
    console_command add_money pontus, 80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType pontus
    and not FactionIsLocal
    and I_TurnNumber = 2
    
    console_command add_money pontus, 50000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType pontus
    and not FactionIsLocal
    and I_TurnNumber = 4
    
    console_command add_money pontus, 60000
    
    end_monitor
    
    
    monitor_event FactionTurnStart FactionType pontus
    and not FactionIsLocal
    and I_TurnNumber = 7
    
    console_command add_money pontus, 70000
    
    end_monitor
    
    ; Pontos
    
    monitor_event CharacterTurnStart FactionType carthage ; Spy upkeep discount for the AI
    and AgentType = spy
    and not FactionIsLocal
    console_command add_money carthage, 100 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType carthage ; Assassin upkeep discount for the AI
    and AgentType = assassin
    and not FactionIsLocal
    console_command add_money carthage, 200 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType carthage ; Diplomat upkeep discount for the AI
    and AgentType = diplomat
    and not FactionIsLocal
    console_command add_money carthage, 50 
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements carthage > 30
    and RandomPercent < 60
    
    console_command add_money carthage, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements carthage > 25
    and RandomPercent < 50
    
    console_command add_money carthage, -15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements carthage > 20
    and RandomPercent < 40
    
    console_command add_money carthage, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements carthage > 15
    and RandomPercent < 25
    
    console_command add_money carthage, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage ; Money penalty for the player and the AI
    and Treasury > 150000
    
    console_command add_money carthage, -80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage ; Money penalty for the player and the AI
    and Treasury > 100000
    and RandomPercent < 80
    
    console_command add_money carthage, -40000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage ; Money penalty for the player and the AI
    and Treasury > 60000
    and RandomPercent < 65
    
    console_command add_money carthage, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 40000
    and RandomPercent < 50
    
    console_command add_money carthage, -12500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 25000
    and RandomPercent < 35
    
    console_command add_money carthage, -7500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 15000
    and RandomPercent < 25
    
    console_command add_money carthage, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage ; Money burst for the AI [Empire]
    and not FactionIsLocal
    and I_NumberOfSettlements carthage > 24
    and Treasury < 65000
    and RandomPercent < 5
    
    console_command add_money carthage, 90000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage ; Money burst for the AI [Very Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements carthage < 25
    and I_NumberOfSettlements carthage > 15
    and Treasury < 55000
    and RandomPercent < 10
    
    console_command add_money carthage, 80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage ; Money burst for the AI [Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements carthage < 16
    and I_NumberOfSettlements carthage > 9
    and Treasury < 35000
    and RandomPercent < 15
    
    console_command add_money carthage, 70000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage ; Money burst for the AI [Medium-sized Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements carthage < 10
    and I_NumberOfSettlements carthage > 4
    and Treasury < 25000
    and RandomPercent < 20
    
    console_command add_money carthage, 60000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage ; Money burst for the AI [Small Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements carthage < 5
    and Treasury < 15000
    and RandomPercent < 25
    
    console_command add_money carthage, 50000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage
    and not FactionIsLocal
    and I_TurnNumber = 2
    
    console_command add_money carthage, 50000
    
    end_monitor
    
    
    ; Sweboz
    
    monitor_event CharacterTurnStart FactionType germans ; Spy upkeep discount for the AI
    and AgentType = spy
    and not FactionIsLocal
    console_command add_money germans, 100 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType germans ; Assassin upkeep discount for the AI
    and AgentType = assassin
    and not FactionIsLocal
    console_command add_money germans, 200 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType germans ; Diplomat upkeep discount for the AI
    and AgentType = diplomat
    and not FactionIsLocal
    console_command add_money germans, 50 
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements germans > 30
    and RandomPercent < 60
    
    console_command add_money germans, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements germans > 25
    and RandomPercent < 50
    
    console_command add_money germans, -15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements germans > 20
    and RandomPercent < 40
    
    console_command add_money germans, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements germans > 15
    and RandomPercent < 25
    
    console_command add_money germans, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans ; Money penalty for the player and the AI
    and Treasury > 150000
    
    console_command add_money germans, -80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans ; Money penalty for the player and the AI
    and Treasury > 100000
    and RandomPercent < 80
    
    console_command add_money germans, -40000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans ; Money penalty for the player and the AI
    and Treasury > 60000
    and RandomPercent < 65
    
    console_command add_money germans, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 40000
    and RandomPercent < 50
    
    console_command add_money germans, -12500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 25000
    and RandomPercent < 35
    
    console_command add_money germans, -7500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 15000
    and RandomPercent < 25
    
    console_command add_money germans, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans ; Money burst for the AI [Empire]
    and not FactionIsLocal
    and I_NumberOfSettlements germans > 24
    and Treasury < 65000
    and RandomPercent < 5
    
    console_command add_money germans, 90000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans ; Money burst for the AI [Very Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements germans < 25
    and I_NumberOfSettlements germans > 15
    and Treasury < 55000
    and RandomPercent < 10
    
    console_command add_money germans, 80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans ; Money burst for the AI [Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements germans < 16
    and I_NumberOfSettlements germans > 9
    and Treasury < 35000
    and RandomPercent < 15
    
    console_command add_money germans, 70000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans ; Money burst for the AI [Medium-sized Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements germans < 10
    and I_NumberOfSettlements germans > 4
    and Treasury < 25000
    and RandomPercent < 20
    
    console_command add_money germans, 60000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans ; Money burst for the AI [Small Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements germans < 5
    and Treasury < 15000
    and RandomPercent < 25
    
    console_command add_money germans, 50000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans
    and not FactionIsLocal
    and I_TurnNumber = 2
    
    console_command add_money germans, 50000
    
    end_monitor
    
    ; Carthage
    
    monitor_event CharacterTurnStart FactionType egypt ; Spy upkeep discount for the AI
    and AgentType = spy
    and not FactionIsLocal
    console_command add_money egypt, 100 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType egypt ; Assassin upkeep discount for the AI
    and AgentType = assassin
    and not FactionIsLocal
    console_command add_money egypt, 200 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType egypt ; Diplomat upkeep discount for the AI
    and AgentType = diplomat
    and not FactionIsLocal
    console_command add_money egypt, 50 
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements egypt > 30
    and RandomPercent < 60
    
    console_command add_money egypt, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements egypt > 25
    and RandomPercent < 50
    
    console_command add_money egypt, -15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements egypt > 20
    and RandomPercent < 40
    
    console_command add_money egypt, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements egypt > 15
    and RandomPercent < 25
    
    console_command add_money egypt, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt ; Money penalty for the player and the AI
    and Treasury > 150000
    
    console_command add_money egypt, -80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt ; Money penalty for the player and the AI
    and Treasury > 100000
    and RandomPercent < 80
    
    console_command add_money egypt, -40000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt ; Money penalty for the player and the AI
    and Treasury > 60000
    and RandomPercent < 65
    
    console_command add_money egypt, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 40000
    and RandomPercent < 50
    
    console_command add_money egypt, -12500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 25000
    and RandomPercent < 35
    
    console_command add_money egypt, -7500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 15000
    and RandomPercent < 25
    
    console_command add_money egypt, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt ; Money burst for the AI [Empire]
    and not FactionIsLocal
    and I_NumberOfSettlements egypt > 24
    and Treasury < 65000
    and RandomPercent < 5
    
    console_command add_money egypt, 90000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt ; Money burst for the AI [Very Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements egypt < 25
    and I_NumberOfSettlements egypt > 15
    and Treasury < 55000
    and RandomPercent < 10
    
    console_command add_money egypt, 80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt ; Money burst for the AI [Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements egypt < 16
    and I_NumberOfSettlements egypt > 9
    and Treasury < 35000
    and RandomPercent < 15
    
    console_command add_money egypt, 70000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt ; Money burst for the AI [Medium-sized Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements egypt < 10
    and I_NumberOfSettlements egypt > 4
    and Treasury < 25000
    and RandomPercent < 20
    
    console_command add_money egypt, 60000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt ; Money burst for the AI [Small Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements egypt < 5
    and Treasury < 15000
    and RandomPercent < 25
    
    console_command add_money egypt, 50000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt
    and not FactionIsLocal
    and I_TurnNumber = 2
    
    console_command add_money egypt, 50000
    
    end_monitor
    
    ; Baktria
    
    monitor_event CharacterTurnStart FactionType romans_brutii ; Spy upkeep discount for the AI
    and AgentType = spy
    and not FactionIsLocal
    console_command add_money romans_brutii, 100 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType romans_brutii ; Assassin upkeep discount for the AI
    and AgentType = assassin
    and not FactionIsLocal
    console_command add_money romans_brutii, 200 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType romans_brutii ; Diplomat upkeep discount for the AI
    and AgentType = diplomat
    and not FactionIsLocal
    console_command add_money romans_brutii, 50 
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements romans_brutii > 30
    and RandomPercent < 60
    
    console_command add_money romans_brutii, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements romans_brutii > 25
    and RandomPercent < 50
    
    console_command add_money romans_brutii, -15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements romans_brutii > 20
    and RandomPercent < 40
    
    console_command add_money romans_brutii, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements romans_brutii > 15
    and RandomPercent < 25
    
    console_command add_money romans_brutii, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii ; Money penalty for the player and the AI
    and Treasury > 150000
    
    console_command add_money romans_brutii, -80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii ; Money penalty for the player and the AI
    and Treasury > 100000
    and RandomPercent < 80
    
    console_command add_money romans_brutii, -40000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii ; Money penalty for the player and the AI
    and Treasury > 60000
    and RandomPercent < 65
    
    console_command add_money romans_brutii, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 40000
    and RandomPercent < 50
    
    console_command add_money romans_brutii, -12500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 25000
    and RandomPercent < 35
    
    console_command add_money romans_brutii, -7500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 15000
    and RandomPercent < 25
    
    console_command add_money romans_brutii, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii ; Money burst for the AI [Empire]
    and not FactionIsLocal
    and I_NumberOfSettlements romans_brutii > 24
    and Treasury < 65000
    and RandomPercent < 5
    
    console_command add_money romans_brutii, 90000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii ; Money burst for the AI [Very Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements romans_brutii < 25
    and I_NumberOfSettlements romans_brutii > 15
    and Treasury < 55000
    and RandomPercent < 10
    
    console_command add_money romans_brutii, 80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii ; Money burst for the AI [Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements romans_brutii < 16
    and I_NumberOfSettlements romans_brutii > 9
    and Treasury < 35000
    and RandomPercent < 15
    
    console_command add_money romans_brutii, 70000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii ; Money burst for the AI [Medium-sized Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements romans_brutii < 10
    and I_NumberOfSettlements romans_brutii > 4
    and Treasury < 25000
    and RandomPercent < 20
    
    console_command add_money romans_brutii, 60000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii ; Money burst for the AI [Small Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements romans_brutii < 5
    and Treasury < 15000
    and RandomPercent < 25
    
    console_command add_money romans_brutii, 50000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii
    and not FactionIsLocal
    and I_TurnNumber = 2
    
    console_command add_money romans_brutii, 50000
    
    end_monitor
    
    ; Sauromatae
    
    monitor_event CharacterTurnStart FactionType armenia ; Spy upkeep discount for the AI
    and AgentType = spy
    and not FactionIsLocal
    console_command add_money armenia, 100 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType armenia ; Assassin upkeep discount for the AI
    and AgentType = assassin
    and not FactionIsLocal
    console_command add_money armenia, 200 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType armenia ; Diplomat upkeep discount for the AI
    and AgentType = diplomat
    and not FactionIsLocal
    console_command add_money armenia, 50 
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements armenia > 30
    and RandomPercent < 60
    
    console_command add_money armenia, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements armenia > 25
    and RandomPercent < 50
    
    console_command add_money armenia, -15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements armenia > 20
    and RandomPercent < 40
    
    console_command add_money armenia, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements armenia > 15
    and RandomPercent < 25
    
    console_command add_money armenia, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia ; Money penalty for the player and the AI
    and Treasury > 150000
    
    console_command add_money armenia, -80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia ; Money penalty for the player and the AI
    and Treasury > 100000
    and RandomPercent < 80
    
    console_command add_money armenia, -40000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia ; Money penalty for the player and the AI
    and Treasury > 60000
    and RandomPercent < 65
    
    console_command add_money armenia, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 40000
    and RandomPercent < 50
    
    console_command add_money armenia, -12500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 25000
    and RandomPercent < 35
    
    console_command add_money armenia, -7500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 15000
    and RandomPercent < 25
    
    console_command add_money armenia, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia ; Money burst for the AI [Empire]
    and not FactionIsLocal
    and I_NumberOfSettlements armenia > 24
    and Treasury < 65000
    and RandomPercent < 5
    
    console_command add_money armenia, 120000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia ; Money burst for the AI [Very Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements armenia < 25
    and I_NumberOfSettlements armenia > 15
    and Treasury < 55000
    and RandomPercent < 10
    
    console_command add_money armenia, 110000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia ; Money burst for the AI [Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements armenia < 16
    and I_NumberOfSettlements armenia > 9
    and Treasury < 35000
    and RandomPercent < 15
    
    console_command add_money armenia, 100000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia ; Money burst for the AI [Medium-sized Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements armenia < 10
    and I_NumberOfSettlements armenia > 4
    and Treasury < 25000
    and RandomPercent < 20
    
    console_command add_money armenia, 90000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia ; Money burst for the AI [Small Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements armenia < 5
    and Treasury < 15000
    and RandomPercent < 25
    
    console_command add_money armenia, 80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia
    and not FactionIsLocal
    and I_TurnNumber = 2
    
    console_command add_money armenia, 50000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia
    and not FactionIsLocal
    and I_TurnNumber = 4
    
    console_command add_money armenia, 60000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia
    and not FactionIsLocal
    and I_TurnNumber = 7
    
    console_command add_money armenia, 70000
    
    end_monitor
    
    ; Ptolemaioi
    
    monitor_event CharacterTurnStart FactionType numidia ; Spy upkeep discount for the AI
    and AgentType = spy
    and not FactionIsLocal
    console_command add_money numidia, 100 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType numidia ; Assassin upkeep discount for the AI
    and AgentType = assassin
    and not FactionIsLocal
    console_command add_money numidia, 200 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType numidia ; Diplomat upkeep discount for the AI
    and AgentType = diplomat
    and not FactionIsLocal
    console_command add_money numidia, 50 
    end_monitor
    
    monitor_event FactionTurnStart FactionType numidia ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements numidia > 30
    and RandomPercent < 60
    
    console_command add_money numidia, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType numidia ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements numidia > 25
    and RandomPercent < 50
    
    console_command add_money numidia, -15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType numidia ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements numidia > 20
    and RandomPercent < 40
    
    console_command add_money numidia, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType numidia ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements numidia > 15
    and RandomPercent < 25
    
    console_command add_money numidia, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType numidia ; Money penalty for the player and the AI
    and Treasury > 150000
    
    console_command add_money numidia, -80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType numidia ; Money penalty for the player and the AI
    and Treasury > 100000
    and RandomPercent < 80
    
    console_command add_money numidia, -40000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType numidia ; Money penalty for the player and the AI
    and Treasury > 60000
    and RandomPercent < 65
    
    console_command add_money numidia, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType numidia ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 40000
    and RandomPercent < 50
    
    console_command add_money numidia, -12500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType numidia ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 25000
    and RandomPercent < 35
    
    console_command add_money numidia, -7500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType numidia ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 15000
    and RandomPercent < 25
    
    console_command add_money numidia, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType numidia ; Money burst for the AI [Empire]
    and not FactionIsLocal
    and I_NumberOfSettlements numidia > 24
    and Treasury < 65000
    and RandomPercent < 5
    
    console_command add_money numidia, 90000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType numidia ; Money burst for the AI [Very Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements numidia < 25
    and I_NumberOfSettlements numidia > 15
    and Treasury < 55000
    and RandomPercent < 10
    
    console_command add_money numidia, 80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType numidia ; Money burst for the AI [Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements numidia < 16
    and I_NumberOfSettlements numidia > 9
    and Treasury < 35000
    and RandomPercent < 15
    
    console_command add_money numidia, 70000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType numidia ; Money burst for the AI [Medium-sized Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements numidia < 10
    and I_NumberOfSettlements numidia > 4
    and Treasury < 25000
    and RandomPercent < 20
    
    console_command add_money numidia, 60000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType numidia ; Money burst for the AI [Small Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements numidia < 5
    and Treasury < 15000
    and RandomPercent < 25
    
    console_command add_money numidia, 50000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType numidia
    and not FactionIsLocal
    and I_TurnNumber = 2
    
    console_command add_money numidia, 50000
    
    end_monitor
    
    ; Arche Seleukeia
    
    monitor_event CharacterTurnStart FactionType romans_julii ; Spy upkeep discount for the AI
    and AgentType = spy
    and not FactionIsLocal
    console_command add_money romans_julii, 100 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType romans_julii ; Assassin upkeep discount for the AI
    and AgentType = assassin
    and not FactionIsLocal
    console_command add_money romans_julii, 200 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType romans_julii ; Diplomat upkeep discount for the AI
    and AgentType = diplomat
    and not FactionIsLocal
    console_command add_money romans_julii, 50 
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_julii ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements romans_julii > 30
    and RandomPercent < 60
    
    console_command add_money romans_julii, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_julii ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements romans_julii > 25
    and RandomPercent < 50
    
    console_command add_money romans_julii, -15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_julii ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements romans_julii > 20
    and RandomPercent < 40
    
    console_command add_money romans_julii, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_julii ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements romans_julii > 15
    and RandomPercent < 25
    
    console_command add_money romans_julii, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_julii ; Money penalty for the player and the AI
    and Treasury > 150000
    
    console_command add_money romans_julii, -80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_julii ; Money penalty for the player and the AI
    and Treasury > 100000
    and RandomPercent < 80
    
    console_command add_money romans_julii, -40000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_julii ; Money penalty for the player and the AI
    and Treasury > 60000
    and RandomPercent < 65
    
    console_command add_money romans_julii, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_julii ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 40000
    and RandomPercent < 50
    
    console_command add_money romans_julii, -12500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_julii ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 25000
    and RandomPercent < 35
    
    console_command add_money romans_julii, -7500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_julii ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 15000
    and RandomPercent < 25
    
    console_command add_money romans_julii, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_julii ; Money burst for the AI [Empire]
    and not FactionIsLocal
    and I_NumberOfSettlements romans_julii > 24
    and Treasury < 65000
    and RandomPercent < 5
    
    console_command add_money romans_julii, 90000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_julii ; Money burst for the AI [Very Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements romans_julii < 25
    and I_NumberOfSettlements romans_julii > 15
    and Treasury < 55000
    and RandomPercent < 10
    
    console_command add_money romans_julii, 80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_julii ; Money burst for the AI [Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements romans_julii < 16
    and I_NumberOfSettlements romans_julii > 9
    and Treasury < 35000
    and RandomPercent < 15
    
    console_command add_money romans_julii, 70000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_julii ; Money burst for the AI [Medium-sized Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements romans_julii < 10
    and I_NumberOfSettlements romans_julii > 4
    and Treasury < 25000
    and RandomPercent < 20
    
    console_command add_money romans_julii, 60000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_julii ; Money burst for the AI [Small Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements romans_julii < 5
    and Treasury < 15000
    and RandomPercent < 25
    
    console_command add_money romans_julii, 50000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_julii
    and not FactionIsLocal
    and I_TurnNumber = 2
    
    console_command add_money romans_julii, 50000
    
    end_monitor
    
    ; Koinon Hellenon
    
    monitor_event CharacterTurnStart FactionType greek_cities ; Spy upkeep discount for the AI
    and AgentType = spy
    and not FactionIsLocal
    console_command add_money greek_cities, 100 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType greek_cities ; Assassin upkeep discount for the AI
    and AgentType = assassin
    and not FactionIsLocal
    console_command add_money greek_cities, 200 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType greek_cities ; Diplomat upkeep discount for the AI
    and AgentType = diplomat
    and not FactionIsLocal
    console_command add_money greek_cities, 50 
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements greek_cities > 30
    and RandomPercent < 60
    
    console_command add_money greek_cities, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements greek_cities > 25
    and RandomPercent < 50
    
    console_command add_money greek_cities, -15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements greek_cities > 20
    and RandomPercent < 40
    
    console_command add_money greek_cities, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements greek_cities > 15
    and RandomPercent < 25
    
    console_command add_money greek_cities, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities ; Money penalty for the player and the AI
    and Treasury > 150000
    
    console_command add_money greek_cities, -80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities ; Money penalty for the player and the AI
    and Treasury > 100000
    and RandomPercent < 80
    
    console_command add_money greek_cities, -40000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities ; Money penalty for the player and the AI
    and Treasury > 60000
    and RandomPercent < 65
    
    console_command add_money greek_cities, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 40000
    and RandomPercent < 50
    
    console_command add_money greek_cities, -12500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 25000
    and RandomPercent < 35
    
    console_command add_money greek_cities, -7500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 15000
    and RandomPercent < 25
    
    console_command add_money greek_cities, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities ; Money burst for the AI [Empire]
    and not FactionIsLocal
    and I_NumberOfSettlements greek_cities > 24
    and Treasury < 65000
    and RandomPercent < 5
    
    console_command add_money greek_cities, 90000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities ; Money burst for the AI [Very Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements greek_cities < 25
    and I_NumberOfSettlements greek_cities > 15
    and Treasury < 55000
    and RandomPercent < 10
    
    console_command add_money greek_cities, 80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities ; Money burst for the AI [Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements greek_cities < 16
    and I_NumberOfSettlements greek_cities > 9
    and Treasury < 35000
    and RandomPercent < 15
    
    console_command add_money greek_cities, 70000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities ; Money burst for the AI [Medium-sized Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements greek_cities < 10
    and I_NumberOfSettlements greek_cities > 4
    and Treasury < 25000
    and RandomPercent < 20
    
    console_command add_money greek_cities, 60000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities ; Money burst for the AI [Small Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements greek_cities < 5
    and Treasury < 15000
    and RandomPercent < 25
    
    console_command add_money greek_cities, 50000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities
    and not FactionIsLocal
    and I_TurnNumber = 2
    
    console_command add_money greek_cities, 50000
    
    end_monitor
    
    ; Epeiros
    
    monitor_event CharacterTurnStart FactionType thrace ; Spy upkeep discount for the AI
    and AgentType = spy
    and not FactionIsLocal
    console_command add_money thrace, 100 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType thrace ; Assassin upkeep discount for the AI
    and AgentType = assassin
    and not FactionIsLocal
    console_command add_money thrace, 200 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType thrace ; Diplomat upkeep discount for the AI
    and AgentType = diplomat
    and not FactionIsLocal
    console_command add_money thrace, 50 
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements thrace > 30
    and RandomPercent < 60
    
    console_command add_money thrace, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements thrace > 25
    and RandomPercent < 50
    
    console_command add_money thrace, -15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements thrace > 20
    and RandomPercent < 40
    
    console_command add_money thrace, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements thrace > 15
    and RandomPercent < 25
    
    console_command add_money thrace, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace ; Money penalty for the player and the AI
    and Treasury > 150000
    
    console_command add_money thrace, -80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace ; Money penalty for the player and the AI
    and Treasury > 100000
    and RandomPercent < 80
    
    console_command add_money thrace, -40000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace ; Money penalty for the player and the AI
    and Treasury > 60000
    and RandomPercent < 65
    
    console_command add_money thrace, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 40000
    and RandomPercent < 50
    
    console_command add_money thrace, -12500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 25000
    and RandomPercent < 35
    
    console_command add_money thrace, -7500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 15000
    and RandomPercent < 25
    
    console_command add_money thrace, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace ; Money burst for the AI [Empire]
    and not FactionIsLocal
    and I_NumberOfSettlements thrace > 24
    and Treasury < 65000
    and RandomPercent < 5
    
    console_command add_money thrace, 90000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace ; Money burst for the AI [Very Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements thrace < 25
    and I_NumberOfSettlements thrace > 15
    and Treasury < 55000
    and RandomPercent < 10
    
    console_command add_money thrace, 80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace ; Money burst for the AI [Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements thrace < 16
    and I_NumberOfSettlements thrace > 9
    and Treasury < 35000
    and RandomPercent < 15
    
    console_command add_money thrace, 70000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace ; Money burst for the AI [Medium-sized Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements thrace < 10
    and I_NumberOfSettlements thrace > 4
    and Treasury < 25000
    and RandomPercent < 20
    
    console_command add_money thrace, 60000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace ; Money burst for the AI [Small Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements thrace < 5
    and Treasury < 15000
    and RandomPercent < 25
    
    console_command add_money thrace, 50000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace
    and not FactionIsLocal
    and I_TurnNumber = 2
    
    console_command add_money thrace, 50000
    
    end_monitor
    
    ; Makedonia
    
    monitor_event CharacterTurnStart FactionType macedon ; Spy upkeep discount for the AI
    and AgentType = spy
    and not FactionIsLocal
    console_command add_money macedon, 100 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType macedon ; Assassin upkeep discount for the AI
    and AgentType = assassin
    and not FactionIsLocal
    console_command add_money macedon, 200 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType macedon ; Diplomat upkeep discount for the AI
    and AgentType = diplomat
    and not FactionIsLocal
    console_command add_money macedon, 50 
    end_monitor
    
    monitor_event FactionTurnStart FactionType macedon ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements macedon > 30
    and RandomPercent < 60
    
    console_command add_money macedon, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType macedon ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements macedon > 25
    and RandomPercent < 50
    
    console_command add_money macedon, -15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType macedon ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements macedon > 20
    and RandomPercent < 40
    
    console_command add_money macedon, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType macedon ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements macedon > 15
    and RandomPercent < 25
    
    console_command add_money macedon, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType macedon ; Money penalty for the player and the AI
    and Treasury > 150000
    
    console_command add_money macedon, -80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType macedon ; Money penalty for the player and the AI
    and Treasury > 100000
    and RandomPercent < 80
    
    console_command add_money macedon, -40000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType macedon ; Money penalty for the player and the AI
    and Treasury > 60000
    and RandomPercent < 65
    
    console_command add_money macedon, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType macedon ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 40000
    and RandomPercent < 50
    
    console_command add_money macedon, -12500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType macedon ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 25000
    and RandomPercent < 35
    
    console_command add_money macedon, -7500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType macedon ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 15000
    and RandomPercent < 25
    
    console_command add_money macedon, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType macedon ; Money burst for the AI [Empire]
    and not FactionIsLocal
    and I_NumberOfSettlements macedon > 24
    and Treasury < 65000
    and RandomPercent < 5
    
    console_command add_money macedon, 90000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType macedon ; Money burst for the AI [Very Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements macedon < 25
    and I_NumberOfSettlements macedon > 15
    and Treasury < 55000
    and RandomPercent < 10
    
    console_command add_money macedon, 80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType macedon ; Money burst for the AI [Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements macedon < 16
    and I_NumberOfSettlements macedon > 9
    and Treasury < 35000
    and RandomPercent < 15
    
    console_command add_money macedon, 70000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType macedon ; Money burst for the AI [Medium-sized Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements macedon < 10
    and I_NumberOfSettlements macedon > 4
    and Treasury < 25000
    and RandomPercent < 20
    
    console_command add_money macedon, 60000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType macedon ; Money burst for the AI [Small Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements macedon < 5
    and Treasury < 15000
    and RandomPercent < 25
    
    console_command add_money macedon, 50000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType macedon
    and not FactionIsLocal
    and I_TurnNumber = 2
    
    console_command add_money macedon, 50000
    
    end_monitor
    
    ; Rome
    
    monitor_event CharacterTurnStart FactionType seleucid ; Spy upkeep discount for the AI
    and AgentType = spy
    and not FactionIsLocal
    console_command add_money seleucid, 100 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType seleucid ; Assassin upkeep discount for the AI
    and AgentType = assassin
    and not FactionIsLocal
    console_command add_money seleucid, 200 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType seleucid ; Diplomat upkeep discount for the AI
    and AgentType = diplomat
    and not FactionIsLocal
    console_command add_money seleucid, 50 
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements seleucid > 30
    and RandomPercent < 60
    
    console_command add_money seleucid, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements seleucid > 25
    and RandomPercent < 50
    
    console_command add_money seleucid, -15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements seleucid > 20
    and RandomPercent < 40
    
    console_command add_money seleucid, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements seleucid > 15
    and RandomPercent < 25
    
    console_command add_money seleucid, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid ; Money penalty for the player and the AI
    and Treasury > 150000
    
    console_command add_money seleucid, -80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid ; Money penalty for the player and the AI
    and Treasury > 100000
    and RandomPercent < 80
    
    console_command add_money seleucid, -40000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid ; Money penalty for the player and the AI
    and Treasury > 60000
    and RandomPercent < 65
    
    console_command add_money seleucid, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 40000
    and RandomPercent < 50
    
    console_command add_money seleucid, -12500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 25000
    and RandomPercent < 35
    
    console_command add_money seleucid, -7500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 15000
    and RandomPercent < 25
    
    console_command add_money seleucid, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid ; Money burst for the AI [Empire]
    and not FactionIsLocal
    and I_NumberOfSettlements seleucid > 24
    and Treasury < 65000
    and RandomPercent < 5
    
    console_command add_money seleucid, 90000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid ; Money burst for the AI [Very Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements seleucid < 25
    and I_NumberOfSettlements seleucid > 15
    and Treasury < 55000
    and RandomPercent < 10
    
    console_command add_money seleucid, 80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid ; Money burst for the AI [Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements seleucid < 16
    and I_NumberOfSettlements seleucid > 9
    and Treasury < 35000
    and RandomPercent < 15
    
    console_command add_money seleucid, 70000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid ; Money burst for the AI [Medium-sized Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements seleucid < 10
    and I_NumberOfSettlements seleucid > 4
    and Treasury < 25000
    and RandomPercent < 20
    
    console_command add_money seleucid, 60000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid ; Money burst for the AI [Small Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements seleucid < 5
    and Treasury < 15000
    and RandomPercent < 25
    
    console_command add_money seleucid, 50000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid
    and not FactionIsLocal
    and I_TurnNumber = 2
    
    console_command add_money seleucid, 50000
    
    end_monitor
    
    ; Lusotana
    
    monitor_event CharacterTurnStart FactionType spain ; Spy upkeep discount for the AI
    and AgentType = spy
    and not FactionIsLocal
    console_command add_money spain, 100 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType spain ; Assassin upkeep discount for the AI
    and AgentType = assassin
    and not FactionIsLocal
    console_command add_money spain, 200 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType spain ; Diplomat upkeep discount for the AI
    and AgentType = diplomat
    and not FactionIsLocal
    console_command add_money spain, 50 
    end_monitor
    
    monitor_event FactionTurnStart FactionType spain ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements spain > 30
    and RandomPercent < 60
    
    console_command add_money spain, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType spain ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements spain > 25
    and RandomPercent < 50
    
    console_command add_money spain, -15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType spain ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements spain > 20
    and RandomPercent < 40
    
    console_command add_money spain, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType spain ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements spain > 15
    and RandomPercent < 25
    
    console_command add_money spain, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType spain ; Money penalty for the player and the AI
    and Treasury > 150000
    
    console_command add_money spain, -80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType spain ; Money penalty for the player and the AI
    and Treasury > 100000
    and RandomPercent < 80
    
    console_command add_money spain, -40000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType spain ; Money penalty for the player and the AI
    and Treasury > 60000
    and RandomPercent < 65
    
    console_command add_money spain, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType spain ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 40000
    and RandomPercent < 50
    
    console_command add_money spain, -12500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType spain ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 25000
    and RandomPercent < 35
    
    console_command add_money spain, -7500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType spain ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 15000
    and RandomPercent < 25
    
    console_command add_money spain, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType spain ; Money burst for the AI [Empire]
    and not FactionIsLocal
    and I_NumberOfSettlements spain > 24
    and Treasury < 65000
    and RandomPercent < 5
    
    console_command add_money spain, 90000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType spain ; Money burst for the AI [Very Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements spain < 25
    and I_NumberOfSettlements spain > 15
    and Treasury < 55000
    and RandomPercent < 10
    
    console_command add_money spain, 80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType spain ; Money burst for the AI [Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements spain < 16
    and I_NumberOfSettlements spain > 9
    and Treasury < 35000
    and RandomPercent < 15
    
    console_command add_money spain, 70000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType spain ; Money burst for the AI [Medium-sized Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements spain < 10
    and I_NumberOfSettlements spain > 4
    and Treasury < 25000
    and RandomPercent < 20
    
    console_command add_money spain, 60000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType spain ; Money burst for the AI [Small Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements spain < 5
    and Treasury < 15000
    and RandomPercent < 25
    
    console_command add_money spain, 50000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType spain
    and not FactionIsLocal
    and I_TurnNumber = 2
    
    console_command add_money spain, 50000
    
    end_monitor
    
    ; Aedui
    
    monitor_event CharacterTurnStart FactionType gauls ; Spy upkeep discount for the AI
    and AgentType = spy
    and not FactionIsLocal
    console_command add_money gauls, 100 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType gauls ; Assassin upkeep discount for the AI
    and AgentType = assassin
    and not FactionIsLocal
    console_command add_money gauls, 200 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType gauls ; Diplomat upkeep discount for the AI
    and AgentType = diplomat
    and not FactionIsLocal
    console_command add_money gauls, 50 
    end_monitor
    
    monitor_event FactionTurnStart FactionType gauls ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements gauls > 30
    and RandomPercent < 60
    
    console_command add_money gauls, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType gauls ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements gauls > 25
    and RandomPercent < 50
    
    console_command add_money gauls, -15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType gauls ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements gauls > 20
    and RandomPercent < 40
    
    console_command add_money gauls, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType gauls ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements gauls > 15
    and RandomPercent < 25
    
    console_command add_money gauls, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType gauls ; Money penalty for the player and the AI
    and Treasury > 150000
    
    console_command add_money gauls, -80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType gauls ; Money penalty for the player and the AI
    and Treasury > 100000
    and RandomPercent < 80
    
    console_command add_money gauls, -40000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType gauls ; Money penalty for the player and the AI
    and Treasury > 60000
    and RandomPercent < 65
    
    console_command add_money gauls, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType gauls ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 40000
    and RandomPercent < 50
    
    console_command add_money gauls, -12500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType gauls ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 25000
    and RandomPercent < 35
    
    console_command add_money gauls, -7500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType gauls ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 15000
    and RandomPercent < 25
    
    console_command add_money gauls, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType gauls ; Money burst for the AI [Empire]
    and not FactionIsLocal
    and I_NumberOfSettlements gauls > 24
    and Treasury < 65000
    and RandomPercent < 5
    
    console_command add_money gauls, 90000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType gauls ; Money burst for the AI [Very Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements gauls < 25
    and I_NumberOfSettlements gauls > 15
    and Treasury < 55000
    and RandomPercent < 10
    
    console_command add_money gauls, 80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType gauls ; Money burst for the AI [Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements gauls < 16
    and I_NumberOfSettlements gauls > 9
    and Treasury < 35000
    and RandomPercent < 15
    
    console_command add_money gauls, 70000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType gauls ; Money burst for the AI [Medium-sized Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements gauls < 10
    and I_NumberOfSettlements gauls > 4
    and Treasury < 25000
    and RandomPercent < 20
    
    console_command add_money gauls, 60000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType gauls ; Money burst for the AI [Small Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements gauls < 5
    and Treasury < 15000
    and RandomPercent < 25
    
    console_command add_money gauls, 50000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType gauls
    and not FactionIsLocal
    and I_TurnNumber = 2
    
    console_command add_money gauls, 50000
    
    end_monitor
    
    ; Arverni
    
    monitor_event CharacterTurnStart FactionType scythia ; Spy upkeep discount for the AI
    and AgentType = spy
    and not FactionIsLocal
    console_command add_money scythia, 100 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType scythia ; Assassin upkeep discount for the AI
    and AgentType = assassin
    and not FactionIsLocal
    console_command add_money scythia, 200 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType scythia ; Diplomat upkeep discount for the AI
    and AgentType = diplomat
    and not FactionIsLocal
    console_command add_money scythia, 50 
    end_monitor
    
    monitor_event FactionTurnStart FactionType scythia ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements scythia > 30
    and RandomPercent < 60
    
    console_command add_money scythia, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType scythia ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements scythia > 25
    and RandomPercent < 50
    
    console_command add_money scythia, -15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType scythia ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements scythia > 20
    and RandomPercent < 40
    
    console_command add_money scythia, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType scythia ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements scythia > 15
    and RandomPercent < 25
    
    console_command add_money scythia, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType scythia ; Money penalty for the player and the AI
    and Treasury > 150000
    
    console_command add_money scythia, -80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType scythia ; Money penalty for the player and the AI
    and Treasury > 100000
    and RandomPercent < 80
    
    console_command add_money scythia, -40000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType scythia ; Money penalty for the player and the AI
    and Treasury > 60000
    and RandomPercent < 65
    
    console_command add_money scythia, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType scythia ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 40000
    and RandomPercent < 50
    
    console_command add_money scythia, -12500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType scythia ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 25000
    and RandomPercent < 35
    
    console_command add_money scythia, -7500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType scythia ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 15000
    and RandomPercent < 25
    
    console_command add_money scythia, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType scythia ; Money burst for the AI [Empire]
    and not FactionIsLocal
    and I_NumberOfSettlements scythia > 24
    and Treasury < 65000
    and RandomPercent < 5
    
    console_command add_money scythia, 90000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType scythia ; Money burst for the AI [Very Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements scythia < 25
    and I_NumberOfSettlements scythia > 15
    and Treasury < 55000
    and RandomPercent < 10
    
    console_command add_money scythia, 80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType scythia ; Money burst for the AI [Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements scythia < 16
    and I_NumberOfSettlements scythia > 9
    and Treasury < 35000
    and RandomPercent < 15
    
    console_command add_money scythia, 70000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType scythia ; Money burst for the AI [Medium-sized Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements scythia < 10
    and I_NumberOfSettlements scythia > 4
    and Treasury < 25000
    and RandomPercent < 20
    
    console_command add_money scythia, 60000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType scythia ; Money burst for the AI [Small Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements scythia < 5
    and Treasury < 15000
    and RandomPercent < 25
    
    console_command add_money scythia, 50000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType scythia
    and not FactionIsLocal
    and I_TurnNumber = 2
    
    console_command add_money scythia, 50000
    
    end_monitor
    
    ; Casse
    
    monitor_event CharacterTurnStart FactionType britons ; Spy upkeep discount for the AI
    and AgentType = spy
    and not FactionIsLocal
    console_command add_money britons, 100 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType britons ; Assassin upkeep discount for the AI
    and AgentType = assassin
    and not FactionIsLocal
    console_command add_money britons, 200 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType britons ; Diplomat upkeep discount for the AI
    and AgentType = diplomat
    and not FactionIsLocal
    console_command add_money britons, 50 
    end_monitor
    
    monitor_event FactionTurnStart FactionType britons ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements britons > 30
    and RandomPercent < 60
    
    console_command add_money britons, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType britons ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements britons > 25
    and RandomPercent < 50
    
    console_command add_money britons, -15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType britons ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements britons > 20
    and RandomPercent < 40
    
    console_command add_money britons, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType britons ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements britons > 15
    and RandomPercent < 25
    
    console_command add_money britons, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType britons ; Money penalty for the player and the AI
    and Treasury > 150000
    
    console_command add_money britons, -80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType britons ; Money penalty for the player and the AI
    and Treasury > 100000
    and RandomPercent < 80
    
    console_command add_money britons, -40000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType britons ; Money penalty for the player and the AI
    and Treasury > 60000
    and RandomPercent < 65
    
    console_command add_money britons, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType britons ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 40000
    and RandomPercent < 50
    
    console_command add_money britons, -12500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType britons ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 25000
    and RandomPercent < 35
    
    console_command add_money britons, -7500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType britons ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 15000
    and RandomPercent < 25
    
    console_command add_money britons, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType britons ; Money burst for the AI [Empire]
    and not FactionIsLocal
    and I_NumberOfSettlements britons > 24
    and Treasury < 65000
    and RandomPercent < 5
    
    console_command add_money britons, 90000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType britons ; Money burst for the AI [Very Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements britons < 25
    and I_NumberOfSettlements britons > 15
    and Treasury < 55000
    and RandomPercent < 10
    
    console_command add_money britons, 80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType britons ; Money burst for the AI [Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements britons < 16
    and I_NumberOfSettlements britons > 9
    and Treasury < 35000
    and RandomPercent < 15
    
    console_command add_money britons, 70000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType britons ; Money burst for the AI [Medium-sized Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements britons < 10
    and I_NumberOfSettlements britons > 4
    and Treasury < 25000
    and RandomPercent < 20
    
    console_command add_money britons, 60000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType britons ; Money burst for the AI [Small Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements britons < 5
    and Treasury < 15000
    and RandomPercent < 25
    
    console_command add_money britons, 50000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType britons
    and not FactionIsLocal
    and I_TurnNumber = 2
    
    console_command add_money britons, 50000
    
    end_monitor
    
    ; Getai
    
    monitor_event CharacterTurnStart FactionType dacia ; Spy upkeep discount for the AI
    and AgentType = spy
    and not FactionIsLocal
    console_command add_money dacia, 100 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType dacia ; Assassin upkeep discount for the AI
    and AgentType = assassin
    and not FactionIsLocal
    console_command add_money dacia, 200 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType dacia ; Diplomat upkeep discount for the AI
    and AgentType = diplomat
    and not FactionIsLocal
    console_command add_money dacia, 50 
    end_monitor
    
    monitor_event FactionTurnStart FactionType dacia ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements dacia > 30
    and RandomPercent < 60
    
    console_command add_money dacia, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType dacia ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements dacia > 25
    and RandomPercent < 50
    
    console_command add_money dacia, -15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType dacia ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements dacia > 20
    and RandomPercent < 40
    
    console_command add_money dacia, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType dacia ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements dacia > 15
    and RandomPercent < 25
    
    console_command add_money dacia, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType dacia ; Money penalty for the player and the AI
    and Treasury > 150000
    
    console_command add_money dacia, -80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType dacia ; Money penalty for the player and the AI
    and Treasury > 100000
    and RandomPercent < 80
    
    console_command add_money dacia, -40000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType dacia ; Money penalty for the player and the AI
    and Treasury > 60000
    and RandomPercent < 65
    
    console_command add_money dacia, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType dacia ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 40000
    and RandomPercent < 50
    
    console_command add_money dacia, -12500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType dacia ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 25000
    and RandomPercent < 35
    
    console_command add_money dacia, -7500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType dacia ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 15000
    and RandomPercent < 25
    
    console_command add_money dacia, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType dacia ; Money burst for the AI [Empire]
    and not FactionIsLocal
    and I_NumberOfSettlements dacia > 24
    and Treasury < 65000
    and RandomPercent < 5
    
    console_command add_money dacia, 90000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType dacia ; Money burst for the AI [Very Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements dacia < 25
    and I_NumberOfSettlements dacia > 15
    and Treasury < 55000
    and RandomPercent < 10
    
    console_command add_money dacia, 80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType dacia ; Money burst for the AI [Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements dacia < 16
    and I_NumberOfSettlements dacia > 9
    and Treasury < 35000
    and RandomPercent < 15
    
    console_command add_money dacia, 70000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType dacia ; Money burst for the AI [Medium-sized Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements dacia < 10
    and I_NumberOfSettlements dacia > 4
    and Treasury < 25000
    and RandomPercent < 20
    
    console_command add_money dacia, 60000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType dacia ; Money burst for the AI [Small Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements dacia < 5
    and Treasury < 15000
    and RandomPercent < 25
    
    console_command add_money dacia, 50000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType dacia
    and not FactionIsLocal
    and I_TurnNumber = 2
    
    console_command add_money dacia, 50000
    
    end_monitor
    
    ; Hayasdan
    
    monitor_event CharacterTurnStart FactionType romans_scipii ; Spy upkeep discount for the AI
    and AgentType = spy
    and not FactionIsLocal
    console_command add_money romans_scipii, 100 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType romans_scipii ; Assassin upkeep discount for the AI
    and AgentType = assassin
    and not FactionIsLocal
    console_command add_money romans_scipii, 200 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType romans_scipii ; Diplomat upkeep discount for the AI
    and AgentType = diplomat
    and not FactionIsLocal
    console_command add_money romans_scipii, 50 
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements romans_scipii > 30
    and RandomPercent < 60
    
    console_command add_money romans_scipii, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements romans_scipii > 25
    and RandomPercent < 50
    
    console_command add_money romans_scipii, -15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements romans_scipii > 20
    and RandomPercent < 40
    
    console_command add_money romans_scipii, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements romans_scipii > 15
    and RandomPercent < 25
    
    console_command add_money romans_scipii, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii ; Money penalty for the player and the AI
    and Treasury > 150000
    
    console_command add_money romans_scipii, -80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii ; Money penalty for the player and the AI
    and Treasury > 100000
    and RandomPercent < 80
    
    console_command add_money romans_scipii, -40000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii ; Money penalty for the player and the AI
    and Treasury > 60000
    and RandomPercent < 65
    
    console_command add_money romans_scipii, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 40000
    and RandomPercent < 50
    
    console_command add_money romans_scipii, -12500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 25000
    and RandomPercent < 35
    
    console_command add_money romans_scipii, -7500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 15000
    and RandomPercent < 25
    
    console_command add_money romans_scipii, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii ; Money burst for the AI [Empire]
    and not FactionIsLocal
    and I_NumberOfSettlements romans_scipii > 24
    and Treasury < 65000
    and RandomPercent < 5
    
    console_command add_money romans_scipii, 90000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii ; Money burst for the AI [Very Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements romans_scipii < 25
    and I_NumberOfSettlements romans_scipii > 15
    and Treasury < 55000
    and RandomPercent < 10
    
    console_command add_money romans_scipii, 80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii ; Money burst for the AI [Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements romans_scipii < 16
    and I_NumberOfSettlements romans_scipii > 9
    and Treasury < 35000
    and RandomPercent < 15
    
    console_command add_money romans_scipii, 70000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii ; Money burst for the AI [Medium-sized Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements romans_scipii < 10
    and I_NumberOfSettlements romans_scipii > 4
    and Treasury < 25000
    and RandomPercent < 20
    
    console_command add_money romans_scipii, 60000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii ; Money burst for the AI [Small Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements romans_scipii < 5
    and Treasury < 15000
    and RandomPercent < 25
    
    console_command add_money romans_scipii, 50000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii
    and not FactionIsLocal
    and I_TurnNumber = 2
    
    console_command add_money romans_scipii, 50000
    
    end_monitor
    
    ; Pahlav
    
    monitor_event CharacterTurnStart FactionType parthia ; Spy upkeep discount for the AI
    and AgentType = spy
    and not FactionIsLocal
    console_command add_money parthia, 100 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType parthia ; Assassin upkeep discount for the AI
    and AgentType = assassin
    and not FactionIsLocal
    console_command add_money parthia, 200 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType parthia ; Diplomat upkeep discount for the AI
    and AgentType = diplomat
    and not FactionIsLocal
    console_command add_money parthia, 50 
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements parthia > 30
    and RandomPercent < 60
    
    console_command add_money parthia, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements parthia > 25
    and RandomPercent < 50
    
    console_command add_money parthia, -15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements parthia > 20
    and RandomPercent < 40
    
    console_command add_money parthia, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements parthia > 15
    and RandomPercent < 25
    
    console_command add_money parthia, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia ; Money penalty for the player and the AI
    and Treasury > 150000
    
    console_command add_money parthia, -80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia ; Money penalty for the player and the AI
    and Treasury > 100000
    and RandomPercent < 80
    
    console_command add_money parthia, -40000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia ; Money penalty for the player and the AI
    and Treasury > 60000
    and RandomPercent < 65
    
    console_command add_money parthia, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 40000
    and RandomPercent < 50
    
    console_command add_money parthia, -12500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 25000
    and RandomPercent < 35
    
    console_command add_money parthia, -7500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 15000
    and RandomPercent < 25
    
    console_command add_money parthia, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia ; Money burst for the AI [Empire]
    and not FactionIsLocal
    and I_NumberOfSettlements parthia > 24
    and Treasury < 65000
    and RandomPercent < 5
    
    console_command add_money parthia, 90000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia ; Money burst for the AI [Very Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements parthia < 25
    and I_NumberOfSettlements parthia > 15
    and Treasury < 55000
    and RandomPercent < 10
    
    console_command add_money parthia, 80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia ; Money burst for the AI [Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements parthia < 16
    and I_NumberOfSettlements parthia > 9
    and Treasury < 35000
    and RandomPercent < 15
    
    console_command add_money parthia, 70000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia ; Money burst for the AI [Medium-sized Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements parthia < 10
    and I_NumberOfSettlements parthia > 4
    and Treasury < 25000
    and RandomPercent < 20
    
    console_command add_money parthia, 60000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia ; Money burst for the AI [Small Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements parthia < 5
    and Treasury < 15000
    and RandomPercent < 25
    
    console_command add_money parthia, 50000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia
    and not FactionIsLocal
    and I_TurnNumber = 2
    
    console_command add_money parthia, 50000
    
    end_monitor
    
    ; Saba
    
    monitor_event CharacterTurnStart FactionType saba ; Spy upkeep discount for the AI
    and AgentType = spy
    and not FactionIsLocal
    console_command add_money saba, 100 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType saba ; Assassin upkeep discount for the AI
    and AgentType = assassin
    and not FactionIsLocal
    console_command add_money saba, 200 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType saba ; Diplomat upkeep discount for the AI
    and AgentType = diplomat
    and not FactionIsLocal
    console_command add_money saba, 50 
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements saba > 30
    and RandomPercent < 60
    
    console_command add_money saba, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements saba > 25
    and RandomPercent < 50
    
    console_command add_money saba, -15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements saba > 20
    and RandomPercent < 40
    
    console_command add_money saba, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements saba > 15
    and RandomPercent < 25
    
    console_command add_money saba, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba ; Money penalty for the player and the AI
    and Treasury > 150000
    
    console_command add_money saba, -80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba ; Money penalty for the player and the AI
    and Treasury > 100000
    and RandomPercent < 80
    
    console_command add_money saba, -40000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba ; Money penalty for the player and the AI
    and Treasury > 60000
    and RandomPercent < 65
    
    console_command add_money saba, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 40000
    and RandomPercent < 50
    
    console_command add_money saba, -12500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 25000
    and RandomPercent < 35
    
    console_command add_money saba, -7500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 15000
    and RandomPercent < 25
    
    console_command add_money saba, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba ; Money burst for the AI [Empire]
    and not FactionIsLocal
    and I_NumberOfSettlements saba > 24
    and Treasury < 65000
    and RandomPercent < 5
    
    console_command add_money saba, 90000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba ; Money burst for the AI [Very Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements saba < 25
    and I_NumberOfSettlements saba > 15
    and Treasury < 55000
    and RandomPercent < 10
    
    console_command add_money saba, 80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba ; Money burst for the AI [Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements saba < 16
    and I_NumberOfSettlements saba > 9
    and Treasury < 35000
    and RandomPercent < 15
    
    console_command add_money saba, 70000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba ; Money burst for the AI [Medium-sized Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements saba < 10
    and I_NumberOfSettlements saba > 4
    and Treasury < 25000
    and RandomPercent < 20
    
    console_command add_money saba, 60000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba ; Money burst for the AI [Small Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements saba < 5
    and Treasury < 15000
    and RandomPercent < 25
    
    console_command add_money saba, 50000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba
    and not FactionIsLocal
    and I_TurnNumber = 2
    
    console_command add_money saba, 50000
    
    end_monitor
    
    ; Eleutheroi
    
    monitor_event SettlementTurnStart FactionType slave
    and not FactionIsLocal
    
    console_command add_money slave, 3000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType slave ; Money burst for the AI
    and not FactionIsLocal
    and RandomPercent < 3
    
    console_command add_money slave, 1000000
    
    end_monitor
    Plus small changes in money given to the AI in the CAMPAIGN SCRIPT:
    Code:
    if not I_LocalFaction saba
    console_command add_money saba, 65000
    end_if
    
    if not I_LocalFaction seleucid
    console_command add_money seleucid, 65000
    end_if
    
    if not I_LocalFaction pontus
    console_command add_money pontus, 65000
    end_if
    
    if not I_LocalFaction scythia
    console_command add_money scythia, 65000
    end_if
    
    if not I_LocalFaction parthia
    console_command add_money parthia, 65000
    end_if
    
    if not I_LocalFaction numidia
    console_command add_money numidia, 65000
    end_if
    
    if not I_LocalFaction romans_julii
    console_command add_money romans_julii, 65000
    end_if
    
    if not I_LocalFaction egypt
    console_command add_money egypt, 65000
    end_if
    
    if not I_LocalFaction gauls
    console_command add_money gauls, 65000
    end_if
    
    if not I_LocalFaction germans
    console_command add_money germans, 65000
    end_if
    
    if not I_LocalFaction britons
    console_command add_money britons, 65000
    end_if
    
    if not I_LocalFaction greek_cities
    console_command add_money greek_cities, 65000
    end_if
    
    if not I_LocalFaction macedon
    console_command add_money macedon, 65000
    end_if
    
    if not I_LocalFaction carthage
    console_command add_money carthage, 65000
    end_if
    
    if not I_LocalFaction romans_scipii
    console_command add_money romans_scipii, 65000
    end_if
    
    if not I_LocalFaction dacia
    console_command add_money dacia, 65000
    end_if
    
    if not I_LocalFaction armenia
    console_command add_money armenia, 65000
    end_if
    
    if not I_LocalFaction spain
    console_command add_money spain, 65000
    end_if
    
    if not I_LocalFaction thrace
    console_command add_money thrace, 65000
    end_if
    
    if not I_LocalFaction romans_brutii
    console_command add_money romans_brutii, 65000
    end_if
    Basically, it's a combination of blitz-preventers, money-caps, debt-preventers and money-bursts, and there is much randomness. Money-bursts give the AI a chance to build both buildings and units, with mixed results and luck, as they don't have any additional constant source of income. They are given money from time to time, but larger amounts of it. As a result, you will encounter both elites and levies, see both developed cities and small towns, see bigger factions eating the smaller ones or vice versa. The rest (blitz-preventers, money-caps and debt-preventers) is there to make sure that it's very rare to see a single faction dying before at least 220 BC. The player is the one that is the most penalized (it's much harder to create a long-lasting, stable empire, and AI recieves more money at the beginning, so it's harder to blitz), but AI also finds producing infinite-stacks much harder (money-caps), while their chances of survival are still quite high (debt-preventers).

    Yeah, it's crazy - I love "balanced randomness" ;). Anyway, I want to bring your attention to the idea of random money-bursts. I think that it has the potential.

    Additional thing I recommend is reducing the income from mining. IMO the EB vanilla values are rather unbalancing. I propose these values:
    Code:
    building hinterland_mines
    {
        levels mines mines+1
        {
            mines requires factions { barbarian, armenia, romans_brutii, egypt, romans_scipii, carthage, parthia, numidia, thrace, greek_cities, macedon, romans_julii, seleucid, saba, } and resource silver or resource gold
            {
                capability
                {
                    mine_resource 32
                }
                construction  8
                cost  14000
                settlement_min town
                upgrades
                {
                    mines+1
                }
            }
            mines+1 requires factions { romans_brutii, egypt, romans_scipii, carthage, parthia, numidia, thrace, greek_cities, macedon, romans_julii, seleucid, saba, } and resource silver or resource gold
            {
                capability
                {
                    mine_resource 80
                }
                construction  20
                cost  32000
                settlement_min large_town
                upgrades
                {
                }
            }
        }
        plugins
        {
        }
    }
    Decreasing the population growth is also a good idea - there are various means to achieve this, but IMO the best thing you can do is to reduce the bonuses from buildings.

    Another thing - AI priorities in descr_strat. I have them like this:

    SPQR - balanced caesar (obvious)
    Saka Rauka - bureaucrat genghis (they need to focus more on gaining income and creating the missile cavalry + some infantry support)
    Arverni - trader napoleon (focus more on infantry-orientated armies with limited cavalry support)
    Pahlava - balanced henry (obvious)
    Ptolemaioi - religious napoleon (focus more on loyalty and infantry-orientated armies)
    Arche Seleukideia - fortified smith (focus more on securing their empire and creating balanced armies ["stalin" sometimes makes them produce too much cheap infantry])
    Karthadast - sailor napoleon (obvious)
    Aedui - comfort napoleon (focus more on gaining income from various means + infantry-orientated armies with limited cavalry support)
    Sweboz - religious napoleon (focus more on loyalty and more balanced armies ["mao" makes them mad])
    Casse - trader napoleon (obvious, but remember - "mao" is not a good choice [too much light infantry spamming])
    Koinon Hellenon - balanced caesar (more balanced approach to their empire and focus on creating more heavy infantry with limited cavalry support)
    Makedonia - fortified smith (they are between the two devils [Epeiros and Koinon Hellenon], so they need to secure their empire more; balanced approach to their armies, in general they build more heavy infantry and cavalry)
    Pontos - trader smith (obvious)
    Hayasdan - craftsman henry (focus more on gaining income from mining and creating more cavalry [don't worry, they still produce much infantry])
    Getai - craftsman caesar (focus more on gaining income from mining and creating more heavy infantry)
    Sauromatae - bureaucrat genghis (same as Saka Rauka...)
    Lusotana - craftsman napoleon (mining + more balanced infantry-orientated armies [with "mao" they produce too much cheap light infantry])
    Epeiros - sailor caesar (obvious)
    Baktria - trader smith (obvious)
    Saba - comfort henry (farming, gaining income + more cavalry in their armies)

    Here's the basic explanation of faction priorities:
    These control a set of AI production personalities, which contribute a bias towards building and training (but not retraining or repairing). This bias is fairly small compared to game-generated factors such as "the enemy is attacking me with lots of cavalry, build me some spearmen". Explaining the weighting system which drives the production AI in full is beyond the scope of this document as it would take several days to write.

    So in short, the building construction personalities are these: (ranked highest to lowest - therother)

    balanced - biases towards growth, taxable income, trade level bonuses (roads), walls and xp bonus buildings

    religious - biases towards growth, loyalty, taxable income, farming, walls and law

    trader - biases towards growth, trade level, trade base, weapon upgrades, games, races and xp bonus buildings

    comfort - biases towards growth, farming, games, races, xp bonus and happiness

    bureaucrat - biases towards taxable income, growth, pop health, trade, walls, improved bodyguards and law

    craftsman - biases towards walls, races, taxable income, weapon upgrades, xp bonuses, mines, health and growth

    sailor - biases towards sea trade, taxable income, walls, growth, trade

    fortified - biases towards walls, taxable income, growth, loyalty, defenses, bodyguards and law

    These biases are towards building properties, rather than buildings themselves. The game does not know what a "Blacksmith" is, for example, it only knows that it is a building which provides a weapon upgrade, and hence a Craftsman AI would be more likely to build it than another AI personality type.

    These are then combined with a troop production personality, as follows:

    smith - exactly level

    mao - biased towards mass troops, light infantry

    genghis - biased towards missile cavalry and light cavalry

    stalin - biased towards heavy infantry, mass troops and artillery

    napoleon - biased towards a mix of light and heavy infantry, light cavalry

    henry - biased towards heavy and light cavalry, missile infantry

    Caesar - biased towards heavy infantry, light cavalry, siege artillery

    The same system as for the buildings applies. Troop category and class are combined at the time the unit database is loaded to give a unit production type, and the likelihood of the AI choosing to produce a given unit type which can be produced is then modified by the unit type weighting. There is also a random element in the choosing of which building or troop type to produce next, so the effect of the bias is a statistical thing. Another factor that is applied over the top which may obscure the bias is a tendency towards producing troop mixtures (according to what is already in the garrison) and a weighting according to unit strength.

    The two sets of types can be freely combined; for example, although Fortified Caesar does not appear in the list of options currently used by the vanilla RTW game, it is a valid combination.
    Feel free to comment and ask questions - I will answer whenever I have some time ;).
    Last edited by Cybvep; 08-26-2007 at 16:44.

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