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

[Scripting Question] New move that selects foe's random move?

GPK

11
Posts
6
Years
    • Seen Dec 20, 2018
    I have an idea for a move that makes the opponent use a random move for that turn, similar to sleep talk, but for the opponent and doesn't require sleep. How should I go about scripting it? Should I just take from Sleep Talk?

    Thanks,
    GPK
     
    1,403
    Posts
    10
    Years
    • Seen Apr 29, 2024
    I'd base it on James Davy's code from here, but populate the move list from the foe's moves (maybe you could look at something like Mimic to find out how to get that list).
     
    188
    Posts
    9
    Years
    • Seen Jan 21, 2024
    Are there any moves that cannot be selected for your move? For example Metronome cannot select Struggle, Snore, Chatter, Mimic, Sketch, Transform, Counter, Mirror Coat, Metal Burst and several others.
     
    Back
    Top