I am attempting to make a bloodlines mod that allows for a chance to have mothers pass on the trait. I have found weight as a possible randomizer and I have seen random but that seems like it refers to a random variable in a set of variables. Is there a way to add in a simple rng and if statement to enable this?
Something like
Random { 1 4 }
if = 1 {
if = {
limit = {
mother = {
has_trait = alcimachid
}
NOT = {
has_trait = alcimachid
}
}
add_trait = alcimachid
}
}
or could I use
if random_attribute=charisma
{
if = {
limit = {
mother = {
has_trait = alcimachid
}
NOT = {
has_trait = alcimachid
}
}
add_trait = alcimachid
}
}
Im basically trying to put a 25% chance to pass the bloodline matrilineally.
Something like
Random { 1 4 }
if = 1 {
if = {
limit = {
mother = {
has_trait = alcimachid
}
NOT = {
has_trait = alcimachid
}
}
add_trait = alcimachid
}
}
or could I use
if random_attribute=charisma
{
if = {
limit = {
mother = {
has_trait = alcimachid
}
NOT = {
has_trait = alcimachid
}
}
add_trait = alcimachid
}
}
Im basically trying to put a 25% chance to pass the bloodline matrilineally.
Last edited: