Results 1 to 6 of 6

Thread: RS 2.1a AI Spawn Army&Money scripts

  1. #1

    Default RS 2.1a AI Spawn Army&Money scripts

    Hey, RS fans!
    Having totally tired of fighting AI spawn stacks (0-turn game for Romans) again and again I have tried to find some solutions.
    Thanx to guys from Russian fan-sites I found the file in Play_Rome/data/scripts/show_me named as "backgrond_script.txt". Observing this file I realise how we can change AI spawn armies and money scripts.
    1) For each fraction there is certain block in script which activates when there is threat for AI from the Human player and it looks just like this:
    ;;;;PARTHIA
    declare_counter parthia_emergency

    monitor_event CharacterTurnEnd FactionLeaderTrait ParthiaLevy = 1
    and FactionLeaderTrait ParthiaLevyInactivated = 0
    set_counter parthia_emergency 1
    end_monitor
    monitor_event CharacterTurnEnd FactionLeaderTrait ParthiaLevy = 2
    and FactionLeaderTrait ParthiaLevyInactivated = 0
    set_counter parthia_emergency 2
    end_monitor

    monitor_event FactionTurnStart FactionType parthia
    and not FactionIsLocal
    if I_CompareCounter parthia_emergency = 1
    console_command kill_character "Uvaxshtra of Hecatompylos"
    spawn_army
    faction parthia
    character Uvaxshtra of Hecatompylos, general, age 26, x 480, y 159
    unit parthian generals cavalry, exp 0 armour 1 weapon_lvl 1
    unit parthian heavy cataphract, exp 0 armour 1 weapon_lvl 1
    unit parthian cataphract archer, exp 0 armour 1 weapon_lvl 1
    unit dahae noble cavalry, exp 0 armour 1 weapon_lvl 1
    unit persian nobles, exp 0 armour 1 weapon_lvl 1
    unit persian nobles, exp 0 armour 1 weapon_lvl 1
    unit mardian horse archer, exp 0 armour 1 weapon_lvl 1
    unit mardian horse archer, exp 0 armour 1 weapon_lvl 1
    unit dahae horse archers, exp 0 armour 1 weapon_lvl 1
    unit dahae horse archers, exp 0 armour 1 weapon_lvl 1
    unit dahae horse archers, exp 0 armour 1 weapon_lvl 1
    unit hyrkanian horsemen, exp 0 armour 1 weapon_lvl 1
    unit persian sparabara, exp 0 armour 1 weapon_lvl 1
    unit persian takabara, exp 0 armour 1 weapon_lvl 1
    unit eastern levy spearmen, exp 0 armour 1 weapon_lvl 1
    unit eastern levy spearmen, exp 0 armour 1 weapon_lvl 1
    unit hyrcanian foot archer, exp 0 armour 1 weapon_lvl 1
    unit eastern skirmisher, exp 0 armour 1 weapon_lvl 1
    unit hyrkanian foot skirmisher, exp 0 armour 1 weapon_lvl 1
    unit persian archer, exp 0 armour 1 weapon_lvl 1

    end
    ;console_command give_trait "Uvaxshtra of Hecatompylos" Spawned_Parthia_General 1
    ;console_command give_trait "Uvaxshtra of Hecatompylos" Self_Destruct 1
    ;console_command give_trait "Uvaxshtra of Hecatompylos" GoodCommander1 1
    ;console_command give_trait "Uvaxshtra of Hecatompylos" Parthian 1
    ;console_command give_trait "Uvaxshtra of Hecatompylos" TurnsAlive 1
    ;console_command give_trait "Uvaxshtra of Hecatompylos" CharacterAges 1
    set_counter parthia_emergency 0
    end_if

    if I_CompareCounter parthia_emergency = 2
    console_command kill_character "Arsames of Mithradatkart"
    spawn_army
    faction parthia
    character Arsames of Mithradatkart, general, age 19, x 480, y 159
    unit parthian generals cavalry, exp 0 armour 1 weapon_lvl 1
    unit parthian heavy cataphract, exp 0 armour 1 weapon_lvl 1
    unit parthian cataphract archer, exp 0 armour 1 weapon_lvl 1
    unit dahae noble cavalry, exp 0 armour 1 weapon_lvl 1
    unit persian nobles, exp 0 armour 1 weapon_lvl 1
    unit persian nobles, exp 0 armour 1 weapon_lvl 1
    unit kushan cataphract, exp 0 armour 1 weapon_lvl 1
    unit chorasmian heavy cavalry, exp 0 armour 1 weapon_lvl 1
    unit dahae noble cavalry, exp 0 armour 1 weapon_lvl 1
    unit mardian horse archer, exp 0 armour 1 weapon_lvl 1
    unit mardian horse archer, exp 0 armour 1 weapon_lvl 1
    unit dahae horse archers, exp 0 armour 1 weapon_lvl 1
    unit dahae horse archers, exp 0 armour 1 weapon_lvl 1
    unit hyrkanian horsemen, exp 0 armour 1 weapon_lvl 1
    unit persian sparabara, exp 0 armour 1 weapon_lvl 1
    unit persian takabara, exp 0 armour 1 weapon_lvl 1
    unit hyrcanian foot archer, exp 0 armour 1 weapon_lvl 1
    unit persian takabara, exp 0 armour 1 weapon_lvl 1
    unit hyrkanian foot skirmisher, exp 0 armour 1 weapon_lvl 1
    unit persian archer, exp 0 armour 1 weapon_lvl 1

    end
    ;console_command give_trait "Arsames of Mithradatkart" Spawned_Parthia_General 2
    ;console_command give_trait "Arsames of Mithradatkart" Self_Destruct 1
    ;console_command give_trait "Arsames of Mithradatkart" GoodCommander1 1
    ;console_command give_trait "Arsames of Mithradatkart" Parthian 1
    ;console_command give_trait "Arsames of Mithradatkart" TurnsAlive 1
    ;console_command give_trait "Arsames of Mithradatkart" CharacterAges 1
    set_counter parthia_emergency 0
    end_if
    end_monitor
    AFTER EDITING DATA MARKED AS RED YOU SHOULD RECEIVE THE FOLLOWING:
    ;;;;PARTHIA
    declare_counter parthia_emergency

    monitor_event CharacterTurnEnd FactionLeaderTrait ParthiaLevy = 1
    and FactionLeaderTrait ParthiaLevyInactivated = 0
    set_counter parthia_emergency 1
    end_monitor
    monitor_event CharacterTurnEnd FactionLeaderTrait ParthiaLevy = 2
    and FactionLeaderTrait ParthiaLevyInactivated = 0
    set_counter parthia_emergency 2
    end_monitor

    monitor_event FactionTurnStart FactionType parthia
    and not FactionIsLocal
    if I_CompareCounter parthia_emergency = 1
    console_command kill_character "Uvaxshtra of Hecatompylos"
    spawn_army
    faction parthia
    character Uvaxshtra of Hecatompylos, general, age 26, x 480, y 159
    unit parthian generals cavalry, exp 0 armour 1 weapon_lvl 1

    end

    ;console_command give_trait "Uvaxshtra of Hecatompylos" Spawned_Parthia_General 1
    ;console_command give_trait "Uvaxshtra of Hecatompylos" Self_Destruct 1
    ;console_command give_trait "Uvaxshtra of Hecatompylos" GoodCommander1 1
    ;console_command give_trait "Uvaxshtra of Hecatompylos" Parthian 1
    ;console_command give_trait "Uvaxshtra of Hecatompylos" TurnsAlive 1
    ;console_command give_trait "Uvaxshtra of Hecatompylos" CharacterAges 1
    set_counter parthia_emergency 0
    end_if

    if I_CompareCounter parthia_emergency = 2
    console_command kill_character "Arsames of Mithradatkart"
    spawn_army
    faction parthia
    character Arsames of Mithradatkart, general, age 19, x 480, y 159
    unit parthian generals cavalry, exp 0 armour 1 weapon_lvl 1

    end
    ;console_command give_trait "Arsames of Mithradatkart" Spawned_Parthia_General 2
    ;console_command give_trait "Arsames of Mithradatkart" Self_Destruct 1
    ;console_command give_trait "Arsames of Mithradatkart" GoodCommander1 1
    ;console_command give_trait "Arsames of Mithradatkart" Parthian 1
    ;console_command give_trait "Arsames of Mithradatkart" TurnsAlive 1
    ;console_command give_trait "Arsames of Mithradatkart" CharacterAges 1
    set_counter parthia_emergency 0
    end_if
    end_monitor

    By the way you can change data in your own way just cutting off lines or changing experience and armour levels.
    Tested with my entire campaign (o turn for Rome) for 20 turns and it works brilliant. After defeating Hannibal I get Bononia and Boii didnt even get Patavium. There are still lots of rebels in this area. For 6 turns Boii diplomat each turn tries to get ceasefire and ask me for money. Never find such sutuation in past games. All the fractions now trying to make more diplomatic steps each turn. And now even Arvernii with their huge population having faced some troubles in fighting with rebels. IMHO it looks much more realistic because not all states have the centralised system of administration and romans deals mostly with hundreds of separate tribes than whole nation. Only after long period of time when barbarians get a lot of cultural and military experience from Romans, Greeks and Carthage they have started to create well orginised armies and strategic planning as well as think diplomatic steps.
    Remember the words of Julius Caesar : If Gauls can unite in one nation lifted by same spirit they can coquest the universe.
    As for civilizated fractions you can edit spawn army by your own thinking and visualization of history.
    If you think that in this way company seems to be easy for Romans try to change unit upkeep cost and building costs.
    Later today I'll try to explain how to change script for money inflation.
    Hope this can be useful for all of you.
    Thanx again for creators of this wonderful mod. We are all waiting for 2.2 version with more exellent playing hours=))

  2. #2

    Default Re: RS 2.1a AI Spawn Army&Money scripts

    Still playing my entire campaign. No problems for 200 turns. AI doing well with reqruiting troops and still looks very agresssive

  3. #3

    Default Re: RS 2.1a AI Spawn Army&Money scripts

    Would you please just upload the files?

  4. #4

    Default Re: RS 2.1a AI Spawn Army&Money scripts

    yes please

  5. #5

    Default Re: RS 2.1a AI Spawn Army&Money scripts

    any progress with this??

  6. #6

    Default Re: RS 2.1a AI Spawn Army&Money scripts

    can you continue this submod?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •