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.
Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
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.
On Pokemon black/white, there is a guy in Iccirus city(I think) that tells you what type hidden power would be when you select a pokemon. How could someone do that on essentials?
I copied just the Script from the Debug function in an Event and it works:
pbChoosePokemon(1,3)
pkmn=pbGetPokemon(1)
type=0
type|=(pkmn.iv[0]&1)
type|=(pkmn.iv[1]&1)<<1
type|=(pkmn.iv[2]&1)<<2
type|=(pkmn.iv[3]&1)<<3
type|=(pkmn.iv[4]&1)<<4
type|=(pkmn.iv[5]&1)<<5
type=(type*15/63).floor
if hasConst?(PBTypes,:QMARKS)
type+=1 if type>=PBTypes::QMARKS
end
typename=PBTypes.getName(type+1)