• Do not use Discord to host any images you post, these links expire quickly! You can learn how to add images to your posts here.
  • The Eevee Expo Game Jam has concluded! 🎉 Head on over to the game jam forum to play through the games.
    Don't forget to come back September 21st to vote for your favorites!
  • Reminder: AI-generated content is not allowed on the forums per the Rules and Regulations. Please contact us if you have any questions!
Use SURF with any WATER type pokemon

v20.1 Use SURF with any WATER type pokemon 1.0

This resource pertains to version 20.1 of Pokémon Essentials.
Pokémon Essentials Version
v20.1 ➖
With those simple scripts, the player can surf without teaching SURF to a pokemon in the party. He just needs to have the badge that allows him to surf, and a WATER type pokemon in his party.
  • First, edit the pbSurf method (Overworld_FieldMoves, line:737) in this way:
    edit.png
  • Now just define the method "get_pokemon_with_type" in the Trainer script file (better if defined under the "get_pokemon_with_move" method(line:156), as the image shows):
    method.png
For copy and paste:
Edited:
type = :WATER
movefinder = $player.get_pokemon_with_type(type)
if !pbCheckHiddenMoveBadge(Settings::BADGE_FOR_SURF, false) || !movefinder || !$DEBUG
return false
end

Method:
# Checks whether any Pokémon in the party has the given type, and returns
# the first Pokémon it finds with that type, or nil if no Pokémon has that type.
def get_pokemon_with_type(type)
pokemon_party.each { |pkmn| return pkmn if pkmn.hasType?(type) }
return nil
end
Credits
Optional credit: Tzeolon.
No credit required.
  • 1694185786242.png
    1694185786242.png
    2.7 KB · Views: 107
Author
Tzeolon
Views
1,341
First release
Last update

Ratings

0.00 star(s) 0 ratings
Back
Top