Results 1 to 5 of 5

Thread: script with BecomesFactionLeader

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Den Stark's Avatar Tiro
    Join Date
    May 2012
    Location
    Vladivostok
    Posts
    248

    Default script with BecomesFactionLeader

    hi all

    monitor_event BecomesFactionLeader CharFactionType russia
    and CharacterIsLocal
    and IsFactionLeader

    e_select_character

    if I_CharacterSelected Andrei Yurievich
    inc_counter AndreiX 1
    if I_CompareCounter AndreiX = 1
    set_event_counter KingX 1
    end_if
    end_if
    ...
    end_monitor

    help, how to make that work?

  2. #2
    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: script with BecomesFactionLeader

    Scratch the 'IsFactionLeader' line. The test runs WHEN he becomes the leader, but that condition tests if he IS the factionleader.

    I doubt the e-select stuff will work with this event. You may have to turn it into a 'regular' event (I would suggest CharacterTurnStart) and then keep the IsFactionLeader line.
    Last edited by Gigantus; September 11, 2012 at 11:51 PM.










  3. #3
    Den Stark's Avatar Tiro
    Join Date
    May 2012
    Location
    Vladivostok
    Posts
    248

    Default Re: script with BecomesFactionLeader

    Thanx for reply )

    This is worked with local characters and princess:
    Code:
    monitor_event CharacterMarriesPrincess CharFactionType russia
            and CharacterIsLocal
            and Trait oIme < 1
            
            e_select_character
            
            if I_CharacterSelected Andrei_I_Bogolyubsky Yurievich
                console_command give_trait this oAndrei_I_Bogolyubsky 1
                console_command give_trait this oIme 1
                console_command give_trait this knaz 1
            end_if
    ...
    This is worked with local characters and proposed bride (bride_available_for_family_member)
    Code:
    monitor_event CharacterMarries CharacterIsLocal
            and IsGeneral
            and Trait oIme < 1
    
    monitor_event MarriageAlliancePossible CharacterIsLocal
            and IsGeneral
            and Trait oIme < 1
    
            e_select_character
            
            if I_CharacterSelected Andrei_I_Bogolyubsky Yurievich
                console_command give_trait this oAndrei_I_Bogolyubsky 1
                console_command give_trait this oIme 1
                console_command give_trait this knaz 1
            end_if
    ...
    how to make that work with the proposed suitor? (suitor_available_for_daughter)
    monitor_event MarriageAlliancePossible...?

  4. #4
    Den Stark's Avatar Tiro
    Join Date
    May 2012
    Location
    Vladivostok
    Posts
    248

    Default Re: script with BecomesFactionLeader



    That's what I did. for Kievan Rus.

    Patronymic (?) characters to the name of the father. (father Vasilko - son Yaropolk Vasilkovich, his son - Yaropolkovich, daughter - Yaropolkovna etc.)

    And corresponding numbers of rulers (including those who have been in real history).
    e.g. David I Vasilkovich, Yaropolk V Vasilkovich, Yaropolk IV Iziaslavovich (in the game Yaropolk III was still, and Yaropolk I & II are real historical characters in the earlier time.

  5. #5
    Den Stark's Avatar Tiro
    Join Date
    May 2012
    Location
    Vladivostok
    Posts
    248

    Default Re: script with BecomesFactionLeader

    Only suitor is not working..
    I hope my english is understandable?

    Any ideas?

Posting Permissions

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