Its been a while since I used this, but in EB I used to insert something like the text below into the script (which had to be activated through the show me how button, much like the SAI script when you enter the game) to spawn an army or named character in the map.
I am wondering if the same thing can be done for SAI, except with different units off course. Should this be possible, where in the script could I insert this bit of text? Anywhere? What I tend to do is use it, save the game, then come out of the game and remove the bit of script which is no longer needed so it doesn't happen every time I load.
Cheers guys!
Spoiler Alert, click show to read:
;
spawn_army
faction slave
character, Ham, named character, command 6, influence 6, management 6, subterfuge 0, age 32, , x 90, y 177
unit celtic infantry teceitos, exp 2 armour 0 weapon_lvl 0
unit celtic infantry teceitos, exp 2 armour 0 weapon_lvl 0
unit celtic infantry aljazgae, exp 1 armour 0 weapon_lvl 0
unit celtic infantry aljazgae, exp 1 armour 0 weapon_lvl 0
unit celtic infantry aljazgae, exp 1 armour 0 weapon_lvl 0
unit celtic infantry uirodusios, exp 1 armour 0 weapon_lvl 0
unit celtic infantry uirodusios, exp 1 armour 0 weapon_lvl 0
unit celtic infantry uirodusios, exp 1 armour 0 weapon_lvl 0
end
;
Also, what is the script file for SAI?
EDIT: I've been trying to use something like this:
Spoiler Alert, click show to read:
;
spawn_army
faction empire_west_rebels
character, Verenianus Flavius, named character, command 6, influence 6, management 6, subterfuge 0, age 32, , x 159, y 72
traits PalestinianRoman 1, MithrasWorshipper 1, LoyaltyStarter 1, RhetoricSkill 2, Aesthetic 1, Intelligent 1, Loyal 2 , TurnsAlive 5
ancillaries , patricius, pet_hunting_dog1
unit merc ostrogoth lancer exp 1 armour 1 weapon_lvl 1
unit merc ostrogoth lancer exp 1 armour 1 weapon_lvl 1
unit merc gothic lancers exp 1 armour 1 weapon_lvl 1
unit merc gothic lancers exp 1 armour 1 weapon_lvl 1
unit merc goth raiders exp 0 armour 0 weapon_lvl 0
unit merc goth raiders exp 0 armour 0 weapon_lvl 0
unit merc ostrogoth archers exp 1 armour 1 weapon_lvl 1
unit merc ostrogoth archers exp 1 armour 1 weapon_lvl 1
unit merc ostrogoth archers exp 1 armour 1 weapon_lvl 1
unit merc gothic spearmen exp 0 armour 0 weapon_lvl 0
unit merc gothic spearmen exp 0 armour 0 weapon_lvl 0
unit merc gothic spearmen exp 0 armour 0 weapon_lvl 0
unit merc gothic spearmen exp 0 armour 0 weapon_lvl 0
unit merc gothic spearmen exp 0 armour 0 weapon_lvl 0
unit merc gothic spearmen exp 0 armour 0 weapon_lvl 0
end
;
in the RTWBISAI/SAI/data/world/maps/campaign/barbarian invasion/descr_strat file to spawn it, but it doesn't seem to work. I found the IBFDSCRIPT file, but its far too small to be the script I am looking for.
Does anyone have any ideas? On a sidenote, how come none of the spawned armies have a faction label?
ie character Khuluy, named character, age 27, , x 275, y 99
traits Pagan 1, Warlord 1
how does the game know which faction to spawn such a character for? The strat file is full of them. How would I spawn a western_roman rebel army?
Last edited by Knonfoda; July 27, 2011 at 05:48 AM.
Its been a while since I used this, but in EB I used to insert something like the text below into the script (which had to be activated through the show me how button, much like the SAI script when you enter the game) to spawn an army or named character in the map.
I am wondering if the same thing can be done for SAI, except with different units off course. Should this be possible, where in the script could I insert this bit of text? Anywhere? What I tend to do is use it, save the game, then come out of the game and remove the bit of script which is no longer needed so it doesn't happen every time I load.
Cheers guys!
Spoiler Alert, click show to read:
;
spawn_army
faction slave
character, Ham, named character, command 6, influence 6, management 6, subterfuge 0, age 32, , x 90, y 177
unit celtic infantry teceitos, exp 2 armour 0 weapon_lvl 0
unit celtic infantry teceitos, exp 2 armour 0 weapon_lvl 0
unit celtic infantry aljazgae, exp 1 armour 0 weapon_lvl 0
unit celtic infantry aljazgae, exp 1 armour 0 weapon_lvl 0
unit celtic infantry aljazgae, exp 1 armour 0 weapon_lvl 0
unit celtic infantry uirodusios, exp 1 armour 0 weapon_lvl 0
unit celtic infantry uirodusios, exp 1 armour 0 weapon_lvl 0
unit celtic infantry uirodusios, exp 1 armour 0 weapon_lvl 0
end
;
Also, what is the script file for SAI?
EDIT: I've been trying to use something like this:
Spoiler Alert, click show to read:
;
spawn_army
faction empire_west_rebels
character, Verenianus Flavius, named character, command 6, influence 6, management 6, subterfuge 0, age 32, , x 159, y 72
traits PalestinianRoman 1, MithrasWorshipper 1, LoyaltyStarter 1, RhetoricSkill 2, Aesthetic 1, Intelligent 1, Loyal 2 , TurnsAlive 5
ancillaries , patricius, pet_hunting_dog1
unit merc ostrogoth lancer exp 1 armour 1 weapon_lvl 1
unit merc ostrogoth lancer exp 1 armour 1 weapon_lvl 1
unit merc gothic lancers exp 1 armour 1 weapon_lvl 1
unit merc gothic lancers exp 1 armour 1 weapon_lvl 1
unit merc goth raiders exp 0 armour 0 weapon_lvl 0
unit merc goth raiders exp 0 armour 0 weapon_lvl 0
unit merc ostrogoth archers exp 1 armour 1 weapon_lvl 1
unit merc ostrogoth archers exp 1 armour 1 weapon_lvl 1
unit merc ostrogoth archers exp 1 armour 1 weapon_lvl 1
unit merc gothic spearmen exp 0 armour 0 weapon_lvl 0
unit merc gothic spearmen exp 0 armour 0 weapon_lvl 0
unit merc gothic spearmen exp 0 armour 0 weapon_lvl 0
unit merc gothic spearmen exp 0 armour 0 weapon_lvl 0
unit merc gothic spearmen exp 0 armour 0 weapon_lvl 0
unit merc gothic spearmen exp 0 armour 0 weapon_lvl 0
end
;
in the RTWBISAI/SAI/data/world/maps/campaign/barbarian invasion/descr_strat file to spawn it, but it doesn't seem to work. I found the IBFDSCRIPT file, but its far too small to be the script I am looking for.
Does anyone have any ideas? On a sidenote, how come none of the spawned armies have a faction label?
ie character Khuluy, named character, age 27, , x 275, y 99
traits Pagan 1, Warlord 1
how does the game know which faction to spawn such a character for? The strat file is full of them. How would I spawn a western_roman rebel army?
The name of the script is IBFD.txt which is found in the show_me folder.
To spawn a character you would need something like this for example:
monitor_event FactionTurnStart FactionType empire_west
and I_SettlementOwner Sirmium = empire_west
and I_CharacterTypeNearTile goths general, 1 120,90
and RandomPercent > 50
spawn_army
faction empire_west
character Aurelianus, general, command 0, influence 0, management 0, subterfuge 0, age 32, , x 123, y 88
unit equites promoti west, exp 2 armor 1 weapon_lvl 0
unit equites catafractarii sarmatian east, exp 1 armor 1 weapon_lvl 0
unit limitaneiB1-1, exp 1 armor 1 weapon_lvl 0
unit limitaneiB1-1, exp 1 armor 1 weapon_lvl 0
unit limitaneiA1-2, exp 1 armor 1 weapon_lvl 0
unit limitaneiA1-2, exp 1 armor 1 weapon_lvl 0
unit numerii infantry east, exp 0 armor 0 weapon_lvl 0
unit numerii infantry east, exp 0 armor 0 weapon_lvl 0
unit numerii infantry east, exp 0 armor 0 weapon_lvl 0
unit numerii infantry east, exp 0 armor 0 weapon_lvl 0
unit funditores, exp 0 armor 0 weapon_lvl 0
unit funditores, exp 0 armor 0 weapon_lvl 0
unit equites armaturae, exp 0 armor 1 weapon_lvl 0
unit equites armaturae, exp 0 armor 1 weapon_lvl 0
unit equites scutarii east, exp 0 armor 1 weapon_lvl 0
end
advance_advice_thread Reinforcements_Thread
terminate_monitor
end_monitor
or something like this with character attributes added:
monitor_event GeneralCaptureSettlement FactionType empire_west
and SettlementName Carthage
and I_LocalFaction empire_west
and I_CompareCounter settlementowner_Carthage = 0
spawn_army
faction empire_west
character Hannibalianus, named character, command 0, influence 0, management 0, subterfuge 0, age 25, , x 79, y 45
unit equites catafractarii east, exp 2 armor 1 weapon_lvl 0
unit equites promoti west, exp 0 armor 1 weapon_lvl 0
unit equites dromedarii, exp 0 armor 1 weapon_lvl 0
unit vexillationes mauri, exp 0 armor 1 weapon_lvl 0
unit vexillationes mauri, exp 0 armor 1 weapon_lvl 0
unit equites sagittarii, exp 0 armor 1 weapon_lvl 0
unit equites sagittarii, exp 0 armor 1 weapon_lvl 0
unit legio comitatensis lanciarii, exp 1 armor 1 weapon_lvl 0
unit comitatenses first cohort, exp 1 armor 1 weapon_lvl 0
unit comitatenses first cohort, exp 1 armor 1 weapon_lvl 0
unit comitatenses first cohort, exp 1 armor 1 weapon_lvl 0
unit legio comitatensis sagitarii, exp 0 armor 0 weapon_lvl 0
unit auxilia palatinii4, exp 1 armor 1 weapon_lvl 0
unit auxilia palatinii4, exp 1 armor 1 weapon_lvl 0
unit auxilia palatinii4 east, exp 1 armor 1 weapon_lvl 0
unit auxilia palatinii4 east, exp 1 armor 1 weapon_lvl 0
unit auxilia palatina sagitarii, exp 1 armor 1 weapon_lvl 0
unit auxilia palatina sagitarii, exp 1 armor 1 weapon_lvl 0
unit arcuballistarii, exp 1 armor 1 weapon_lvl 0
end
console_command give_trait Hannibalianus AfricanRoman 1
console_command give_trait Hannibalianus CarthagoCitizen 1
console_command give_trait Hannibalianus Manichaeist 1
console_command give_trait Hannibalianus GoodCommander 2
console_command give_trait Hannibalianus TurnsAlive 16
terminate_monitor
end_monitor
Of course the trigger could be anything you want toto be provided you use the correct console commands.
So are you saying that you can spawn armies in-game without the script??