Relearning any level-up move

Relearning any level-up move

Pokémon Essentials Version
v16.2 ➖
What's this?
Since Pokémon Sun and Pokémon Moon, any Pokémon can learn any level-up move with the use of the Move Reminder and a Heart Scale.

Design notes
Be creative! The Move Reminder in Alola is present at almost the end of the game, so you cannot teach very powerful moves to your Pokémon right away. If the Move Remidner is available early on in your game, make sure the required item/currency is scarce, so that it won't break the game's difficulty curve!

Installation
Open your Script Editor and go to section "PScreen_MoveRelearner".
Find "def pbGetRelearnableMoves(pokemon) and replace the method entirely (from line 12 to about 28) with the following code:
Code:
def pbGetRelearnableMoves(pokemon)
 return [] if !pokemon || pokemon.isEgg? || (pokemon.isShadow? rescue false)
 moves=[]
 pbEachNaturalMove(pokemon){|move,level|
	  moves.push(move) if !moves.include?(move) && !pokemon.hasMove?(move)
 }
 tmoves=[]
 if pokemon.firstmoves
   for i in pokemon.firstmoves
	 tmoves.push(i) if !pokemon.hasMove?(i) && !moves.include?(i)
   end
 end
 moves=tmoves+moves
 return moves|[] # remove duplicates
end
Alternatively, change this bit:
Code:
  pbEachNaturalMove(pokemon){|move,level|
	 if level<=pokemon.level && !pokemon.hasMove?(move)
	   moves.push(move) if !moves.include?(move)
	 end
  }
Into this:
Code:
pbEachNaturalMove(pokemon){|move,level|
	  moves.push(move) if !moves.include?(move) && !pokemon.hasMove?(move)
 }
Credits

Please credit if used to:

Mr. Gela

Please do not redistribute this anywhere resource anywhere else. If you wish to share this, link to this site.


Por favor da créditos si lo utilizas a:
Mr. Gela

Por favor no redistribuyas este recurso en ningún otro lugar. Si quieres compartir esto, utiliza un enlace a este sitio.
Author
Mr. Gela
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from Mr. Gela

Top