I was playing with this file to make a mod that will give me a commander with specific skillsets instead of random, but for some reason, it sometimes generate extra leadership traits that I never wanted.
The usual "random_traits = no" does not seem to work so I have been looking for a solution and then I found these two scripts:
The first one is this:
add_random_commander_trait_effect = {
random_list = {
1 = {
trigger = {
NOT = {
trait = aggressive_leader
}
}
add_trait = aggressive_leader
}
and right underneath the first script was this one:
add_same_commander_trait_as_FROM = {
# random_list = {
if = {
limit = {
NOT = {
trait = aggressive_leader
}
FROM = { trait = aggressive_leader }
}
add_trait = aggressive_leader
}
So I am thinking maybe these two are the reason that my commanders keep appearing with unwanted extra leadership trait.
Can anyone tell me exactly what these scripts do and what would happen if I complete remove them?
Would getting rid of these two scripts completely finally allow me to generate commanders in the way I wanted?
or would it just use the original script file in the game folder instead and completly nullify my mod?
The usual "random_traits = no" does not seem to work so I have been looking for a solution and then I found these two scripts:
The first one is this:
add_random_commander_trait_effect = {
random_list = {
1 = {
trigger = {
NOT = {
trait = aggressive_leader
}
}
add_trait = aggressive_leader
}
and right underneath the first script was this one:
add_same_commander_trait_as_FROM = {
# random_list = {
if = {
limit = {
NOT = {
trait = aggressive_leader
}
FROM = { trait = aggressive_leader }
}
add_trait = aggressive_leader
}
So I am thinking maybe these two are the reason that my commanders keep appearing with unwanted extra leadership trait.
Can anyone tell me exactly what these scripts do and what would happen if I complete remove them?
Would getting rid of these two scripts completely finally allow me to generate commanders in the way I wanted?
or would it just use the original script file in the game folder instead and completly nullify my mod?