Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ####################################################
- # BASE DE REGALO MISTERIOSO PARA EL SCRIPT DE REGALOS MISTERIOSOS AVANZADOS DE CLARA
- # Tómalo de base para crear o añadir nuevos eventos. Puedes entregar más de un
- # evento a la vez: solo añade más "gifts.push(...)".
- # Subelo a Pastebin o a Github como un txt y coge el enlace del archivo en RAW.
- #
- # YA NO hace falta comprobar tú mismo si el regalo se ha recibido, ni mostrar
- # el mensaje de "no se encontró ningún regalo": de eso se encarga
- # pbProcessGiftsList automáticamente a partir del `id` de cada
- # MysteryGiftCard. Solo tienes que definir los regalos que existen.
- ####################################################
- =begin
- gifts.push(MysteryGiftCard.new(
- :RegaloPichu2010,
- _INTL("Pichu conmemorativo"),
- PBSpecies::PICHU, # Solo el icono, sin tipo
- _INTL("Un Pichu especial del evento PRI2010. Conoce Voltiocambio.")
- ) {
- @pokemon = PokeBattle_Pokemon.new(:PICHU,30,$Trainer)
- @pokemon.ot = "PRI2010"
- @pokemon.trainerID = 3050
- @pokemon.setItem(:EVERSTONE)
- @pokemon.pbLearnMove(:VOLTTACKLE)
- @pokemon.pbLearnMove(:ENDEAVOR)
- @pokemon.pbLearnMove(:ENDURE)
- @pokemon.makeShiny
- @pokemon.setNature(:JOLLY)
- maxIV = 1
- @pokemon.iv[rand(6)] = 31
- [0,1,2,3,4,5].shuffle.each do |i|
- next if @pokemon.iv[i]==31
- maxIV += 1
- @pokemon.iv[i] = 31
- break if maxIV>=3
- end
- @pokemon.happiness = 100
- @pokemon.obtainMode = 4
- @pokemon.calcStats
- showHidePokemon rescue nil
- Kernel.pbAddPokemon(@pokemon,nil,true,false)
- showHidePokemon(false) rescue nil
- })
- =end
- gifts.push(MysteryGiftCard.new(
- :RegaloMonedaInicial,
- _INTL("Moneda de Inicial"),
- [PBItems::MONEDAINICIAL, :item], # Array con el icono y el tipo
- _INTL("Una Moneda de Inicial")
- ) {
- @item=PBItems::MONEDAINICIAL
- showHideItem(true) rescue nil
- Kernel.pbItemBall(@item)
- showHideItem(false) rescue nil
- })
Advertisement
Add Comment
Please, Sign In to add comment