This article describes the Trainer card, a simple screen that displays various information about the player, such as their ID number and the Gym badges they have.
See also Edit
- For how to give the player Gym badges, and a list of effects that they have.
The Trainer card Edit
The Trainer card displays a number of pieces of information about the player and their progress through the game.
When the Trainer card is displayed, an audio clip will be played (if there is one saved to
$PokemonGlobal.trainerRecording). This audio clip is a recording made by the player, and is made by using the script
pbRecordTrainer. The clip can be up to 10 seconds long.
There is only one control: press the "Back" button to close the screen.
The scripts that display the Trainer card are located in the script section PokemonTrainerCard.
The background image is located in the folder "Graphics/Pictures", and is one of two possible images:
- trainercardbg.png - The default background (also used for male players).
- trainercardbgf.png - If this exists, then female players will use this background instead.
The background image tiles itself to fill the screen.
The card image is located in the folder "Graphics/Pictures", and is one of two possible images:
- trainercard.png - The default image (also used for male players).
- trainercardf.png - If this exists, then female players will use this card image instead.
The card image should be the same size as the screen (default: 512x384 pixels).
The trainer's image is simply the front sprite of the player's trainer type, which needs to exist as part of creating the player's trainer type in the first place.
Badge graphics Edit
The badge images are all contained in one graphic called "badges.png", in the folder "Graphics/Pictures" (see the image on the right). Each badge should be 32x32 pixels in size (although you can edit the scripts to accept different dimensions).
The badges that are displayed on the Trainer card are the ones related to the region the player is currently in. Each region requires its own row of badges in "badges.png", i.e. the top row is the region 0 badges, the second row is for region 1 badges, etc.
- The Trainer card is an easy screen to modify: the code for the graphics and the controls are both very simple, and serve as a good starting point for learning how to script in Essentials.
- Make the Trainer card flip over when the player press a button, to show the back of it. The back can display various other pieces of information, such as the Hall of Fame debut time (i.e. how long it took the player to first defeat the Elite Four), number of battles participated in, number of times the player defeated the Elite Four/Rival, etc.
- Change the Trainer card's graphics after certain points in the game, e.g. upon defeating the Elite Four, completing the Regional Pokédex.