Advertiser Content
Male
Seen 1 Day Ago
Posted 2 Weeks Ago
5 posts
8.9 Years
I'm trying to make a new command when viewing the party, and it depends on the species whether or not this option appears. This is what I've got:

...
      cmdMail=-1
      cmdEvent=-1
      # Build the commands
      commands[cmdSummary=commands.length]=_INTL("Summary")
...
      if pkmn.species==PBSpecies::CHARIZARD || PBSpecies::BLASTOISE || PBSpecies::VENUSAUR ||
                       PBSpecies::TYPHLOSION || PBSpecies::FERALIGATR || PBSpecies::MEGANIUM ||
                       PBSpecies::BLAZIKEN || PBSpecies::SWAMPERT || PBSpecies::SCEPTILE ||
                       PBSpecies::INFERNAPE || PBSpecies::EMPOLEON || PBSpecies::TORTERRA ||
                       PBSpecies::EMBOAR || PBSpecies::SAMUROTT || PBSpecies::SERPERIOR ||
                       PBSpecies::DELPHOX || PBSpecies::GRENINJA || PBSpecies::CHESNAUGHT ||
                       PBSpecies::INCINEROAR || PBSpecies::PRIMARINA || PBSpecies::DECIDUEYE ||
                       PBSpecies::RAICHU || PBSpecies::FLAREON || PBSpecies::VAPOREON ||
                       PBSpecies::JOLTEON || PBSpecies::UMBREON || PBSpecies::ESPEON ||
                       PBSpecies::GLACEON || PBSpecies::LEAFEON || PBSpecies::SYLVEON
       commands[cmdEvent=commands.length]=_INTL("Event")
...
      elsif cmdEvent>=0 && command==cmdEvent
        command=pbDisplay(_INTL("This is a fully evolved starter Pokemon! Good job!"))
        end
However, the 'Event' option also appears on Salamence, so I know it is not working as intended. I'm using Essentials v15 if that helps.
Advertiser Content