View Single Post
  #6    
Old November 26th, 2012 (4:27 AM).
Maruno's Avatar
Maruno Maruno is offline
Lead Dev of Pokémon Essentials
     
    Join Date: Jan 2008
    Location: England
    Posts: 5,189
    It isn't.

    When you see a Pokémon, you also record its form and mark that as seen too. This allows it to be viewed in the Forms page of the Pokédex. In your case, you would want every form to be available. The Debug option "Fill boxes" does this; here's the code it uses (slightly tweaked for your purposes):

    Code:
    $Trainer.formseen=[] if !$Trainer.formseen
    $Trainer.formlastseen=[] if !$Trainer.formlastseen
    for i in 1..PBSpecies.maxValue
      $Trainer.seen[i]=true
      $Trainer.formlastseen[i]=[] if !$Trainer.formlastseen[i]
      $Trainer.formlastseen[i]=[0,0] if $Trainer.formlastseen[i]==[]
      if !$Trainer.formseen[i]
        $Trainer.formseen[i]=[[],[]]
      end
      for j in 0..27
        $Trainer.formseen[i][0][j]=true
        $Trainer.formseen[i][1][j]=true
      end
    end
    This is what you should use.
    __________________
    Go to the Pokémon Essentials Wiki

    | Downloads | Tutorials | Fangames |
    | All Animations Project |

    Follow me on Twitter: @maruno42


    Reply With Quote