Alright this is going to sound weird, but I think something is going on with the add_alliance command.
If I use this code:
I can start up the game and try the decision out it creates alliances. If I start the game again, it only creates non-aggression pacts. If I start it again it creates alliances!
It's not a direct one to one relation per game session. Sometimes it creates an alliance, sometimes it does not, but it seems linked to the game session because if the decision creates only pacts, whoever I use it on will only get pacts. If in my restarted game it is creating alliances, it will always create alliances no matter who I use the decision on.
I think this is some weird behaviour and I hope it's not a hard to find bug.
If I use this code:
Code:
targetted_decisions = {
hackhackhack = {
filter = court
ai_target_filter = court
from_potential = {
ai = no
}
potential = {
is_ruler = yes
higher_tier_than = baron
}
effect = {
opinion = { who = FROM modifier = in_non_aggression_pact years = 10 }
add_alliance = { who = FROM years = 10 }
}
revoke_allowed = {
always = no
}
ai_will_do = {
factor = 0
}
}
}
I can start up the game and try the decision out it creates alliances. If I start the game again, it only creates non-aggression pacts. If I start it again it creates alliances!
It's not a direct one to one relation per game session. Sometimes it creates an alliance, sometimes it does not, but it seems linked to the game session because if the decision creates only pacts, whoever I use it on will only get pacts. If in my restarted game it is creating alliances, it will always create alliances no matter who I use the decision on.
I think this is some weird behaviour and I hope it's not a hard to find bug.