• 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!
  • Akari, Red, Kris, May - which Pokémon protagonist is your favorite? Let us know by voting in our semifinal favorite protagonist poll!
  • 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.

[Question] Relic Song

  • 3
    Posts
    2
    Years
    • Seen Aug 23, 2024
    Hello, I am trying to make a hack with Meloetta as subject, but relic song doesn't change her form. It does the animation, but Meloetta keeps her aria form. Does someone know how I can fix this?
     
    Hello, I am trying to make a hack with Meloetta as subject, but relic song doesn't change her form. It does the animation, but Meloetta keeps her aria form. Does someone know how I can fix this?

    What version of Essentials are you using?
    And do you get an error message?
    In Essentials v18.1 (the version I'm using) I see a typo:

    Code:
      def pbEndOfMoveUsageEffect(user,targets,numHits,switchedBattlers)
        return if numHits==0
        return if user.fainted? || user.effects[PBEffects::Transform]
        return if !isConst?(@id,PBMoves,:RELICSONG)
        return if !user.isSpecies?(:MELOETTA)
        return if user.hasActiveAbility?(:SHEERFORCE) && @addlEffect>0
        newForm = (user.Form+1)%2 # <=============================== The typo is here, it should be "user.form" instead of "user.Form"
        user.pbChangeForm(newForm,_INTL("{1} transformed!",user.pbThis))
      end
    This typo no longer is in v20 (according to what I see on Github) but maybe this is the issue.

    If it's not this, can you post the entire code for Relic Song ?
    It either starts with:
    Code:
    class PokeBattle_Move_003 < PokeBattle_SleepMove
    in v18 or with:
    Code:
    class Battle::Move::SleepTargetChangeUserMeloettaForm < Battle::Move::SleepTarget
    in v20. I don't know about v19 lol.
     
    Back
    Top