- 465
- Posts
- 8
- Years
- Seen Jun 17, 2024
So im working on a pokedex rework for my game (just entry page rn)
but im trying to get a toggle for shiny pokemon. nothing is wrong with triggering it, just have no check if a player has seen a shiny say bulbasaur or not seen a shiny rattata etc. left below the concept and the script parts for the shiny part.
In Pscreen_Pokedex in the inputs:
then in EliteBattle_BitmapWrapper (the pokedex entry part)
TL;DR: need to find or have a shiny seen check made, everything else seems to work.
but im trying to get a toggle for shiny pokemon. nothing is wrong with triggering it, just have no check if a player has seen a shiny say bulbasaur or not seen a shiny rattata etc. left below the concept and the script parts for the shiny part.
![[PokeCommunity.com] shiny check in pokedex(EBS) [PokeCommunity.com] shiny check in pokedex(EBS)](https://media.discordapp.net/attachments/315504146792841228/640343559517503488/unknown.png?width=917&height=687)
Spoiler:
In Pscreen_Pokedex in the inputs:
Code:
elsif Input.trigger?(Input::C) && (page==1 || newpage==1)
if $game_switches[512] || !pbHasShiny?(shinypoke) || (!pbHasShiny?(shinypoke) && $game_switches[512])
pbPlayCry(@dexlist[curindex][0])
$game_switches[512]=false
#@sprites["shiny"].visible=true
@sprites["shiny"]=IconSprite.new(0,0,@viewport)
@sprites["shiny"].setBitmap(_INTL("Graphics/Pictures/NotShiny"))
@sprites["shiny"].x=373
@sprites["shiny"].y=203
pbChangeToDexEntry(@dexlist[curindex][0])
else pbHasShiny?(shinypoke) || !$game_switches[512] || (pbHasShiny?(shinypoke) && !$game_switches[512])
pbPlayCry(@dexlist[curindex][0])
$game_switches[512]=true
#@sprites["shiny"].visible=true
@sprites["shiny"]=IconSprite.new(0,0,@viewport)
@sprites["shiny"].setBitmap(_INTL("Graphics/Pictures/IsShiny"))
@sprites["shiny"].x=373
@sprites["shiny"].y=203
pbChangeToDexEntry(@dexlist[curindex][0])
end
Code:
if $game_switches[512] || pbHasShiny?(PBSpecies.getName(species)) || (pbHasShiny?(PBSpecies.getName(species)) && $game_switches[512])
file=pbPokemonBitmapFile(species,true)
pkmnbitmap=AnimatedBitmapWrapper.new(file)
@sprites["overlay"].bitmap.blt(
204-(pkmnbitmap.width-128)/2,
#344-(pkmnbitmap.width-128)/2,
100-(pkmnbitmap.height-128)/2,
#244-(pkmnbitmap.height-128)/2,
pkmnbitmap.bitmap,pkmnbitmap.bitmap.rect)
pkmnbitmap.dispose
pbPlayCry(species)
else
file=pbPokemonBitmapFile(species,false)
pkmnbitmap=AnimatedBitmapWrapper.new(file)
@sprites["overlay"].bitmap.blt(
204-(pkmnbitmap.width-128)/2,
#344-(pkmnbitmap.width-128)/2,
100-(pkmnbitmap.height-128)/2,
#244-(pkmnbitmap.height-128)/2,
pkmnbitmap.bitmap,pkmnbitmap.bitmap.rect)
pkmnbitmap.dispose
pbPlayCry(species)
end
TL;DR: need to find or have a shiny seen check made, everything else seems to work.