I am trying to understand the probability in this piece of vanilla code:
Is the base chance here 1/100 muiltiplied by 2 if opinion of FROM is above -40 and again multiplied by 2 if opionion of FROM is above -20 ,making for a total of 4% ai_chance if not in hiding ?
Code:
ai_chance = {
factor = 1
modifier = {
factor = 0.1
ai = yes
trait = in_hiding
}
modifier = {
factor = 2
opinion = { who = from value = -40 }
}
modifier = {
factor = 2
opinion = { who = from value = -20 }
}
}