• 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!
  • Cyndy, May, Hero (Conquest), or Wes - which Pokémon protagonist is your favorite? Let us know by voting in our 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.

[Scripting Question] Script that gets called when certain pokemon evolves

  • 1
    Posts
    7
    Years
    • Seen Oct 24, 2023
    Hello I'm still a noob at using essentials and I'm trying to get a script to auto check if a certain Pok?mon species in the players party has evolved after battle even if the Pok?mon isn't in slot [0] in the party.

    My finial goal is to have the player receive a Pok?mon that's part of the games story. This Pok?mon will follow you like in heart gold (but only this Pok?mon not others). And the sprites need to be updated when that certain Pok?mon evolves along with allowing me to turn on some switches that progresses the game when it does.

    I already have the following part taken care of (kind of) using dependent events the only problem is changing sprites when the Pok?mon evolves.

    If a script like this already exists could you gladly post it here or give me some tips on how to write a script that could do this task?
    thanks in advance ~Fang
     
    You can use pbHasSpecies?(:[insertnamehere]) to check if a pokemon is in your party. Regardless of slot.

    My plan was to use that on the dependent event, and have it turn switches on/off or change variables to have it change into a new event page so that the graphics and common event it triggers can be changed.
     
    Last edited:
    Back
    Top