Results 1 to 3 of 3

Thread: Scripting battle casualties

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Keeper of the Pax Romanum Member TruePraetorian's Avatar
    Join Date
    Jun 2007
    Location
    Romeo MI (US)
    Posts
    885

    Default Scripting battle casualties

    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...
    The Gods envy us.

    They envy us because we are mortal, because any moment might be our last.
    Everything is more beautiful because we are doomed.
    You will never be lovlier than you are now.

    We will never be here again.

  2. #2
    Notepad user Member Red Spot's Avatar
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    491

    Default Re: Scripting battle casualties

    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 ... ;)
    Code:
    		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
    Last edited by Red Spot; 12-30-2007 at 20:36.

  3. #3
    Keeper of the Pax Romanum Member TruePraetorian's Avatar
    Join Date
    Jun 2007
    Location
    Romeo MI (US)
    Posts
    885

    Default Re: Scripting battle casualties

    Thanks, and its not online, its here at home we are going to lan base the games....
    The Gods envy us.

    They envy us because we are mortal, because any moment might be our last.
    Everything is more beautiful because we are doomed.
    You will never be lovlier than you are now.

    We will never be here again.

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