Advertisement
Guest User

Check

a guest
Aug 19th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.88 KB | None | 0 0
  1.     #Checks for Shiny
  2.     $game_variables[105]=rand(99)
  3.    
  4.     #Pokemon 1
  5.     if $game_variables[99]== 0 && $game_variables[105]>7 && $game_switches[229]==false
  6.      p=PokeBattle_Pokemon.new(@pkmn1.to_i,5,$Trainer)
  7.      p.calcStats
  8.       pbAddPokemon(p)
  9.     elsif $game_variables[99]== 0 && $game_variables[105]<7 && $game_switches[229]==false
  10.      p=PokeBattle_Pokemon.new(@pkmn1.to_i,5,$Trainer)
  11.      p.calcStats
  12.      p.makeShiny
  13.       pbAddPokemon(p)
  14.     elsif $game_variables[99]== 0 && $game_variables[105]<7 && $game_switches[229]==true  
  15.      p=PokeBattle_Pokemon.new(@pkmn1.to_i,5,$Trainer)
  16.      p.calcStats
  17.      p.makeShiny
  18.      p.makeDeltap
  19.       pbAddPokemon(p)
  20.     elsif $game_variables[99]== 0 && $game_variables[105]>7 && $game_switches[229]==true  
  21.      p=PokeBattle_Pokemon.new(@pkmn1.to_i,5,$Trainer)
  22.      p.calcStats
  23.      p.makeDeltap
  24.       pbAddPokemon(p
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement