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