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

[Scripting Question] (Assortment) Turning off surf/bike music, Changing text color, Pokeball ding sound, Sprite repositioning

  • 55
    Posts
    6
    Years
    • Seen Mar 22, 2025
    I have several small scripting questions, so I figure it would be best to ask them all at once in one big thread.

    1 - I don't want to have surf/bike music at all in my game. How can I disable it?

    2 - I figured out how to change the general text color in battle, which is what I wanted, but it did something to the move buttons. How can I fix? https://ibb.co/KV3TZ2W

    3 - When the battle starts, I want there to be Ding sounds for the pokeballs sliding into place above the UI. I have a sound for the line sliding in, but idk what to do for the balls.

    4 - A bunch of my sprites are floating way up in the air-I believe this is a common problem, do I press auto sprite reposition? It said not to use lightly so I got scared. Also, the pokemon were implemented as 1000, 1001, 1002, etc instead of following on from the end of the galar dex, because we didnt know if it would fit. Do we really have to renumber every sprite and shiny for the autosprite position to work?

    thank you!
     
    I have several small scripting questions, so I figure it would be best to ask them all at once in one big thread.

    1 - I don't want to have surf/bike music at all in my game. How can I disable it?

    I'm not sure, as I don't read in the docs that these lines are mandatory.
    My first guess is: just remove the corresponding lines in metadata.txt?


    2 - I figured out how to change the general text color in battle, which is what I wanted, but it did something to the move buttons. How can I fix? https://ibb.co/KV3TZ2W

    You say it yourself: you changed the general text color in battle. This general color probably affect boths the level and the move names. Can you tell us what you did?


    3 - When the battle starts, I want there to be Ding sounds for the pokeballs sliding into place above the UI. I have a sound for the line sliding in, but idk what to do for the balls.

    You probably have to mess up with the class:
    Code:
    class LineupAppearAnimation < PokeBattle_Animation
    You will need the function pbSEPlay.

    4 - A bunch of my sprites are floating way up in the air-I believe this is a common problem, do I press auto sprite reposition? It said not to use lightly so I got scared. Also, the pokemon were implemented as 1000, 1001, 1002, etc instead of following on from the end of the galar dex, because we didnt know if it would fit. Do we really have to renumber every sprite and shiny for the autosprite position to work?

    This is something you have to take care in pokemon.txt / pokemonforms.txt (see the docs, find BattlerPlayerX / BattlerPlayerY / BattlerEnemyX / BattlerEnemyY). You can do this for every single sprite in the Debug > Information editors > Edit Pokemon Sprites Positions.
    As far as I can tell, the function Auto-Position All Sprites tries to find the bottom of each Pokémon in the sprite, and offsets it so it's close to the ground. If you have a "floating Pokémon" (like Crobat) then the Autoposition function will lower the sprite so that it touches the ground. So I don't suggest you use this function unless you want to spend 10 hours repositionning the sprites that you didn't want to reposition.
     
    1 - I did not expect it to work buuut...it did, gg

    2 - I went into PokeBattleConstants and changed the number values for the text colors, thats what i did

    3 - I don't know where to put it, i tried several places but it usually just plays one ding at the very beginning

    4 - I got this taken care of behind the scenes, thanks
     
    Back
    Top