My flagship, the Litany of Truth, spreading DESPAIR across the galaxy
Posts
13,399
Question about Faction Leaders
Okay, in alpaca's script-o-ram it says how to script an army that appears out of nowhere. Is it also possible to have the faction leader appear in that appearing army?
Not sure it will work but i think spawn a general with FactionLeader trait with that army and then via console command remove the trait for the existing leader, family tree will be screwed up, don't know what will happen never tried such a thing.
Yes you can if the Faction Leader is spawned off the map, like in Brittania. The Norwegian King starts off the map and then is spawned on turn 10.
From the descr_strat-
Spoiler Alert, click show to read:
character_record Haakon Haakonsson, male, age 54, off_map, current_leader
From campaign_script-
Spoiler Alert, click show to read:
monitor_event FactionTurnStart I_TurnNumber = 10
spawn_army
faction norway
character Gellir Loftsson, admiral, age 43, x 98, y 148, direction SW
unit dragon boat exp 0 armour 0 weapon_lvl 0
unit dragon boat exp 0 armour 0 weapon_lvl 0
end
;spawn troops on boats
spawn_army
faction norway
character Haakon Haakonsson, named character, x 98, y 148, battle_model Haakon_General
traits NorwayHero 1, LoyaltyStarter 1, GoodCommander 2, ManagementStarter 1
unit NE Bodyguard exp 2 armour 0 weapon_lvl 0
unit Huscarls exp 2 armour 0 weapon_lvl 0
unit Svenner exp 1 armour 0 weapon_lvl 0
unit Svenner exp 1 armour 0 weapon_lvl 0
unit Gotland Footmen exp 0 armour 0 weapon_lvl 0
unit Gotland Footmen exp 0 armour 0 weapon_lvl 0
unit Viking Raiders exp 0 armour 0 weapon_lvl 0
unit Viking Raiders exp 0 armour 0 weapon_lvl 0
unit Crossbowmen exp 0 armour 0 weapon_lvl 0
unit Crossbowmen exp 0 armour 0 weapon_lvl 0
end
terminate_monitor