Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. Add at the end of PokeBattle_Battle:
  2. ### Wild pokemon drops item if defeated
  3. def pbDropItem (i)
  4. if rand(100)>50 && @battlers[i].item!=0 && !@opponent
  5. $PokemonBag.pbStoreItem(@battlers[i].item)
  6. pbDisplay(_INTL("{1} picked up {2} from the pokemon!", $Trainer.name, PBItems.getName(@battlers[i].item)))
  7. end
  8. end
  9. end
  10.  
  11. Put this in the pbGainExp section in PokeBattle_Battle:
  12. # Finding all moves learned at this level
  13. movelist=thispoke.getMoveList
  14. for k in movelist
  15. if k[0]==thispoke.level # Learned a new move
  16. pbLearnMove(j,k[1])
  17. end
  18. end
  19. end
  20. end
  21. end
  22. end
  23. end
  24. end
  25. pbDropItem (i)
  26. # Now clear the participants array
  27. @battlers[i].participants=[]
  28. end
  29. end
  30. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement