• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Which Pokémon Masters protagonist do you like most? Let us know by casting a vote in our Masters favorite protagonist poll here!
  • 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.

Pokedex Check & Unown Forms

Prof Oakley

JourneyofPossibilities Creator
  • 75
    Posts
    13
    Years
    I've tried googling, searching pc, scanning the wiki, so I'm sorry if I missed how to do this...

    I want to know how to have Professor Juniper check pokedex numbers for the player and how to have one of her assistants check how many forms of unown have been captured by the player as well.

    I used the phone event for Juniper (Oak before) and pasted that to the event page but I just wanted to know if there was an easier or simpler way to check the number of species caught. It's working, just I can't see the numbers after awhile because of the size of the event screen so it's a bit confusing.

    I also know I can't use that for the unown problem, I know how to check if unown has been caught but that isn't all of the forms. I have her give the player a "badge" after all 28 are captured and (like with the Professor) I'd like if she could tell the player, "Oh you've seen __ forms of unown and captured ___" and if it's 28 the badge is handed over.

    Thanks ahead of time for any help.
     
    You can make use of labels rather than using the "else" part of all the Conditional Branches. It'll make the event longer (due to all the "Jump to Label" commands), but there won't be any further intents which make the numbers go off-screen. I've attached a screenshot to demonstrate.

    As for counting all the seen forms of a species, there's no existing method to do that, but I've created this to go in v11:

    Code:
    def numFormsSeen(species)
      ret=0
      a=@formseen[species]
      for i in 0...[a[0].length,a[1].length].max
        ret+=1 if a[0][i] || a[1][i]
      end
      return ret
    end
    It goes in the script section PokeBattle_Trainer, and is called by using $Trainer.numFormsSeen(PBSpecies::UNOWN). It returns the number of forms seen, so you'll want to use pbSet(1,$Trainer.numFormsSeen(PBSpecies::UNOWN)) or something.

    However, this is only for forms seen. Even if you don't capture an Unown H, you'll still see it, and it will still be counted. For recording the forms of caught Unown, you'll need to make a new array ($Trainer.unownFormsCaught) and set $Trainer.unownFormsCaught[pokemon.form]=true when you capture an Unown (I suggest towards the end of the def pbThrowPokeBall). Then create a new method similar to the one I made above, which goes through this array and returns the number of true entries.

    I've not given you absolutely all the information you need, but I've provided most of it. I leave it to you to figure out the rest.
     
    Back
    Top