Results 1 to 30 of 122

Thread: Crusader Kings II - Mod General

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Annoyingly awesome Member Booger Flick Champion, Run Sam Run Champion, Speed Cards Champion rickinator9's Avatar
    Join Date
    Dec 2011
    Posts
    957

    Default Re: Crusader Kings II - Mod General

    Quote Originally Posted by PhilliptheGreat View Post
    Have you thought about making a mod that covers India? The feudal system in India during this time period is similar to the one depicted in the game. I don't know anything about modding but I can help you with research. Factions can include the Kingdom of Rajputana and the Dehli Sultunate.
    Welcome to the .Org Philip. Although I aren't really interested in India, you could search on the Paradox Plaza forums.

    Elder Kings has been announced (for a while). While I work for that mod, I'm also making a Diadochi mod in my spare time, whenever I'm not playing games or adding things to Elder kings.
    rickinator9 is either a cleverly "hidden in plain sight by jumping on the random bandwagon" scum or the ever-increasing in popularity "What the is going on?" townie. Either way I want to lynch him. - White Eyes

  2. #2
    Annoyingly awesome Member Booger Flick Champion, Run Sam Run Champion, Speed Cards Champion rickinator9's Avatar
    Join Date
    Dec 2011
    Posts
    957

    Default Re: Crusader Kings II - Mod General

    So I have been modding a little over the last few weeks. I am aiming to make a mod about the diadochi wars. Here's some early screens:
    Spoiler Alert, click show to read: 



    rickinator9 is either a cleverly "hidden in plain sight by jumping on the random bandwagon" scum or the ever-increasing in popularity "What the is going on?" townie. Either way I want to lynch him. - White Eyes

  3. #3
    Annoyingly awesome Member Booger Flick Champion, Run Sam Run Champion, Speed Cards Champion rickinator9's Avatar
    Join Date
    Dec 2011
    Posts
    957

    Default Re: Crusader Kings II - Mod General

    From the 1.07 changelog:
    FOR MODDERS:
    - IMPORTANT: Added 'inherit_chance' to traits, replacing 'congenital'
    - The 'replace_path' bug is now fixed for real
    - Added 'effect' character history command. It's like an event option that's run for the character at game start.
    - Fixed a bug with 'immortal' traits and sex appeal
    - Added trigger 'leads_faction'
    - Added trigger 'faction_power'
    - Added trigger and effect 'any_faction_backer'
    - Added trigger 'completely_controls = [title]' (I or my vassals hold everything in it)
    - Added trigger 'revolt_distance'
    - The 'ai_will_do' clause in Decisions is no longer binary (the value determines the MTTH)
    - Fixed an issue with law triggers in the 'ai_will_do' field of decisions
    - Added trigger 'in_faction'
    - Added trigger 'war_title'
    - Added trigger 'defending_against_claimant'
    - Added event targets 'supported_claimant' and 'supported_claimant_title'
    - Added 'set_parent_religion' effect
    - Can now create Lowborn characters with the 'create_character' effect
    - Fixed a bug with scripted attributes in the 'create_character' effect
    - Fixed a bug in the 'conquest_culture' trigger
    - Added 'is_conquered' trigger
    - Added event targets 'heir_under_seniority_law' and 'heir_under_primogeniture_law'
    - Added trigger 'any_claimant'
    - Added 'from_potential' trigger to decisions (vassal and dynasty decisions only)
    - Added event effect 'add_spouse_matrilineal'
    - Added 'opinion_diff' trigger
    - The event targets 'owner' and 'holder_scope' are now the same and work on both titles and provinces
    - Added event effect 'copy_title_history'
    - Added event effect 'copy_title_laws'
    - Fixed a bug with trigger 'is_landed = no'
    - Fixed a bug in the effect 'spawn_unit' with the 'match' argument
    - Can now set a specific leader in the effect 'spawn_unit'
    - Fixed a bug in trigger 'de_jure_liege_or_above'
    - Fixed a bug in trigger 'de_jure_vassal_or_below'
    - Fixed some bugs with the 'set_name' effect
    - The 'set_name' effect can now change the name of titles
    - Added 'capital' effect
    - Added 'province_capital' effect
    - Added effect 'participation_scaled_decadence'
    - Added trigger 'num_of_faction_backers'
    - Added trigger 'race'
    - Added trigger 'graphical_culture'
    - Fixed a bug with event name spaces not working in 'events' fields in On Actions
    - Fixed a bug with event name spaces not working in 'events' fields in Job Actions
    - Added 'divine_blood' marriage opinion modifiers
    - Added more gradual Attrition Defines
    - Added 'secondary_graphical_culture' to cultures and culture groups (a fallback option, when not having certain DLCs)
    - Added trigger 'has_earmarked_regiments'
    - Added 'earmark' argument to the 'spawn_unit' event effect
    - The 'disband_event_forces' effect now takes an earmark argument
    - Added trigger 'diplomatic_immunity'
    - Added effect 'diplomatic_immunity'
    - Exported PORTRAIT_MID_AGE_THRESHOLD, PORTRAIT_OLD_AGE_THRESHOLD, PORTRAIT_ADULT_MALE_AGE_THRESHOLD and PORTRAIT_ADULT_FEMALE_AGE_THRESHOLD to defines
    - Exported AGE_OF_MARRIAGE to defines
    - Ported the last old defines to lua
    - Added SeaZone province text promotion
    - Added PrevPrev text promotion
    - Added trigger 'is_tribal_type_title'
    - Added trigger 'has_horde_culture'
    rickinator9 is either a cleverly "hidden in plain sight by jumping on the random bandwagon" scum or the ever-increasing in popularity "What the is going on?" townie. Either way I want to lynch him. - White Eyes

  4. #4

    Default Re: Crusader Kings II - Mod General

    Hi, I wanted to ask a small question about traits and how to make them "congenial only":

    The idea was to have a trait like "Arthurian Blood", which can only be selected with the Ruler Designer and is always passed on to all your children. There is no w for anyone else to get this trait except for marrying into the bloodline.
    On the one hand you get a small stat-bonus but on the other hand this means your family-members are a bit more dangerous. Anyway, I wanted to try this but I cannot make the "restriction" work...
    Either none of my children get the trait, or they do and somewhere in the world others with the same trait are popping up, even if their parents dont have the trait.

    My current trait-code looks like this

    Code:
    bloodline00 = {
       inherit_chance = 100
    
       health = 1
       fertility = 0.5
       vassal_opinion = 10
    }
    I tried experimenting with various conditions listed on the CKIIwiki, but they either cause my game to crash or dont have the wanted effect. Any ideas on how to do this? Apparently the condition "is_child_of" is the solution I am looking for but I am not sure how to use it...

  5. #5
    The Abominable Senior Member Hexxagon Champion Monk's Avatar
    Join Date
    Jan 2003
    Location
    YU-ESS-AY
    Posts
    6,666

    Default Re: Crusader Kings II - Mod General

    Quote Originally Posted by Namorax View Post
    I tried experimenting with various conditions listed on the CKIIwiki, but they either cause my game to crash or dont have the wanted effect. Any ideas on how to do this? Apparently the condition "is_child_of" is the solution I am looking for but I am not sure how to use it...
    I've never messed with traits but a couple of ideas come to mind after doing a few quick code experiments. You want to define that the trait is only giftable at birth which may be why people are popping up in other parts of the world with the trait.

    The game randomly generates characters to inhabits courts whenever conquests happen and everyone previously was thrown out. Like in the case of holy wars. All of those characters get randomly assigned traits unless they get stopped by flags. Likewise, without a congenital flag, it's possible the game thinks you're trying to make a general birth gain trait, like Genius or Clubfooted.

    Try making your code look like this:

    Code:
    bloodline00 = {
       congenital = yes
       birth = yes
    
       health = 1
       fertility = 0.5
       vassal_opinion = 10
    }
    You've already told the game that 1 it's congenital and 2 the only way to get it is from birth. Leaving 'inheritance chance' in is redundant for what you want to accomplish, i believe.
    Last edited by Monk; 10-25-2012 at 17:32.

  6. #6
    Annoyingly awesome Member Booger Flick Champion, Run Sam Run Champion, Speed Cards Champion rickinator9's Avatar
    Join Date
    Dec 2011
    Posts
    957

    Default Re: Crusader Kings II - Mod General

    Quote Originally Posted by Monk View Post
    You've already told the game that 1 it's congenital and 2 the only way to get it is from birth. Leaving 'inheritance chance' in is redundant for what you want to accomplish, i believe.
    Inheritance_chance is the 1.07 replacement for the random congenital tag. The guys who get the trait randomly must be the guys who also get generated randomly. Maybe add a potential:

    Code:
    bloodline00 = {
       inherit_chance = 100
    
       potential = {
          OR = {
             father = {
                trait = bloodline00
             }
             mother = {
                trait = bloodline00
             }
          }
       }
    
       health = 1
       fertility = 0.5
       vassal_opinion = 10
    }
    Of course, you could always hand it out through an event. Events are one of the best ways of handing out traits.
    rickinator9 is either a cleverly "hidden in plain sight by jumping on the random bandwagon" scum or the ever-increasing in popularity "What the is going on?" townie. Either way I want to lynch him. - White Eyes

  7. #7

    Default Re: Crusader Kings II - Mod General

    Well, it seemed to be simpler to pass the trait on via children... I didnt want to have an event everytime a child gets born, and furthermore I dont know how to do that^^
    Rickinator appears to be correct monk since your version had no effect, as in nobody gets that trait except when they I trigger the event.

    Code:
    bloodline00 = {
       potential = {
          OR = {
             father = { trait = bloodline00 }
             mother = { trait = bloodline00 }
          }
       }
       inherit_chance = 100
    
       health = 1
       fertility = 0.5
       vassal_opinion = 10
    }
    Changed the trait to this version, but now the gamecrashes when I try to start. Removing the "mother/father = "-part allows the game to start properly again. Any ideas why this happens?

    PS: You're both right. Apparently the game tries to use the trait for randomly generated (new) characters.

    Edit: The Sword of Islam DLC has a trait that gets inherited from father to son (agnatic=yes)... now I just need to find a way to do the same for mother to daughter
    Last edited by Namorax; 10-26-2012 at 18:00.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO