• 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!
  • Serena, Kris, Dawn, Red - which Pokémon protagonist is your favorite? Let us know by voting in our grand final favorite protagonist poll!
  • PokéCommunity supports the Stop Killing Games movement. If you're a resident of the UK or EU, consider signing one of the petitions to stop publishers from destroying games. Click here for more information!
  • 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] Can't Differentiate Between 2 Deoxys in a Double Battle

Draconic_Dragon12

SalamenceLvX or simply Salamence
  • 11
    Posts
    7
    Years
    • Seen Apr 27, 2024
    Scripting a wild double battle with two Deoxys' and the system I'm using for changing their attributes isn't able to differentiate between the forms.
    [PokeCommunity.com] Can't Differentiate Between 2 Deoxys in a Double Battle[PokeCommunity.com] Can't Differentiate Between 2 Deoxys in a Double Battle
    To summarize everything, how can I make my EventHandlers script detect the forms from my WildBattle script?
     
    As an aside you should really be setting battle rules before the battle, in the event itself. while you can technically set it here, it's not supposed to be set here, this proc isn't intended for side effects like this.
    Noted, thanks.
     
    you use == to check a value.
    so conditionals will use them.
    if it crashes, you should post the error and stacktrace here.
    but you can also use pkmn.isSpecies?(:DEOXYS) for species specifically.
    Oh my gosh that works. Thank you so much.
     
    Back
    Top