• 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!
  • Our weekly protagonist poll is now up! Vote for your favorite Trading Card Game 2 protagonist in the poll by clicking here.
  • 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] Is there a way to make a move that revives a fainted Pokemon?

  • 38
    Posts
    9
    Years
    • Seen Nov 9, 2024
    I want to make a move that can revive a pokemon in the party. The way it works can be like Lunar Dance/Healing Wish, instead of full HP recovery, they revive.
     
    If you want to do something that works "like Lunar Dance/Healing Wish", just check the code for them and try to adapt it :)

    Hint:
    You will have to define a new PBEffect for your reviving move, initialize it in the right place (should be in the class PokeBattle_ActivePosition), and a subclass of PokeBattle_Move to set the PBEffect. Also you will need a function to revive the Pokémon (take inspiration on the Revive item), and finally a trigger to use this function in battle after the effect was set (you should put that trigger in pbOnActiveOne, right before the code that triggers the entry hazards like Stealth Rock).
     
    I tried to use "Lunar Dance/Healing Wish" pattern to make it, but it seems to be more complicated than I thought. :"))
     
    I tried to use "Lunar Dance/Healing Wish" pattern to make it, but it seems to be more complicated than I thought. :"))

    I find 8 occurrences of LunarDance in the whole script; it's not complicated ^^
    What d you find complicated?
     
    Back
    Top