Closed easyworld closed 3 years ago
This is intended behavior
ALM goes down the list of games to attempt to legalize in each game. Stakataka is possible in sword and shield via max lair so that is likely the legalized pokemon you have gotten.
Max lair like other gen 8 raids follows the XOROSHIRO rng method which allocates the IVs based on a random seed. ALM emulates how the game assigns the seed and the values dependent on the seed.
However the game cannot feasibly check for xoroshiro legality since reversing the seed can be cpu intensive and time consuming.
So if you really want to generate stakataka with those specific ivs, add the following line before GetLegalFromSet
APILegality.UseXOROSHIRO = false;
This should generate the set without bothering with the xoroshiro rng legality
Please do let me know if that works, and if so close the issue. Thanks 👍
Alternate workaround if you want to preserve legality is to use a move or batch editor command to force a gen 7 encounter instead.
Stakataka @ Weakness Policy
Ability: Beast Boost
EVs: 252 HP / 252 Atk / 4 SpD
Lonely Nature
IVs: 17 Def / 0 Spe
=Gen7=true
- Gyro Ball
- High Horsepower
- Rock Slide
- Trick Room
Stakataka @ Weakness Policy
Ability: Beast Boost
EVs: 252 HP / 252 Atk / 4 SpD
Lonely Nature
IVs: 17 Def / 0 Spe
- Toxic
- High Horsepower
- Rock Slide
- Trick Room
Please do let me know if that works, and if so close the issue. Thanks 👍
It works, thank you very much.
Alternate workaround if you want to preserve legality is to use a move or batch editor command to force a gen 7 encounter instead.
Stakataka @ Weakness Policy Ability: Beast Boost EVs: 252 HP / 252 Atk / 4 SpD Lonely Nature IVs: 17 Def / 0 Spe =Gen7=true - Gyro Ball - High Horsepower - Rock Slide - Trick Room
Stakataka @ Weakness Policy Ability: Beast Boost EVs: 252 HP / 252 Atk / 4 SpD Lonely Nature IVs: 17 Def / 0 Spe - Toxic - High Horsepower - Rock Slide - Trick Room
It also works, thank you very much.
Describe the problem I try this c# code to generate pkm from pokemon showdown
And found the second console output gave random IVs, like 31,11,31,31,31,26. (first console output is correct, which is 31,31,31,2,31,31)
To Reproduce I try to generate by myself in PKHex with Auto-Legality Mod (805 - Stakataka - 1695A7B79620.zip) It seems that IVs are legal:
Expected behavior If it is legal, the IVs should be 31,31,31,2,31,31