• The Eevee Expo Game Jam #10 has concluded, congratulations to all participants! Now it's time for the judges to play through the games, and you can play along to vote who deserves the community choice spotlight.
    You can check out the submitted games here!
    Play through the games and provide some feedback to the devs while you're at it!
  • Hi, Guest!
    Some images might be missing as we move away from using embedded images, sorry for the mess!
    From now on, you'll be required to use a third party to host images. You can learn how to add images here, and if your thread is missing images you can request them here.
    Do not use Discord to host any images you post, these links expire quickly!
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,048
First release
Last update

Ratings

0.00 star(s) 0 ratings
Back
Top