• 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.
  • Dawn, Gloria, Juliana, or Summer - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • 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.

How the region map draws specific locations (like pokemon nests)

  • 1,189
    Posts
    11
    Years
    Trying to create a region map that displays some specific locations, via just x,y coordinates. I'm not exactly sure how it works. What I've gotten so far

    Spoiler:

    It displays the map itself fine, but it just tells me the area is unknown for the locations. Not really sure how the locations work exactly, just bumbling around, so any pointers would be great.
     
    It's funny because I was looking at the nests a few days ago... But the way I see it is, it reads from the encounters.dat, I don't know where your reading from... I assume, variables or hashes, not external files?

    What you're neglecting to do here, is setting map points and what is to go on this map point:
    Code:
    mapsize=pbGetMetadata(enc,MetadataMapSize)
    You've got this line still, from when you copied the nest script but you've not got anything referring to enc... You're probably going to want to change that.

    The code for us will be irrelevant because we won't have anything saved to "quest", what do you want us to do with such code?

    But back to the "Unknown Area" part... It's because of the line I mentioned earlier, basically because enc will return nothing, since it doesn't hold anything, these lines:
    Code:
        if points.length==0
          @sprites["mapbottom"].nonests=true
        end
    Will always return 0... Thus print "Area Unknown"... I will say, you'll probably want to create a new def in PokemonRegionMap, one that is noquests or something, just for completeness (unless that's just me)... If you search nonests, you will notice that if nonests==0, it will print "Area Unknown"... Which you don't want, so once you change the enc part, you should find a change in what happens.

    As I said, I only looked at it (briefly) a few days ago... I don't understand it fully... And I understand even less about the Town Map.
     
    Back
    Top