• Hi, Guest!
    Some images might be missing as we move away from using embedded images, sorry for the mess!
    From now on, you'll be required to use a third party to host images. You can learn how to add images here, and if your thread is missing images you can request them here.
    Do not use Discord to host any images you post, these links expire quickly!
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:
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

RCL

Rookie
Member
Joined
Jan 19, 2024
Posts
8
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
 

Willøw

Mew and Slither Wing Fan
Member
Joined
Nov 1, 2023
Posts
95
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