PDA

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



Turk2
05-05-2007, 10:55
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

Atilius
05-06-2007, 20:19
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.

theroyalwe
08-18-2007, 17:17
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*...

Turk2
08-20-2007, 10:08
https://forums.totalwar.org/vb/showthread.php?t=46738
This should be this what you need

HouseOfHam
02-03-2009, 02:27
After you've tried it and it didn't work, check here :)

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