Thread: [Question] Some questions
View Single Post
  #15    
Old April 10th, 2013, 04:40 AM
Ramond Hikari's Avatar
Ramond Hikari
- Lonely Shooting Star -
 
Join Date: Oct 2011
Location: Vietnam
Gender: Male
Nature: Lonely
Quote:
Originally Posted by FL . View Post
Try to change

Code:
pbFadeOutIn(99999) {
scene=PokemonPokedexScene.new
screen=PokemonPokedex.new(scene)
screen.pbStartScreen
@scene.pbRefresh
@scene.pbDrawPanels(commands)
}
to

Code:
        if DEXDEPENDSONLOCATION
          pbFadeOutIn(99999) {
             scene=PokemonPokedexScene.new
             screen=PokemonPokedex.new(scene)
             screen.pbStartScreen
             @scene.pbRefresh
          }
        else
          if $PokemonGlobal.pokedexViable.length==1
            $PokemonGlobal.pokedexDex=$PokemonGlobal.pokedexViable[0]
            $PokemonGlobal.pokedexDex=-1 if $PokemonGlobal.pokedexDex==$PokemonGlobal.pokedexUnlocked.length-1
            pbFadeOutIn(99999) {
               scene=PokemonPokedexScene.new
               screen=PokemonPokedex.new(scene)
               screen.pbStartScreen
               @scene.pbRefresh
            }
          else
            pbLoadRpgxpScene(Scene_PokedexMenu.new)
          end
        end
Thanks, FL!
I have added pbSetViableDexes after endscene=true, then it works perfectly!
__________________


Reply With Quote