• 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.

faiuwle

Field Marshal
30 Badges
Sep 3, 2016
3.618
18
  • Crusader Kings II
  • 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: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Holy Fury
  • Crusader Kings II: Jade Dragon
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings II: Reapers Due
  • Stellaris
  • Crusader Kings II: Conclave
  • Crusader Kings II: Horse Lords
  • Pillars of Eternity
  • Crusader Kings II: Way of Life
  • Europa Universalis III: Collection
  • Semper Fi
  • Majesty 2 Collection
  • Heir to the Throne
  • Magicka 2
  • Hearts of Iron III Collection
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Divine Wind
  • Europa Universalis III
  • Cities in Motion 2
So I was having trouble getting the game to calculate a year's worth of income using scaled_wealth, so I did a little experiment. I wrote the following event:

Code:
character_event = {
    id = AFRREL.013
    is_triggered_only = yes
    
    immediate = {
        export_to_variable = { which = variable_one value = scaled_wealth }
        export_to_variable = { which = variable_two value = yearly_income }
    }
    
    option = {
        name = some_option
        wealth = variable_one
    }
    option = {
        name = other_option
        wealth = variable_two
    }
    option = {
        name = true_scaled_wealth
        scaled_wealth = 1
    }
}

The result of triggering this in-game:
ck2_526.png

ck2_527.png

ck2_528.png

I reloaded the game several times as this character, and in every case it was the same. I started a new game as a different character with a very similar yearly income, and triggered the event:
ck2_529.png
ck2_530.png


ck2_531.png


So it seems to be completely random, based on whatever random generation happens at the beginning of the game. I've also seen times when scaled_wealth was much greater than yearly_income. You can test this out in your own game and see for yourselves. So, what is the purpose of scaled_wealth exported to a variable, and why does it seem to basically be a random number generator?