poke=$Trainer.party[0]
poke=pbFirstAblePokemon
poke=$Trainer.lastPokemon
poke=pbGetPokemon(1)
Well, you can force a specific pokemon's shinyness with poke.makeShiny, where "poke" represents the pokemon to be edited. That can by found with several methods:
Code:poke=$Trainer.party[0] poke=pbFirstAblePokemon poke=$Trainer.lastPokemon poke=pbGetPokemon(1)
def isShiny?
return @shinyflag if @shinyflag!=nil
a=@personalID^@trainerID
b=a&0xFFFF
c=(a>>16)&0xFFFF
d=b^c
return (d<SHINYPOKEMONCHANCE)
end
((@personalID^@trainerID)&0xFFFF)^(((@personalID^@trainerID)>>16)&0xFFFF)<SHINYPOKEMONCHANCE
Sadly, you can't. The PersonalID also controls a lot of other things like natures and gender. Plus, there's not really a way to reverse the formula that makes a Pokemon shiny.
Code:def isShiny? return @shinyflag if @shinyflag!=nil a=@personalID^@trainerID b=a&0xFFFF c=(a>>16)&0xFFFF d=b^c return (d<SHINYPOKEMONCHANCE) end
which means you would need to solve this:
for @personalIDCode:((@personalID^@trainerID)&0xFFFF)^(((@personalID^@trainerID)>>16)&0xFFFF)<SHINYPOKEMONCHANCE
What's the formula for personalID and trainerID?
"generate random number from 0 to 256^4"
There's no formula. It's a completely random number.