• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

How I can do to make my HM Item compatible with the Follow Pokémon Script?

  • 30
    Posts
    8
    Years
    • Seen Jan 5, 2024
    I edit the PField_HiddenMoves on Essentials 16.2 to use a Sharpedo Bot to replace Surf, it works fine but when I use the mej71's Following Pokémon Script it doesn't work, only the Debug Surf. What I can do to make this work with that script on? I ask it on his post a week ago but got no reply.

    Here is the code:

    Code:
    #===============================================================================
    # Surf
    #===============================================================================
    def Kernel.pbSurf
      
    if ($DEBUG || $PokemonBag.pbQuantity(PBItems::SHARPEDO) > 0 || movefinder=Kernel.pbCheckMove(:SURF)) && $game_switches[4]
        if ($DEBUG || movefinder || $PokemonBag.pbQuantity(PBItems::SHARPEDO) > 0) && $game_switches[4]
          if $PokemonBag.pbQuantity(PBItems::SHARPEDO) > 0
             Kernel.pbMessage(_INTL("The Sharpedo Bot pack is vibrating!"))
          else
            Kernel.pbMessage(_INTL("The water is dyed a deep blue..."))
          end
          if Kernel.pbConfirmMessage(_INTL("Would you like to surf?"))
            speciesname=!movefinder ? $Trainer.name : movefinder.name
            Kernel.pbMessage(_INTL("{1} used Surf!",speciesname))
            pbHiddenMoveAnimation(movefinder)
            surfbgm=pbGetMetadata(0,MetadataSurfBGM)
            if surfbgm
              pbCueBGM(surfbgm,0.5)
            end
            pbStartSurfing()
            return true
          end
        end
      else
        Kernel.pbMessage(_INTL("The water is dyed a blue..."))
      end
      return false
    end
     
    Last edited by a moderator:
    Back
    Top