• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Seen/Own all Pokemon

Rayd12smitty

Shadow Maker
645
Posts
12
Years
    • Seen Feb 21, 2016
    Hi I have a quick question again.

    I want to make an event that makes it so that the player can see every pokemon in the pokedex. Is there a simple script command that makes it so that all pokemon are owned? If not, is there one that gives the player every pokemon?
     

    venom12

    Pokemon Crystal Rain Relased
    476
    Posts
    17
    Years
    • Age 33
    • Seen Dec 28, 2023
    Yeah it is possible, just use.

    Code:
    for i in 1..PBSpecies.maxValue
    $Trainer.seen[i]=true
    end
     

    Rayd12smitty

    Shadow Maker
    645
    Posts
    12
    Years
    • Seen Feb 21, 2016
    Yeah it is possible, just use.

    Code:
    for i in 1..PBSpecies.maxValue
    $Trainer.seen[i]=true
    end

    Sorry I should have mentioned my script interpreting level is below newborn baby. Could you explain more. I don't just copy what you put as an event script do I? Or do I have to change the i variable?
     

    venom12

    Pokemon Crystal Rain Relased
    476
    Posts
    17
    Years
    • Age 33
    • Seen Dec 28, 2023
    just use on event call script
     

    Rayd12smitty

    Shadow Maker
    645
    Posts
    12
    Years
    • Seen Feb 21, 2016
    Thank you. I finally got to my computer. That worked perfectly. I didn't think it could be so simple :D
     

    Maruno

    Lead Dev of Pokémon Essentials
    5,285
    Posts
    16
    Years
  • 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.
     
    Back
    Top