Join our discord
In partnership with NodeCraft Logo NodeCraft


You are not logged in! Create an account or login to contribute! Log in here!

NPC Trainer

From Pixelmon Wiki
Revision as of 22:03, 7 October 2016 by Geodude671 (talk | contribs)


NPC Trainers are Trainers that spawn randomly throughout the world or inside towns. They can be challenged to Pokémon battles by throwing a Pokémon at them. There are several different types of NPC Trainers, each having different Pokémon at different levels. They award amounts of PokéDollars upon defeat that depend on the Trainers' types and the levels of their Pokémon.

Types

Customization

NPC Trainers can be created and customized using an NPC editor. They can be edited in the following ways:

  • Trainer name
  • Greeting/win/lose message
  • Party Pokémon (Pokémon, levels, moves, Shininess, gender, nickname, growth, Abilities, Natures, held items, EVs, and IVs. Party can also be reset or randomized)
  • Single/Double Battle
  • Battle AI mode
    • Default: The Trainer will use the battle AI setting for naturally spawning Trainer's as defined in the "battleAITrainer" config setting.
    • Random: The Trainer will use moves randomly.
    • Aggressive: The Trainer will use the move that deals the most damage to the opponent, avoiding status moves.
    • Tactical: The Trainer will know how to use status moves alongside offensive moves.
    • Advanced: Along with knowing how to use moves like tactical AI, the Trainer will switch out Pokémon if advantageous.
  • Movement AI mode
    • Stand still: The Trainer will not move from its current position. It can be challenged by throwing a Pokémon at it.
    • Still and engage: The Trainer will not move from its current position. It will challenge players that cross its line of sight.
    • Wander: The Trainer will wander around randomly. It can be challenged by throwing a Pokémon at it.
    • Wander and engage: The Trainer will wander around randomly. It will challenge players that cross its line of sight.
  • Boss mode (Level scaling)
    • Not boss: The levels of the Trainer's Pokémon will remain constant and can be specified when editing the Trainer's Pokémon.
    • Equal: The levels of the Trainer's Pokémon will be set to the level of the challenging player's highest leveled Pokémon.
    • Uncommon (Green boss): The levels of the Trainer's Pokémon will be set to 5 levels above the highest leveled Pokémon in the challenging player's party.
    • Rare (Blue boss): The levels of the Trainer's Pokémon will be set to 10 levels above the highest leveled Pokémon in the challenging player's party.
    • Legendary (Red boss): The levels of the Trainer's Pokémon will be set to 20 levels above the highest leveled Pokémon in the challenging player's party.
    • Ultimate (Yellow boss): The levels of the Trainer's Pokémon will be set to 40 levels above the highest leveled Pokémon in the challenging player's party.
  • Encounter mode
    • Once: The Trainer will disappear after battling a player.
    • Once per player: Each player can only battle the Trainer once.
    • Once per Minecraft day: Each player can only battle the trainer once every Minecraft day.
    • Once per day: Each player can only battle the Trainer once every real day.
    • Unlimited: The Trainer can be challenged an unlimited number of times by each player.
  • Drops (by name or by item ID)
  • PokéDollar winnings (multiplied by the level of the Trainer's highest leveled Pokémon)
  • Trainer type/skin

Config settings

  • "allowTrainerExperience": Whether or not NPC Trainers' Pokémon award experience upon defeat.
  • "npcRarity": Sets the frequency of NPC Trainers spawning; 0 means no Trainers spawn naturally.
  • "useExternalJSONFiles": Creates a file at "pixelmon/npcs/npcs.json" in the root Minecraft folder, allowing individual NPC Trainer spawn rates to be changed in each Trainer's respective "rarity" field.

© 2012 - 2025 Pixelmon Mod