• 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.

[Script] HealSpots

  • 15
    Posts
    3
    Years
    • Seen Dec 8, 2022
    Do healspots have to work with a Pokemon Center or can they work with the out of center heal in Pokeemerald? I have one set up, it is in the table that lists all the healspots, but when I use it with the out of center heal script and then faint all my Pokemon, it sends me all the way back to Littleroot.
     
    Do healspots have to work with a Pokemon Center or can they work with the out of center heal in Pokeemerald? I have one set up, it is in the table that lists all the healspots, but when I use it with the out of center heal script and then faint all my Pokemon, it sends me all the way back to Littleroot.
    Are you sure that you set up the heal point correctly?
    You have to:
    -Define it in include/constants/heal_locations.h
    -Add it to sHealLocations in src/data/heal_locations.h
    -Add it to sMapHealLocations in src/region_map.c
    Make sure you set the right MAP_GROUP and MAP_NUM in the last 2 too.
     
    Are you sure that you set up the heal point correctly?
    You have to:
    -Define it in include/constants/heal_locations.h
    -Add it to sHealLocations in src/data/heal_locations.h
    -Add it to sMapHealLocations in src/region_map.c
    Make sure you set the right MAP_GROUP and MAP_NUM in the last 2 too.

    I had already added it to the first two, I think it does automatically. When I add them to the end of the list in src/region_map.c it gives me this error and I don't know what it means:
     

    Attachments

    • [PokeCommunity.com] HealSpots
      Error.PNG
      19.3 KB · Views: 10
    I had already added it to the first two, I think it does automatically. When I add them to the end of the list in src/region_map.c it gives me this error and I don't know what it means:
    It means that you don't have a Map Section with that constant label.
    Normally, those are defined in include/constants/region_map_sections.h so go check that out.

    Also, you mention that you "added it to the first two", but probably also do need to add your heal location to sMapHealLocations, like I said before.
     
    It means that you don't have a Map Section with that constant label.
    Normally, those are defined in include/constants/region_map_sections.h so go check that out.

    Also, you mention that you "added it to the first two", but probably also do need to add your heal location to sMapHealLocations, like I said before.

    I will have to check the include section, but this error pops up when I add the to the sMapHealLocations list in src/region_map.c
     
    I will have to check the include section, but this error pops up when I add the to the sMapHealLocations list in src/region_map.c

    After checking the include section, I realized I was using the wrong letter case. It builds without errors now, but after healing at the desired location and fainting all my pokemon, it takes me back to Oldale Town, where I healed right before getting the running shoes.
     
    After checking the include section, I realized I was using the wrong letter case. It builds without errors now, but after healing at the desired location and fainting all my pokemon, it takes me back to Oldale Town, where I healed right before getting the running shoes.
    The last used heal location is stored in the savefile, so I have to ask; are you trying to update its value in an existing savefile, or did you start a new one after adding your heal location?
    If it's the former, you should probably try starting a clean save and try again.

    Other than that, I can't think of what could be going wrong, personally.
     
    The last used heal location is stored in the savefile, so I have to ask; are you trying to update its value in an existing savefile, or did you start a new one after adding your heal location?
    If it's the former, you should probably try starting a clean save and try again.

    Other than that, I can't think of what could be going wrong, personally.

    I will have to start a clean save, thank you so much for the help!
     
    Back
    Top