• 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!
  • Which Pokémon Masters protagonist do you like most? Let us know by casting a vote in our Masters favorite protagonist poll here!
  • Red, Hilda, Paxton, or Kellyn - 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.

Any way to make a certain typed Metronome move?

  • 53
    Posts
    9
    Years
    Would there be a way to make a metronome that only gives moves of a certain type?
    For example, lets say I want to make a new move called "Channel" that makes you use a random ghost type move. But only ghost type moves.
    How would I go about creating the code for this?
     
    Hmmm... Metronome already works by blacklisting moves. If nobody can aid you with scripting, you can just create a huuuuuge blacklist for your special metronome.

    Forget it, it's super easy:

    Code:
       [email protected](PBMoves.maxValue)+1
          next if isConst?(PBMoveData.new(move).type,PBTypes,:SHADOW)

    That piece of code makes sure Metronome doesn't use a Shadow-type move. You know what to do! : P
     
    Hmmm... Metronome already works by blacklisting moves. If nobody can aid you with scripting, you can just create a huuuuuge blacklist for your special metronome.

    Forget it, it's super easy:

    Code:
       [email protected](PBMoves.maxValue)+1
          next if isConst?(PBMoveData.new(move).type,PBTypes,:SHADOW)

    That piece of code makes sure Metronome doesn't use a Shadow-type move. You know what to do! : P
    Thanks! I never thought of doing that. Things should go smoothly now.
     
    Back
    Top