• 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!
  • Red, Hilda, Paxton, or Kellyn - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • 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.

[Scripting Question] V17 New Status Graphic Issues

  • 67
    Posts
    4
    Years
    • He/Him
    • Seen Nov 16, 2023
    I made two new statuses and they show up in battle but in my party they have the pokerus graphic even though I created the two other graphics for them in the statuses graphic in the pictures folder. Can anyone help me out with this its bugging me a bit also when I got into battle it still stays as the custom status I created because I modifed it in the icon statuses graphic.
     
    Did you change the statuses in the Pictures folder?
     
    Did you change the statuses in the Pictures folder?

    yeah I just made the image height taller and inserted my custom statuses and in the party and summary screen they show up as pokerus but in battle they show up as my custom status
     
    Did you edit both the picture "statuses.png" under "Graphics/Pictures" AND the picture "icon_statuses.png" under "Graphics/Pictures/Battles"? It sounds like you edited "icon_statuses.png" but not "statuses.png" outside of the Battle folder in Pictures.

    Yes I did I edited both pngs
     
    still showed up a pokerus on the summary and party screens though
     
    Okay, I looked at the code and I think what is happening is that the first five statuses (sleep, poison, burn, paralyze, freeze) all map to the same status numbers (1-5) in both icon_statuses.png and statuses.png, but then after that is different. Status number 6 is "badly poison" in icon_statuses and "faint" in statuses, and status 7 is your custom status in icon_statuses and "pokerus" in statuses. In other words, your custom statuses are not lined up correctly, the way that the first five statuses are.

    To line them up, what you should do is shift your two custom statuses inside "icon_statuses.png" down by 16 pixels (one icon height), and simply leave a blank spot between "badly poison" and your first custom status. Then, give them IDs of 8 and 9 rather than 7 and 8, that way it doesn't interfere with pokerus/faint in statuses.
     
    Okay, I looked at the code and I think what is happening is that the first five statuses (sleep, poison, burn, paralyze, freeze) all map to the same status numbers (1-5) in both icon_statuses.png and statuses.png, but then after that is different. Status number 6 is "badly poison" in icon_statuses and "faint" in statuses, and status 7 is your custom status in icon_statuses and "pokerus" in statuses. In other words, your custom statuses are not lined up correctly, the way that the first five statuses are.

    To line them up, what you should do is shift your two custom statuses inside "icon_statuses.png" down by 16 pixels (one icon height), and simply leave a blank spot between "badly poison" and your first custom status. Then, give them IDs of 8 and 9 rather than 7 and 8, that way it doesn't interfere with pokerus/faint in statuses.

    I did what you said but it didn't work still shows up as fnt and pkrs in the summary and party scene

    https://gyazo.com/af6abfc7554114996e295a42baf9d565

    the url is a screenshot of the statuses being spaced out in paint
     
    No, I said to space out "icon_statuses.png" inside the Pictures/Battle folder, NOT "statuses.png" in Pictures. It's the one that has the dark purple "PSN" icon in it.

    ok I did it but now when I get shocked the bleeding status shows up instead of shock the statuses in battle were fine before I spaced them out it is just the ones in party and summary screen that don't work
     
    Then, give them IDs of 8 and 9 rather than 7 and 8, that way it doesn't interfere with pokerus/faint in statuses.

    Did you follow these instructions as well? Can you send both icon_statuses.png and statuses.png, as well as a screenshot of what the PBStatuses script section looks like (or wherever you defined your new statuses in the scripts)? I want to make sure we are on the same page.

    Also, I asked you to edit the battle picture even though battles were working fine because that is the very reason that party and screen are not working. It is fine if battles break temporarily if we can ultimately get all three screens to work properly.
     
    Did you follow these instructions as well? Can you send both icon_statuses.png and statuses.png, as well as a screenshot of what the PBStatuses script section looks like (or wherever you defined your new statuses in the scripts)? I want to make sure we are on the same page.

    Also, I asked you to edit the battle picture even though battles were working fine because that is the very reason that party and screen are not working. It is fine if battles break temporarily if we can ultimately get all three screens to work properly.

    https://gyazo.com/438910895d40fc6213525f90a29552e5

    This is what I did and you only wanted me to space one icon right cause that is what I did
     
    https://gyazo.com/438910895d40fc6213525f90a29552e5

    This is what I did and you only wanted me to space one icon right cause that is what I did

    In your code, make "def PBStatuses.getName(id)" look like this:
    Code:
    def PBStatuses.getName(id)
      names = [
        _INTL("healthy"),
        _INTL("asleep"),
        _INTL("poisoned"),
        _INTL("burned"),
        _INTL("paralyzed"),
        _INTL("frozen"),
        nil,
        nil,
        _INTL("shock"),
        _INTL("bleeding")
      ]
      return names[id]
    end
    Basically add two extra "nil" statements because you want the "shock" and "bleeding" messages to skip over two spaces.

    As for the icon, what I wanted you to do was insert your shock and bleed icons to the end of statuses.png in the Pictures folder as normal (no blank space), and insert the icons with one blank icon space in icon_statuses.png in the Battle folder. Can you please actually show me what both of those pictures look like now? Like I said, I want to make sure I have not miscommunicated or you have not misunderstood.
     
    In your code, make "def PBStatuses.getName(id)" look like this:
    Code:
    def PBStatuses.getName(id)
      names = [
        _INTL("healthy"),
        _INTL("asleep"),
        _INTL("poisoned"),
        _INTL("burned"),
        _INTL("paralyzed"),
        _INTL("frozen"),
        nil,
        nil,
        _INTL("shock"),
        _INTL("bleeding")
      ]
      return names[id]
    end
    Basically add two extra "nil" statements because you want the "shock" and "bleeding" messages to skip over two spaces.

    As for the icon, what I wanted you to do was insert your shock and bleed icons to the end of statuses.png in the Pictures folder as normal (no blank space), and insert the icons with one blank icon space in icon_statuses.png in the Battle folder. Can you please actually show me what both of those pictures look like now? Like I said, I want to make sure I have not miscommunicated or you have not misunderstood.

    well nothing changed and this is what my statuses look like

    https://gyazo.com/a939f3f9672bf9c6b4754026b675a47b
     
    well nothing changed and this is what my statuses look like

    https://gyazo.com/a939f3f9672bf9c6b4754026b675a47b

    Thank you for showing me this, because now I see the problem. Are you using v17.2? If you are, then you actually need 2 blank spaces, not 1. It would be 1 space in v18 because v18 has an extra icon for toxic (dark purple PSN). Also, this is the "icon_statuses.png" picture in Pictures/Battle, NOT the "statuses.png" picture in Pictures, correct?
     
    Thank you for showing me this, because now I see the problem. Are you using v17.2? If you are, then you actually need 2 blank spaces, not 1. It would be 1 space in v18 because v18 has an extra icon for toxic (dark purple PSN). Also, this is the "icon_statuses.png" picture in Pictures/Battle, NOT the "statuses.png" picture in Pictures, correct?

    yes it is icon_statuses in Picture/Battle but the problem in party and summary screen for the statuses still remain so is there anything else you need to know about what I have in my code to help me fix it?
     
    yes it is icon_statuses in Picture/Battle but the problem in party and summary screen for the statuses still remain so is there anything else you need to know about what I have in my code to help me fix it?

    Let me summarize the three things you need to do (I know you said you have already tried them, but I will just mention them one more time):

    1. Put your shock and bleed icons right after the faint/pokerus icons in "statuses.png" in the Pictures folder. No blank spaces in between, you would just put them directly underneath.
    2. Put your shock and bleed icons TWO blank spaces (32 pixels) after the freeze icon in "icon_statuses.png" in the Pictures/Battle folder.
    3. Define shock = 8 and bleed = 9 in module PBStatuses.

    I have tested these steps on a blank v17.2 project myself, and they have worked for me. If you have done these 3 steps correctly and they still don't work, then the only other thing I can recommend is to completely DELETE your save file and try a new one. Otherwise, your project may have another script or something that is interfering with the statuses, so I can't help you any further.
     
    it wasn't working at first but I realized it wasn't because you weren't right it was because my debug console needed to have shock rearranged the same way in the module so Instead of two nils I just added placeholders in the debug so that when I self statuses myself with shocked I would actually get shocked instead of the game actually giving me pokerus and faint status
     
    Let me summarize the three things you need to do (I know you said you have already tried them, but I will just mention them one more time):

    1. Put your shock and bleed icons right after the faint/pokerus icons in "statuses.png" in the Pictures folder. No blank spaces in between, you would just put them directly underneath.
    2. Put your shock and bleed icons TWO blank spaces (32 pixels) after the freeze icon in "icon_statuses.png" in the Pictures/Battle folder.
    3. Define shock = 8 and bleed = 9 in module PBStatuses.

    I have tested these steps on a blank v17.2 project myself, and they have worked for me. If you have done these 3 steps correctly and they still don't work, then the only other thing I can recommend is to completely DELETE your save file and try a new one. Otherwise, your project may have another script or something that is interfering with the statuses, so I can't help you any further.

    So thank you so much for your patience :)
     
    Back
    Top