- 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:
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: