• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

ealexandrohin

Recruit
31 Badges
Mar 14, 2020
7
1
  • Crusader Kings II
  • Crusader Kings III
  • Europa Universalis IV
  • Victoria 2
  • Cities: Skylines Deluxe Edition
  • Crusader Kings II: Holy Fury
  • Hearts of Iron IV: Expansion Pass
  • Crusader Kings II: Jade Dragon
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Rights of Man
  • Hearts of Iron IV: Cadet
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris
  • Crusader Kings II: Conclave
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Cities: Skylines
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Europa Universalis IV: Art of War
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: The Old Gods
Or how it is also called: "How the f*** do I choose spouse of the FROM character?". :)

I'm making adoption mod, but cannot figure out the said problem. So, I need to "set_mother/set_father" to spouse of FROM character via targetted decision.
I thought of this:
Code:
set_mother = {
    spouse = {
        character = FROM
    }
}
But turns out, it breaks the decision and makes "ai_will_do" and "ai_acceptance" into seperate decisions, which is obvioulsy isn't right.
So, I tried this:
Code:
FROM = {
    set_mother = spouse
}
Which is, on the right track, and scopes to the spouse of FROM character, but sets mother, in this context, to the FROM character itself, which is understandable. So, doesn't work either.
Then:
Code:
FROM = {
   ROOT = {
        set_mother = spouse
   }
}
But, isn't a solution too.
Tried a bunch of different ways, but didn't work, as you can imagine. So, I've been sitting on this problem for 2-3 hours now, and there is no any information about this topic.
That's why I'm here.

So, please, tell me - how do I do this?
 
Last edited:
Code:
FROM = {
    spouse = {
        PREVPREV = {
            set_mother = PREV
        }
    }
}

would set the initial scope (from which FROM is used) character's mother to FROM's spouse.
 
  • 1Like
Reactions: