十字军之王吧 关注:112,276贴子:3,365,749
  • 39回复贴,共1

如果要写一个只有真正血亲才能遗传的特质,可以这样写吗?

只看楼主收藏回复

只是例子,这里的real_father相关的几行对吗,如果不对的话应该怎么改?


回复
1楼2015-12-30 23:42
    或者如果用real_father = { always = yes/no }语句改的话应该怎么写?


    回复
    2楼2015-12-30 23:44
      不懂帮顶,顺便弄好求


      收起回复
      来自Android客户端4楼2015-12-31 00:04
        不懂帮顶


        回复
        来自Android客户端5楼2015-12-31 02:03
          不懂帮顶


          回复
          来自Android客户端7楼2015-12-31 02:20
            真实父亲识别不出来,只能是father。。。这是这游戏非常不合理又非常合理的地方


            收起回复
            来自Android客户端8楼2015-12-31 03:39
              为什么不用trait文件本身解决问题?看下图,删除potential中内容,那就是只有血亲可遗传了。不过,你的代码里面是只要和贞德生的孩子有这个特质吗?


              收起回复
              来自Android客户端9楼2015-12-31 08:15
                那么为何不从贞德入手,把她所有后代加上这个特质?


                回复
                来自Android客户端11楼2015-12-31 08:20
                  有个inherit=100和birth=0就行了


                  回复
                  来自Android客户端12楼2015-12-31 10:05
                    楼上正解,就是这样简单。。。只要是你的后代或者后代的后代都会有。。。被绿就没有,除非绿你的那个,也是你以前播的种



                       --最后他们奔我而来,却再也没有人站出来为我说话了。


                    收起回复
                    来自Android客户端13楼2015-12-31 11:25
                      并没有卵用,你被自己儿子绿的话。。。


                      回复
                      14楼2015-12-31 11:26
                        所以说玩啥男的,女王就没这问题了,甭管隔壁姓啥你孩子永远是你孩子


                        收起回复
                        16楼2015-12-31 12:37


                          回复
                          来自iPhone客户端17楼2015-12-31 13:35
                            以前版本的赛义德就有这功效,不过你儿子绿的呢


                            私以外,全员单身


                            回复
                            来自Android客户端18楼2015-12-31 13:41
                              这个只要100遗传就好亲戚就没办法了


                              回复
                              来自手机贴吧19楼2015-12-31 17:42
                                真正的血亲遗传




                                character_event = {
                                id = 3500011
                                title = "EVTNAME3300001"
                                desc = "EVTDESC3300001"
                                hide_window = yes
                                picture = GFX_evt_birth

                                is_triggered_only = yes

                                trigger = {
                                OR = {
                                mother_even_if_dead = {
                                OR = {
                                trait = Eternal_House
                                trait = Eternal_House_2
                                }
                                OR = {
                                is_married = no
                                is_married_matrilineally = yes
                                ROOT = {
                                OR = {
                                is_female = yes
                                real_father = {
                                always = yes
                                }
                                trait = bastard
                                trait = legit_bastard
                                }
                                }
                                }
                                }
                                father_even_if_dead = {
                                OR = {
                                trait = Eternal_House
                                trait = Eternal_House_2
                                }
                                OR = {
                                is_married_matrilineally = no
                                ROOT = {
                                OR = {
                                is_female = yes
                                real_father = {
                                always = yes
                                }
                                trait = bastard
                                trait = legit_bastard
                                }
                                }
                                }
                                }
                                real_father = {
                                OR = {
                                trait = Eternal_House
                                trait = Eternal_House_2
                                }
                                }
                                }
                                }


                                immediate = {
                                if = {
                                limit = {
                                mother_even_if_dead = {
                                OR = {
                                trait = Eternal_House
                                trait = Eternal_House_2
                                }
                                ROOT = {
                                NOT = { dynasty = PREV }
                                }
                                OR = {
                                is_married = no
                                is_married_matrilineally = yes
                                ROOT = {
                                OR = {
                                is_female = yes
                                real_father = {
                                always = yes
                                }
                                trait = bastard
                                trait = legit_bastard
                                }
                                }
                                }
                                }
                                }
                                add_trait = Eternal_House_2
                                if = {
                                limit = {
                                mother_even_if_dead = {
                                ROOT = {
                                NOT = { dynasty = PREV }
                                }
                                }
                                }
                                mother_even_if_dead = {
                                ROOT = {
                                dynasty = PREV
                                }
                                }
                                }
                                }

                                if = {
                                limit = {
                                father_even_if_dead = {
                                OR = {
                                trait = Eternal_House
                                trait = Eternal_House_2
                                }
                                OR = {
                                is_married_matrilineally = no
                                ROOT = {
                                OR = {
                                is_female = yes
                                real_father = {
                                always = yes
                                }
                                trait = bastard
                                trait = legit_bastard
                                }
                                }
                                }
                                }
                                }
                                add_trait = Eternal_House_2
                                if = {
                                limit = {
                                father_even_if_dead = {
                                ROOT = {
                                NOT = { dynasty = PREV }
                                }
                                }
                                }
                                father_even_if_dead = {
                                ROOT = {
                                dynasty = PREV
                                }
                                }
                                }
                                }

                                if = {
                                limit = {
                                real_father = {
                                OR = {
                                trait = Eternal_House
                                trait = Eternal_House_2
                                }
                                }
                                }
                                add_trait = Eternal_House_2
                                if = {
                                limit = {
                                real_father = {
                                ROOT = {
                                NOT = { dynasty = PREV }
                                }
                                }
                                }
                                real_father = {
                                ROOT = {
                                dynasty = PREV
                                }
                                }
                                }
                                }

                                if = {
                                limit = {
                                trait = Eternal_House_2
                                }
                                health = 1
                                wealth = 100
                                prestige = 25
                                piety = 25
                                set_variable = { which = "young_value" value = 0 }
                                if = {
                                limit = {
                                OR = {
                                liege = {
                                OR = {
                                trait = Eternal_House
                                trait = Eternal_House_2
                                }
                                }
                                top_liege = {
                                OR = {
                                trait = Eternal_House
                                trait = Eternal_House_2
                                }
                                }
                                }
                                }
                                if = {
                                limit = {
                                liege = {
                                is_merchant_republic = no
                                }
                                }
                                liege = {
                                primary_title = {
                                gender_succ = true_cognatic
                                succession = feudal_elective
                                }
                                any_de_jure_vassal_title = {
                                gender_succ = true_cognatic
                                succession = feudal_elective
                                }
                                family_palace = {
                                gender_succ = true_cognatic
                                succession = feudal_elective
                                }
                                }
                                }
                                }
                                if = {
                                limit = {
                                trait = strong
                                }
                                change_martial = 3
                                fertility = 0.5
                                health = 5

                                prestige = 100

                                if = {
                                limit = {
                                is_female = yes
                                }
                                change_diplomacy = 1
                                change_martial = 3
                                fertility = 0.05
                                change_variable = { which = "young_value" value = 1 }
                                }
                                }
                                if = {
                                limit = {
                                trait = fair
                                }
                                change_diplomacy = 5
                                change_intrigue = 1
                                fertility = 0.75

                                piety = 100


                                change_variable = { which = "young_value" value = 2 }
                                if = {
                                limit = {
                                is_female = yes
                                }
                                change_diplomacy = 5
                                change_intrigue = 5
                                change_learning = 5
                                fertility = 0.05
                                change_variable = { which = "young_value" value = 2 }
                                }
                                }
                                if = {
                                limit = {
                                trait = quick
                                }
                                change_diplomacy = 1
                                change_martial = 1
                                change_stewardship = 1
                                change_intrigue = 1
                                change_learning = 1

                                wealth = 25
                                prestige = 25
                                piety = 25

                                change_variable = { which = "young_value" value = 1 }
                                if = {
                                limit = {
                                is_female = yes
                                }
                                change_diplomacy = 1
                                change_stewardship = 1
                                change_intrigue = 1
                                change_learning = 1
                                fertility = 0.05
                                change_variable = { which = "young_value" value = 1 }
                                }
                                }
                                if = {
                                limit = {
                                trait = genius
                                }
                                change_diplomacy = 2
                                change_martial = 2
                                change_stewardship = 2
                                change_intrigue = 2
                                change_learning = 2

                                wealth = 75
                                prestige = 75
                                piety = 75


                                change_variable = { which = "young_value" value = 2 }
                                if = {
                                limit = {
                                is_female = yes
                                }
                                change_diplomacy = 2
                                change_stewardship = 2
                                change_intrigue = 2
                                change_learning = 2
                                fertility = 0.1
                                change_variable = { which = "young_value" value = 2 }
                                }
                                }
                                if = {
                                limit = {
                                trait = Man_of_Legendary
                                }
                                change_diplomacy = 3
                                change_martial = 3
                                change_stewardship = 3
                                change_intrigue = 3
                                change_learning = 3

                                wealth = 100
                                prestige = 100
                                piety = 100

                                change_variable = { which = "young_value" value = 2 }
                                if = {
                                limit = {
                                is_female = yes
                                }
                                change_diplomacy = 3
                                change_stewardship = 3
                                change_intrigue = 3
                                change_learning = 3
                                fertility = 0.1
                                change_variable = { which = "young_value" value = 2 }
                                }
                                }
                                if = {
                                limit = {
                                is_female = yes
                                }
                                change_diplomacy = 2
                                change_intrigue = 2
                                change_stewardship = 2

                                change_variable = { which = "young_value" value = 3 }
                                if = {
                                limit = {
                                graphical_culture = celticgfx
                                }
                                change_diplomacy = 5
                                change_stewardship = 3
                                change_intrigue = 3
                                change_learning = 5
                                fertility = 0.25
                                change_variable = { which = "young_value" value = 3 }
                                }
                                set_graphical_culture = irish
                                }

                                if = {
                                limit = {
                                is_female = no
                                }
                                change_martial = 2
                                change_learning = 1
                                }
                                add_trait = fair
                                add_trait = born_in_the_purple
                                if = {
                                limit = {
                                trait = bastard
                                }
                                remove_trait = bastard
                                add_trait = legit_bastard
                                }
                                random_list = {
                                5 = {
                                modifier = {
                                factor = 2
                                father_even_if_dead = {
                                trait = Man_of_Immortal
                                }
                                }
                                modifier = {
                                factor = 2
                                mother_even_if_dead = {
                                trait = Man_of_Immortal
                                }
                                }
                                modifier = {
                                factor = 2
                                trait = quick
                                }
                                modifier = {
                                factor = 4
                                trait = genius
                                }
                                modifier = {
                                factor = 0
                                trait = Man_of_Immortal
                                }
                                add_trait = Man_of_Legendary
                                }
                                20 = {
                                modifier = {
                                factor = 2
                                father_even_if_dead = {
                                trait = genius
                                }
                                }
                                modifier = {
                                factor = 2
                                mother_even_if_dead = {
                                trait = genius
                                }
                                }
                                modifier = {
                                factor = 2
                                trait = quick
                                }
                                modifier = {
                                factor = 0
                                trait = genius
                                }
                                modifier = {
                                factor = 8
                                trait = Man_of_Legendary
                                }
                                if = {
                                limit = {
                                NOT = { trait = genius }
                                }
                                add_trait = genius
                                }
                                }
                                80 = {
                                modifier = {
                                factor = 2
                                father_even_if_dead = {
                                trait = quick
                                }
                                }
                                modifier = {
                                factor = 2
                                mother_even_if_dead = {
                                trait = quick
                                }
                                }
                                modifier = {
                                factor = 0.5
                                father_even_if_dead = {
                                trait = genius
                                }
                                }
                                modifier = {
                                factor = 0.5
                                mother_even_if_dead = {
                                trait = genius
                                }
                                }
                                modifier = {
                                factor = 0
                                trait = genius
                                }
                                modifier = {
                                factor = 0
                                trait = quick
                                }
                                if = {
                                limit = {
                                NOT = { trait = genius }
                                }
                                add_trait = quick
                                }
                                }
                                3200 = {
                                modifier = {
                                factor = 0.5
                                father_even_if_dead = {
                                trait = quick
                                }
                                }
                                modifier = {
                                factor = 0.5
                                mother_even_if_dead = {
                                trait = quick
                                }
                                }
                                modifier = {
                                factor = 0.25
                                father_even_if_dead = {
                                trait = genius
                                }
                                }
                                modifier = {
                                factor = 0.25
                                mother_even_if_dead = {
                                trait = genius
                                }
                                }
                                modifier = {
                                factor = 0.125
                                father_even_if_dead = {
                                trait = Man_of_Legendary
                                }
                                }
                                modifier = {
                                factor = 0.125
                                mother_even_if_dead = {
                                trait = Man_of_Legendary
                                }
                                }
                                modifier = {
                                factor = 0.25
                                trait = quick
                                }
                                modifier = {
                                factor = 0.125
                                trait = genius
                                }
                                modifier = {
                                factor = 0.062
                                trait = Man_of_Legendary
                                }
                                modifier = {
                                factor = 0.05
                                is_female = yes
                                }
                                }
                                }
                                random = {
                                chance = 20
                                modifier = {
                                is_female = no
                                factor = 0.2
                                }
                                add_trait = diligent
                                }
                                random = {
                                chance = 20
                                modifier = {
                                is_female = no
                                factor = 0.2
                                }
                                add_trait = gregarious
                                }
                                random = {
                                chance = 20
                                modifier = {
                                is_female = no
                                factor = 0.2
                                }
                                add_trait = patient
                                }
                                random = {
                                chance = 20
                                add_trait = strong
                                }
                                random = {
                                chance = 20
                                add_trait = brave
                                }
                                random = {
                                chance = 10
                                add_trait = ambitious
                                }
                                random_list = {
                                50 = {
                                modifier = {
                                is_female = no
                                factor = 0.5
                                }
                                add_trait = humble
                                piety = 25
                                }
                                50 = {
                                modifier = {
                                is_female = yes
                                factor = 0.5
                                }
                                add_trait = proud
                                prestige = 25
                                }
                                }
                                }
                                }
                                }


                                收起回复
                                21楼2016-01-01 16:09
                                  万能的机器人


                                  回复
                                  来自iPhone客户端23楼2016-01-03 19:17
                                    老实勾引合法化不就是是了实在不行不是还有黑科技吗


                                    回复
                                    来自Android客户端24楼2016-01-04 00:42