- 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
then directly above it paste this code
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
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