(First modding)
1: Modify action_settle_tribe, so I can settle in vassal lands: Done and working.
2: Get AI to settle tribe... I've added a title decision that sets the treasurer to settle tribe in a county. It's crude, but it works. But I want the AI to be slightly smarter when using it:
The four x1.25's should scale chance from 40-100% depending on size (more empty holdings = larger tribal bonus). The two other ones ... The x.5 one simply makes it less likely to happen in vassal lands, right? Would the x0 one actually prevent it from firing in vassal lands if any own province is wrong-culture?
1: Modify action_settle_tribe, so I can settle in vassal lands: Done and working.
2: Get AI to settle tribe... I've added a title decision that sets the treasurer to settle tribe in a county. It's crude, but it works. But I want the AI to be slightly smarter when using it:
ai_will_do = { #40%-100% chance, depending on size
factor = .4
modifier = { #Prefer to settle in own demesne
factor = .5
NOT = {
ROOT = { owner = { character = FROM }}
}
}
# modifier = { #Prefer to settle in own demesne
# factor = 0
# AND = {
# NOT = { owner = ROOT }
# any_demesne_province = {
# NOT = { culture = ROOT }
# }
# }
# }
modifier = { #Prefer larger tribes....
factor = 1.25
ROOT = {
num_of_empty_holdings = 1
}
}
modifier = {
factor = 1.25
ROOT = {
num_of_empty_holdings = 2
}
}
modifier = {
factor = 1.25
ROOT = {
num_of_empty_holdings = 3
}
}
modifier = {
factor = 1.25 #... up to 100% for a tribe with +200% from empty holdings
ROOT = {
num_of_empty_holdings = 4
}
}
}
factor = .4
modifier = { #Prefer to settle in own demesne
factor = .5
NOT = {
ROOT = { owner = { character = FROM }}
}
}
# modifier = { #Prefer to settle in own demesne
# factor = 0
# AND = {
# NOT = { owner = ROOT }
# any_demesne_province = {
# NOT = { culture = ROOT }
# }
# }
# }
modifier = { #Prefer larger tribes....
factor = 1.25
ROOT = {
num_of_empty_holdings = 1
}
}
modifier = {
factor = 1.25
ROOT = {
num_of_empty_holdings = 2
}
}
modifier = {
factor = 1.25
ROOT = {
num_of_empty_holdings = 3
}
}
modifier = {
factor = 1.25 #... up to 100% for a tribe with +200% from empty holdings
ROOT = {
num_of_empty_holdings = 4
}
}
}
The four x1.25's should scale chance from 40-100% depending on size (more empty holdings = larger tribal bonus). The two other ones ... The x.5 one simply makes it less likely to happen in vassal lands, right? Would the x0 one actually prevent it from firing in vassal lands if any own province is wrong-culture?