• Do not use Discord to host any images you post, these links expire quickly! You can learn how to add images to your posts here.
Resource icon

Resource Nature-Based EV Gain, Vitamin Overhaul, and Automatic IV Perfection 1.69

SuperSpyroDragon64

Cooltrainer
Member
Joined
Apr 20, 2022
Posts
165
SuperSpyroDragon64 submitted a new resource:

Nature-Based EV Gain - Gain Natures based on what your EV boosts, not on the foes you face

Simply use this code to overwrite your "def pbGainEVsOne(idxParty, defeatedBattler)" code in Battle_ExpAndMoveLearning in Pokemon Essentials!

Code:
Expand Collapse Copy
def pbGainEVsOne(idxParty, defeatedBattler)
  pkmn = pbParty(0)[idxParty]   # The Pokémon gaining EVs from defeatedBattler
  evYield = defeatedBattler.pokemon.evYield
  # Modify EV yield based on pkmn's held item
  if !Battle::ItemEffects.triggerEVGainModifier(pkmn.item, pkmn, evYield)...

Read more about this resource...
 

SuperSpyroDragon64

Cooltrainer
Member
Joined
Apr 20, 2022
Posts
165

Willøw

Mew and Slither Wing Fan
Member
Joined
Nov 1, 2023
Posts
98
i need help with this
when attempthing to load up game
Script " line e: SyntaxError occured
Section149:312: syntax error, unexpected 'end', expecting end-of-input
As far as i know, the console is saying that an 'end' or '})' is missing in that line
Did you change something in the script?
 
Back
Top