• 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.
  • Eevee Expo's webhost has been having technical issues since Nov. 20th and you might be unable to connect to our site. Staff are also facing issues connecting, so please send a DM to Cat on-site or through Discord directly for faster service!
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,078
First release
Last update

Ratings

0.00 star(s) 0 ratings
Back
Top