• 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!
  • Our weekly protagonist poll is now up! Vote for your favorite Trading Card Game 2 protagonist in the poll by clicking 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.

[Custom Feature Question] Images on REGION MAP (HELP!!)

  • 163
    Posts
    8
    Years
    • Seen Feb 15, 2025
    Very good.

    As CharizardThree3 asked , I decided to share this script that is not complete. In fact, it has an important error that I don't know how to solve.
    Maybe some of you can do it, you are much more expert than me.

    It is far from working well and being complete. As I am mixing two different scripts it is difficult for me to come up with a solution and probably many things in the script that I share do not work very well and honestly ... I do not know!

    But I am sure that here there are many more people who master this better and can help!

    What is this?


    Basically, what I am trying to do is combine the original region map with the BW version, in that way we can show images when selected
    one of the points of the map, to be able to give information, show photographs, etc. (Very much like LETS GO)

    How is it used?


    I replace the original REGION MAP with this...

    Spoiler:

    Then in SETTINGS, we must put this.

    Code:
    #===============================================================================
    # € Region map info 
    #===============================================================================
    # Place description (City name, description)
    PLACEDESC = [
    ["PUEBLO PALETA", ""],
    ["CIUDAD VERDE", ""],
    ["CIUDAD PLATEADA", ""],
    ]
    
    # Select the icon picture in mapIconsSel
    # that will be showed when the place is selected
    
    PLACEICON = [
    ["PUEBLO PALETA",1],
    ["CIUDAD VERDE",2],
    ["CIUDAD PLATEADA",3],
    ["CIUDAD CELESTE",4],
    ["CIUDAD CARMIN",5],
    ["PUEBLO LAVANDA",6]
    ]
    
    # Point of interests (max 6)
    PLACEINTEREST = [
    ["PUEBLO PALETA", [""]],
    ["CIUDAD VERDE", ["", ""]],
    ]

    PLACEDESC & PLACEINTEREST : In my case I am not using them, because the information already comes in the image that I designed ...

    PLACEICON: This represents the image we will show. The method takes advantage of the BW map icon change function to display an image.
    If the point on the map has that name, it will show the "part 1" of the image.


    Well, finally we should use these graphics and put them on Graphics/Pictures/Townmap
    next to all other region map graphics if they are outside the Townmap folder
    https://drive.google.com/open?id=1pPvbeslJH9zC4B9UaFSYN2vyF1UZ9diN

    Why doesn't it work quite well?



    1. I don't master scripting very well, therefore the position in which the image is displayed changes completely
    depending on the position in which you are on the map.

    It should look like this ...

    [PokeCommunity.com] Images on REGION MAP (HELP!!)



    But sometimes it looks like this ...

    [PokeCommunity.com] Images on REGION MAP (HELP!!)


    And others like this...

    [PokeCommunity.com] Images on REGION MAP (HELP!!)


    ...depending on where my character is.

    2. This has made it very difficult to establish the size of the sections of the image BACKINFO (With the sections 1,2,3,4, etc)., given
    I never know where they are going to show.

    If anyone thinks it can help with this, welcome : D
     
    Last edited:
    ok, I think thanks to the B&W script I did it, but I have a little problem ...

    The cursor and the position of the player are superimposed on the image ...

    [PokeCommunity.com] Images on REGION MAP (HELP!!)


    Anyone know how I can place them behind? : D

    Hehehe :C
     
    Thanks! I will take a look at the problems!
    BTW what is the resolution of the map required for this? The default Essentials one or the BW one?
     
    Last edited:
    so while im not a massive scripter myself, i seem to have found your issue with the image moving wherever the player is; seems you either left in or forgot to # out a bit that mentions the location for the x of the sprite;

    Code:
    mapdesc=""
        mapinterest=[]
        placeicon=-1
        for i in 0...PLACEDESC.length
        mapdesc=PLACEDESC[i][1] if @sprites["mapbottom"].maplocation==PLACEDESC[i][0]
        end
        for i in 0...PLACEINTEREST.length
        mapinterest=PLACEINTEREST[i][1] if @sprites["mapbottom"].maplocation==PLACEINTEREST[i][0]
        end
        for i in 0...PLACEICON.length
        placeicon=(PLACEICON[i][1]-1) if @sprites["mapbottom"].maplocation==PLACEICON[i][0]
        end
    
        @sprites["mapsel"].src_rect.set(0,@sprites["mapsel"].bitmap.width*placeicon,
        @sprites["mapsel"].bitmap.width,@sprites["mapsel"].bitmap.width)
        @sprites["mapsel"].visible=(@sprites["mapbottom"].maplocation=="") ? false : true
        @sprites["mapsel"].x=-SQUAREWIDTH/2+(@mapX*SQUAREWIDTH)+(Graphics.width-@sprites["map"].bitmap.width)/2-327
    about line 200 the last X bit should be hashed out; guessing it was meant to be and you just skipped over it ^^ does show the grey bar of the BACKINFO however; so maybe change the x to be like minus some numbers if need be.

    did some testing also (while mine is much more cut up than yours) seems to fix the image being behind the cursor and stuff (since it was counted as one of them?) but might be wrong
     
    Last edited:
    so while im not a massive scripter myself, i seem to have found your issue with the image moving wherever the player is; seems you either left in or forgot to # out a bit that mentions the location for the x of the sprite;

    Code:
    mapdesc=""
        mapinterest=[]
        placeicon=-1
        for i in 0...PLACEDESC.length
        mapdesc=PLACEDESC[i][1] if @sprites["mapbottom"].maplocation==PLACEDESC[i][0]
        end
        for i in 0...PLACEINTEREST.length
        mapinterest=PLACEINTEREST[i][1] if @sprites["mapbottom"].maplocation==PLACEINTEREST[i][0]
        end
        for i in 0...PLACEICON.length
        placeicon=(PLACEICON[i][1]-1) if @sprites["mapbottom"].maplocation==PLACEICON[i][0]
        end
    
        @sprites["mapsel"].src_rect.set(0,@sprites["mapsel"].bitmap.width*placeicon,
        @sprites["mapsel"].bitmap.width,@sprites["mapsel"].bitmap.width)
        @sprites["mapsel"].visible=(@sprites["mapbottom"].maplocation=="") ? false : true
        @sprites["mapsel"].x=-SQUAREWIDTH/2+(@mapX*SQUAREWIDTH)+(Graphics.width-@sprites["map"].bitmap.width)/2-327
    about line 200 the last X bit should be hashed out; guessing it was meant to be and you just skipped over it ^^ does show the grey bar of the BACKINFO however; so maybe change the x to be like minus some numbers if need be.

    did some testing also (while mine is much more cut up than yours) seems to fix the image being behind the cursor and stuff (since it was counted as one of them?) but might be wrong

    My God, apparently it works... XD I will continue doing some tests, especially with the design of the image, to have the correct dimensions. (Yes you are a greeeat scripter)
     
    My God, apparently it works... XD I will continue doing some tests, especially with the design of the image, to have the correct dimensions. (Yes you are a greeeat scripter)

    Hey Can you tell me about the Resolution of map? Is it the default map Resolution or the Klein's BW Map's Resolution?(512x336)?
     
    Back
    Top