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

[Battle] Way of making moves trigger automatically in battle

  • 15
    Posts
    4
    Years
    • Seen Nov 11, 2020
    My idea would be to have weather moves automatically trigger when a pokemon is sent out to allow weather control to not be centralized on certain mons. Also, these moves would have 1 PP so they can only be used once and take up a moveslot to further balance it.

    I'm just wondering how I would do this. I'm using CFRU.
     
    That's a cool idea.

    Roughly, I'd go find the bit of the code that handles weather abilities. Add some extra code that's roughly this psuedocode:
    Code:
    if not hasWeatherAbility:
      for move in moves:
        if move == SunnyDay:
          # copy the code that Drought uses to set up the sun.
          move.pp -= 1
          break
        elif move == RainDance:
          # copy the code that Drizzle uses to set up the rain.
          move.pp -= 1
        ...
     
    Back
    Top