Results 1 to 4 of 4

Thread: Script army

  1. #1

    Default Script army

    Please, how to make a script army. That in a given year and a given territory appeared hostile army. My priority is script´s various uprisings. Spartacus uprising, rebellion in Judea, etc ... In ROME campaing.
    Thanks

  2. #2
    Litharion's Avatar Artifex
    Join Date
    Sep 2013
    Location
    Germany
    Posts
    2,622

    Default Re: Script army

    scripting.game_interface:create_force is the base command you are looking for. Take a look at the Caesar in Gaul scripting.lua. You can find the command being used there e.g.

    scripting.game_interface:create_force( "gaul_suebi", "Ger_Spear_Brothers,Ger_Club_Levy,Ger_Club_Levy,Ger_Scout_Riders,Ger_Slingers", "gaul_silva_nigra_uburzis", 397, 267, "gaul_suebi_AI_army_1", true);
    ------------------------------------------------faction name- -----------------------------------Units------------------------------------------------ -----Region name-------------- Campaign Map Coordinates-------no idea if the rest is necessary, but you can choose any name for the army------

    The only thing you need to do now is to tie the scripting command to a turn number or something.

  3. #3

    Default Re: Script army

    I do this through Assembly kit. And there it can not find. I would like to set that in a given year, and strength, appeared on the map hostile army.

  4. #4
    Litharion's Avatar Artifex
    Join Date
    Sep 2013
    Location
    Germany
    Posts
    2,622

    Default Re: Script army

    Quote Originally Posted by AzraelIII View Post
    I do this through Assembly kit. And there it can not find. I would like to set that in a given year, and strength, appeared on the map hostile army.
    I am currently working on a mechanic like this. I will let you know how to do it after I was successful implementing it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •