Results 1 to 6 of 6

Thread: conditions to gain title

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Keyser Soze's Avatar Domesticus
    Join Date
    Jul 2008
    Location
    Bratislava
    Posts
    2,437

    Default conditions to gain title

    in RTW/BI in export_descr_character_traits.txt could be defined that if faction is owner of regions (settlements) X, Y, Z your character can gain title belongs to this regions. is possible something in M2TW?
    sorry my english.

  2. #2
    konny's Avatar Artifex
    Join Date
    Jul 2007
    Location
    Germania Inferior
    Posts
    3,631

    Default Re: conditions to gain title

    Yes, of course; all functions of RTW EDCT do still work in M2TW. I think this also is part of most Middle Ages mods for M2TW. This is the titles's system, for example, that I made for dHRR: http://www.twcenter.net/forums/showthread.php?t=223878

    Team member of: Das Heilige Römische Reich, Europa Barbarorum, Europa Barbarorum II, East of Rome
    Modding help by Konny: Excel Traitgenerator, Setting Heirs to your preference
    dHRR 0.8 beta released! get it here
    New: Native America! A mini-mod for Kingdoms America

  3. #3
    Keyser Soze's Avatar Domesticus
    Join Date
    Jul 2008
    Location
    Bratislava
    Posts
    2,437

    Default Re: conditions to gain title

    thanks
    btw, I am looking forward dHRR, so good luck
    sorry my english.

  4. #4
    konny's Avatar Artifex
    Join Date
    Jul 2007
    Location
    Germania Inferior
    Posts
    3,631

    Default Re: conditions to gain title

    To make some use of that thread (others than shameless advertising):

    The easyest way to make regional titles is by using the EndedInSettlement condition for a simple reason that only the owner of a settlement can stay in it. That way you are avoiding endless triggers for each faction, checking whether or not it is legal owner of the settlement.

    Example
    Code:
    Trigger Acquire_Lantgravius_Alsatie
        WhenToTest CharacterTurnEnd
        Condition EndedInSettlement
              and SettlementName Strassburg
              and not FactionwideAncillaryExists Lantgravius_Alsatie
    
        AcquireAncillary Lantgravius_Alsatie chance 100
    This would make this title to available to a character of any faction holding the respective settlement - that way the respective province, provided no one else in this faction would hold it. Of course, in the final design you would add further requirements.

    You see that I am using ancillaries, what is the easyest way to ensure only one character at a time holds this title per faction.



    Another variation:
    Code:
    Trigger Acquire_Episcopus_Metensis_Family_Papal
        WhenToTest CharacterTurnEnd
    
        Condition CharFactionType papal_states
            and not I_WorldwideAncillaryExists Episcopus_Metensis
            and IsRegionOneOf 77
            and not IsFactionHeir
            and not IsFactionLeader
            and not IsMarried
            and Trait clerical_title = 0
    
        Affects clerical_title 1 Chance 100
        AcquireAncillary Episcopus_Metensis chance 100
    In this example the character must not be the owner of the settlement but must only end his turn within the respective province. And I am using not I_WorldwideAncillaryExists instead of not FactionwideAncillaryExists. The difference is that now the respective title may not be held by any character on the map. This piece allows the Pope to appoint a Bishop of Metz if the owning faction had failed to do so.

    Both codes would work for the AI as well as for the player.


    Something else (this time by Dimitri_Harkov):
    Code:
    Trigger get_antipope_anc1
        WhenToTest CharacterSelected
        Condition FactionExcommunicated
              and FactionLeaderTrait Emperor = 1
              and not IsFactionAIControlled
              and not FactionwideAncillaryExists antipope
              and Trait PriestLevel >= 2
              and I_EventCounter PickAntiPope = 1
    
        AcquireAncillary antipope chance  100
    This is for the player only because it requires him to actively selecet a character on the map. It is more comfortable because it avoids from characters acquiring a title accidently. Nevertheless it acquires an additional script (the part and I_EventCounter PickAntiPope = 1) to tell the player that the next guy he is clicking on will become Anti-Pope. You would also need a second trigger for the AI.


    I think these would be the most common ways to start scripting a titles' system.

    Team member of: Das Heilige Römische Reich, Europa Barbarorum, Europa Barbarorum II, East of Rome
    Modding help by Konny: Excel Traitgenerator, Setting Heirs to your preference
    dHRR 0.8 beta released! get it here
    New: Native America! A mini-mod for Kingdoms America

  5. #5
    Keyser Soze's Avatar Domesticus
    Join Date
    Jul 2008
    Location
    Bratislava
    Posts
    2,437

    Default Re: conditions to gain title

    looks good. thanks for them.
    and also conditions for higher titles works as in RTW/BI, yes? I mean the faction must hold all regions of Kingdom and only than faction leader can gain title King of ....
    sorry my english.

  6. #6
    konny's Avatar Artifex
    Join Date
    Jul 2007
    Location
    Germania Inferior
    Posts
    3,631

    Default Re: conditions to gain title

    Quote Originally Posted by Keyser Soze View Post
    looks good. thanks for them.
    and also conditions for higher titles works as in RTW/BI, yes? I mean the faction must hold all regions of Kingdom and only than faction leader can gain title King of ....
    Yes, pretty simple: Check if Rouen, Calais, Reims and Paris is held by England and then give the faction leader of England the title "King of France". You would need one trigger for each faction that should be able to acquire that title.

    You can give titles to:

    • FactionLeader
    • FactionHeir
    • Characters that fullfill certain requirements
    • Sons of former holders (best when giving a trait with the ancillary and check for FatherTrait)

    Team member of: Das Heilige Römische Reich, Europa Barbarorum, Europa Barbarorum II, East of Rome
    Modding help by Konny: Excel Traitgenerator, Setting Heirs to your preference
    dHRR 0.8 beta released! get it here
    New: Native America! A mini-mod for Kingdoms America

Posting Permissions

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