Trainer Hill

Trainer Hill (Japanese: トレーナーヒル Trainer Hill) is a battle facility in located just north of Mauville City, on . Much like Trainer Tower in the Sevii Islands on , Trainer Hill is a tower designed for s to race and battle through quickly. The concept remains mostly unchanged from the Trainer Tower: each battle mode has a default time and if beaten, offers a rare in-game item as prizes. The 's will not be healed between battles, though recovery items such as Revives and Potions can be used both during and between battles. Unlike Trainer Tower however, the prizes here vary depending on the time taken, and all battles conducted here are Double Battles (although the player can battle each of the two opponents separately in some rooms). Instead of different battle types, the modes here escalate in difficulty.
Trainer Hill also has a Pokémon Center and a Poké Mart inside of it. Since there are Trainers with Pokémon that are not in Hoenn's regional Pokédex, such as , Trainer Hill's challenge will be closed until the player has entered the Hall of Fame, except in the Japanese version.
Battles conducted inside of Trainer Hill do not award experience or money. The level of the Pokémon used by Trainers will also match the player's highest-leveled Pokémon.
In the original Japanese release of Pokémon Emerald, Trainer Hill also serves as a facility with compatibility for the e-Reader, like Trainer Tower in Pokémon FireRed and LeafGreen. Cards from the Pokémon Battle e Emerald set can be used to modify the Trainers the player can battle, as well as the floor layout, and the top prize they can earn. The default layout of Trainer Hill in the Japanese version has two floors with the same Trainers on each floor for each playthrough. Scanning cards can increase this to a maximum of four floors. The set of Pokémon that each scanned Trainer will use is also dependent on whether they were scanned first or second for that floor.
The Trainers and individual floor layouts featured in the localizations are taken from the cards found in the Pokémon Battle e Emerald set.
==Japanese versions==
===Default===
===Replacement Trainers===
In the event that an odd number of cards are scanned, the game will place a preset alongside the last Trainer scanned, as two are always required for one particular floor. The amount of cards scanned will influence this preset Trainer:
* if only one card is scanned, it will cause a Trainer to appear on the first floor;
* three cards will make a Trainer appear on the second floor;
* five cards will make a Trainer appear on the third floor;
* seven cards will make a Trainer appear on fourth floor.
The preset Trainer is the same for each individual floor.
==International versions==
===Normal Mode===
The top prize for a fast time in this mode is .
The tower layout in this mode can be recreated in the Japanese version by scanning cards #17-24 in ascending numerical order.
===Variety Mode===
The top prize for a fast time in this mode is an Elixir.
The tower layout in this mode can be recreated in the Japanese version by scanning cards #41-48 in ascending numerical order. Within the fourth floor, the positions of s Kimberly and Francisco are inverted, with Kimberly appearing as the first scanned Trainer on the floor sourced from Francisco's card. This may have been done to showcase their teams of .
===Unique Mode===
The top prize for a fast time in this mode is .
The tower layout in this mode can be recreated in the Japanese version by scanning cards #49-54 in ascending order, then #56, then #55. The last two cards are in reverse order to prevent a bug that exists with the floor layout of card #55, where a player could become trapped by engaging the Trainers in battle and then moving in a particular way afterward.
 Abraham's have the following movesets:
* Smeargle #1: , , , and 
* Smeargle #2: , , , and 
* Smeargle #3: , , , and 
===Expert Mode===
The top prize for a fast time in this mode is .
The tower layout in this mode can be recreated in the Japanese version by scanning cards #57-64 in ascending numerical order.
==Poké Mart==
===Before entering the Hall of Fame===
===After entering the Hall of Fame===
==Prizes==
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.
Time 	Prize 	Prize
Under 12 minutes	Grand prize - see below	Grand prize - see below
12–13 minutes 	 	Ether
13–14 minutes 	 	Max Potion
14–16 minutes 	 	Revive
16–18 minutes 	 	Fluffy Tail
Over 18 minutes 	 	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 C_1, C_2, ... , C_8 be the card numbers in a particular layout. If only seven cards are used, then the eighth trainer is a default trainer, and C_8 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 M_1 = C_1 \bmod 32, M_2 = C_2 \bmod 32 ... 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 X = M_1 \oplus M_2 \oplus M_3 \oplus M_4 \oplus M_5 \oplus M_6 \oplus M_7 \oplus M_8, so that X is also within the range 0-31.
If either C_8 is 0 or if the player has not yet defeated the Champion, then the grand prize index P = X \bmod 5, 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), P = X \bmod 10, giving a result between 0 and 9. In the cases where P is 5 or greater, the game also uses the sum S = C_1 + C_2 + C_3 + C_4 + C_5 + C_6 + C_7 + C_8 to determine the grand prize:
P	Grand Prize if S < 256	Grand Prize if S < 256	Grand Prize if S ≥ 256	Grand Prize if S ≥ 256
0	 	Rare Candy 	Rare Candy 	Rare Candy
1	 	Luxury Ball 	Luxury Ball 	Luxury Ball
2	 	Max Revive 	Max Revive 	Max Revive
3	 	Max Ether 	Max Ether 	Max Ether
4	 	Elixir 	Elixir 	Elixir
5	 	 	 	
6	 	 	 	
7	 	 	 	
8	 	 	 	
9	 	 	 	
Note that the calculation of P and S 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:
Mode 	Cards		 	After Hall of Fame	After Hall of Fame
Normal 	17-24		Max Ether 	 	
Variety	41-48		Elixir 	Elixir 	Elixir
Unique 	49-56		Max Ether 	 	
Expert 	57-64		Rare Candy	 	
==Layout==
===International versions===
Mode 	Entrance	1F 	2F 	3F 	4F 	Roof
Normal 	 	 	 	 	 	
Variety	 	 	 	 	 	
Unique 	 	 	 	 	 	
Expert 	 	 	 	 	 	
  	  	 	 	 	 	 
===Japanese versions===
====Default====
Version	Entrance	1F 	2F 	Roof 	 	
 	 	 	 	 	 	
  	  	 	 	 	 	 
====Pokémon Battle e Emerald====
 	 	 	 	 	
 	 	 	 	 	
 	 	 	 	 	
 	 	 	 	 	
 	 	 	 	 	
 	 	 	 	 	
 	 	 	 	 	
 	 	 	 	 	
 	 	 	 	 	
 	 	 	 	 	
 	 	 	 	 	
 	 	 	 	 	
 	 	 	 	 	
 	 	 	 	 	
 	 	 	 	 	
 	 	 	 	 	
 	 	 	 	 	
 	 	 	 	 	
 	 	 	 	 	
 	 	 	 	 	
 	 	 	 	 	
 	 	 	 	 	
 	 	 	 	 	 
==Trivia==
* Although the player does not gain prize money or experience like in other battle facilities, a Pokémon can still gain and lose friendship in Trainer Hill, such as through walking around or having the Pokémon faint.
* Moves that could obtain the opponent's item such as will fail, and will not steal their item.
* Several moves that can be ed here otherwise require trading with other games to be usable by the player's Pokémon: Veronica's knows , Terrance's Pokémon all know , and Luc's Pokémon all know their respective signature moves ('s , 's , and 's ).
==In other languages==
==References==
==Related articles==
Category:Towers
Category:Hoenn locations
Category:Emerald locations
Category:Battle facilities
Category:Battle e
de:Trainerberg
es:Colina Desafío
fr:Mont Dresseurs
it:Monte Allenatori
ja:トレーナーヒル
zh:训练家之丘