Raid: Raid Dens
Section 7.C.3
Raid Dens are an alternative way of initiating raid battles. Instead of instantly entering a battle like you would with a normal battle event, you can set up a Raid Den event that will generate new Pokemon for you to encounter on a regular basis. This means you can revisit a den to capture new Pokemon, and earn new rewards. You can set up dens of various raid types, such as Max Raid Dens and Tera Raid Dens.
It's also possible to set up special dens that feature exclusive Pokemon that are distributed to players over the internet, like an online event. This can allow you to release special challenge raids to your players as a limited timed event.
Below, I'll explain how to set up your own Raid Dens and how they operate.
Setting Up a Raid Den
To set up a Raid Den event, you need to create a new event with the following criteria:
The table below will provide a basic example of how each type of Raid Den event should look like both in and out of gameplay.
This is an example of what a Basic Raid Den event looks like.
Note that Basic Raid Dens take up 3x3 tiles worth of space during actual gameplay, so be mindful of where you place the event. Any event given the name BasicRaidDen will automatically load the following graphic to be displayed during gameplay, so no graphic should be manually set for the event.
The Raid Den graphic will automatically update and display differently depending on the current state of the Raid Den. Here are the different states a Basic Raid Den may be in:
Purple Eyes
If the eye color of the Basic Raid Den are purple, that means this den contains an unknown Pokemon to battle. This color will be displayed when the den has been reset with a new Pokemon to encounter.
Red Eyes
If the eye color of the Basic Raid Den are red, that means this den contains a known Pokemon that has already been saved to this den. While the eyes of this den remain red, you will always encounter the same exact Pokemon each time you enter this den until it is forced to reset.
Blue Eyes
If the eye color of the Basic Raid Den are blue, that means this den contains a known Legendary or Mythical species that has already been saved to this den. While the eyes of this den remain blue, you will always encounter the same exact Pokemon each time you enter this den until it is forced to reset.
Colorless Eyes
If the eyes of the Basic Raid Den are colorless, that means this den is empty and contains no Pokemon. You will be unable to enter this den until it has been reset through some means.
This is an example of what an Ultra Raid Den event looks like.
Note that Ultra Raid Dens take up 3x3 tiles worth of space during actual gameplay, so be mindful of where you place the event. Any event given the name UltraRaidDen will automatically load the following graphic to be displayed during gameplay, so no graphic should be manually set for the event.
The Raid Den graphic will automatically update and display differently depending on the current state of the Raid Den. Here are the different states an Ultra Raid Den may be in:
Dark Blue Portal
If the portal color of the Ultra Raid Den is a dark blue, that means this den contains an unknown Pokemon to battle. This color will be displayed when the den has been reset with a new Pokemon to encounter.
Red Portal
If the portal color of the Ultra Raid Den is red, that means this den contains a known Pokemon that has already been saved to this den. While the portal of this den remains red, you will always encounter the same exact Pokemon each time you enter this den until it is forced to reset.
Light Blue Portal
If the portal color of the Ultra Raid Den is a light blue, that means this den contains a known Ultra Beast or Ultra Burst species that has already been saved to this den. While the portal of this den remains blue, you will always encounter the same exact Pokemon each time you enter this den until it is forced to reset.
Colorless Portal
If the portal of the Ultra Raid Den is colorless, that means this den is empty and contains no Pokemon. You will be unable to enter this den until it has been reset through some means.
This is an example of what a Max Raid Den event looks like.
Note that Max Raid Dens take up 2x2 tiles worth of space during actual gameplay, so be mindful of where you place the event. Any event given the name MaxRaidDen will automatically load the following graphic to be displayed during gameplay, so no graphic should be manually set for the event.
The Raid Den graphic will automatically update and display differently depending on the current state of the Raid Den. Here are the different states a Max Raid Den may be in:
Purple Beam
If the beam color of the Max Raid Den is purple, that means this den contains an unknown Pokemon to battle. This color will be displayed when the den has been reset with a new Pokemon to encounter.
Red Beam
If the beam color of the Max Raid Den is red, that means this den contains a known Pokemon that has already been saved to this den. While the beam of this den remains red, you will always encounter the same exact Pokemon each time you enter this den until it is forced to reset.
Blue Beam
If the beam color of the Max Raid Den is blue, that means this den contains a Calyrex that has already been saved to this den. While the beam of this den remains blue, you will always encounter the same exact Calyrex each time you enter this den until it is forced to reset.
No Beam
If there is no beam coming out of the Max Raid Den, that means this den is empty and contains no Pokemon. You will be unable to enter this den until it has been reset through some means.
This is an example of what a Tera Raid Den event looks like.
Note that Tera Raid Dens take up 2x2 tiles worth of space during actual gameplay, so be mindful of where you place the event. Any event given the name TeraRaidDen will automatically load the following graphic to be displayed during gameplay, so no graphic should be manually set for the event.
The Raid Den graphic will automatically update and display differently depending on the current state of the Raid Den. Here are the different states a Tera Raid Den may be in:
Light Blue Crystals (Sparkling)
If the crystals of the Tera Raid Den are light blue and sparkling, that means this den contains an unknown Pokemon to battle. Sparkles will be displayed when the den has been reset with a new Pokemon to encounter.
Light Blue Crystals (Not Sparkling)
If the crystal color of the Tera Raid Den is light blue with no sparkles, that means this den contains a known Pokemon that has already been saved to this den. While the crystals of this den remain in this state, you will always encounter the same exact Pokemon each time you enter this den until it is forced to reset.
Dark Blue Crystals
If the crystal color of the Tera Raid Den is dark blue, that means this den contains a known Paradox Pokemon or a Pokemon in a special Terastal form that has already been saved to this den. While the crystals of this den remain in this state, you will always encounter the same exact Pokemon each time you enter this den until it is forced to reset.
Colorless Crystals
If the crystals of the Tera Raid Den are colorless, that means this den is empty and contains no Pokemon. You will be unable to enter this den until it has been reset through some means.
As the developer, you have the ability to distribute special Raid Den events to your players over the internet. This is done by setting up all of the data for your raid distribution in a Pastebin link. If you're familiar with how to set up Mystery Gifts to your players, it's a somewhat similar idea to that.
Raid Den Availability
Only one Raid Den distribution may be active at a time.
When a Raid Den distribution is live, any Raid Den that the player accesses of a particular type will have a 1 in 3 chance of generating the distributed Raid Den. For example, if you distribute a Tera Raid Den, then all Tera Raid Dens the player accesses may generate the distributed Tera Raid.
If you don't want a particular Raid Den to ever generate a distributed den, you may enter
:online ⇒ falsein the rules hash for that Raid Den event. This will flag this den so that it isn't able to read data sent over the internet.If you want a particular Raid Den to always generate a distributed den if one is available, you may enter
:online ⇒ truein the rules hash for that Raid Den event. This will flag this den so that it always prioritizes data sent over the internet, if any is available.If the Raid Den being distributed has a fixed
RaidRankset, only players that have an appropriate number of badges for that raid rank will be able to encounter this distribution. For example, if you distribute a 5-star Raid Den, only players with 8+ badges will be able to encounter this distribution.
Pastebin Setup
Setting up an online raid distribution is easy. All you have to do is follow the steps below before releasing your game:
Go to www.pastebin.com, and click the green button at the top of the page that says + paste to start a new paste.
In the text box, enter all of the information you want for your online distribution. This includes all of the attributes the raid Pokemon should have, as well as all of the settings for this raid battle.
Once you're done with your paste, click "Create New Paste" to save it.
Once saved, click the "raw" button in the row of buttons above your paste, and it will bring you to a blank webpage that displays nothing but the contents of your paste. Copy the URL of this webpage.
Go into the Settings file of this plugin. You will see a constant named
LIVE_RAID_EVENT_URL. Delete the existing string that is set here by default, and paste your copied URL here as a string instead.Done! From now on, anything that this URL links to will be the content that is distributed to your players. If you ever want to end distributing any Raid Den data over the internet, you just have to delete all of the content in your paste and replace it with a single character. This is because Pastebin doesn't allow you to save an empty paste, so just replace it with any character as a placeholder.
Pastebin Content
The information entered for your Raid Den distribution is entered similarly to the way you would enter information in most PBS files. This means that you don't need to enter quotation marks for strings, brackets for arrays, or colons for symbols.
Here is an example of a basic Raid Den distribution:
Species = CHARIZARD
AbilityIndex = 2
Moves = DRAGONPULSE,FLAMETHROWER,SOLARBEAM,AIRSLASH
Shiny = true
RaidRank = 5
RaidStyle = Basic
RaidLoot = CHARCOAL,1This will distribute a 5-star Basic Raid Den vs. Charizard. This Charizard will be shiny and have its Hidden Ability; as well as having the moves Dragon Pulse, Flamethrower, Solar Beam, and Air Slash. In addition, one piece of Charcoal will be added to this Raid Den's loot table.
In the tables below, I'll list every possible criteria you may enter when setting up an online Raid Den distribution. I'll break this down into two groups of criteria: Pokemon attributes, and Raid attributes.
Pokemon Attributes
These are settings that alter the attributes of the actual Pokemon that will be found within the distributed Raid Den. Note that Species is the only mandatory data required. All other data is optional.
Species
Species ID
Sets the species for this raid Pokemon. This setting is mandatory.
Form
Integer
Sets the form number of this raid Pokemon.
Gender
String
Sets the gender of this raid Pokemon. Enter either 0, M, or Male for male, or 1, F, or Female for female.
AbilityIndex
Integer
Sets the ability index of this raid Pokemon.
Moves
Array
Sets the moves of this raid Pokemon by entering an array of Move ID's.
Item
Item ID
Sets the held item of this raid Pokemon.
Nature
Nature ID
Sets the nature of this raid Pokemon.
IV
Array
Sets the IV's of this raid Pokemon. Set to an array to set the IV values of each stat, or a single number to set the IV's of all stats to that number.
EV
Array
Sets the EV's of this raid Pokemon. Set to an array to set the EV values of each stat, or a single number to set the EV's of all stats to that number.
Shiny
Boolean
Sets whether this raid Pokemon is shiny.
SuperShiny
Boolean
Sets whether this raid Pokemon is super shiny.
HPLevel
Integer
Sets the wild boss HP scaling for this raid Pokemon. Only set this if you want to override the natural boss HP scaling that this den would normally use. Refer to the "Wild Boss Attributes" section for details.
Immunities
Array
Sets various wild boss immunities. Note that this will not replace any existing boss immunities that raid Pokemon naturally have; this can only be used to add additional immunities. Refer to the "Wild Boss Attributes" section for details.
Memento
Ribbon ID
This can only be set if the Improved Mementos plugin is installed. Sets a memento on the raid Pokemon. If the memento grants the Pokemon a title, this title will be displayed above its HP bar in battle.
Scale
Integer (0-255)
This can only be set if the Improved Mementos plugin is installed. Sets the raid Pokemon's size value.
GmaxFactor
Boolean
This can only be set if the Dynamax plugin is installed. Sets whether or not the raid Pokemon has G-Max Factor.
TeraType
Type ID
This can only be set if the Terastallization plugin is installed. Sets a specific Tera type for the raid Pokemon.
Raid Attributes
These are settings that alter the attributes of the distributed Raid Den itself. Note that all of this data is entirely optional.
RaidStyle
Raid Type ID
Sets the specific type of Raid Den to distribute. If omitted, this is always assumed to be a Basic Raid Den by default.
RaidRank
Integer (1-7)
Sets the difficulty rank of this Raid Den. If omitted, the raid rank will naturally be determined by the Species entered.
RaidSize
Integer (1-3)
Sets the number of battlers the player can send out in this raid battle. This is set to the value of RAID_BASE_PARTY_SIZE in the plugin Settings by default. This setting is ignored if the RaidPartner setting is used.
RaidPartner
Array
Sets a partner trainer that should accompany the player in this raid battle. This is set as an array containing a Trainer Type ID, followed by the trainer's name and version number. Optionally, you may also include true if you wish for this trainer to appear in battle exactly as defined in the trainers.txt PBS file (instead of scaling to fit the raid).
RaidTurns
Integer
Sets the turn counter used in this raid battle. If omitted, the natural turn counter that this raid battle would normally have is set. Set to -1 to disable the turn counter entirely.
RaidKOs
Integer
Sets the KO counter used in this raid battle. If omitted, the natural KO counter that this raid battle would normally have is set. Set to -1 to disable the KO counter entirely.
RaidShield
Integer
Sets the amount of HP the raid Pokemon's raid shield will have. If omitted, the natural amount of shield HP the raid Pokemon would normally have is set. Set to -1 to disable the raid shield entirely.
RaidActions
Array
Overrides the natural extra raid actions the raid Pokemon may utilize during this raid battle. Set as an array containing any of the following to set the desired raid actions:
:reset_drops
:reset_boosts
:drain_cheer
RaidSupportMoves
Array
Overrides the natural extra support moves the raid Pokemon may select from during this raid battle. Set as an array of Move ID's to set the desired moves.
RaidSpreadMoves
Array
Overrides the natural extra spread moves the raid Pokemon may select from during this raid battle. Set as an array of Move ID's to set the desired moves.
RaidLoot
Array
Includes additional bonus rewards to appear in this Raid Den's loot table. This is entered as an array containing an Item ID followed by the quantity of that item to reward. You may add as many pairs of items and quantities as you'd like.
Raid Den Entry Screen
When interacting with a Raid Den, you will be asked to save your game prior to the species within being revealed. If you accept, the species will be decided and saved to that den event. Once saved, this den will not generate a new Pokemon until the current one has been defeated or captured, or if the Raid Den has been forced to reset.

Once the Raid Den species has been decided, the raid entry screen will be displayed. This screen will display a variety of information such as the silhouette of the raid Pokemon, the conditions of this raid battle, and the overall difficulty of the raid indicated by star count.
Raid Den Rewards Screen
Upon exiting a Raid Den, you will be immediately presented with the raid rewards screen. Depending on the outcome of the raid battle, this window will display various information. If you successfully cleared the raid, you will be granted several rewards that are randomly generated based on the specific raid's reward table. If you captured the raid Pokemon, extra information about the captured Pokemon will be displayed, too.
If you failed to clear the raid however, no rewards will be granted.

Below, I'll explain all of the rewards that may be possible to obtain through clearing Raid Dens.
Resetting a Raid Den
Once the Pokemon within a Raid Den has been captured or defeated, that den is considered "clear," and will now appear empty. If so, you will no longer be able to interact with that den to initiate a new raid battle until the den has been reset.
Raid Dens may be reset through various means, which I'll outline below.
Last updated
Was this helpful?














