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

[Scripting Question] Check evolution at each end of battle.

  • 19
    Posts
    8
    Years
    • Seen Apr 10, 2023
    Hi everybody, here's my problem.
    In my game, max level is 4, Golbat for example, evolve into Crobat at level 4.
    But in the actual state of the game, if the Pokemon gain a level, but faint in the same fight, he won't evolve.
    What I would like is for the game to check for evolution at each end of fight.
    So if, for example, I have a golbat in my team that is level 4, he will evolve at the end of the fight, even if he didn't get level, (or any xp for the matter).

    I have tried to do that by myself but couldn't figure it out.
    If someone has the solution, he would gain my eternal respect.


    PS: Another way to fix my problem would be to make evolve Pokemon during battle at the very moment they gain the level, but I guess that's even more complicated, and tbh, I haven't tried to do that at all.
     
    Fixed, not the way I wanted to do it at first but fixed nonetheless.
    Now Pokemon will evolve even if they feinted during the fight.
    If you want to do the same for your game put:
    Spoiler:


    at the end of the settings script section.
    Then replace what is between:
    Spoiler:

    and
    Spoiler:

    by:
    Spoiler:


    And that's it!

    A big thank you to Mej71 and M3rein for their help on the subject!
     
    Back
    Top