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
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