• 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 Conquest 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] Move Party HP Text

  • 22
    Posts
    8
    Years
    So im trying to move the hp text below the bar because....Well I like long names :P

    [PokeCommunity.com] Move Party HP Text

    I dont know much about scripting at all but i think im supposed to edit this?

    [PokeCommunity.com] Move Party HP Text

    Normally I'd just tweak the x and y axis numbers but I have no idea what the ''% 3d/% 3d'' stuff is... Anyone able to help?:P
     
    The elements in the string (the pink text within the quotation marks) is what is actually displayed on screen. Each element in the string gets the text that it should display from the arguments that come after it. So the first element (%3d) displays whatever the first argument is (@pokemon.hp, in this case), and the the second element of the string (another %3d) displays whatever the second argument is (@pokemon.totalhp). So what ends up being displayed (using Waspear from the image as an example), is "62/ 90".

    The following arguments in this line of code (the ones after the first closed parenthesis) determine the position of the text, and its color. The first argument (320, in this case) determines its X axis coordinats, the second determines its Y axis coordinates, and the third number determines how the text is aligned on screen (0 = to the left, 1 = to the right, 2 = centered). Then the final two arguments determine the text's base and shadow colors.

    Hopefully you can figure everything out from that.
     
    The elements in the string (the pink text within the quotation marks) is what is actually displayed on screen. Each element in the string gets the text that it should display from the arguments that come after it. So the first element (%3d) displays whatever the first argument is (@pokemon.hp, in this case), and the the second element of the string (another %3d) displays whatever the second argument is (@pokemon.totalhp). So what ends up being displayed (using Waspear from the image as an example), is "62/ 90".

    The following arguments in this line of code (the ones after the first closed parenthesis) determine the position of the text, and its color. The first argument (320, in this case) determines its X axis coordinats, the second determines its Y axis coordinates, and the third number determines how the text is aligned on screen (0 = to the left, 1 = to the right, 2 = centered). Then the final two arguments determine the text's base and shadow colors.

    Hopefully you can figure everything out from that.

    Thanks for taking the time to explain it.

    I actually did try to change those numbers first but nothing happened in-game. It did work this time so that's great! I bet I just forgot to apply the changes in the script editor again or something *sigh*.

    In hindsight, I Have no idea why I thought this would solve the problem. Only the uppermost will be able to support longer names this way. Made it only display max HP for now even though it looks kind of cursed :P
     
    Last edited:
    Back
    Top