Talk:Lottery
(Redirected from Talk:Lotto)
Jump to navigation
Jump to search
This is a page for discussing improvements to Lottery
Talk pages are used to discuss changes or improvements to the article or page only. Please use the game discussions forum for game discussions, help desk for game questions, or the off-topic forum for general conversations. Real-time conversation about The Sims (as well as off-topic discussions) can also be found on The Sims Wiki's IRC Channel or Discord server.
|
|
Top prize for Unlucky Sims[edit source]
Looking at the table, I don't see how prizes for Unlucky Sims top out at §100. The traits don't start affecting the prize chances until the §1,000 level is reached, and even then, it's +/- 5%. That leaves a 5% of winning §1,000, unless there are some other factors that affect the amount of the prize. Dharden (talk) 18:28, March 29, 2014 (UTC)
- The code isn't very complicated, but it's a little confusing to explain in the article, so I tried to omit the details as it's too technical. How the game determines the outcome is actually more than what's just listed on the table.
- Consider the winning chances aren't modified (no traits, no moodlet). First, all the weighted chances are summed up, so n = 30 + 25 + 15 + ... + 0.05 = 100. After that, a random number x is picked between 0.00 - 1.00. The random number that's picked determines the outcome of the reward:
50 | 100 | 500 | 1,000 |
---|---|---|---|
0 ≤ x < 30/100 | 30/100 ≤ x < 55/100 | 55/100 ≤ x < 70/100 | 70/100 ≤ x < 80/100 |
5,000 | 50,000 | 100,000 | 1,000,000 |
80/100 ≤ x < 87/100 | 87/100 ≤ x < 94/100 | 94/100 ≤ x < 99.95/100 | 99.95/100 ≤ x < 100/100 |
- Technically, if x is exactly 1.00, I believe you won't win any prize instead. The denominator is n, while the numerator is the prize's corresponding weighted chance, added by the preceding weighted chances and modified chances.
- If the Sim has Unlucky trait, the result is a bit different. The denominator n is equal to the sum of base weighted chances, as well as the modifiers (this is applied to other factors as well, but in this case, the Sim only has Unlucky trait); n = 30 + 25 + 15 + 10 + (-5) + 7 + (-10) + 7 + (-12.5) + 5.95 + (-15) + 0.05 + (-10) = 47.5. And then x is picked between 0 and 1 again, and the outcome would be like this:
50 | 100 | 500 | 1,000 |
---|---|---|---|
0 ≤ x < 30/47.5 | 30/47.5 ≤ x < 55/47.5 | 55/47.5 ≤ x < 70/47.5 | 70/47.5 ≤ x < 75/47.5 |
5,000 | 50,000 | 100,000 | 1,000,000 |
75/47.5 ≤ x < 72/47.5 | 72/47.5 ≤ x < 66.5/47.5 | 66.5/47.5 ≤ x < 57.45/47.5 | 57.45/47.5 ≤ x < 47.5/47.5 |
- See, 55/47.5 is already greater than 1.00. Theoretically it's impossible to get past §100. And beyond §5,000 prize is logic error, so it's even more impossible. Nikel Talk – Vote! 06:37, March 30, 2014 (UTC)
- Those are correct, except the Lucky one. I've corrected it. I was afraid that it would confuse the reader, so I didn't include it in the article. You can make a sub-page for the table, but I don't know if the details are significant enough, especially since lotto prize isn't the only thing that has this probability calculation in the game. Nikel Talk – Vote! 17:04, March 31, 2014 (UTC)