NPC Trainers

From Pixelmon Generations Wiki
Jump to navigation Jump to search

The NPC Trainer is a type of NPC that can be engaged in battle by hitting it with a Pokémon (when thrown out of its Ball - R key).

The Trainers that spawn in the wild are marked by a Level above their heads, that shows the average level of their Pokémon team.
This NPC awards PokéDollars upon defeat, the amount of money awarded depends on the factors explained here.

Spawn Locations

Types

Main

Type Spawn Description
Standard All - Oceans excluded
Towns
Gyms
Shows "Lv. <Level>" above its head.
The level shown represents the average level of its Pokémon team.
Boss Pokéstops
(Can only spawn as Team Rocket Grunt NPC)
Shows "Boss: <rarity>" above its head.
If engaged in battle, automatically adjusts its level to be 5/10/20 or 40 levels above the level of the strongest member of your Team.
(The rarity selects the number of levels above)
Equal Gyms Shows "Boss: Equal" above its head.
If engaged in battle, automatically adjusts its level to match the level of the strongest member of your Team.

Sub

Type Spawn Description
Gym Leader Most guarded point of every Gym Can be either a Standard or Equal NPC Trainer, depending on the Gym.
Can only be defeated one time per player (by default). Awards the player with a Badge and some useful items upon defeat.
Gym Member Gyms The first 4 Gyms spawned in every world will have Standard NPC Trainers, while from the 5th Gym onwards, all the NPC Trainers will be set to Equal level.
Team Rocket Grunt NPC Claim a Poké Stop Can only be a Rare-tier Boss (10 levels above) NPC Trainer.
Awards the player with an handful of loot upon defeat.

Interactions

Main article: Battle

An NPC Trainer can only be interacted by hitting it with a Pokémon.

To do so, you have to aim for the NPC's hitbox and hit it with a thrown Poké Ball (R key).
Once hit, a battle music will start and you will be automatically engaged in a battle!

In battle, you will not be able to use any of your Balls as you cannot catch another Trainer's Pokémon, but you will be able to run away at any time.

Battle Rules

Main article: Battle Rules

Encounter Mode

Mode Description
Once The Trainer disappears upon defeat.
Once per Player The Trainer does not disappear, but can only be battled once per Player.
Once per MC Day The Trainer does not disappear, but can only be battled once per Minecraft day.
Once per Day The Trainer does not disappear, but can only be battled once per real day.
Unlimited The Trainer does not disappear and can be battled unlimited times by every player.

AI

Battle

ID AI Description
Default Choose the battle AI selected in pixelmon.hocon config. (Tactical AI by default)
1 Random Choose moves randomly.
2 Aggressive Choose the most damaging move possible (with type match-ups), ignoring Status moves.
3 Tactical Use both Offensive and Status moves.
4 Advanced Use all moves intelligently and switch out when advantageous.

Movement

AI Description
Stand Still The NPC stands still, but can only be engaged if hit by the player.
Still and Engage The NPC stands still and engages the player that walks in a 3 blocks radius around it.
Wander The NPC wanders around the world freely, but can only be engaged if hit by the player.
Wander and Engage The NPC wanders around the world freely and engages the player that walks in a 3 blocks radius around it.

PokéDollar Reward

The PokéDollar reward given out by a naturally spawning NPC Trainer upon defeat depends on:

  • The base amount of PokéDollars setted in files (from 10 to 200 depending on the type of NPC).
  • The average level of Pokémon in the NPC Trainer's party (rounded down).

The two values are multiplied with each other to produce the final PokéDollar award amount.

If an NPC Trainer is edited with an NPC Editor, its PokéDollar reward will become fixed and no longer depend on the levels of Pokémon.

If a player's Pokémon is holding an Amulet Coin or a Luck Incense and participates in the battle, the PokéDollar reward will be doubled.
Same happens if a Pokémon from the player's Party uses Happy Hour.
These sources can stack with each other, making it possible to quadruplicate (x4) the original amount of awarded money.

Customization

Customization Information
Grid64 Npc Editor.png NPC Trainers can be spawned and edited with an NPC Editor, a Creative-only Item.
  • Using (right-click) a Trainer Editor on a summoned Trainer opens the 2nd Layer - NPC Trainers base edit interface:
- The Delete Trainer button lets you delete the NPC Trainer.
- The Name field lets you select the name that will be displayed when interacting with the NPC.
- The Model menu lets you select the Trainer's skin category.
- The Texture menu lets you select the Trainer's skin from the selected category.
- The Battle Rules button lets you open the Battle Rules selection menu. (Refer to: Battle Rules)
- The Boss Type menu lets you select the Trainer's type between the 3 Main categories.
- The Movement AI menu lets you select the Trainer's behavior.
- The Battle AI menu lets you select the Trainer's type of Battle choices.
- The Encounter Mode menu lets you select how many times the Trainer can be encountered by a player.
- The Party Pokémon list lets you check what Pokémon does the Trainer have in its Team. These infos can be edited by clicking on the Edit button.
- The More button lets you open the 3rd Layer of editing, editing the Trainer's advanced infos.
- The Edit button lets you open the 4th Layer of editing, editing the Trainer's Team.
- The Ok button closes the interface (alternative to Esc key).
Additional Information
3rd Layer - NPC Trainers advanced edit interface:
- The Greeting field lets you select a custom sentence the Trainer will say when engaged in battle.
- The If NPC Wins field lets you select a custom sentence the Trainer will say in case the player loses the Battle.
- The If NPC Loses field lets you select a custom sentence the Trainer will say in case the player wins the Battle.
- The Winning Drops list lets you check and remove (left-click) the items the NPC will drop upon defeat.
- The Add Drops field lets you select (by its name or item ID) an item to add to the Winning Drops list (click on the Add Item button to update the list).
- The Add Item button lets you add the item written in the field above to the Winning Drops list.
- The Win Money field lets you select the exact amount of PokéDollars that will be awarded to the player upon defeating the NPC.
- The Ok button closes the interface, returning to 2nd Layer (alternative to Esc key).
Additional Information
4th Layer - NPC Trainers Team edit interface:
Refer to: Pokémon Editor

Skins

NPC Trainers share the skin pool with Chatting NPCs, Move Tutors and Traders.
Refer to NPC Trainers/Skins for a full list of all the available Skins.

Config settings

pixelmon.hocon

  • "allowTrainerExperience": Sets whether or not battle with NPC Trainers give Pokémon experience. (default= true)
  • "battleAITrainer": Sets the type of AI random NPC Trainers will have. Refer to Artificial Intellingence. (default= 3)
  • "useExternalJSONFilesNPCs": If set on "true", creates a "/npcs" external folder in the path: <minecraft directory>/pixelmon/, allowing the user to modify NPC informations.