Trainer Hill: Difference between revisions

m (→‎Intro: matching other emerald locations)
Line 203: Line 203:


==Prizes==
==Prizes==
{{incomplete|section|needs=Japanese version prize data}}
Each prize can be obtained an unlimited number of times. If playing in Japanese, no prizes will be awarded regardless of completion time unless the challenge covers all four possible floors, which requires at least 7 e-Reader cards to be scanned; the default layout contains only two floors and does not qualify for prizes.
Each prize can be obtained an unlimited number of times.


{| style="margin: auto; background: #{{Locationcolor/med|building}}; {{roundy}}; border: 3px solid #{{Locationcolor/dark|building}};" cellpadding="3"
{| style="margin: auto; background: #{{Locationcolor/med|building}}; {{roundy}}; border: 3px solid #{{Locationcolor/dark|building}};" cellpadding="3"
! style="background: #{{Locationcolor/light|building}}; {{roundytl|5px}};" | Time
! style="background: #{{Locationcolor/light|building}}; {{roundytl|5px}};" | Time
! colspan="2" style="background: #{{Locationcolor/light|building}}; {{roundytr|5px}}" | Prize
! colspan="2" style="background: #{{Locationcolor/light|building}}; {{roundytr|5px}}" | Prize
|-
| rowspan="4" style="background: #FFF;" | Under 12 minutes
| style="background: #FFF;" | {{bag|TM Fire}}
| style="background: #FFF;" | {{TM|11|Sunny Day}}<br><small>{{DL||Normal Mode}}</small>
|- style="background: #FFF;"
| {{bag|Elixir}} || [[Elixir]]<br><small>{{DL||Variety Mode}}</small>
|- style="background: #FFF;"
| {{bag|TM Grass}} || {{TM|19|Giga Drain}}<br><small>{{DL||Unique Mode}}</small>
|- style="background: #FFF;"
|- style="background: #FFF;"
| {{bag|TM Fighting}} || {{TM|31|Brick Break}}<br><small>{{DL||Expert Mode}}</small>
| Under 12 minutes
| colspan="2" | Grand prize - ''see below''
|- style="background: #FFF;"
|- style="background: #FFF;"
| 12–13 minutes || {{bag|Ether}} || [[Ether]]
| 12–13 minutes || {{bag|Ether}} || [[Ether]]
Line 231: Line 223:
| style="background: #FFF;" | {{bag|Great Ball}}
| style="background: #FFF;" | {{bag|Great Ball}}
| style="background: #FFF; {{roundybr|5px}};" | [[Great Ball]]
| style="background: #FFF; {{roundybr|5px}};" | [[Great Ball]]
|}
===Determining the grand prize===
The top prize, for clearing all four floors in less than 12 minutes, depends on the particular combination of cards that are used. Let <math>C_1, C_2, ... , C_8</math> be the card numbers in a particular layout. If only seven cards are used, then the eighth trainer is a default trainer, and <math>C_8</math> becomes 0.
For each card number, the game takes a modified copy of that card number that uses only the lowest five bits, limiting each modified card number to be in the range 0-31. So let <math>M_1 = C_1\ mod\ 32, M_2 = C_2\ mod\ 32 ...</math> and so on for the rest of the cards.
The eight modified card values are then combined together using the bitwise XOR operator, similar to the manner in which Shiny Pokémon are determined. Let <math>X = M_1 \oplus M_2 \oplus M_3 \oplus M_4 \oplus M_5 \oplus M_6 \oplus M_7 \oplus M_8</math>, so that X is also within the range 0-31.
If either <math>C_8</math> is 0 or if the player has not yet defeated the Champion, then the grand prize index <math>P = X\ mod\ 5</math>, giving a result between 0 and 4. Otherwise (if all eight cards are used and the player has defeated the Champion at least once before), <math>P = X\ mod\ 10</math>, giving a result between 0 and 9. In the cases where P is 5 or greater, the game also uses the sum <math>S = C_1 + C_2 + C_3 + C_4 + C_5 + C_6 + C_7 + C_8</math> to determine the grand prize:
{| style="margin: auto; background: #{{Locationcolor/med|building}}; {{roundy}}; border: 3px solid #{{Locationcolor/dark|building}};" cellpadding="3"
! style="background: #{{Locationcolor/light|building}}; {{roundytl|5px}};" | P
! colspan="2" style="background: #{{Locationcolor/light|building}}" | Grand Prize if S < 256
! colspan="2" style="background: #{{Locationcolor/light|building}}; {{roundytr|5px}}" | Grand Prize if S ≥ 256
|- style="background: #FFF;"
| 0 || {{bag|Rare Candy}}
| colspan="3" | [[Rare Candy]]
|- style="background: #FFF;"
| 1 || {{bag|Luxury Ball}}
| colspan="3" | [[Luxury Ball]]
|- style="background: #FFF;"
| 2 || {{bag|Max Revive}}
| colspan="3" | [[Max Revive]]
|- style="background: #FFF;"
| 3 || {{bag|Max Ether}}
| colspan="3" | [[Max Ether]]
|- style="background: #FFF;"
| 4 || {{bag|Elixir}}
| colspan="3" | [[Elixir]]
|- style="background: #FFF;"
| 5 || {{bag|TM Normal}} || {{TM|05|Roar}} || {{bag|TM Fighting}} || {{TM|31|Brick Break}}
|- style="background: #FFF;"
| 6 || {{bag|TM Poison}} || {{TM|36|Sludge Bomb}} || {{bag|TM Dark}} || {{TM|41|Torment}}
|- style="background: #FFF;"
| 7 || {{bag|TM Poison}} || {{TM|06|Toxic}} || {{bag|TM Psychic}} || {{TM|48|Skill Swap}}
|- style="background: #FFF;"
| 8 || {{bag|TM Fire}} || {{TM|11|Sunny Day}} || {{bag|TM Grass}} || {{TM|19|Giga Drain}}
|-
| style="background: #FFF; {{roundybl|5px}};" | 9
| style="background: #FFF;" | {{bag|TM Ground}}
| style="background: #FFF;" | {{TM|26|Earthquake}}
| style="background: #FFF;" | {{bag|TM Normal}}
| style="background: #FFF; {{roundybr|5px}};" | {{TM|45|Attract}}
|}
Note that the calculation of <math>P</math> and <math>S</math> has the property that scanning the same set of eight cards, but in a different order, will never change the prize that is awarded.
===Grand prize from predefined layouts===
In languages other than Japanese, the layout of Trainer Hill can only be customized to a limited extent, by choosing between four predefined modes. Each mode corresponds to a sequence of eight consecutive cards, and the grand prize can be calculated from those card numbers using the same formula:
{| style="margin: auto; background: #{{Locationcolor/med|building}}; {{roundy}}; border: 3px solid #{{Locationcolor/dark|building}};" cellpadding="3"
! style="background: #{{Locationcolor/light|building}}; {{roundytl|5px}};" | Mode
! style="background: #{{Locationcolor/light|building}}" | Cards
! colspan="2" style="background: #{{Locationcolor/light|building}}" | Before Hall of Fame
! colspan="2" style="background: #{{Locationcolor/light|building}}; {{roundytr|5px}}" | After Hall of Fame
|- style="background: #FFF;"
| '''Normal''' || 17-24 || {{bag|Max Ether}} || [[Max Ether]] || {{bag|TM Fire}} || {{TM|11|Sunny Day}}
|- style="background: #FFF;"
| '''Variety''' || 41-48 || {{bag|Elixir}}
| colspan="3" | [[Elixir]]
|- style="background: #FFF;"
| '''Unique''' || 49-56 ||{{bag|Max Ether}} || [[Max Ether]] || {{bag|TM Grass}} || {{TM|19|Giga Drain}}
|-
| style="background: #FFF; {{roundybl|5px}};" | '''Expert'''
| style="background: #FFF;" | 57-64
| style="background: #FFF;" | {{bag|Rare Candy}}
| style="background: #FFF;" | [[Rare Candy]]
| style="background: #FFF;" | {{bag|TM Fighting}}
| style="background: #FFF; {{roundybr|5px}};" | {{TM|31|Brick Break}}
|}
|}