77,631
edits
(→Available items: The "weighted probability" is a probability (i.e. a value between 0 and 1). These values are probability weights (values used to calculate the probability).) |
(Use <math> formatting instead of <code> formatting) |
||
Line 267: | Line 267: | ||
This discount multiplier is calculated as follows: | This discount multiplier is calculated as follows: | ||
< | <math>DiscountMultiplier = {(100 - quantity \times DiscountRate) \over 100}</math> | ||
Example with Poké Balls: | Example with Poké Balls: | ||
* The discount rate for Poké Balls is 0.7. | * The discount rate for Poké Balls is 0.7. | ||
* 50 Poké Balls: (100 - 50 | * 50 Poké Balls: <math display="inline">{(100 - 50 \times 0.7) \over 100} = 0.65</math>. This is effectively a 35% discount. | ||
* 100 Poké Balls: (100 - 100 | * 100 Poké Balls: <math display="inline">{(100 - 100 \times 0.7) \over 100} = 0.30</math>. This is effectively a 70% discount. | ||
====Initial bid calculation==== | ====Initial bid calculation==== | ||
An auction's initial bid price is calculated as follows: | An auction's initial bid price is calculated as follows: | ||
< | <math>StartPrice = quantity \times MinPrice \times DiscountMultiplier + 0.5</math> | ||
The amount is then rounded to the nearest hundred. | The amount is then rounded to the nearest hundred. | ||
Line 283: | Line 283: | ||
Example with Poké Balls: | Example with Poké Balls: | ||
* Poké Ball's minimum price is {{PDollar}}50. | * Poké Ball's minimum price is {{PDollar}}50. | ||
* 50 Poké Balls: 50 | * 50 Poké Balls: <math>50 \times 50 \times 0.65 + 0.5 = 1625.5</math>. This rounds to {{PDollar}}1,600. | ||
* 100 Poké Balls: 100 | * 100 Poké Balls: <math>100 \times 50 \times 0.30 + 0.5 = 1500.5</math>. This rounds to {{PDollar}}1,500. | ||
====Bidding==== | ====Bidding==== | ||
Line 301: | Line 301: | ||
An NPC's budget is calculated similarly to the initial bid price, but using the item's base price instead of minimum price: | An NPC's budget is calculated similarly to the initial bid price, but using the item's base price instead of minimum price: | ||
< | |||
<math>budget = quantity \times BasePrice \times BaseBudgetRate \times DiscountMultiplier + 0.5</math> | |||
NPCs can make low bids or high bids, until making another bid would exceed their budget. At this point, they will withdraw from the auction. | NPCs can make low bids or high bids, until making another bid would exceed their budget. At this point, they will withdraw from the auction. | ||
* Low bids have a 7,001/10,001 chance to occur, while high bids have a 3,000/10,001 chance to occur. | * Low bids have a 7,001/10,001 (~70%) chance to occur, while high bids have a 3,000/10,001 (~30%) chance to occur. | ||
* Note that the table below does | * Note that the table below does not account for the 10× multiplier on increments for expensive items. | ||
If an NPC's wish item is the one on auction, they will say a unique line at the start of the auction. Their budget will also be higher, and they will be more likely to make high bids. | If an NPC's wish item is the one on auction, they will say a unique line at the start of the auction. Their budget will also be higher, and they will be more likely to make high bids. | ||
* The budget formula will use the NPC's wish budget rate instead of base budget rate. | * The budget formula will use the NPC's wish budget rate instead of base budget rate. | ||
* Low bids have a 3,001/10,001 chance to occur, while high bids have a 7,000/10,001 chance to occur. | * Low bids have a 3,001/10,001 (~30%) chance to occur, while high bids have a 7,000/10,001 (~70%) chance to occur. | ||
Example: NPCs 7 and 8 are bidding on 1 Moon Ball. | Example: NPCs 7 and 8 are bidding on 1 Moon Ball. | ||
* Moon Ball's base price is {{PDollar}}200,000, and it is not eligible for discounts. | * Moon Ball's base price is {{PDollar}}200,000, and it is not eligible for discounts. | ||
* NPC 7: This is not their wish item, so their base budget rate of 1.8 is used. Their budget is therefore 1 | * NPC 7: This is not their wish item, so their base budget rate of 1.8 is used. Their budget is therefore 1 × 200,000 × 1.8 + 0.5 = 360,000.5. This rounds to {{PDollar}}360,000. | ||
* NPC 8: This is their wish item, so their wish budget rate of 2 is used. Their budget is therefore 1 | * NPC 8: This is their wish item, so their wish budget rate of 2 is used. Their budget is therefore 1 × 200,000 × 2 + 0.5 = 400,000.5. This rounds to {{PDollar}}400,000. | ||
* Additionally, recall that the bid increments of both the player and these NPCs is multiplied by 10×, since the item is expensive. | * Additionally, recall that the bid increments of both the player and these NPCs is multiplied by 10×, since the item is expensive. | ||
Line 331: | Line 332: | ||
| 2 || Small girl in a pink striped shirt || [[File:Bag Lemonade SV Sprite.png|32px]] [[Lemonade]] || 1 || 1.3 || 500 || 500 || This lot is mine! | | 2 || Small girl in a pink striped shirt || [[File:Bag Lemonade SV Sprite.png|32px]] [[Lemonade]] || 1 || 1.3 || 500 || 500 || This lot is mine! | ||
|- | |- | ||
| 3 || Man in a yellow shirt and blue jeans || [[File:Bag King's Rock SV Sprite.png|32px]] [[King's Rock]] || 1.1 || 1.5 || 500 || 1,500 || | | 3 || Man in a yellow shirt and blue jeans || [[File:Bag King's Rock SV Sprite.png|32px]] [[King's Rock]] || 1.1 || 1.5 || 500 || 1,500 || I'll outbid all of ya! | ||
|- | |- | ||
| 4 || Woman in a white shirt and an orange flower-print skirt || [[File:Bag Metal Coat SV Sprite.png|32px]] [[Metal Coat]] || 1.1 || 1.5 || 500 || 1,500 || I really wanna win! | | 4 || Woman in a white shirt and an orange flower-print skirt || [[File:Bag Metal Coat SV Sprite.png|32px]] [[Metal Coat]] || 1.1 || 1.5 || 500 || 1,500 || I really wanna win! | ||
Line 337: | Line 338: | ||
| 5 || Burly man in a hot-pink shirt and white pants || [[File:Bag Bottle Cap SV Sprite.png|32px]] [[Bottle Cap]] || 1.2 || 1.6 || 500 || 1,500 || Time for this old geezer to shine! | | 5 || Burly man in a hot-pink shirt and white pants || [[File:Bag Bottle Cap SV Sprite.png|32px]] [[Bottle Cap]] || 1.2 || 1.6 || 500 || 1,500 || Time for this old geezer to shine! | ||
|- | |- | ||
| 6 || Older woman in a blue top and orange pants || [[File:Bag Gold Bottle Cap SV Sprite.png|32px]] [[Gold Bottle Cap]] || 1.2 || 1.6 || 500 || 1,500 || | | 6 || Older woman in a blue top and orange pants || [[File:Bag Gold Bottle Cap SV Sprite.png|32px]] [[Gold Bottle Cap]] || 1.2 || 1.6 || 500 || 1,500 || I'm taking this home for sure! | ||
|- | |- | ||
| 7 || Older man in a square-patterned light-pink shirt and beige pants || [[File:Bag Dream Ball SV Sprite.png|32px]] [[Dream Ball]] || 1.8 || 2 || 1,500 || 2,000 || No way | | 7 || Older man in a square-patterned light-pink shirt and beige pants || [[File:Bag Dream Ball SV Sprite.png|32px]] [[Dream Ball]] || 1.8 || 2 || 1,500 || 2,000 || No way I'm lettin' this lot go! | ||
|- | |- | ||
| 8 || Older woman in a blue top and blue pants || [[File:Bag Moon Ball SV Sprite.png|32px]] [[Moon Ball]] || 1.8 || 2 || 1,500 || 2,000 || Time to empty the pension pot! | | 8 || Older woman in a blue top and blue pants || [[File:Bag Moon Ball SV Sprite.png|32px]] [[Moon Ball]] || 1.8 || 2 || 1,500 || 2,000 || Time to empty the pension pot! | ||
Line 350: | Line 351: | ||
The two NPCs here do not have wish items, and each has only one possible bid increment they can make. | The two NPCs here do not have wish items, and each has only one possible bid increment they can make. | ||
* NPC A's budget is effectively 1 | * NPC A's budget is effectively 1 × 10,000 × 2.5 + 0.5 = 25,000.5. This rounds to {{PDollar}}25,000. | ||
* NPC B's budget is effectively 1 | * NPC B's budget is effectively 1 × 10,000 × 4 + 0.5 = 40,000.5. This rounds to {{PDollar}}40,000. | ||
It is mathematically impossible for the player to fail to win the auction, and to exceed spending {{PDollar}}50,000. | It is mathematically impossible for the player to fail to win the auction, and to exceed spending {{PDollar}}50,000. | ||
Line 361: | Line 362: | ||
* NPC B (bids 10,000, total 25,000) | * NPC B (bids 10,000, total 25,000) | ||
* Player (bids 5,000, total 30,000) | * Player (bids 5,000, total 30,000) | ||
* NPC A (over budget of 25,000 | * NPC A (over budget of 25,000; withdraws) | ||
* NPC B (bids 10,000, total 40,000) | * NPC B (bids 10,000, total 40,000) | ||
* Player (bids 10,000, total 50,000) | * Player (bids 10,000, total 50,000) | ||
Line 372: | Line 373: | ||
* Player (bids 10,000, total 35,000) | * Player (bids 10,000, total 35,000) | ||
* NPC A (over budget of 25,000. Withdraws) | * NPC A (over budget of 25,000. Withdraws) | ||
* NPC B (bidding would increase total to 45,000, which is above budget | * NPC B (bidding would increase total to 45,000, which is above budget; withdraws) | ||
* Final price: {{PDollar}}35,000 | * Final price: {{PDollar}}35,000 | ||