- 56
- Posts
- 5
- Years
- Texas
- Seen Nov 22, 2023
In my game, the Pokedex is not important. For the sake of conciseness, I'd like to add the Dex as a clickable option in the Pokegear. How can I do that?
In my game, the Pokedex is not important. For the sake of conciseness, I'd like to add the Dex as a clickable option in the Pokegear. How can I do that?
cmdJukebox = -1
cmdPokedex = -1
commands[cmdJukebox = commands.length] = ["jukebox",_INTL("Jukebox")]
if $Trainer.has_pokedex && $Trainer.pokedex.accessible_dexes.length > 0
commands[cmdPokedex = commands.length] = ["pokédex",_INTL("Pokédex")]
end
elsif cmdJukebox>=0 && cmd==cmdJukebox
pbFadeOutIn {
scene = PokemonJukebox_Scene.new
screen = PokemonJukeboxScreen.new(scene)
screen.pbStartScreen
}
elsif cmdPokedex>=0 && cmd==cmdPokedex
pbPlayDecisionSE
if Settings::USE_CURRENT_REGION_DEX
pbFadeOutIn {
scene = PokemonPokedex_Scene.new
screen = PokemonPokedexScreen.new(scene)
screen.pbStartScreen
}
else
if $Trainer.pokedex.accessible_dexes.length == 1
$PokemonGlobal.pokedexDex = $Trainer.pokedex.accessible_dexes[0]
pbFadeOutIn {
scene = PokemonPokedex_Scene.new
screen = PokemonPokedexScreen.new(scene)
screen.pbStartScreen
}
else
pbFadeOutIn {
scene = PokemonPokedexMenu_Scene.new
screen = PokemonPokedexMenuScreen.new(scene)
screen.pbStartScreen
}
end
end
end