Results 1 to 5 of 5

Thread: How to make Script Spawn Armies(Make your own Hannibal and Spartacus!)

  1. #1
    Modder Member Turk2's Avatar
    Join Date
    Mar 2007
    Location
    Lilliput
    Posts
    101

    Default How to make Script Spawn Armies(Make your own Hannibal and Spartacus!)

    hi,
    this is an example for a script spawn army.
    it let you see in the campaign map at a year an army how you want
    a complete new army
    this script helps you to simulate rebellions:like here spartacus or other armies:hannibal,gauls in greece,

    1.all spawn armies beginn with a word called scripts
    2.in the second line,you have to put the name of the faction
    3.in the third line you have to write,after how many turns
    4.all armies get 1 letter like A,B,C
    5.put spawn_army at the top
    6.the the faction again
    7.the character(or the general)+traits+location on the map
    8.the units
    9.then put this:terminate_monitor
    end_monitor
    end_script


    use that as example for a script if you want to do a script spawn army:

    script

    monitor_event FactionTurnStart FactionType slave
    and I_TurnNumber = 415

    if spawn_armyA=0

    spawn_army
    faction slave
    character Spartacus, named character, command 5, influence 5, management 3, subterfuge 2, age 38, , x 104, y 67
    unit aor thrace infantry custom, exp 5 armour 0 weapon_lvl 2
    unit aor thrace infantry custom, exp 5 armour 0 weapon_lvl 2
    unit aor thrace infantry custom, exp 5 armour 0 weapon_lvl 2
    unit aor thrace infantry custom, exp 5 armour 0 weapon_lvl 0
    unit aor italy swordsmen custom, exp 4 armour 0 weapon_lvl 0
    unit aor italy swordsmen custom, exp 4 armour 0 weapon_lvl 0
    unit aor italy swordsmen custom, exp 4 armour 0 weapon_lvl 0
    unit aor italy swordsmen custom, exp 4 armour 0 weapon_lvl 0
    unit aor gaul swordsmen custom, exp 3 armour 0 weapon_lvl 0
    unit aor gaul swordsmen custom, exp 3 armour 0 weapon_lvl 0
    unit aor gaul swordsmen custom, exp 3 armour 0 weapon_lvl 0
    unit aor gaul swordsmen custom, exp 3 armour 0 weapon_lvl 0
    unit aor gaul swordsmen custom, exp 3 armour 0 weapon_lvl 0
    unit aor gaul swordsmen custom, exp 3 armour 0 weapon_lvl 0
    unit aor gaul swordsmen custom, exp 3 armour 0 weapon_lvl 0
    unit aor gaul swordsmen custom, exp 3 armour 0 weapon_lvl 0
    unit aor gaul spearmen custom, exp 3 armour 0 weapon_lvl 0
    unit aor gaul spearmen custom, exp 3 armour 0 weapon_lvl 0
    unit aor gaul spearmen custom, exp 3 armour 0 weapon_lvl 0
    unit aor gaul spearmen custom, exp 3 armour 0 weapon_lvl 0
    set_counter spawn_armyA 1
    end_if


    terminate_monitor
    end_monitor
    end_script


    10.Dont forget to put this .txt file in data\scripts
    Last edited by Turk2; 08-20-2007 at 09:55.

  2. #2
    Bibliophilic Member Atilius's Avatar
    Join Date
    Oct 2005
    Location
    America Medioccidentalis Superior
    Posts
    3,837

    Default Re: How to make Script Spawn Armies(Make your own Hannibal and Spartacus!)

    There are several mistakes here.

    This script contains no loop, so it will check the event monitor only once and then terminate. Also, if called from descr_strat.txt, it will only be called on the very first turn of a newly started game.
    The truth is the most valuable thing we have. Let us economize it. - Mark Twain



  3. #3

    Default Re: How to make Script Spawn Armies(Make your own Hannibal and Spartacus!)

    Aww that's too bad becuase that sounds like a really cool script. I have always wanted to be able to spawn a huge army with Hannibal as the general. Oh well.. Maybe someone else will provide the script for us.. *hint* *hint*...

  4. #4
    Modder Member Turk2's Avatar
    Join Date
    Mar 2007
    Location
    Lilliput
    Posts
    101

    Default Re: How to make Script Spawn Armies(Make your own Hannibal and Spartacus!)

    https://forums.totalwar.org/vb/showthread.php?t=46738
    This should be this what you need

  5. #5

    Default Re: How to make Script Spawn Armies(Make your own Hannibal and Spartacus!)

    After you've tried it and it didn't work, check here :)

    http://www.twcenter.net/forums/showthread.php?t=221683
    RTR VII Developer

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