Results 1 to 6 of 6

Thread: Question about Faction Leaders

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Derpy Hooves's Avatar Bombs for Muffins
    Join Date
    Jun 2010
    Location
    My flagship, the Litany of Truth, spreading DESPAIR across the galaxy
    Posts
    13,399

    Default 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?



  2. #2

    Default Re: Question about Faction Leaders

    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.

  3. #3
    Vegas_Bear's Avatar Biarchus
    Join Date
    Sep 2005
    Location
    Las Vegas, NV
    Posts
    605

    Default Re: Question about Faction Leaders

    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

    end_monitor


    Hope this helps,

    Vegas_Bear

  4. #4

    Default Re: Question about Faction Leaders

    Does Haakon Haakonsson get children/traits when off the map?

  5. #5

    Default Re: Question about Faction Leaders

    His family tree will expand but he will not get traits as all traits are based on some on-map activities.

  6. #6
    Vegas_Bear's Avatar Biarchus
    Join Date
    Sep 2005
    Location
    Las Vegas, NV
    Posts
    605

    Default Re: Question about Faction Leaders

    When he spawns you give him his traits and ancillaries. While he is off the map he doesn't earn/lose them.

Posting Permissions

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