Jaghave Posted December 19, 2021 Posted December 19, 2021 Anyway to restrict marriage for culture or religion by the individuals having a certain trait?
Infini Ryu Posted January 14, 2022 Posted January 14, 2022 I wish to know this as well. Or at least know how to make a mod that does it.
cfootlg Posted January 14, 2022 Posted January 14, 2022 You cannot marry if you have the Enunch, Devoted, or Order member trait. If you wanna make trait, add flag = can_not_marry.
Infini Ryu Posted January 19, 2022 Posted January 19, 2022 On 1/15/2022 at 2:06 AM, pialid said: You cannot marry if you have the Enunch, Devoted, or Order member trait. If you wanna make trait, add flag = can_not_marry. I think he means restricted to within culture or culture groups to make marriages in the game less bizzare.
cfootlg Posted January 20, 2022 Posted January 20, 2022 @Infini Ryu Oh, I was thinking too simplistic. If you need a condition, I think the simplest way is to add a condition to can_marry_common_trigger in 00_marriage_triggers.txt. I think you just need to add like this. NOT = { has_trait = <some trait> culture = culture:<some culture> } or... NOT = { has_trait = <some trait> faith = { has_doctrine = <some doctrine> } }
Infini Ryu Posted January 26, 2022 Posted January 26, 2022 On 1/21/2022 at 2:46 AM, pialid said: @Infini Ryu Oh, I was thinking too simplistic. If you need a condition, I think the simplest way is to add a condition to can_marry_common_trigger in 00_marriage_triggers.txt. I think you just need to add like this. NOT = { has_trait = <some trait> culture = culture:<some culture> } or... NOT = { has_trait = <some trait> faith = { has_doctrine = <some doctrine> } } Thanks. How would we go about making a trait for specific cultures?
cfootlg Posted January 26, 2022 Posted January 26, 2022 @Infini Ryu Since the trait itself doesn't have any special conditions. I think it's common to create events so that you can acquire a certain trait when you have a specific culture or religion.
bunt776 Posted January 26, 2022 Posted January 26, 2022 6 hours ago, Infini Ryu said: Thanks. How would we go about making a trait for specific cultures? Have a look at 00_traits.txt. Copy a similar trait to what you want into your mod and adjust as desired, then add a way to add to give it to characters of that culture in game via event, decision etc.
Infini Ryu Posted January 31, 2022 Posted January 31, 2022 On 1/27/2022 at 2:29 AM, bunt776 said: Have a look at 00_traits.txt. Copy a similar trait to what you want into your mod and adjust as desired, then add a way to add to give it to characters of that culture in game via event, decision etc. I tried it and the event had to be manually fired, plus it added the same trait to every character in the game. lol. I suck at modding. Tried everything to stop it.
bunt776 Posted January 31, 2022 Posted January 31, 2022 5 hours ago, Infini Ryu said: I tried it and the event had to be manually fired, plus it added the same trait to every character in the game. lol. I suck at modding. Tried everything to stop it. For starters, you could try assigning it via character interaction. You don't need to event mod for that. Take a look at other mods that use them (most bigger mods do) and try adding your trait for a first draft. When that works, copy the interaction into your mod, rename it and remove everything you don't need.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.