• 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!
  • Dawn, Gloria, Juliana, or Summer - 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] Setting different x positions for a Pokémon icon sprite on storage system for different species

HM100

HM100 the Techno
  • 108
    Posts
    8
    Years
    • Seen Jan 30, 2025
    Its me Mario!
    Hello all. I'm having an issue. Currently, I'm about to change a Pokémon's icon position in the Storage system but only for a specific Species such as when its number is 1050 or above. Any ideas how to fix it? I'm using Essentials 16.2
     
    Last edited:
    You need to make some edition in 'Pokemon_Sprites' script, into 'class PokemonIconSprite < SpriteWrapper'. What I did when I used Full Melmetal's icon sprite, maybe can help to undestand what to do:
    Spoiler:
     
    I have already done everything and it fixed everything bar the icon in the Storage System. Unfortunately it must require editions in the storage system script section since it is the x value it has to be edited. I will give screenshots soon for the bug. All you sent me to do are done already. I will give you screenshots for comparison between alignments of Melmetal's sprite. On the 3rd pic, ignore Solgaleo Battler sprite and note that Melmetal's icon should have been shifted to the left by 8 pixels compared to other sprites
     

    Attachments

    • [PokeCommunity.com] Setting different x positions for a Pokémon icon sprite on storage system for different species
      Party Screen Correct.png
      35.4 KB · Views: 24
    • [PokeCommunity.com] Setting different x positions for a Pokémon icon sprite on storage system for different species
      Pokedex Correct.png
      24.9 KB · Views: 21
    • [PokeCommunity.com] Setting different x positions for a Pokémon icon sprite on storage system for different species
      Storage System Incorrect.png
      37.4 KB · Views: 24
    Last edited:
    For Pokémon Storage, I edited inside 'PScreen_PokemonStorage' script:

    Spoiler:

    Maybe can help you too.
     
    For Pokémon Storage, I edited inside 'PScreen_PokemonStorage' script:

    Spoiler:

    Maybe can help you too.


    Yes but unfortunately I need this for specific species only, not for all since the it will break existing icon's position
     
    So you need to find or create some code to return true if pokedexNumber>x or something like. I did a code about footsprint, adding each pokémon (name), maybe (unfortunately) you need to do that. Here the link if you want:

    https://www.pokecommunity.com/posts/10029025

    Good luck!

    Well, I intended to do that and it seems it got fixed well bar when the sprite is grabbed
     
    Last edited:
    Back
    Top