• 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!
  • Serena, Kris, Dawn, Red - which Pokémon protagonist is your favorite? Let us know by voting in our grand final favorite protagonist poll!
  • PokéCommunity supports the Stop Killing Games movement. If you're a resident of the UK or EU, consider signing one of the petitions to stop publishers from destroying games. Click here for more information!
  • 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