• 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.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Our weekly protagonist poll is now up! Vote for your favorite Conquest protagonist in the poll by clicking here.
  • 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

  • 67
    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