- Pokémon Essentials Version
- v21.1 ✅
This is possibly compatible with more than just 21.1
First time using Giphy so if the video breaks im sorry!
anyways inside the script called "005_UI_Trading" at the bottom just add
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
Now in an npc add a new script and put inside it "pbTradeBackGuy()"
Or Optionally add a name for the trade-back guy like this "pbTradeBackGuy("His Name")" and boom guy will trade back whatever you trade to him (having him require an item or some money will keep him from abuse)
					
					
	
		
			First time using Giphy so if the video breaks im sorry!
anyways inside the script called "005_UI_Trading" at the bottom just add
			
				Ruby:
			
		
		
		def pbTradeBackGuy(npc_name = _INTL("Tradeback NPC"))
  # Filter: non-egg can also add && !pkmn.shadow?
  able_proc = proc { |pkmn| pkmn && !pkmn.egg? }
  # Open the party picker with the filter.
  scene  = PokemonParty_Scene.new
  screen = PokemonPartyScreen.new(scene, $player.party)
  idx = screen.pbChooseAblePokemon(able_proc, false)   # <- correct API
  return false if idx.nil? || idx < 0
  mon = $player.party[idx]
  return false if !mon || mon.egg?
  # Save original owner so we can give it back after the “tradeback”
  original_owner = mon.owner.clone
  pbStartTrade(idx, mon, mon.name, npc_name, 0)
  # Restore original owner (since it’s a trade-back)
  $player.party[idx].owner = original_owner
  return true
endNow in an npc add a new script and put inside it "pbTradeBackGuy()"
Or Optionally add a name for the trade-back guy like this "pbTradeBackGuy("His Name")" and boom guy will trade back whatever you trade to him (having him require an item or some money will keep him from abuse)
- Credits
- InTheLight
 
	


