• 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.

Dynamic INGAME trades

  • 124
    Posts
    9
    Years
    • Seen Apr 5, 2024
    So I wanted to make an ingame trade that will literally take anything Pokemon I give it and it will trade me the same Pokemon back with the same level but with better IVs. Here is the code for the trade I made but cant seem to make it work Im getting lots of errors.

    [INGAME_TRADE_PERFECT] =
    {
    .nickname = _(""),
    .species = VAR_TEMP_1,
    .ivs = {31, 31, 31, 31, 31, 31},
    .abilityNum = 1,
    .otId = 12345,
    .conditions = {30, 5, 5, 5, 5},
    .personality = 0x84,
    .heldItem = ITEM_NONE,
    .mailNum = -1,
    .otName = _("GUY"),
    .otGender = MALE,
    .sheen = 10,
    .requestedSpecies = VAR_TEMP_2
    },

    and I also added it in the trade.h

    #define INGAME_TRADE_PERFECT 4

    Please help! Let me know if its even possible!
     
    So I wanted to make an ingame trade that will literally take anything Pokemon I give it and it will trade me the same Pokemon back with the same level but with better IVs. Here is the code for the trade I made but cant seem to make it work Im getting lots of errors.

    [INGAME_TRADE_PERFECT] =
    {
    .nickname = _(""),
    .species = VAR_TEMP_1,
    .ivs = {31, 31, 31, 31, 31, 31},
    .abilityNum = 1,
    .otId = 12345,
    .conditions = {30, 5, 5, 5, 5},
    .personality = 0x84,
    .heldItem = ITEM_NONE,
    .mailNum = -1,
    .otName = _("GUY"),
    .otGender = MALE,
    .sheen = 10,
    .requestedSpecies = VAR_TEMP_2
    },

    and I also added it in the trade.h

    #define INGAME_TRADE_PERFECT 4

    Please help! Let me know if its even possible!

    Presumably ingame trades aren't coded to use variables, so you're making a trade that trades pokemon 0x4001 for pokemon 0x4002. You would have to modify the code to support variables to make it work the way you wanted.

    But a better approach would be to do something similar to this modification since that will preserve your mon's personality value, ot id, EVs, etc.
    Just add some code that improves the IVs.
     
    Presumably ingame trades aren't coded to use variables, so you're making a trade that trades pokemon 0x4001 for pokemon 0x4002. You would have to modify the code to support variables to make it work the way you wanted.

    But a better approach would be to do something similar to this modification since that will preserve your mon's personality value, ot id, EVs, etc.
    Just add some code that improves the IVs.

    the link you provided was good at trading your own pokemon back, but a code to improve the IVs? I have no idea how.
     
    You can use the "SetMonData" function to modify pretty much any aspect of a pokemon, including IVs.

    Yes, thank you, was looking into that before, i dont know how im going to call it but i will try
     
    Back
    Top