Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.
If you want to replace the random number generator battles use, insert the following in a script section above Main in your script editor.
Code:
class PokeBattle_Battle
def pbRandom(x)
if !@lcrng
@lcrng = LinearCongRandom.pokemonRNG
end
return @lcrng.getNext % x
end
def pbAIRandom(x)
if !@lcrng
@lcrng = LinearCongRandom.pokemonRNG
end
return @lcrng.getNext % x
end
end
Doing this will redefine the two random functions that the battle system uses to use that class you mentioned. (Note: I haven't tested this code. Also, you can probably use @lcrng.getNext16 instead of @lcrng.getNext with little difference in quality.)