• 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!
  • Akari, Selene, Mint, Solana - 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.

Help with in-game trading?

  • 87
    Posts
    9
    Years
    Hi!
    I've been working on game recently, and I'm having issues with in-game trades.
    I have a picture here showing the trade menu when picking Dunsparce, the Pokémon that is supposed to be traded.
    Spoiler:

    Also, I have the event page here as well.
    Spoiler:


    I'm not sure what the issue is, because Dunsparce is supposed to be selectable. But it isn't.

    Thank you for the help!
    (By the way, I'm using Essentials 16.1)
     
    Hello, after a quick look, it appears to be an Essentials script problem.

    In the script editor (press F11, it should popup) go to line 2129 in the script "PSystem_Utilities"


    and replace the function with this:

    Code:
    def pbChoosePokemonForTrade(variableNumber,nameVarNumber,wanted)
      pbChoosePokemon(variableNumber,nameVarNumber,proc {|poke|
         if wanted.is_a?(String) || wanted.is_a?(Symbol)
           wanted=getID(PBSpecies,wanted)
         end
         return !poke.isEgg? && !(poke.isShadow? rescue false) &&
                poke.species == wanted
      })
    end

    Your code should now work.

    Technical details of failure:

    Spoiler:
     
    Back
    Top