The PokéCommunity Forums

The PokéCommunity Forums (https://www.pokecommunity.com/index.php)
-   Binary ROM Hacking (https://www.pokecommunity.com/forumdisplay.php?f=284)
-   -   Battle Way of making moves trigger automatically in battle (https://www.pokecommunity.com/showthread.php?t=440494)

grazid October 4th, 2020 6:36 AM

Way of making moves trigger automatically in battle
 
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.

mgriffin October 4th, 2020 6:48 AM

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




All times are GMT -8. The time now is 9:12 AM.


Like our Facebook Page Follow us on Twitter © 2002 - 2018 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2016 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.

Acknowledgements
Use of PokéCommunity Assets
vB Optimise by DragonByte Technologies Ltd © 2023.