Skip to content

Custom Registries

necro50n3 edited this page May 12, 2026 · 3 revisions

Custom Registries

Raid Dens offers custom registries for other developers to add their own implementation and logic for certain features. You can register new entries by accessing the registries in CustomRaidRegistries.

Custom Raid AI Registry

Register a BattleAI supplier under a string key, which can then be set in the tier config or custom raid bosses.

Default Entries:

random: RandomBattleAI
strong: StrongBattleAI
rct: RCTBattleAI (Requires RCT API)

Custom Reward Distribution

Register a function that takes in the list of eligible players and the raid instance, and determines which players are able to catch the raid boss, which can then be set in the common config.

Default Entries:

random: Randomly sorts players
damage: Sorts players based on damage dealt
survivor: Sorts players by who is still standing, and then random

Custom Script Events

Register a Map decoder to transform a JSON object into a Showdown Event.

For the default options, refer to Scripting.

Custom Raid Features/Gimmicks

Register a RaidFeature interface to modify the raid boss and reward depending on the specific feature/gimmick present.

You can apply different properties to the boss's aspects, the raid boss Pokemon itself and/or the the reward Pokemon the player receives.

Default Entries:

default: No changes
tera: Applies Mega Showdown's tera effect
dynamax: Applies Mega Showdown's dynamax effect and gives the reward Pokemon the max dynamax level (and gmax factor if the raid boss is also gmax)
mega: Automatically applies the mega form aspect if not defined
shadow: Applies Shadowed Heart's shadow effect and converts the reward Pokemon into a Shadow Pokemon

Clone this wiki locally