Fandom

Pokémon Essentials Wiki

Pokémon Gym

227pages on
this wiki
Add New Page
Talk0 Share
Gym

Pewter City Gym.

This article describes how to set up Pokémon Gyms. It also describes Gym Badges, and touches upon the Elite Four.

Pokémon Gyms

There is nothing inherently special about a Pokémon Gym. It is filled with trainers, one of whom is a Gym Leader who rewards the player a Gym Badge and a TM once they are defeated.

The trainers, including the Gym Leader, are set up just like any other trainer in the game. The one difference is that, after the Gym Leader is defeated, no other trainers in the Gym should challenge the player to a battle, even if they hadn't been defeated beforehand. To arrange this, do the following:

  1. When the Gym Leader is defeated, turn a Global Switch ON. This switch shows that the player has defeated that Gym Leader.
  2. Include a third page in each trainer's event, which depends on this Global Switch being ON, and which contains text to the effect of: "You've defeated the Gym Leader!"

You can also use this Global Switch in other events, e.g. have the Gym Guy at the entrance say something different, change the contents of a sign, make an obstacle disappear, etc.

Badges

When the player defeats a Gym Leader, they will reward the player with a Gym Badge. Badges are stored in the array $Trainer.badges, where each entry is either TRUE or FALSE depending on whether that badge is owned or not. Note that it starts at zero, so $Trainer.badges[0] is the first badge, $Trainer.badges[1] is the second badge and so on.

To give the player a badge, simply set the appropriate entry in this array to TRUE, e.g.

$Trainer.badges[2]=true

You can have as many badges as you like. The script $Trainer.numbadges will return the number of badges the player has.

The badges are displayed in the Trainer card, which by default shows only the first 8 badges of whichever region the player is currently in.

What badges do

Gym Badges have a few effects in Pokémon Essentials:

Effect Description
Obedience Traded Pokémon may not follow the player's orders in battle if their level is too high. The obedience level depends on the number of Gym Badges the player has:
  • Pokémon at level 10 or lower always obey.
  • 1 badge - All Pokémon at level 20 or lower always obey.
  • 2 badges - All Pokémon at level 30 or lower always obey.
  • 3 badges - All Pokémon at level 40 or lower always obey.
  • 4 badges - All Pokémon at level 50 or lower always obey.
  • 5 badges - All Pokémon at level 60 or lower always obey.
  • 6 badges - All Pokémon at level 70 or lower always obey.
  • 7 badges - All Pokémon at level 80 or lower always obey.
  • 8 or more badges - All Pokémon at level 100 or lower always obey.

This effect is found in the script section PokeBattle_Battler, in the def pbObedienceCheck?.

Power up stats Having at least certain numbers of badges can power up certain Pokémon stats only during battle. This power up is done before any other modifications to the stats (except for Speed, which is done after all other modifications). By default, this works as follows:
  • At least 1 badge - Attack is multiplied by 1.1.
  • At least 3 badges - Speed is multiplied by 1.1.
  • At least 5 badges - Defense is multiplied by 1.1.
  • At least 7 badges - Special Attack is multiplied by 1.1.
  • At least 7 badges - Special Defense is multiplied by 1.1.

The minimum number of badges needed to grant a boost to each stat are defined in the script section Settings. If you don't want badges to boost stats, simply set the numbers to an unattainably high value (e.g. "at least 42 badges").

Money lost when losing a battle If the player loses a battle, they will lose some of their money. The amount lost depends on the number of badges the player has:
  • 0 badges - 8 times the highest Pokémon level in the player's party.
  • 1 badge - 16 times the highest Pokémon level in the player's party.
  • 2 badges - 24 times the highest Pokémon level in the player's party.
  • 3 badges - 32 times the highest Pokémon level in the player's party.
  • 4 badges - 48 times the highest Pokémon level in the player's party.
  • 5 badges - 64 times the highest Pokémon level in the player's party.
  • 6 badges - 80 times the highest Pokémon level in the player's party.
  • 7 badges - 100 times the highest Pokémon level in the player's party.
  • 8 or more badges - 120 times the highest Pokémon level in the player's party.

This effect is found in the script section PokeBattle_Battle, in the def pbEndOfBattle.

Allows HMs to be used out of battle HMs can either require a certain number of badges to be owned before they can be used outside of battle (even 0), or they can require particular badges to be owned. These settings are defined in the script section Settings.

Badges have a few other effects in the main games, but those effects haven't been included in Pokémon Essentials.

Tips

  • Make the Gyms creative. Most Gyms in the main games have puzzles to solve, and while not all of them can be replicated in RPG Maker XP, you can still come up with a few different kinds of puzzle (and many variants on each one).
  • Gym Leaders will have well trained Pokémon, so why not give all their Pokémon high IVs and/or good natures or abilities?
  • You will likely want to change the order in which HMs are unlocked for use outside of battle. Edit the relevant variables in the script section Settings to do so.
    • You can have all HM moves usable outside of battle immediately (like in Gen 5), by just making them depend on the player having at least 0 badges.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.