Results 1 to 16 of 16

Thread: General changing factions

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default General changing factions

    Is it possible to make a general change factions if they have a certain ancillary

  2. #2
    Augustus Lucifer's Avatar Life = Like a beanstalk
    Patrician Citizen

    Join Date
    Aug 2006
    Location
    Mote of Dust
    Posts
    10,725

    Default Re: General changing factions

    Not really. You could make the ancillary have a huge loyalty penalty, negative BribeResistance, and negative Bribery or something. But the other faction would still have to try and bribe the character. Alternatively you could kill a character and spawn it for another faction, but you'd either need to know the name or suffice with a random name, and a system to 'preserve stats' would be fairly complicated if you wanted the exact traits/ancs to transfer and not just the same 'attribute' levels(which would be significantly easier).

  3. #3

    Default Re: General changing factions

    Ah fair enough was just checking.

  4. #4

    Default Re: General changing factions

    you could try the "move character off map" command and spawn_character or spawn_army to get him back into the game under a different faction.

  5. #5
    Emperor of The Great Unknown's Avatar Primicerius
    Join Date
    Nov 2008
    Location
    far enough where verizon cant go
    Posts
    3,110

    Default Re: General changing factions

    intresting you sure it will work?
    Give a man a fish you feed him for a day, teach a man to fish you feed him for a lifetime.
    cant read?

  6. #6

  7. #7
    Caesar Clivus's Avatar SS Forum Moderator
    Join Date
    May 2007
    Location
    Australia
    Posts
    12,693

    Default Re: General changing factions

    To do that though, wouldn't you need to know what the general's name is in advance? (i.e. you wouldn't be able to do that will randomly named characters)

    BftB2 UPDATED 22nd DECEMBER. Member of the Complete Byzantine Unit Roster team

  8. #8

    Default Re: General changing factions

    It is impossible to do anything script wise without knowing the name or 'labeling' a character.. goes without saying really..

  9. #9
    Nirnaeth Arnoediad's Avatar Vive l'Empereur !
    Join Date
    Jun 2009
    Location
    In the greatest civilization
    Posts
    807

    Default Re: General changing factions

    How can we label a character ? What is the command ?

  10. #10

    Default Re: General changing factions

    in the descr_strat.txt - or - when you spawn a character or army add this to the character line;

    x 189, y 261 , label yourlabel

    That way you can still spawn in character with random names but because there is a label he may still be referenced (but only once).

    Let me know if you need anything more

  11. #11
    Nirnaeth Arnoediad's Avatar Vive l'Empereur !
    Join Date
    Jun 2009
    Location
    In the greatest civilization
    Posts
    807

    Default Re: General changing factions

    That way you can still spawn in character with random names but because there is a label he may still be referenced (but only once).
    How can I label a random named character ? Referenced in what ? I haven't understand your explanation.

  12. #12

    Default Re: General changing factions

    I’ll explain further
    The red parts are the key area’s to modify

    descr_strat.txt entry example
    character name, named character, male, leader, age 84, x 239, y 128, portrait portrait_name, label label_name, battle_model battle_model_name, hero_ability hero_ability_name, direction (N,E,S,W)
    traits Factionleader 1 , GoodCommander 1 , NaturalMilitarySkill 1 , GoodDefender 1 , PoliticsSkill 2 , ReligionStarter 1
    ancillaries drillmaster
    army
    unit unit_name exp 0 armour 0 weapon_lvl 0


    campaign_script.txt entry example
    spawn_army
    faction faction_name
    character name, named character, family, age 32, x 290, y 134, portrait portrait_name, label label_name, battle_model battle_model_name, hero_ability hero_ability_name, direction (N,E,S,W)
    traits GoodCommander 3 , BattleScarred 2, BattleDread 1 , CaptorDread 1 , GoodAttacker 1 , NightBattleCapable 1
    unit unit_name exp 3 armour 1 weapon_lvl 0
    end


    So to label in the descr_strat.txt it is simple – just use “, label label_name” and change the red part to whatever you want.
    But the name must be defined in the descr_strat.txt so using a label here is not really nessessary as you can use the name a lot easier - but with a label you can reference multiple characters at once that all share the same label but have different names.

    In the campaign_script.txt you can spawn in random named characters - so using a label is necessary if you want to reference them for later scripting use.
    It is the same principle – just use “, label label_name” and change the red part to whatever you want.

    I hope this makes more sense now

  13. #13
    Nirnaeth Arnoediad's Avatar Vive l'Empereur !
    Join Date
    Jun 2009
    Location
    In the greatest civilization
    Posts
    807

    Default Re: General changing factions

    Ok, thx.

    Can label be used as a command like below ?

    Monitor event characterTurnEnd Isgeneral
    and hasAnc sword1
    label general_with_sword1

  14. #14

    Default Re: General changing factions

    Quote Originally Posted by Nirnaeth Arnoediad View Post
    Ok, thx.

    Can label be used as a command like below ?
    No i dont think any label will work in that manner..
    I have tried because the docudemons have this particular entry;
    Code:
    ---------------------------------------------------
    Identifier:         label
    Parameters:         label
    Description:        Label
    Sample use:         label crap
    Class:              LABEL
    Implemented:        Yes
    Author:             
    ---------------------------------------------------
    But it does not help - it is incomplete or i am trying all the wrong logic..

  15. #15

    Default Re: General changing factions

    forgot about this thread nice to know it's definitely not impossible then.

  16. #16
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: General changing factions

    This might work.

    Monitor event characterTurnEnd Isgeneral
    and label (from previous character spawning)
    give_ancillary sword1 (somewhat to that effect)










Posting Permissions

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