Game crashes after Employ_concubine modding

For specific technical issues and questions.

Game crashes after Employ_concubine modding

PostPosted by moonlightrose18 » Wed Jan 11, 2017 23:47

I'm playing the traditional Targaryen way of marrying siblings, with the new mod update it won't allow close relatives to be taken as concubines and only Dornishman can take concubines. So I edited the script to allow it and now the game works how I want but it crashes after a few in game days. Can anyone help me fix it so it doesn't crash anymore? I don't know enough about modding to know what I did wrong. I would greatly appreciate it! :)
Code: Select all
employ_concubine = {
      ai_target_filter = sub_realm
      filter = sub_realm
      only_rulers = yes
     
      from_potential = {
         is_ruler = yes
         is_female = no   
         OR = {
            has_dlc = "The Old Gods"
            ai = yes
         }
         age = 16
         has_concubinage = yes     
      }
      potential = {
         is_lover = FROM
         is_female = yes
         is_married = no
         is_betrothed = no
         is_consort = no
         is_ruler = no     
         NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_set_aside } }
      }
      allow = {
         NOT = { any_heir_title = { always = yes } }
         FROM = {
            below_consort_limit_trigger = yes
            OR = {
               culture_group = high_valyrian
               NOT = { religion = the_seven }
            }   
            NOT = { culture_group = andal }
            NOT = { culture_group = first_men }
         }         
      }
      effect = {
         add_consort = FROM
         FROM = {
            if = {
               limit = { culture_group = high_valyrian }
               any_consort = {
                  limit = {
                     NOT = { is_lover = ROOT }
                     NOT = { trait = slave }
                  }
                  remove_consort = ROOT
               }
            }
         }   
      }
      revoke_allowed = {
         always = no
      }
      ai_will_do = {
         factor = 1
         
         modifier = {
            factor = 0.5
         }
         modifier = {
            factor = 0
            FROM = {
               OR = {
                  trait = chaste
                  trait = celibate
                  trait = homosexual
                  trait = eunuch
               }
            }   
         }
      }
   }
   
moonlightrose18
 
Posts: 2
Joined: Wed Jan 11, 2017 23:01

Return to Technical Discussion

Who is online

Users browsing this forum: No registered users and 0 guests