• 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!
  • Which Pokémon Masters protagonist do you like most? Let us know by casting a vote in our Masters favorite protagonist poll here!
  • Red, Hilda, Paxton, or Kellyn - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • 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.

[Scripting Question] how do I increase my team's attack and super attack shinys Pokémon?

Just rewrite the function baseStats, probably like this:
Code:
  def baseStats
    ret = pbGetSpeciesData(@species,formSimple,SpeciesBaseStats)
    if shiny?
      ret[PBStats::ATTACK] *= 1.2
      ret[PBStats::SPATK] *= 1.2
    end 
    return ret.clone
  end
You can change the 1.2 if you want.
 
Just rewrite the function baseStats, probably like this:
Code:
  def baseStats
    ret = pbGetSpeciesData(@species,formSimple,SpeciesBaseStats)
    if shiny?
      ret[PBStats::ATTACK] *= 1.2
      ret[PBStats::SPATK] *= 1.2
    end 
    return ret.clone
  end
You can change the 1.2 if you want.


This script should increase the stat base of the shinys by 10% and that's it. But every time they go up a level, the base stats increase and multiply infinitely ...

know how to fix?
 
Back
Top