• 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!
  • 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] Custom ability: Dragon's Blessing

Firstly, I am stuck with attempting to make it so that the Pokemon changes forms after using any Dragon-type move.

So look at how Lightning Rod checks for type of move and adapt that code. But instead of raising Sp. Def add the makeDragon Method in the code. And make sure the check is for attacker or user and not target.
 
So look at how Lightning Rod checks for type of move and adapt that code. But instead of raising Sp. Def add the makeDragon Method in the code. And make sure the check is for attacker or user and not target.

Actually, if you're talking about this code:
Spoiler:

then how do I change it so that it changes the form of the Pokemon after using a Dragon-type move?
 
Done another part!

Spoiler:


Now how do I make it so when a Dragon-type move is used, then it transforms?
 
More help with Dragon's Blessing

Okay so I have done the rest of the code for Dragon's Blessing just by referencing Disguise's code. Now all I need is to make the Pokemon transform after using a Dragon-type move. I have looked at the code for Lightningrod and for Flower Gift but I'm still confused. I also looked at the Mega evolution and Primal codes.

Any more help please?
 
Okay so now I've put this under Anger Point.
Spoiler:


Will this work or will it give me big fat errors?
 
Great job now all you gotta do is call the makeDragon and makeMoth code wherever the Primal Reversion methods makePrimal and makeUnprimal methods are called. But you gotta make sure that you define the Dragon and Moth forms in the same way Primal Groudon and Kyogre are defined in Pokemon_Forms

Alternatively you can try adapting this code

Will this work?
Spoiler:
 
I don't have access to my PC right now, but I'll be sure to test out your code.

Also maybe try replacing all the instances of 'opponent' with 'target' and see if it works.
 
I don't have access to my PC right now, but I'll be sure to test out your code.

Also maybe try replacing all the instances of 'opponent' with 'target' and see if it works.

Okay so unfortunately, even after using a Dragon-type move, Dramoth still isn't changing forms! :(
 
Okay so unfortunately, even after using a Dragon-type move, Dramoth still isn't changing forms! :(

Ohhh you want Dramoth to become a Dragon if it uses a Dragon-move, not if it gets hit by one. Sorry my bad. Try replacing the opponen/target in your code with 'user'
 
Thanks! Dragon's Blessing now works the way I want it to!!! :D

You should make sure that Dramoth turns into its Moth Form After Battle.
 
Back
Top