KMarioGC

Gadir DX 2 mystery gift

Aug 30th, 2026 (edited)
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.89 KB | None | 0 0
  1. ####################################################
  2. # BASE DE REGALO MISTERIOSO PARA EL SCRIPT DE REGALOS MISTERIOSOS AVANZADOS DE CLARA
  3. # Tómalo de base para crear o añadir nuevos eventos. Puedes entregar más de un
  4. # evento a la vez: solo añade más "gifts.push(...)".
  5. # Subelo a Pastebin o a Github como un txt y coge el enlace del archivo en RAW.
  6. #
  7. # YA NO hace falta comprobar tú mismo si el regalo se ha recibido, ni mostrar
  8. # el mensaje de "no se encontró ningún regalo": de eso se encarga
  9. # pbProcessGiftsList automáticamente a partir del `id` de cada
  10. # MysteryGiftCard. Solo tienes que definir los regalos que existen.
  11. ####################################################
  12.  
  13. =begin
  14. gifts.push(MysteryGiftCard.new(
  15. :RegaloPichu2010,
  16. _INTL("Pichu conmemorativo"),
  17. PBSpecies::PICHU, # Solo el icono, sin tipo
  18. _INTL("Un Pichu especial del evento PRI2010. Conoce Voltiocambio.")
  19. ) {
  20. @pokemon = PokeBattle_Pokemon.new(:PICHU,30,$Trainer)
  21. @pokemon.ot = "PRI2010"
  22. @pokemon.trainerID = 3050
  23. @pokemon.setItem(:EVERSTONE)
  24. @pokemon.pbLearnMove(:VOLTTACKLE)
  25. @pokemon.pbLearnMove(:ENDEAVOR)
  26. @pokemon.pbLearnMove(:ENDURE)
  27. @pokemon.makeShiny
  28. @pokemon.setNature(:JOLLY)
  29. maxIV = 1
  30. @pokemon.iv[rand(6)] = 31
  31. [0,1,2,3,4,5].shuffle.each do |i|
  32. next if @pokemon.iv[i]==31
  33. maxIV += 1
  34. @pokemon.iv[i] = 31
  35. break if maxIV>=3
  36. end
  37. @pokemon.happiness = 100
  38. @pokemon.obtainMode = 4
  39. @pokemon.calcStats
  40. showHidePokemon rescue nil
  41. Kernel.pbAddPokemon(@pokemon,nil,true,false)
  42. showHidePokemon(false) rescue nil
  43. })
  44. =end
  45.  
  46. gifts.push(MysteryGiftCard.new(
  47. :RegaloMonedaInicial,
  48. _INTL("Moneda de Inicial"),
  49. [PBItems::MONEDAINICIAL, :item], # Array con el icono y el tipo
  50. _INTL("Una Moneda de Inicial")
  51. ) {
  52. @item=PBItems::MONEDAINICIAL
  53.  
  54. showHideItem(true) rescue nil
  55. Kernel.pbItemBall(@item)
  56. showHideItem(false) rescue nil
  57.  
  58. })
Advertisement
Add Comment
Please, Sign In to add comment