Jump to content

Marriage Tied to Traits?


Jaghave

Recommended Posts

  • 4 weeks later...
Posted
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.

Posted

@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> }

}

Posted
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?

Posted

 

@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.

Posted
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.

Posted
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.

Posted
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.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...