#################################################### # 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. #################################################### 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 }) gifts.push(MysteryGiftCard.new( :RegaloBici, _INTL("Masterball"), [PBItems::MASTERBALL, :item], # Array con el icono y el tipo _INTL("Una Masterball") ) { @item=PBItems::MASTERBALL showHideItem(true) rescue nil Kernel.pbItemBall(@item) showHideItem(false) rescue nil })