• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Cyndy, May, Hero (Conquest), or Wes - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • 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.

Disable Moves Outside Battle

  • 65
    Posts
    10
    Years
    Hello. I need to disable moves like Teleport from being used in a certain part of my game. I looked in script, but I'm not sure how to temporaly disable this feature. Any ideas?

    Thanks anyway.
     
    Try this:


    In the Scripts Editor, press Ctrl + Shift + F and look for this:
    Code:
    HiddenMoveHandlers::CanUseMove.add(:TELEPORT,proc{|move,pkmn,showmsg|

    When you've found that, right underneath that line, add this:

    Code:
       return false if $game_switches[100]
    If game switch 100 is enabled, you can't use Teleport.
     
    Back
    Top