Lowering a Pokemon's Level

Weter 23

Novice
Member
Bascially a Rare Candy that lowers the level of the Pokemon by one, and cannot go less than level 1.

NoodlesButt

Member
Make the new candy item as you usually would and then in PBItem_ItemEffects, underneath the Rare Candy effect is probably best, add this:
Code:
ItemHandlers::UseOnPokemon.add(:YOURITEMNAME,proc{|item,pokemon,scene|
if pokemon.level==1 || (pokemon.isShadow? rescue false)
scene.pbDisplay(_INTL("It won't have any effect."))
next false
else
pbChangeLevel(pokemon,pokemon.level-1,scene)
scene.pbHardRefresh
next true
end
})
Just make sure to change the name of YOURITEMNAME to whatever you call it.