Lowering a Pokemon's Level

Weter 23

Novice
Member
Joined
Mar 4, 2018
Posts
12
Bascially a Rare Candy that lowers the level of the Pokemon by one, and cannot go less than level 1.
 

NoodlesButt

Addicted to Jams
Member
Joined
Apr 2, 2017
Posts
58
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.
 
Top