Wishing Piece Raid RNG (CFW)

A guide for manipulating Max Raid battles in Sword/Shield, using PokeFinder by Admiral-Fish.
Introduction

Sword/Shield Max Raid RNG manipulation is used to control the internal details of Pokémon found in raid battles. It is possible to predict values such as IVs, Nature, Shiny Status, Size (Jumbo/Teensy Mark in SV), Gender and more. Note that it is only possible to manipulate encounters found inside Max Raid dens, it is NOT POSSIBLE to manipulate the details of Pokémon found in Dynamax Adventures.

Each raid is given a randomly assigned "den seed", this seed is used to determine which Pokémon will be inside a den. Every day that passes will increment the den seed by 1 in a predictable manner, making Raid RNG abuse entirely possible using a process known as "date skipping". Simply skip the required amount to reach your desired seed.

Important - From here it is assumed that you are using a Custom Firmware (CFW) Switch console running Atmosphère. You must also have progressed the game story far enough to have access to Max Raid battles.
Don't have CFW installed? Click here for the retail focused guide!
Required Software
Switch Software:
  1. Luxray by 3096
  2. sys-botbase by olliz0r
  3. ldn_mitm fork by Lusamine
Installation Instructions (Switch Software)
  1. Download Luxray and extract the contents of the download to the root of your Switch SD card.
  2. Download sys-botbase and extract the contents of the download to the root of your Switch SD card.
  3. Download ldn_mitm and extract the contents of the download to the root of your Switch SD card.
  4. Reboot the console into your chosen CFW environment (SysCFW recommended).
PC Software:
Installation Instructions (PC Software)
  1. Download and extract PokeFinder-win into a fresh, empty folder inside a known location on your computer.
  2. Refer to the PKHeX Plugins Wiki for installing PKHeX with the required plugins. Do not leave the setup page until you have LiveHeX working properly.
  3. When launching PKHeX/PokeFinder you may get asked to install the relevant dependencies if you do not already have them installed. Download the installer when prompted and go through the setup instructions until complete.

Important - If ldn_mitm is not available or there is no working release, you will have to connect to Y-Comm or enable LAN mode for Wi-Fi connectivity in LiveHeX. You can enable LAN mode by going to the settings in SWSH and pressing L + R + L-Stick (Booting LAN, LAN enabled). You will not have a 420000000010 folder in the atmosphere/contents directory since the outdated sys-module will crash Atmosphère.

Software Overview

Understand how to use the required software used for the RNG manipulation process.

Figure 1 - PokeFinder Overview

raid-setup-1
PokeFinder Overview

Upon luanching PokeFinder for the first time you will be presented with a small window with various different buttons. Navigate to the Gen 8 tab and select the Raid button to open a larger window dedicated to RNG manipulating Max Raid Pokémon. For the purposes of this guide this larger window will be referred to as the "main window", and here we can configure the program to search raids and calculate upcoming advances based on user-defined search criteria.

Main Window Feature Overview
  • Left Side - Enter search conditions, select a specific raid, and input seed and # of advances.
  • Center - Specify raid details, such as species, raid type (Normal/Rare), and difficulty (Star Count).
  • Right Side - Search filter details, filter for IVs, Nature, Shiny Status, Gender, and ability, filters can be combined.
  • Top - Profile management, enter your 5 digit IDs, game & trainer information from your save file here.
  • Bottom - Search result output, any result that matches your filters will be displayed here.
Profiles

It is important to a setup a basic PokeFinder profile. This means you need to at least select the game version you are playing so that PokeFinder can display the correct species details of Raid Dens. It is only important to select your game version, everything else is optional. Select your profile in the dropdown menu at the top of the main window after creation.

Technical Details:

Pokémon found in Max Raid battles will be shiny for all participants. For the game to do this it compares the PID to a set of "fake trainer" IDs, then rerolls the PID based on your TID/SID combination after capture so that the Pokémon maintains its shiny status after the battle. This means that entering the correct IDs into your PokeFinder profile is NOT required.

However, if you do correct IDs into your profile, the PID will be calculated based on your TID/SID combination. This is useful for trading communities that require proof that the Pokémon was obtained through legitimate means as the PID will be correct inside the search table.

Finding your 5 digit TID/SID
  1. Load your save file into PKHeX, then right click and view a self obtained Pokémon.
  2. Open the OT/Misc tab and hover over the TID field with your mouse.
  3. Your 5 digit TID/SID will be displayed, these are the values PokeFinder expects.

Figure 2 - PokeFinder Den Map

raid-setup-2
PokeFinder Den Map

In the smaller window that appears when launching PokeFinder there is a navigation bar at the top that displays various tools used in different games. Under Gen 8 Tools there is an option for Den Map, clicking this will open a subwindow that can be used to find the Den ID of your chosen raid den more easily.

Use resources like Serebii to find the rough in-game location of a Raid Den that contains your desired Pokémon, then use the Den Map feature of PokeFinder to find the Den ID that corrisponds with your chosen Raid Den.

