• 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.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Our weekly protagonist poll is now up! Vote for your favorite Conquest protagonist in the poll by clicking here.
  • 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
    6
    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