Advertisement
TechSkylander1518

PokéDex Silhouettes

Nov 11th, 2022 (edited)
1,602
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 1.07 KB | None | 0 0
  1. #If the player hasn't seen a Pokemon, the PokeDex will display their silhouette (instead of the usual ? sprite)
  2. #All changes are in UI_Pokedex_Main
  3.  
  4. #Delete this line
  5. iconspecies = nil if !$player.seen?(iconspecies)
  6. #On this line:
  7.     textpos.push([GameData::Species.get(iconspecies).name, 112, 58, 2, base, shadow]) if iconspecies
  8. #change iconspecies to $player.seen?(iconspecies), like so
  9.     textpos.push([GameData::Species.get(iconspecies).name, 112, 58, 2, base, shadow]) if $player.seen?(iconspecies)
  10.  
  11. #After this line in def setIconBitmap(species):
  12.     @sprites["icon"].setSpeciesBitmap(species, gender, form, shiny)
  13. #Add
  14.     if !$player.seen?(@sprites["pokedex"].species)
  15.       @sprites["icon"].tone = Tone.new(-255,-255,-255,255)
  16.     else
  17.       @sprites["icon"].tone = Tone.new(0,0,0,0)
  18.     end
  19.  
  20. #Typically, the PokeDex only goes up to the highest number the player has seen. To go up to the last dex number, delete this section:
  21.       loop do
  22.         break if i < 0 || !dexlist[i] || $player.seen?(dexlist[i][0])
  23.         dexlist[i] = nil
  24.         i -= 1
  25.       end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement