Advertisement
Guest User

Untitled

a guest
Feb 26th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.66 KB | None | 0 0
  1. # Paste this underneath the Firestone ItemHandler in PItem_ItemEffects:
  2.  
  3. def hasFantasy?(pokemon)
  4. if pokemon.isConst?(pokemon.species,PBSpecies,:SOLOSIS)
  5. return true
  6. end
  7. end
  8.  
  9. ItemHandlers::UseOnPokemon.add(:FANTASYSERUM,proc{|item,pokemon,scene|
  10. if (pokemon.isShadow? rescue false)
  11. scene.pbDisplay(_INTL("It won't have any effect."))
  12. next false
  13. end
  14. if pokemon.level < 30
  15. scene.pbDisplay(_INTL("It won't have any effect."))
  16. next false
  17. end
  18. if !hasFantasy?(pokemon)
  19. scene.pbDisplay(_INTL("It won't have any effect."))
  20. next false
  21. end
  22. newspecies=pbCheckEvolution(pokemon,item)
  23. if newspecies<=0
  24. scene.pbDisplay(_INTL("It won't have any effect."))
  25. next false
  26. else
  27. pokemon.form = 1
  28. pbFadeOutInWithMusic(99999){
  29. evo=PokemonEvolutionScene.new
  30. evo.pbStartScreen(pokemon,newspecies)
  31. evo.pbEvolution(false)
  32. evo.pbEndScreen
  33. scene.pbRefreshAnnotations(proc{|p| pbCheckEvolution(p,item)>0 })
  34. scene.pbRefresh
  35. }
  36. next true
  37. end
  38. })
  39.  
  40.  
  41.  
  42. # At the very top of "module PBEvoltion" in Pokemon_Evolution, you will see a 35 slot long list. At 31 (For others probably Custom1 by # default), add "Serum" (no quotes):
  43.  
  44. Serum = 31
  45.  
  46.  
  47. # In the list of EVONAMES=[.........], replace Custom1 or at whatever slot you put the Serum, with Serum. (make sure indexes match up,
  48. # so if you've put Serum in slot 33 or something, be sure to replace the 33rd slot in the evonames array with Serum as well)
  49.  
  50. # Underneath that, in EVOPARAM=[0,.......], put '1' in the index for Serum (Probably last line first character for you).
  51.  
  52. # Inside "def pbGetMinimumLevel(species)", you will see a big list of PBEvolution::(evolution method). Add in "PBEvolution::Serum
  53. # before the closing square bracket.
  54.  
  55. # Next, go to all the "when PBEvolution::(evolution method)" underneath "def pbMiniCheckEvolution" and paste this somewhere (Be careful
  56. # not to break other "when"s:
  57.  
  58. when PBEvolution::Serum
  59. if pokemon.level>=level
  60. return poke
  61. end
  62.  
  63.  
  64. # Find "def pbMiniCheckEvolutionItem" and replace the whole with this (or add the two lines I added in!):
  65.  
  66. def pbMiniCheckEvolutionItem(pokemon,evonib,level,poke,item)
  67. # Checks for when an item is used on the Pokémon (e.g. an evolution stone)
  68. case evonib
  69. when PBEvolution::Item
  70. return poke if level==item
  71. when PBEvolution::ItemMale
  72. return poke if level==item && pokemon.isMale?
  73. when PBEvolution::ItemFemale
  74. return poke if level==item && pokemon.isFemale?
  75. when PBEvolution::Serum
  76. return poke if item==PBItems::FANTASYSERUM
  77. end
  78. return -1
  79. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement