Results 1 to 5 of 5

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

Threaded View

Previous Post Previous Post   Next Post Next Post
  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.

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