- 26
- Posts
- 7
- Years
- Seen Dec 19, 2018
Hi. So I want to make an item that works similar to EV vitamins but instead raises a selected IV to its max (31). I think Pokemon Reborn has something called the IV stone that works like that. I was told to just copy the EV Vitamin script and change it to IV but it doesn't really seem to be that simple lol. Here's the Vitamin script for reference.
Can anyone lend me a hand?
Code:
ItemHandlers::UseOnPokemon.add(:CARBOS,proc{|item,pokemon,scene|
if pbRaiseEffortValues(pokemon,PBStats::SPEED)==0
scene.pbDisplay(_INTL("It won't have any effect."))
next false
else
scene.pbDisplay(_INTL("{1}'s Speed increased.",pokemon.name))
pokemon.changeHappiness("vitamin")
next true
end
})
Can anyone lend me a hand?
Last edited: