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 select for specific characteristics 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), and Gender. The Pokémon species and raid star count cannot be manipulated, but we can randomly reroll them until the desired target is achieved.

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 has a randomly-assigned "raid seed" that determines the traits of the Pokémon inside a den. Every day that passes advances the den seed by 1 in a predictable manner, making RNG abuse entirely possible via "date skipping". We can simply skip the required number of days to reach a 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 for your operating system into a fresh, empty folder on your computer. You should download the zip file ending in -win for Windows, -macOS for Mac, and -linux for Linux.
  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 be 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. These programs should be functional before you move on to the next step.
Alternative Seed Checking for Mac/Linux

If you do not have a PC and are unable to run PKHeX and LiveHeX, you can consider CaptureSight to check and monitor your seeds. This is a Tesla overlay that is installed on your Switch.

CaptureSight will not be covered on this guide, so refer to the GitHub repository above for installation, usage, and troubleshooting. Keep in mind that CaptureSight interferes with programs that rely on sys-botbase, so you will need to reboot the console each time you want to switch over.


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

PokeFinder launches as a small window with a separate tab for each generation and multiple buttons on each tab. Select the Gen 8 tab and click the Raid button to open a larger window titled Gen 8 Raids. For the purposes of this guide, the Gen 8 Raids window will be referred to as the "main window." 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 - Specify search conditions to target specific raid dens, and input seed and # of advances to search.
  • Center - Specify raid details, such as species, raid type (Normal/Rare), and difficulty (star count).
  • Right Side - Add search filters for IVs, Nature, Shiny Status, Gender, and Ability; filters are combined.
  • Top - Manage your profiles; this lets you store each game's version, 5 digit TID/SID, and presence of charms.
  • Bottom - View all search results that match your filters.
Profiles

It is important to a set up a basic PokeFinder profile. For Max Raids, only the game version is necessary. This allows PokeFinder to display the correct version-exclusive species details for your game's raid dens. Everything else is optional and will NOT affect raid predictions. 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 always have the same shiny status for all participants. For the game to do this, the raid seed generates a PID and a fake trainer's TID/SID. If the PID is shiny for the fake trainer, it will be shiny for everyone, and if it is nonshiny for the fake trainer, it will be nonshiny for everyone. After each participant captures the Pokémon, its PID is modified for the player's TID/SID to ensure that the original shiny status is maintained. This is why entering your correct TID/SID into your PokeFinder profile is NOT required.

However, if you enter correct IDs into your profile, the PID will be calculated based on your TID/SID. This is useful for trading communities that require proof that the Pokémon was obtained through legitimate means since the PID will be correct in 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. Select the OT/Misc tab and hover over the TID field with your mouse.
  3. Your 5 digit TID/SID will be displayed in a tooltip. These are the values PokeFinder expects.

Stock Dens vs. Event Dens

Before you continue, you should understand the difference between stock raid dens and event dens.

Stock raid dens are location-specific, and their beams can either be red (Common/Normal) or purple (Rare). These raid dens are always available, even if you have not connected online. You can see what appears in each location using Serebii's Max Raid Battle Dens page.

Event dens are obtained by connecting online to receive the Wild Area News. These dens appear anywhere on the map and contain unique tables of available Pokémon for a limited time. These raid beams are always red. You can see what appeared in each event distribution using Serebii's Max Raid Event Dens page.

In most cases, you should have the final event distribution active in-game. Information about injecting older Wild Area News can be found in this ProjectPokémon tutorial. No further support for Wild Area News injection will be provided in this guide.


Figure 2 - PokeFinder Den Map

raid-setup-2
PokeFinder Den Map

In this section, you will learn how to find the Den ID for your chosen raid den. The Den ID is used to identify which Pokémon are available in a stock raid. Later on, we will use it to find the correct raid seed for your den, whether it is a stock den or event den.

Finding Den ID

On the initial, smaller window that first appears when launching PokeFinder, the navigation menu at the top lists tools used for different games. Under Gen 8 Tools, there is an option for Den Map. This tool opens in a subwindow and can be used to find your chosen raid den's ID more easily.

We can match the in-game location of a raid den to its location on PokeFinder's Den Map to find the corresponding Den ID.

  1. If you are planning to RNG manipulate a stock den, use Serebii to find a raid den that contains your desired Pokémon. Otherwise, find an event den, which can be confirmed by checking the Pokémon inside versus what normally appears in that raid den.
  2. Throw a Wishing Piece into the den and confirm the species matches the tables on Serebii. If the species does not match, you are not standing by the correct den in-game.
  3. Take note of the map (Wild Area, IoA, or CT) and the area (e.g. Dusty Bowl) for your selected den.
  4. Open the Den Map subwindow on PokeFinder.
  5. Select the correct map from the first dropdown menu (Wild Area, IoA, or CT).
  6. Under the second dropdown menu, check each option that matches the area until the red dot appears in the same place as your chosen raid den.
  7. The number that appears in front of the location in the second dropdown menu is the Den ID. Take note of this value.
    • If you found your raid den at 76: Dusty Bowl, then the Den ID is 76, the area is Dusty Bowl, and the map is Wild Area.
  8. Go back to the main PokeFinder window to enter this information.
    • Confirm that the correct profile has been selected at the top.
    • From the Location dropdown, select the correct map if you are manipulating a stock den, or Event if you are manipulating an event den.
    • From the Den dropdown, select the Den ID you found earlier if you are manipulating a stock den, or the correct Wild Area News Event if you are manipulating an event den.
    • If this is a stock den, select the correct Den rarity (Normal/Rare) from the Rarity dropdown. This does not matter for event dens.
  9. Confirm that the species selection in PokeFinder matches Serebii.
  10. Remember the Den ID you found for the next step.

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 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 block that corresponds 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. Click Edit Block, which will then show details of all the raid dens on the map.

Figure 4 - LiveHeX Den ID Confirmation

raid-setup-4
LiveHeX Den ID Confirmation
Step-by-Step
  1. If you have not already thrown a Wishing Piece into the den, close any raid block windows open on LiveHeX and use a Wishing Piece.
  2. Connect to LiveHeX and open the Raid block subwindow for the correct map.
  3. Select your Den ID you found earlier. If this is the correct Den ID, you should see the following:
    • isActive is True.
    • isRare is True (purple beam) or False (red beam).
    • isWishingPiece is True.
  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 and any other details 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 Switch tool used for automating the (otherwise tedious) date skipping process. It can be launched from the Switch Homebrew Menu. As mentioned above, the den seed advances by one for each day that passes. Luxray can be used to alter the system clock and make the game believe that a day has passed to advance den seeds.

Using Luxray

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

  1. Set - Adjust the network time by the number of days entered. Useful for changing the weather.
  2. Step - Date skips based on the number of days entered. Used to automate date-skipping.
  3. NTP - Synchronizes 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 the System Settings in order to use Luxray.


Date Skipping Safety - It is highly advised that you stay within reasonable Switch times when date skipping with Luxray. The lowest settable date is January 1, 2000, and the highest settable date is December 31, 2060. Use NTP or Set to adjust the clock if you are going out of bounds.
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!