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:
The result of triggering this in-game:
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:
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?
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:



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:



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?