Join our discord
In partnership with NodeCraft Logo NodeCraft


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

Better Spawner/Spawn Info/NPC/Trainer

From Pixelmon Wiki

SpawnInfoTrainer are SpawnInfo specifically for spawning NPC trainers.

These are the properties available when a SpawnInfo has "typeID": "trainer":

Property label Type of value Description
"trainerType" The type of trainer, such as "Youngster" or "Blacksmith". The trainer archetype to make this. Leaving it blank will default to Youngster.
"name" Text. The actual name of the NPC trainer, such as Paul or Maria.
"possiblePokemon" A list of Pokémon Spec in text or JSON form. All of the possible Pokémon that this trainer may have. If left blank, will use "guaranteedPokemon". If both are blank, will use defaults.
"guaranteedPokemon" A list of Pokémon Spec in text or JSON form. All of the Pokémon that this trainer will definitely have. If left blank, will use "possiblePokemon". If both are blank, will use defaults. If the "minPartySize" is larger than this list, it will fill in the extra with entries from the "possiblePokemon" if possible.
"minLevel" Integer between 1 and 100. The lowest level a member of the party can be. Defaults to 1, overwritten by a specific level in a Pokémon Spec.
"maxLevel" Integer between 1 and 100. The highest level a member of the party can be. Defaults to 100, overwritten by a specific level in a Pokémon Spec.
"minPartySize" Integer between 1 and 6. The lowest number of party members this trainer can have. Repeats of the same Pokémon will only occur when there is no other way to get up to the minimum party size.
"maxPartySize" Integer between 1 and 6. The highest number of party members this trainer can have.
"greeting" Text. The greeting the trainer gives when engaged in battle.
"winMessage" Text. The message the trainer gives when they win the battle.
"loseMessage" Text. The message the trainer gives when they lose the battle.
"winMoney" Positive integer. The base amount of money give to the player upon beating the trainer. This is multiplied by the average level of the party and then by any Happy Day, Pay Day, or Amulet Coin multipliers to get the final amount.
"bossMode" One of any of the following: "NotBoss", "Uncommon", "Rare", "Legendary", "Ultimate". The boss level of the trainer.

Example:

{
    "typeID": "trainer",
    "stringLocationTypes": [
        "Land"
    ],
    "condition": {
        "stringBiomes": [
            "forests",
            "jungles",
            "flowery"
        ]
    },
    "rarityMultipliers": [
        {
            "multiplier": 0.2,
            "anticondition": {
                "times": [
                    "DAWN",
                    "DUSK"
                ]
            }
        }
    ],
    "trainerType": "BugCatcher",
    "name": "Harold",
    "guaranteedPokemon": [
        "Wurmple",
        "Caterpie"
    ],
    "minLevel": 5,
    "maxLevel": 10,
    "minPartySize": 5,
    "greeting": "I have heaps of bugs, fight me.",
    "winMessage": "I can't believe you lost to me",
    "loseMessage": "Well that's no surprise",
    "winMoney": 20,
    "rarity": 80
}

© 2014 - 2020 Pixelmon Mod