Results 1 to 30 of 260

Thread: Fixing the AI money script (preliminary tests)

Hybrid View

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

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

    Here is the code and I will post my test of it tomorrow when I get the chance.

    Code:
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;Section 4: Money Assistance
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;Section 4a: Campaign Setting Money Negation
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    
    monitor_event FactionTurnStart FactionType romans_julii
    and not FactionIsLocal
    
    console_command add_money romans_julii, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii
    and not FactionIsLocal
    
    console_command add_money romans_scipii, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii
    and not FactionIsLocal
    
    console_command add_money romans_brutii, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt
    and not FactionIsLocal
    
    console_command add_money egypt, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid
    and not FactionIsLocal
    
    console_command add_money seleucid, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage
    and not FactionIsLocal
    
    console_command add_money carthage, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia
    and not FactionIsLocal
    
    console_command add_money parthia, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType gauls
    and not FactionIsLocal
    
    console_command add_money gauls, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans
    and not FactionIsLocal
    
    console_command add_money germans, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType britons
    and not FactionIsLocal
    
    console_command add_money britons, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities
    and not FactionIsLocal
    
    console_command add_money greek_cities, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType macedon
    and not FactionIsLocal
    
    console_command add_money macedon, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType pontus
    and not FactionIsLocal
    
    console_command add_money pontus, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia
    and not FactionIsLocal
    
    console_command add_money armenia, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType dacia
    and not FactionIsLocal
    
    console_command add_money dacia, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType scythia
    and not FactionIsLocal
    
    console_command add_money scythia, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType spain
    and not FactionIsLocal
    
    console_command add_money spain, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace
    and not FactionIsLocal
    
    console_command add_money thrace, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType numidia
    and not FactionIsLocal
    
    console_command add_money numidia, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba
    and not FactionIsLocal
    
    console_command add_money saba, -10000
    
    end_monitor
    
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;Section 4b: Treasury Reduction
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    
    monitor_event FactionTurnStart FactionType romans_julii
    and not FactionIsLocal
    and Treasury > 80000
    
    console_command add_money romans_julii, -30000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii
    and not FactionIsLocal
    and Treasury > 80000
    
    console_command add_money romans_scipii, -30000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii
    and not FactionIsLocal
    and Treasury > 80000
    
    console_command add_money romans_brutii, -30000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt
    and not FactionIsLocal
    and Treasury > 80000
    
    console_command add_money egypt, -30000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid
    and not FactionIsLocal
    and Treasury > 80000
    
    console_command add_money seleucid, -30000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage
    and not FactionIsLocal
    and Treasury > 80000
    
    console_command add_money carthage, -30000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia
    and not FactionIsLocal
    and Treasury > 80000
    
    console_command add_money parthia, -30000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType gauls
    and not FactionIsLocal
    and Treasury > 80000
    
    console_command add_money gauls, -30000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans
    and not FactionIsLocal
    and Treasury > 80000
    
    console_command add_money germans, -30000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType britons
    and not FactionIsLocal
    and Treasury > 80000
    
    console_command add_money britons, -30000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities
    and not FactionIsLocal
    and Treasury > 80000
    
    console_command add_money greek_cities, -30000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType macedon
    and not FactionIsLocal
    and Treasury > 80000
    
    console_command add_money macedon, -30000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType pontus
    and not FactionIsLocal
    and Treasury > 80000
    
    console_command add_money pontus, -30000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia
    and not FactionIsLocal
    and Treasury > 80000
    
    console_command add_money armenia, -30000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType dacia
    and not FactionIsLocal
    and Treasury > 80000
    
    console_command add_money dacia, -30000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType scythia
    and not FactionIsLocal
    and Treasury > 80000
    
    console_command add_money scythia, -30000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType spain
    and not FactionIsLocal
    and Treasury > 80000
    
    console_command add_money spain, -30000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace
    and not FactionIsLocal
    and Treasury > 80000
    
    console_command add_money thrace, -30000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType numidia
    and not FactionIsLocal
    and Treasury > 80000
    
    console_command add_money numidia, -30000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba
    and not FactionIsLocal
    and Treasury > 80000
    
    console_command add_money saba, -30000
    
    end_monitor
    
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;Section 4c: AI Debt Reduction
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    monitor_event FactionTurnStart FactionType romans_julii
    and not FactionIsLocal
    and Treasury > 80000
    and I_NumberOfSettlements romans_julii < 5
    
    console_command add_money romans_julii, 8000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii
    and not FactionIsLocal
    and Treasury < -3000
    and I_NumberOfSettlements romans_scipii < 5
    
    console_command add_money romans_scipii, 8000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii
    and not FactionIsLocal
    and Treasury < -3000
    and I_NumberOfSettlements romans_brutii < 5
    
    console_command add_money romans_brutii, 8000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt
    and not FactionIsLocal
    and Treasury < -3000
    and I_NumberOfSettlements egypt < 5
    
    console_command add_money egypt, 8000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid
    and not FactionIsLocal
    and Treasury < -3000
    and I_NumberOfSettlements seleucid < 5
    
    console_command add_money seleucid, 8000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage
    and not FactionIsLocal
    and Treasury < -3000
    and I_NumberOfSettlements carthage < 5
    
    console_command add_money carthage, 8000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia
    and not FactionIsLocal
    and Treasury < -3000
    and I_NumberOfSettlements parthia < 5
    
    console_command add_money parthia, 8000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType gauls
    and not FactionIsLocal
    and Treasury < -3000
    and I_NumberOfSettlements gauls < 5
    
    console_command add_money gauls, 8000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans
    and not FactionIsLocal
    and Treasury < -3000
    and I_NumberOfSettlements germans < 5
    
    console_command add_money germans, 8000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType britons
    and not FactionIsLocal
    and Treasury < -3000
    and I_NumberOfSettlements britons < 5
    
    console_command add_money britons, 8000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities
    and not FactionIsLocal
    and Treasury < -3000
    and I_NumberOfSettlements greek_cities < 5
    
    console_command add_money greek_cities, 8000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType macedon
    and not FactionIsLocal
    and Treasury < -3000
    and I_NumberOfSettlements macedon < 5
    
    console_command add_money macedon, 8000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType pontus
    and not FactionIsLocal
    and Treasury < -3000
    and I_NumberOfSettlements pontus < 5
    
    console_command add_money pontus, 8000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia
    and not FactionIsLocal
    and Treasury < -3000
    and I_NumberOfSettlements armenia < 5
    
    console_command add_money armenia, 8000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType dacia
    and not FactionIsLocal
    and Treasury < -3000
    and I_NumberOfSettlements dacia < 5
    
    console_command add_money dacia, 8000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType scythia
    and not FactionIsLocal
    and Treasury < -3000
    and I_NumberOfSettlements scythia < 5
    
    console_command add_money scythia, 8000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType spain
    and not FactionIsLocal
    and Treasury < -3000
    and I_NumberOfSettlements spain < 5
    
    console_command add_money spain, 8000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace
    and not FactionIsLocal
    and Treasury < -3000
    and I_NumberOfSettlements thrace < 5
    
    console_command add_money thrace, 8000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType numidia
    and not FactionIsLocal
    and Treasury < -3000
    and I_NumberOfSettlements numidia < 5
    
    console_command add_money numidia, 8000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba
    and not FactionIsLocal
    and Treasury < -3000
    and I_NumberOfSettlements saba < 5
    
    console_command add_money saba, 8000
    
    end_monitor
    
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;Section 4d: Faction Specific City Income Bonus
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    
    ;monitor_event CharacterTurnStart FactionType egypt
    ;and AgentType = admiral
    ;and not FactionIsLocal
    ;console_command add_money egypt, 1200
    
    ;end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_julii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_julii < 5
    
    console_command add_money romans_julii, 12000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_julii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_julii < 9
    
    console_command add_money romans_julii, 10000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_julii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_julii < 13
    
    console_command add_money romans_julii, 8000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_julii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_julii < 17
    
    console_command add_money romans_julii, 6000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_julii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_julii < 21
    
    console_command add_money romans_julii, 4000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_julii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_julii < 25
    
    console_command add_money romans_julii, 2000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_julii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_julii > 25
    
    console_command add_money romans_julii, -500
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_scipii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_scipii < 5
    
    console_command add_money romans_scipii, 12000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_scipii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_scipii < 9
    
    console_command add_money romans_scipii, 10000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_scipii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_scipii < 13
    
    console_command add_money romans_scipii, 8000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_scipii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_scipii < 17
    
    console_command add_money romans_scipii, 6000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_scipii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_scipii < 21
    
    console_command add_money romans_scipii, 4000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_scipii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_scipii < 25
    
    console_command add_money romans_scipii, 2000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_scipii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_scipii > 25
    
    console_command add_money romans_scipii, -500
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_brutii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_brutii < 5
    
    console_command add_money romans_brutii, 12000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_brutii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_brutii < 9
    
    console_command add_money romans_brutii, 10000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_brutii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_brutii < 13
    
    console_command add_money romans_brutii, 8000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_brutii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_brutii < 17
    
    console_command add_money romans_brutii, 6000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_brutii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_brutii < 21
    
    console_command add_money romans_brutii, 4000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_brutii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_brutii < 25
    
    console_command add_money romans_brutii, 2000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_brutii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_brutii > 25
    
    console_command add_money romans_brutii, -500
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType egypt
    and not FactionIsLocal
    and I_NumberOfSettlements egypt < 5
    
    console_command add_money egypt, 12000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType egypt
    and not FactionIsLocal
    and I_NumberOfSettlements egypt < 9
    
    console_command add_money egypt, 10000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType egypt
    and not FactionIsLocal
    and I_NumberOfSettlements egypt < 13
    
    console_command add_money egypt, 8000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType egypt
    and not FactionIsLocal
    and I_NumberOfSettlements egypt < 17
    
    console_command add_money egypt, 6000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType egypt
    and not FactionIsLocal
    and I_NumberOfSettlements egypt < 21
    
    console_command add_money egypt, 4000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType egypt
    and not FactionIsLocal
    and I_NumberOfSettlements egypt < 25
    
    console_command add_money egypt, 2000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType egypt
    and not FactionIsLocal
    and I_NumberOfSettlements egypt > 25
    
    console_command add_money egypt, -500
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType seleucid
    and not FactionIsLocal
    and I_NumberOfSettlements seleucid < 5
    
    console_command add_money seleucid, 12000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType seleucid
    and not FactionIsLocal
    and I_NumberOfSettlements seleucid < 9
    
    console_command add_money seleucid, 10000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType seleucid
    and not FactionIsLocal
    and I_NumberOfSettlements seleucid < 13
    
    console_command add_money seleucid, 8000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType seleucid
    and not FactionIsLocal
    and I_NumberOfSettlements seleucid < 17
    
    console_command add_money seleucid, 6000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType seleucid
    and not FactionIsLocal
    and I_NumberOfSettlements seleucid < 21
    
    console_command add_money seleucid, 4000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType seleucid
    and not FactionIsLocal
    and I_NumberOfSettlements seleucid < 25
    
    console_command add_money seleucid, 2000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType seleucid
    and not FactionIsLocal
    and I_NumberOfSettlements seleucid > 25
    
    console_command add_money seleucid, -500
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType carthage
    and not FactionIsLocal
    and I_NumberOfSettlements carthage < 5
    
    console_command add_money carthage, 12000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType carthage
    and not FactionIsLocal
    and I_NumberOfSettlements carthage < 9
    
    console_command add_money carthage, 10000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType carthage
    and not FactionIsLocal
    and I_NumberOfSettlements carthage < 13
    
    console_command add_money carthage, 8000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType carthage
    and not FactionIsLocal
    and I_NumberOfSettlements carthage < 17
    
    console_command add_money carthage, 6000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType carthage
    and not FactionIsLocal
    and I_NumberOfSettlements carthage < 21
    
    console_command add_money carthage, 4000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType carthage
    and not FactionIsLocal
    and I_NumberOfSettlements carthage < 25
    
    console_command add_money carthage, 2000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType carthage
    and not FactionIsLocal
    and I_NumberOfSettlements carthage > 25
    
    console_command add_money carthage, -500
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType parthia
    and not FactionIsLocal
    and I_NumberOfSettlements parthia < 5
    
    console_command add_money parthia, 12000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType parthia
    and not FactionIsLocal
    and I_NumberOfSettlements parthia < 9
    
    console_command add_money parthia, 10000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType parthia
    and not FactionIsLocal
    and I_NumberOfSettlements parthia < 13
    
    console_command add_money parthia, 8000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType parthia
    and not FactionIsLocal
    and I_NumberOfSettlements parthia < 17
    
    console_command add_money parthia, 6000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType parthia
    and not FactionIsLocal
    and I_NumberOfSettlements parthia < 21
    
    console_command add_money parthia, 4000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType parthia
    and not FactionIsLocal
    and I_NumberOfSettlements parthia < 25
    
    console_command add_money parthia, 2000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType parthia
    and not FactionIsLocal
    and I_NumberOfSettlements parthia > 25
    
    console_command add_money parthia, -500
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType gauls
    and not FactionIsLocal
    and I_NumberOfSettlements gauls < 5
    
    console_command add_money gauls, 12000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType gauls
    and not FactionIsLocal
    and I_NumberOfSettlements gauls < 9
    
    console_command add_money gauls, 10000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType gauls
    and not FactionIsLocal
    and I_NumberOfSettlements gauls < 13
    
    console_command add_money gauls, 8000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType gauls
    and not FactionIsLocal
    and I_NumberOfSettlements gauls < 17
    
    console_command add_money gauls, 6000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType gauls
    and not FactionIsLocal
    and I_NumberOfSettlements gauls < 21
    
    console_command add_money gauls, 4000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType gauls
    and not FactionIsLocal
    and I_NumberOfSettlements gauls < 25
    
    console_command add_money gauls, 2000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType gauls
    and not FactionIsLocal
    and I_NumberOfSettlements gauls > 25
    
    console_command add_money gauls, -500
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType germans
    and not FactionIsLocal
    and I_NumberOfSettlements germans < 5
    
    console_command add_money germans, 12000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType germans
    and not FactionIsLocal
    and I_NumberOfSettlements germans < 9
    
    console_command add_money germans, 10000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType germans
    and not FactionIsLocal
    and I_NumberOfSettlements germans < 13
    
    console_command add_money germans, 8000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType germans
    and not FactionIsLocal
    and I_NumberOfSettlements germans < 17
    
    console_command add_money germans, 6000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType germans
    and not FactionIsLocal
    and I_NumberOfSettlements germans < 21
    
    console_command add_money germans, 4000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType germans
    and not FactionIsLocal
    and I_NumberOfSettlements germans < 25
    
    console_command add_money germans, 2000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType germans
    and not FactionIsLocal
    and I_NumberOfSettlements germans > 25
    
    console_command add_money germans, -500
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType britons
    and not FactionIsLocal
    and I_NumberOfSettlements britons < 5
    
    console_command add_money britons, 12000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType britons
    and not FactionIsLocal
    and I_NumberOfSettlements britons < 9
    
    console_command add_money britons, 10000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType britons
    and not FactionIsLocal
    and I_NumberOfSettlements britons < 13
    
    console_command add_money britons, 8000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType britons
    and not FactionIsLocal
    and I_NumberOfSettlements britons < 17
    
    console_command add_money britons, 6000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType britons
    and not FactionIsLocal
    and I_NumberOfSettlements britons < 21
    
    console_command add_money britons, 4000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType britons
    and not FactionIsLocal
    and I_NumberOfSettlements britons < 25
    
    console_command add_money britons, 2000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType britons
    and not FactionIsLocal
    and I_NumberOfSettlements britons > 25
    
    console_command add_money britons, -500
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType greek_cities
    and not FactionIsLocal
    and I_NumberOfSettlements greek_cities < 5
    
    console_command add_money greek_cities, 12000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType greek_cities
    and not FactionIsLocal
    and I_NumberOfSettlements greek_cities < 9
    
    console_command add_money greek_cities, 10000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType greek_cities
    and not FactionIsLocal
    and I_NumberOfSettlements greek_cities < 13
    
    console_command add_money greek_cities, 8000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType greek_cities
    and not FactionIsLocal
    and I_NumberOfSettlements greek_cities < 17
    
    console_command add_money greek_cities, 6000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType greek_cities
    and not FactionIsLocal
    and I_NumberOfSettlements greek_cities < 21
    
    console_command add_money greek_cities, 4000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType greek_cities
    and not FactionIsLocal
    and I_NumberOfSettlements greek_cities < 25
    
    console_command add_money greek_cities, 2000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType greek_cities
    and not FactionIsLocal
    and I_NumberOfSettlements greek_cities > 25
    
    console_command add_money greek_cities, -500
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType macedon
    and not FactionIsLocal
    and I_NumberOfSettlements macedon < 5
    
    console_command add_money macedon, 12000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType macedon
    and not FactionIsLocal
    and I_NumberOfSettlements macedon < 9
    
    console_command add_money macedon, 10000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType macedon
    and not FactionIsLocal
    and I_NumberOfSettlements macedon < 13
    
    console_command add_money macedon, 8000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType macedon
    and not FactionIsLocal
    and I_NumberOfSettlements macedon < 17
    
    console_command add_money macedon, 6000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType macedon
    and not FactionIsLocal
    and I_NumberOfSettlements macedon < 21
    
    console_command add_money macedon, 4000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType macedon
    and not FactionIsLocal
    and I_NumberOfSettlements macedon < 25
    
    console_command add_money macedon, 2000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType macedon
    and not FactionIsLocal
    and I_NumberOfSettlements macedon > 25
    
    console_command add_money macedon, -500
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType pontus
    and not FactionIsLocal
    and I_NumberOfSettlements pontus < 5
    
    console_command add_money pontus, 12000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType pontus
    and not FactionIsLocal
    and I_NumberOfSettlements pontus < 9
    
    console_command add_money pontus, 10000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType pontus
    and not FactionIsLocal
    and I_NumberOfSettlements pontus < 13
    
    console_command add_money pontus, 8000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType pontus
    and not FactionIsLocal
    and I_NumberOfSettlements pontus < 17
    
    console_command add_money pontus, 6000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType pontus
    and not FactionIsLocal
    and I_NumberOfSettlements pontus < 21
    
    console_command add_money pontus, 4000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType pontus
    and not FactionIsLocal
    and I_NumberOfSettlements pontus < 25
    
    console_command add_money pontus, 2000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType pontus
    and not FactionIsLocal
    and I_NumberOfSettlements pontus > 25
    
    console_command add_money pontus, -500
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType armenia
    and not FactionIsLocal
    and I_NumberOfSettlements armenia < 5
    
    console_command add_money armenia, 12000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType armenia
    and not FactionIsLocal
    and I_NumberOfSettlements armenia < 9
    
    console_command add_money armenia, 10000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType armenia
    and not FactionIsLocal
    and I_NumberOfSettlements armenia < 13
    
    console_command add_money armenia, 8000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType armenia
    and not FactionIsLocal
    and I_NumberOfSettlements armenia < 17
    
    console_command add_money armenia, 6000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType armenia
    and not FactionIsLocal
    and I_NumberOfSettlements armenia < 21
    
    console_command add_money armenia, 4000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType armenia
    and not FactionIsLocal
    and I_NumberOfSettlements armenia < 25
    
    console_command add_money armenia, 2000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType armenia
    and not FactionIsLocal
    and I_NumberOfSettlements armenia > 25
    
    console_command add_money armenia, -500
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType dacia
    and not FactionIsLocal
    and I_NumberOfSettlements dacia < 5
    
    console_command add_money dacia, 12000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType dacia
    and not FactionIsLocal
    and I_NumberOfSettlements dacia < 9
    
    console_command add_money dacia, 10000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType dacia
    and not FactionIsLocal
    and I_NumberOfSettlements dacia < 13
    
    console_command add_money dacia, 8000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType dacia
    and not FactionIsLocal
    and I_NumberOfSettlements dacia < 17
    
    console_command add_money dacia, 6000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType dacia
    and not FactionIsLocal
    and I_NumberOfSettlements dacia < 21
    
    console_command add_money dacia, 4000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType dacia
    and not FactionIsLocal
    and I_NumberOfSettlements dacia < 25
    
    console_command add_money dacia, 2000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType dacia
    and not FactionIsLocal
    and I_NumberOfSettlements dacia > 25
    
    console_command add_money dacia, -500
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType scythia
    and not FactionIsLocal
    and I_NumberOfSettlements scythia < 5
    
    console_command add_money scythia, 12000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType scythia
    and not FactionIsLocal
    and I_NumberOfSettlements scythia < 9
    
    console_command add_money scythia, 10000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType scythia
    and not FactionIsLocal
    and I_NumberOfSettlements scythia < 13
    
    console_command add_money scythia, 8000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType scythia
    and not FactionIsLocal
    and I_NumberOfSettlements scythia < 17
    
    console_command add_money scythia, 6000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType scythia
    and not FactionIsLocal
    and I_NumberOfSettlements scythia < 21
    
    console_command add_money scythia, 4000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType scythia
    and not FactionIsLocal
    and I_NumberOfSettlements scythia < 25
    
    console_command add_money scythia, 2000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType scythia
    and not FactionIsLocal
    and I_NumberOfSettlements scythia > 25
    
    console_command add_money scythia, -500
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType spain
    and not FactionIsLocal
    and I_NumberOfSettlements spain < 5
    
    console_command add_money spain, 12000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType spain
    and not FactionIsLocal
    and I_NumberOfSettlements spain < 9
    
    console_command add_money spain, 10000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType spain
    and not FactionIsLocal
    and I_NumberOfSettlements spain < 13
    
    console_command add_money spain, 8000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType spain
    and not FactionIsLocal
    and I_NumberOfSettlements spain < 17
    
    console_command add_money spain, 6000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType spain
    and not FactionIsLocal
    and I_NumberOfSettlements spain < 21
    
    console_command add_money spain, 4000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType spain
    and not FactionIsLocal
    and I_NumberOfSettlements spain < 25
    
    console_command add_money spain, 2000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType spain
    and not FactionIsLocal
    and I_NumberOfSettlements spain > 25
    
    console_command add_money spain, -500
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType thrace
    and not FactionIsLocal
    and I_NumberOfSettlements thrace < 5
    
    console_command add_money thrace, 12000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType thrace
    and not FactionIsLocal
    and I_NumberOfSettlements thrace < 9
    
    console_command add_money thrace, 10000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType thrace
    and not FactionIsLocal
    and I_NumberOfSettlements thrace < 13
    
    console_command add_money thrace, 8000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType thrace
    and not FactionIsLocal
    and I_NumberOfSettlements thrace < 17
    
    console_command add_money thrace, 6000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType thrace
    and not FactionIsLocal
    and I_NumberOfSettlements thrace < 21
    
    console_command add_money thrace, 4000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType thrace
    and not FactionIsLocal
    and I_NumberOfSettlements thrace < 25
    
    console_command add_money thrace, 2000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType thrace
    and not FactionIsLocal
    and I_NumberOfSettlements thrace > 25
    
    console_command add_money thrace, -500
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType numidia
    and not FactionIsLocal
    and I_NumberOfSettlements numidia < 5
    
    console_command add_money numidia, 12000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType numidia
    and not FactionIsLocal
    and I_NumberOfSettlements numidia < 9
    
    console_command add_money numidia, 10000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType numidia
    and not FactionIsLocal
    and I_NumberOfSettlements numidia < 13
    
    console_command add_money numidia, 8000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType numidia
    and not FactionIsLocal
    and I_NumberOfSettlements numidia < 17
    
    console_command add_money numidia, 6000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType numidia
    and not FactionIsLocal
    and I_NumberOfSettlements numidia < 21
    
    console_command add_money numidia, 4000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType numidia
    and not FactionIsLocal
    and I_NumberOfSettlements numidia < 25
    
    console_command add_money numidia, 2000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType numidia
    and not FactionIsLocal
    and I_NumberOfSettlements numidia > 25
    
    console_command add_money numidia, -500
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType saba
    and not FactionIsLocal
    and I_NumberOfSettlements saba < 5
    
    console_command add_money saba, 12000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType saba
    and not FactionIsLocal
    and I_NumberOfSettlements saba < 9
    
    console_command add_money saba, 10000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType saba
    and not FactionIsLocal
    and I_NumberOfSettlements saba < 13
    
    console_command add_money saba, 8000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType saba
    and not FactionIsLocal
    and I_NumberOfSettlements saba < 17
    
    console_command add_money saba, 6000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType saba
    and not FactionIsLocal
    and I_NumberOfSettlements saba < 21
    
    console_command add_money saba, 4000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType saba
    and not FactionIsLocal
    and I_NumberOfSettlements saba < 25
    
    console_command add_money saba, 2000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType saba
    and not FactionIsLocal
    and I_NumberOfSettlements saba > 25
    
    console_command add_money saba, -500
    
    end_monitor
    monitor_event SettlementTurnStart FactionType slave
    and not FactionIsLocal
    and I_NumberOfSettlements slave < 121
    and I_NumberOfSettlements slave > 100
    
    console_command add_money slave, 1500
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType slave
    and not FactionIsLocal
    and I_NumberOfSettlements slave < 101
    and I_NumberOfSettlements slave > 80
    
    console_command add_money slave, 3000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType slave
    and not FactionIsLocal
    and I_NumberOfSettlements slave < 81
    and I_NumberOfSettlements slave > 60
    
    console_command add_money slave, 4500
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType slave
    and not FactionIsLocal
    and I_NumberOfSettlements slave < 61
    and I_NumberOfSettlements slave > 40
    
    console_command add_money slave, 6000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType slave
    and not FactionIsLocal
    and I_NumberOfSettlements slave < 41
    
    console_command add_money slave, 7500
    
    end_monitor
    Help make developers understand the importance of game AI and earn credits as a Game Designer. The Restaurant Game Project

  2. #2

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

    Gaias, I was going through your code and I have some questions about effects I'm not sure you intended. But I know you have a different philosophy with this so I wanted to ask first.

    Code:
    monitor_event SettlementTurnStart FactionType saba
    and not FactionIsLocal
    and I_NumberOfSettlements saba < 5
    
    console_command add_money saba, 12000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType saba
    and not FactionIsLocal
    and I_NumberOfSettlements saba < 9
    
    console_command add_money saba, 10000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType saba
    and not FactionIsLocal
    and I_NumberOfSettlements saba < 13
    
    console_command add_money saba, 8000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType saba
    and not FactionIsLocal
    and I_NumberOfSettlements saba < 17
    
    console_command add_money saba, 6000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType saba
    and not FactionIsLocal
    and I_NumberOfSettlements saba < 21
    
    console_command add_money saba, 4000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType saba
    and not FactionIsLocal
    and I_NumberOfSettlements saba < 25
    
    console_command add_money saba, 2000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType saba
    and not FactionIsLocal
    and I_NumberOfSettlements saba > 25
    
    console_command add_money saba, -500
    Here you have conditionals that look for a certain number of settlements. But in most cases you only provide a high limit to your conditions. Each monitor of the script will be checked every turn, and multiple monitors can be activated simultaneously. So a low number of factions could trigger multiple commands. For instance, if a faction has 4 settlements, it will trigger the <5 condition, as well as the <9 condition, the <13 condition, the <17 condition, the <21 condition, and the <25 condition, because it checks all of those and they would all be true. This will result in the faction receiving 42000 mnai every single turn! Is that what you intended?

    You also wrote a monitor to take money away from large factions every turn. It is triggered by the condition of having 26 or more settlements (>25). You also have a monitor to add money to a faction with 24 or less settlements (<25). But you have no monitor for factions with exactly 25 settlements! Every other possible number is covered except for 25. Is this what you intended?

    If not, I suggest you include both a high limit and a low limit for each monitor aside from the first and last (<5 and >25). And remember that you have to use "greater than" and "less than," there is no "greater than or equal to" or "less than or equal to". So if you wanted a monitor to apply to factions with 21 to 25 settlements (for example), you would have to use >20 and <26 as your limits.
    Last edited by Sheep; 04-26-2007 at 03:38.

  3. #3

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

    Well considering I do not know how to code anything in RTW, I was just testing out very wide range of effects. I wasn't planning on this 'code' to be anything other than a random test of variables. It is rather raw and the money numbers are rather high but it easier to reduce the numbers than it is to increase.

    I didn't know about all the greater than and less than configuration, so I thank you for tell me that. The 25 was a mistake on my part as I didn't realise it until later.... My intent with factions greater than 25 settlements was to incur a massive debt the longer the go on and larger they become. The idea being that most large empires tend to fall under considerable financial debt. Though the large amount of monies gain per settlement probable negated this effect.

    The code, if you can call it that, is more a of trial and error for me to learn what works and what doesn't. It's one thing for you and others here to understand what it means and are able to moderately guess how the outcome will be. I can only learn from doing and seeing the results for myself (which I will be posting soon).

    Here are the test results for 120 turns. My poor computer couldn't handle anymore. Fairly interesting results considering that is very buggy code that is running it. Somewhat was I was looking for it to do but it still requires a great amount of tweaking to get it to work as I envision it.

    Last edited by Gaias; 04-26-2007 at 06:14.
    Help make developers understand the importance of game AI and earn credits as a Game Designer. The Restaurant Game Project

  4. #4

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

    That IS a weird map!

    Quote Originally Posted by Gaias
    Well considering I do not know how to code anything in RTW, I was just testing out very wide range of effects.
    That's fine! I assume you were posting your work for us to look over, so look it over I did, and now you have learned a bit about the code without having to figure it out for yourself. Which means you can more quickly do what you want to do with it!
    Last edited by Sheep; 04-26-2007 at 07:27.

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

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



    The results of my latest script. Pretty interesting.

    Cons. Baktria, Ptolies and Carthies are still too powerful. Need to be nerfed. Steppe factions still too weak. Saka in particular needs more support.
    Pahlava had a good expansion going in the right direction but got cut off from the best provinces by an overeager Baktria.

    Pros. Lusotana, Getai and Pontics moved! Sweet! They didn't stand up to the superpowers but they moved. The Sweboz are slow to start but once they get going their is no stopping them.

    Changes for next script include additonal bonuses to steppe factions. Additional nerfing of Superpowers and minor tweaks.

    By 200 B.C no faction has yet to be destroyed, although both Rome and Lusotana are on the endagered list, with a single weakly garrisoned settlement each, and under siege.
    The Getai are down to two settlements with one under siege by the Sweboz. The Arverni have a single settlement but nobody is bothering with them.
    The Pontics are down to two. The Pahlava also two though they are under heavy pressure from Baktria. The Seleukids have three but no active enemies.

    I'm eagerly expecting the White Giant going to war with the Pseudo Pharaohs of Hellenic Egypt.

    Anyway here is link to my current script: http://www.axifile.com?1839807
    Last edited by The Errant; 04-26-2007 at 19:23.

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

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

  6. #6

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

    I should have stated that most of my game test are on a modifed EB installing playing with the BI.exe. I was just posting here my ideas for the script as it seemed the most relevent thread to do so with.

    From the test that you Sheep and others have made here, I am beginning to come to the conclusion that the money script might not be the problem. As I was running my script a few more times, I noticed the AI was recuiting their elite units a third of the time. These of course are some of the more expensive units for the factions, and were afforable for the ai in droves considering the money they were recieving each turn. I had the idea of reducing all unit recruit cost to the exact same number and increasing the upkeep cost double, to see what kind of effect it would have.

    I am also toying around with the idea of having non recruitable units for all factions and units being introduced to factions via script. These units would be a set amount dependent on treasury, settlements, number of settlemes and the like. Not sure this would be doable, nor would it have the desired effect. As I thought about it, this kind of system would gear itself more to a faction specific campaign then a general one than what EB stands for.

    But I will continue on revising and testing my script to see if it has anykind of desirable effect and post my findings here.
    Help make developers understand the importance of game AI and earn credits as a Game Designer. The Restaurant Game Project

  7. #7

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

    What is the difference in money (or other?) terms between Hard and Very Hard Campaign difficulty?

    Does anyone know what priorities the AI has for money? Does it buy buildings first for all towns, then the rest on troops? Or troops first, then buildings if money left? Does it slow down building troops if it is broke? (i.e does it follow the same rules that the player has?).

    I am also thinking like people here about how best to balance the game (well, make it harder really). I have a couple of ideas, but haven't tried them out just yet...

    Cheers,

    Hunter

  8. #8

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

    Quote Originally Posted by Gaias
    As I was running my script a few more times, I noticed the AI was recuiting their elite units a third of the time.
    I honestly don't mind fighting their elite units, as they provide more of a challenge. But like TheErrant said, I just don't like fighting 6 stacks of them every turn. Especially the Seleukids. We can't control what the AI recruits with the script, but we can control how many of them they can recruit.

  9. #9

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

    Quote Originally Posted by The Errant
    Changes for next script include additonal bonuses to steppe factions. Additional nerfing of Superpowers and minor tweaks.
    I noticed that you switched the difficult start bonus for Baktria and Armenia. Armenia (romans_scipii) gets it for 20 turns while Baktria (romans_brutii) gets it for 40 turns. I figured this was backwards so I switched it when I posted the code on the front page. Are Rome and the Saba supposed to have a treasury cap of 100000 instead of 80000?

  10. #10

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

    In me 1 test after the discusion over the problem whit the script not loading. The negative dept checking konditions are working for me. I have quit a stabil campain ( again the Seleuce are quit strong but not monstrous:P, the Ptoleis are holding quit good, and Pahlava and Bactria are advancing into AS lands.)

    What I dont like is that the factions Like Pontus or the Hai, after becoming stagnat just fxplod whit theyr tresury (pontus curently nearing 1milion in 249bc). So I am working on a step cap for the factions taking.

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

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

    Quote Originally Posted by Sheep
    I noticed that you switched the difficult start bonus for Baktria and Armenia. Armenia (romans_scipii) gets it for 20 turns while Baktria (romans_brutii) gets it for 40 turns. I figured this was backwards so I switched it when I posted the code on the front page. Are Rome and the Saba supposed to have a treasury cap of 100000 instead of 80000?
    That's about right. Hayasdan has problems starting the game but once they get moving they can become quite powerful. Baktria is overpowered as it is so I nerfed them even more in my new script. Same goes for the Carthies.
    The 100000 treasury cap Eminos64 introduced was good, but much too high. The new highest treasury cap for any faction is 80000 with the Ptolies, Carthies and Baktria getting it lowered to 70000. I want the Seleukids to be overrun by Pahlava, Pontos, Hayasdan or one of the other steppe factions. Not Baktria or Ptolies.
    Saba and Rome have both had their treasury capped lower. And the steppe factions get a total of 80 turns with the starting bonus of 6000 per turn.
    It's a careful balance I'm constructing. I want the Lusotana to beat the Carthies in Iberia if the AI will just put up the effort. The Getai are as well off as can be expected. Only the Sweboz expansion is a bit over the top but they mostly take large and poor provinces in the north.
    I feel I'm very close to the final build. The things I've managed to do have already improved the game immensly in my opinion.
    I'll see how the latest script affects things. If it works the way I planned, it might be the final version. Until the next EB build comes out and we have to start this thing all over again.

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

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

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