• 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!
  • Cyndy, May, Hero (Conquest), or Wes - 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.

Buying Pokémon from a Mart

  • 410
    Posts
    14
    Years
    • Seen Aug 31, 2023
    Ok to be able to make Pokémon buyable I've updated the Pokémon Mart script.

    1st find
    Code:
    if quantity>=10 && isConst?(item,PBItems,:POKEBALL) &&

    then directly above it paste this code

    Code:
              if getID(PBItems,item) >= 567
                while quantity>0 do
              $game_variables[74]=getID(PBItems,item)
              $game_variables[75]=$game_variables[74]-566
              pbAddPokemon($game_variables[75],5)
              @adapter.removeItem(item)
              newquantity=quantity-1
              quantity=newquantity
              end
              end

    were 567 is the 1st pokemon in the items.txt and 566 is the last non pokemon in the items.txt

    you will need to add every pokemon into the items.txt and ensure that they are the LAST entry in that file.

    if anyone is able to improve on this please let me know
     
    Back
    Top