Skip to content

Legality

Lusamine edited this page Oct 2, 2022 · 31 revisions

These settings control how Auto-Legality Mod (ALM) generates Pokémon. Basic rules for ALM are covered in more detail on PKHeX-Plugins' Wiki under How does Auto-Legality Mod (ALM) work?

Custom Trainer Data

  • Refer to Auto-Legality Mod's page on Using Custom Trainer Data.
  • Once you have created a folder of pkm files, put the path to the folder in the GeneratePathTrainerInfo field. You need trainer data for EVERY game if you want to ensure that any generated Pokémon has the trainer details you provide.
  • You can specify your own OT, TID, and SID in the bot settings. These will not be game specific. The GenerateTID16 and GenerateSID16 should be 5 digit numbers seen in PKHeX when hovering over the trainer information (15502 and 01885 in this case, respectively):

    These values may be changed by ALM if required for legality, such as for shiny Pokémon. If you do not provide trainer files for other games, ensure that your OT does not contain any characters that are illegal in any game.

Other Settings

  • MGDBPath: directory path for any additional Wonder Cards that should be loaded. An example of a path is C:\Users\Anubis\Desktop\Sysbot\mgdb if the directory is the mgdb directory.
    • Most Wonder Cards should be bundled with the stable PKHeX Core, but this can be used to load in any new Wonder Cards before an official release is published.
    • New Wonder Cards can be obtained from Project Pokémon or the Github repository and should end in .wc8.
      • A Wonder Card is NOT a pk8/pb8 file; putting pk8/pb8 files into this directory will not work. The file extension should be wc8/wb8.
    • Restart the program after configuring an MGDBPath.
  • PrioritizeGame / PrioritizeGameVersion:
    • If PrioritizeGame is set to False, ALM will ignore PrioritizeGameVersion and look for Pokémon encounters starting from the most recent game to the oldest game.
    • If PrioritizeGame is set to True and PrioritizeGameVersion is set to Any, ALM will try to generate a Pokémon from the current loaded save game version first before checking other games.
    • If PrioritizeGame is set to True and PrioritizeGameVersion is set to a specific game, ALM will try to generate a Pokémon from that game first.
  • SetAllLegalRibbons: attempts to add all legal ribbons according to PKHeX legality.
  • SetMatchingBalls: applies a legal Pokéball that matches the color of the Pokémon.
  • ForceSpecifiedBall: allows the user to attempt to specify a legal Pokéball by including it as a line in their set. This should be used as Ball: Level Ball.
  • UseXOROSHIRO: generates legal nonshiny raid Pokémon based on the game's RNG. Due to the restrictions of Xoroshiro, Pokémon IVs will very likely be imperfect and then Hyper-Trained afterwards.
  • SetBattleVersion: If enabled, bot will set all past-generation Pokémon as Battle Ready for games that support it (currently only SWSH). This allows past-gen Pokémon to be used in competitive play, but limits moves that are available to SWSH only.
  • EnableEasterEggs: Tells the bot to replace illegal sets with Easter Egg joke Pokémon instead.
  • AllowTrainerDataOverride: Allows usage of the OT:, TID:, SID:, and OTGender fields.
  • AllowBatchCommands: Enables use of Batch Editor commands for further customization.
  • Timeout: Maximum time in seconds to spend generating from a Showdown set before canceling. This prevents difficult sets from freezing the bot. Default time is 15 seconds.
  • ResetHOMETracker: zeroes out the HOME tracker for traded and cloned Pokémon.
Clone this wiki locally