Log in

View Full Version : Scripting battle casualties



TruePraetorian
12-30-2007, 04:15
A bit of a random question, but does anyone know how to make a script that can spawn a unit with a specified number of troops? I mean, is there a way to make a unit look like the casualties were already deducted? (such as spawning one unit of roman hastati with 64 men on large scale(reg is 80))

The reason for this is really to eliminate the need for auto-resolving battles when you play hotseat campaigns...i have some friends that would like to hotseat but they dont want to auto-resolve, they would rather online battle it out...

Red Spot
12-30-2007, 20:34
its easy to spawn an army with a specific number of men, its explained in the scripting tutorial in the scriptorium, wich can be easilly found as its added to the list of tutorials ...

though I'd think again about how I'd want to use it as I cant help feel you probably wont be playing much as you now envision, though dont let me stop you ;)

Edit; you're lucky I have the code at hand ... ;)

spawn_army
faction romans_scipii
character Servius Scipio, named character, command 0, influence 0, management 0, subterfuge 0, age 37, x 252, y 233
unit roman generals guard cavalry, soldiers 40 exp 8 armour 3 weapon_lvl 3
unit roman legion cavalry ii, soldiers 80 exp 7 armour 3 weapon_lvl 3
unit roman legion cavalry ii, soldiers 80 exp 7 armour 3 weapon_lvl 3
unit roman legion first cohort11 ii, soldiers 200 exp 7 armour 3 weapon_lvl 3
unit roman legion first cohort11 ii, soldiers 200 exp 7 armour 3 weapon_lvl 3
unit roman legion cohort11 ii, soldiers 160 exp 6 armour 3 weapon_lvl 3
unit roman legion cohort11 ii, soldiers 160 exp 6 armour 3 weapon_lvl 3
unit roman legion cohort11 ii, soldiers 160 exp 6 armour 3 weapon_lvl 3
unit roman legion cohort11 ii, soldiers 160 exp 6 armour 3 weapon_lvl 3
unit roman legion cohort11 ii, soldiers 160 exp 6 armour 3 weapon_lvl 3
unit roman legion cohort11 ii, soldiers 160 exp 6 armour 3 weapon_lvl 3
unit roman legion cohort11 ii, soldiers 160 exp 6 armour 3 weapon_lvl 3
unit roman legion cohort11 ii, soldiers 160 exp 6 armour 3 weapon_lvl 3
unit roman triarii ii, soldiers 160 exp 6 armour 3 weapon_lvl 3
unit roman triarii ii, soldiers 160 exp 6 armour 3 weapon_lvl 3
unit roman triarii ii, soldiers 160 exp 6 armour 3 weapon_lvl 3
unit roman triarii ii, soldiers 160 exp 6 armour 3 weapon_lvl 3
unit roman legion archer ii, soldiers 160 exp 6 armour 3 weapon_lvl 3
unit roman legion archer ii, soldiers 160 exp 6 armour 3 weapon_lvl 3
unit roman legion archer ii, soldiers 160 exp 6 armour 3 weapon_lvl 3
end


G

TruePraetorian
12-31-2007, 02:02
Thanks, and its not online, its here at home we are going to lan base the games....