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

Defrosting mechanics

Hello Everyone,

I have a funny situation I need some advice on.

Got this move in my hack called Freezeflame that is a fire-type move with a 10% freeze chance.

I thought it was cool until I discovered that no matter what, an opponent will defrost immediately after getting frozen.

I'm guessing the defrost mechanic checks if the previous move was fire. It always will be with Freezeflame 🤣

Can anyone tell me where the defrost mechanic data is kept? I want to try and change the percentage that a defrost will succeed.
 
Hello Everyone,

I have a funny situation I need some advice on.

Got this move in my hack called Freezeflame that is a fire-type move with a 10% freeze chance.

I thought it was cool until I discovered that no matter what, an opponent will defrost immediately after getting frozen.

I'm guessing the defrost mechanic checks if the previous move was fire. It always will be with Freezeflame 🤣

Can anyone tell me where the defrost mechanic data is kept? I want to try and change the percentage that a defrost will succeed.
I searched for "defrost" in the repo and found this. I guess you could add a && gCurrentMove != MOVE_FREEZEFLAME into the check to make your new move work correctly.
As for the percentage, there isn't one. A fire move always causes a defrost, but you could change that by editing the code. If you meant the automatically occuring defrost, that would be here.
 
Back
Top