Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ################################################################################
- #SCRIPT DE RECLUTAMIENTO
- #Créditos a Polectron
- #
- #
- #Este script permite que un Pokémon se te una a ti tras derrotarlo en
- #una batalla, al estilo de MM y el fangame Pokémon Elegy. El Pokémon solo
- #se reclutará si el interruptor escogido NO está activado. El script no tiene en
- #cuenta la rareza del Pokémon para los cálculos. El ratio de reclutamiento por
- #defecto es 25 (recomendado). Para alterar el ratio, simplemente escribe las
- #condicionales necesarias tras el ratio base.
- #
- #Más información en: https://newpokeliberty.blogspot.com
- #o en el discord https://discord.gg/8BQfSkD
- ################################################################################
- def pbRandPercentage(percentage)
- rnd = rand(100)
- return rnd >= 0 && rnd <= percentage
- end
- def pbJoinTeam(opponent, turncount)
- joinrate = 25 #ratio base
- if (pbRandPercentage(joinrate)) #probabilidad de captura
- newpk = opponent.clone
- Kernel.pbMessage(_INTL("\\l[2]¡{1} quiere unirse al equipo!", newpk.name))
- commands = []
- counter = 0
- commands.push(_INTL("Aceptar"))
- commands.push(_INTL("Rechazar"))
- command=Kernel.pbShowCommands(nil,commands,-1)
- if command == 0
- newpk.heal #cura al pokémon reclutado
- pbAddPokemonSilent(newpk)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement