Results 1 to 9 of 9

Thread: change faction simbol during the game

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    HELLEKIN's Avatar Miles
    Join Date
    Nov 2007
    Location
    LISBON - PORTUGAL
    Posts
    396

    Default change faction simbol during the game

    hello guys,in mood 1143 it is possible to have more than one faction simbol during the campain...after a certain amount of years or events the faction simbol for portugal changes...my question is how can i do that?its possible to have a event too informing that?(the event fires a image informing the change of faction simbol),i know is from a script but i´m a zero in scripting,can someone help?Many thanks in advance
    Homo Homini Lupus

  2. #2

    Default Re: change faction simbol during the game

    AFAIK it's not possible to change the faction symbol during a campaign....i will do some research and try to find a definite answer though...

  3. #3
    Emperor of Hell's Avatar SPA-NED 1-5
    Join Date
    Jul 2011
    Location
    Netherlands
    Posts
    5,747

    Default Re: change faction simbol during the game

    It is possible with the kalmar union script.
    That requires a spare faction, which you should add on this way in descr_strat
    Code:
    faction	poland (You can used any faction here, but I use poland), balanced smith
    ai_label	default 
    dead_until_resurrected
    denari	20
    denari_kings_purse	100
    The denari and kings_purse don't matter, only the part in red. Also you should add the faction in the nonplayable section at the top of descr_strat.
    Then you can use a simple script to change the banner:
    Code:
    monitor_event FactionTurnStart FactionType portugal
    and I_TurnNumber = (whenever you want)
    set_faction_banner
    faction portugal
    banner poland
    end_set_faction_banner
    historic_event portugal_banner factions { portugal, }
    terminate_monitor
    end_monitor
    Then you also need a bit of text in historic_events
    Code:
    {portugal_banner_BODY}Whatever text you want
    {portugal_banner_TITLE}Whatever title you want
    And then you should of course set the new faction symbol for the spare faction
    and you should use kingdoms, otherwise it is not possible

    Good luck!

  4. #4
    Kiliç Alì's Avatar Domesticus
    Artifex

    Join Date
    Feb 2011
    Location
    Italy
    Posts
    2,114

    Default Re: change faction simbol during the game

    are you sure? can't you just do this?

    monitor_event [conditions]
    historic_event blah
    set_faction_banner
    faction portugal
    banner pink_elephant_with_wings
    end_set_faction_banner

    I mean, do you need the pink_elephant_with_wings faction to exist, or just the file with the banner named pink_elephant_with_wings?

    Member of the Imperial House of Hader, proud client of The only and sole Ferrit

  5. #5
    Emperor of Hell's Avatar SPA-NED 1-5
    Join Date
    Jul 2011
    Location
    Netherlands
    Posts
    5,747

    Default Re: change faction simbol during the game

    I tested it and without adding the faction to descr_strat, you get a ctd

  6. #6
    Kiliç Alì's Avatar Domesticus
    Artifex

    Join Date
    Feb 2011
    Location
    Italy
    Posts
    2,114

    Default Re: change faction simbol during the game

    ok, then you "waste" a slot for this. thanks for the answer

    Member of the Imperial House of Hader, proud client of The only and sole Ferrit

  7. #7
    HELLEKIN's Avatar Miles
    Join Date
    Nov 2007
    Location
    LISBON - PORTUGAL
    Posts
    396

    Default Re: change faction simbol during the game

    Thanks guys...i´ll try to add a new faction....and lose a precious slot many thanks for your help and time
    Homo Homini Lupus

  8. #8
    Ravenant's Avatar Miles
    Join Date
    Jan 2010
    Location
    Canary Islands, Spain
    Posts
    371

    Default Re: change faction simbol during the game

    Regarding this question, I have read kalmar union script, but I don't know if it is posible to change the faction labels (ie: danish --> kalmarish). Should be something like give_everything_to_faction faction_to_dissapear faction_to_receive?. Btw, I accidentally discovered that the game don't crash if the faction index is repeated, in fact, the new faction has the same settlement banner, but the it retains its faction banner. Could this be exploited?

  9. #9

    Default Re: change faction simbol during the game

    Quote Originally Posted by Ravenant View Post
    Regarding this question, I have read kalmar union script, but I don't know if it is posible to change the faction labels (ie: danish --> kalmarish). Should be something like give_everything_to_faction faction_to_dissapear faction_to_receive?. Btw, I accidentally discovered that the game don't crash if the faction index is repeated, in fact, the new faction has the same settlement banner, but the it retains its faction banner. Could this be exploited?
    descr_sm_factions.txt cannot take more than 31 factions so I don't see a way this could be useful. But good loophole you found there!

    Mod Leader, Mapper & Bohemian Researcher

Posting Permissions

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