• The Eevee Expo Game Jam #10 has concluded, congratulations to all participants! Now it's time for the judges to play through the games, and you can play along to vote who deserves the community choice spotlight.
    You can check out the submitted games here!
    Play through the games and provide some feedback to the devs while you're at it!
  • 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!
An Item to increase IVs

An Item to increase IVs 2021-07-04

Pokémon Essentials Version
v19.1 ➖
Hey, first time posting anything like this.

When I was looking for this I only found it as an answered question at www.pokecommunity.com. Thinking that someone could find it helpful I decided to post this here.

In the script "Item_Effects". I put it just above the EV vitamins. I put a bunch of comments so I can find where I put things faster. And so I don't forget what I was doing.

Item_Effects:
Expand Collapse Copy
## Item that change IVs ########################################

## Credits to James Davy for the code and TheGary2346 for asking the question at pokecommunity.com

## Option1: Changes to max -->> pkmn.iv[:HP]=31

## Option2: Changes in +2 points -->> pkmn.iv[:HP]=(pkmn.iv[:HP]==30) ? 31 : pkmn.iv[:HP]+2

ItemHandlers::UseOnPokemon.add(:IVHPITEM,proc{|item,pkmn,scene|

   if pkmn.iv[:HP]>=31

     scene.pbDisplay(_INTL("It won't have any effect."))

     next false

   else

     pkmn.iv[:HP]=(pkmn.iv[:HP]==30) ? 31 : pkmn.iv[:HP]+2

     scene.pbRefresh

     scene.pbDisplay(_INTL("{1}'s HP increased.",pkmn.name))

     pkmn.changeHappiness("groom")

     next true

   end

})

IVHPITEM is the internal name of the item. This is for the HP IV, you need to repeat the code for each of the IVs (ATTACK, SPECIAL_ATTACK, DEF, SPECIAL_DEF, SPEED).
Don't forget to actually add the items to the items PBS file. I added mine to the bottom and used the EV vitamin as a base.

That should be all. In case anyone is interested here is also my placeholder image for these.
Credits
I only posted this here.
Credits to James Davy for the code and TheGary2346 for asking the question at www.pokecommunity.com

I'll take down this post if they don't want this here.
  • HPMAX.png
    HPMAX.png
    657 bytes · Views: 218
Author
YagariFox
Views
2,180
First release
Last update

Ratings

5.00 star(s) 1 ratings

Latest reviews

Excellent resource. It was easy to install once you find all the unique places to replace "HP" with "SPECIAL_ATTACK, SPECIAL_DEFENSE, etc." I ran into some issues because I add items to my bag and then altered the names in the PBS files, so when I reopened the game in Debug mode with those items still in my bag, it crashed. Took some time to figure it out, but I just restarted a new game and everything worked great. Definitely use the version that also displays the IV stat after using it on your Pokémon.
Back
Top