Finding Den ID
  1. Use Serebii to find a Raid Den that contains your desired Pokémon. Take note of the Wild Area location and the map ID (e.g Dusty Bowl).
  2. Open the Den Map subwindow on PokeFinder, select the corrisponding Wild Area, then scroll to the correct map ID.
  3. Click each individual option in the dropdown menu until the map on the right has a red dot in the rough location of your chosen Raid Den.
  4. Take note of the Den ID, Location, and Map ID. Then head over to the main PokeFinder window to enter the relevant information.
    • Confirm that the correct profile has been selected at the top.
    • Enter the correct Wild Area inside the Location dropdown.
    • Enter the correct Den ID inside the Den dropdown.
    • Enter the correct Den rarity (Normal/Rare) inside the Rarity dropdown.
  5. Confirm that the species selection in PokeFinder matches Serebii. If everything was done correctly this will be your Den ID. We will need this information later.
  6. Throw a Wishing Piece into the den and confirm the species align with the dropdown menu in PokeFinder. If the species does not match you are not standing by the correct den in-game.
Event Distribution Dens

Event distributions from Wild Area News contained unique tables of available Pokémon for a limited time. An event den can appear anywhere on the map, so you do not need to use the Den Map feature. Simply select Event in the Location section of the main window instead, then select your distribution.

In most cases you should have the final event distribution active. If you have injected event data using a tool like PKHeX you will need to manually select the correct event distribution from the dropdown menu. Information about injecting Wild Area News can be found in this ProjectPokemon tutorial. No further support for Wild Area News injection will be provided in this guide.


Figure 3 - PKHeX/LiveHeX Overview

raid-setup-3
PKHeX/LiveHeX Overview

LiveHeX is a feature of the Auto Legality Mod plugin that is used to read the details of Max Raid dens while we are playing the game, we can connect to LiveHeX using sys-botbase, a Switch program that was installed earlier.

LiveHeX Connectivity
  1. Open PKHeX, then navigate Options -> Settings and set your Blank Save Version to the game you are playing (Sword or Shield).
  2. Open the Homebrew Menu on your console, then press the Y button to display the local IP address of your console.
  3. Close the subwindow, then navigate to Tools -> Auto Legality Mod -> Open LiveHeX to open the LiveHeX subwindow.
  4. If you do not have ldn_mitm installed, connect to the Y-Comm in game or enter LAN mode. This step can be skipped if you already have ldn_mitm installed.
  5. Enter the local IP of your console into the IP: field and click the Connect button. If done correctly, your console should now be connected to LiveHeX.
  6. At the bottom of the LiveHeX window open the dropdown menu and select the Raid button that corrisponds to the location of your desired Raid Den.
    • Select Raid if your raid is located in the Wild Area.
    • Select RaidArmor if your raid is located in the Isle of Armor.
    • Select RaidCrown if your raid is located in the Crown Tundra.
  7. After you have selected the correct Raid location, select your Den ID. This should match the the ID found earlier using Serebii/PokeFinder Den Map.
  8. To confirm that you are looking at the correct den you will need to throw a Wishing Piece inside if you have not already done so. Close and re-open the LiveHeX raid subwindow if you did not already throw in a Wishing Piece.

Figure 4 - LiveHeX Den ID Confirmation

raid-setup-4
LiveHeX Den ID Confirmation

To confirm the Den ID is correct within LiveHeX you will need to throw a Wishing Piece into the den if you have not already done so. Do this now then close and reopen the Raid subwindow on LiveHeX to refresh the changes.

Step-by-step
  1. Throw a Wishing Piece into the den that you believe contains your desired species.
  2. Connect to LiveHeX and open the Raid subwindow as explained above.
  3. Select your Den ID, if everything matches you should see the following output:
    • isActive is True.
    • isRare is True (purple beam) or False (red beam).
    • isWishingPiece is True.
    • If everything is correct then you have found the correct Den ID.
  4. Close the Raid Parameter Subwindow by either clicking the X in the top corner or clicking the Cancel button. DO NOT CLICK SAVE.

Pressing the Save button will inject the current seed back into the Raid Den (very bad). NEVER USE THIS BUTTON TO CLOSE THE RAID PARAMETER SUBWINDOW if you care about the legitimacy of your Pokémon.


Figure 5 - Luxray Overview

raid-setup-5
Luxray Overview

Luxray is a tool used for automating the (otherwise tedious) date skipping process and can be launched from the Switch Homebrew Menu. As mentioned above, the den seed increments by one after each day that passes. Luxray can be used to alter the system clock and make the game believe that a day has passed which will increment any den seeds.

Using Luxray

Upon launching you will be presented with a calculator-style application with three main features, these are:

  1. Set - Sets the network time to a desired date based on the figure typed into the calculator. Useful for changing the weather.
  2. Step - Initiates date skipping, based on the number typed into the calculator. Used to automate date-skipping.
  3. NTP - Sets the date and time back to network time, this should be done after every date-skipping session.

Date & Time must be synced via the internet in order to use Luxray as it takes advantage of System time manipulation.


Great! You should now have basic understanding of how to use each of the tools and how to find your Max Raid seed. Click the button below to see a worked example of the entire process from start to finish.
Continue to the RNG process!