• 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.
  • Dawn, Gloria, Juliana, or Summer - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • 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.

[Scripting Question] EBS Mega Animation

  • 26
    Posts
    7
    Years
    • Seen Dec 19, 2018
    Hi ya'll. So in my game there are two types of Mega evolutions, the standard version, and one that's supposed to be a "darker" version of it. The only difference is lore related, as it is still defined as mega evolution in the scripts and is merely just a cosmetic thing. As stated in the title, I'm using EBS.

    What I've wanted to do is make it so that when a Pokemon is undergoing "Dark Mega Evolution", it plays a different animation separate from the one currently defined in Elitebattle_2. I copied the part of the script that creates the mega animation, and pasted a duplicated version of it below the original, with some minor changes to graphics and sounds. Here is the bit of code that tells the game to play the original Mega animation:

    Code:
    return pbMegaAnimation(attacker,pokemon) if pokemon.isMega? || pokemon.isPrimal? && !CUSTOMANIMATIONS

    So basically if the Pokemon is defined as a mega or a primal it will play the animation. So for my version of the animation, I want the game to play it if the pokemon is not only defined as a mega but also if another condition is met. For example, I've tried something like this to no avail, as well as a few other conditions:

    Code:
    return pbMegaAnimation2(attacker,pokemon) if pokemon.isMega? &&  isConst?(self.species,PBSpecies,:MEGANIUM)  && !CUSTOMANIMATIONS

    So basically if the Pokemon is defined as a mega and it's the species of the Pokemon is Meganium, the animation should play, but it only seems to play the first one every time. I've tried using pokemon.isPrimal? instead without the secondary condition and the animation works perfectly fine, so I know it's not an issue with the animation code I made. So basically what I'm asking is, what other condition can I use so that this will work? I really don't want to define an entirely new version of mega evolution because there would be a ton of code to duplicate and in the end, it's no different from mega evolution. Is there a way I can make this script work by adding another condition along with pokemon.isMega? as shown above?

    Sorry if this is confusing, it's kinda hard to explain lmao. If you want me to paste more of the script here let me know.
     
    Last edited:
    Back
    Top