• 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.
  • Dawn, Gloria, Juliana, or Summer - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • 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] Issues with party menu

  • 4
    Posts
    6
    Years
    • Seen Feb 17, 2023
    Hey all!
    So, I'm working in a project and would love to use that oldschool-styled party menu, just like it was in RBYGSC. So all of the party would be shown in a list format, instead of the 2x3 one.
    It went just fine and I was able to reposition all of the info I need... Except for one: the HP bar.

    From what I got, it seems that it's position is set on PScreen_Party, around line 196:

    @hpbgsprite = ChangelingSprite.new(0,0,viewport)
    @hpbgsprite.z = self.z+1
    @hpbgsprite.addBitmap("able","Graphics/Pictures/Party/overlay_hp_back")
    @hpbgsprite.addBitmap("fainted","Graphics/Pictures/Party/overlay_hp_back_faint")
    @hpbgsprite.addBitmap("swap","Graphics/Pictures/Party/overlay_hp_back_swap")

    @hpbgsprite = ChangelingSprite.new(0,0,viewport) seems to be what I need to change, but I tried to change the numbers before ',viewport', yet the HP overlay just doesn't move... What am I doing wrong?

    Thanks is advance!
     
    Hey all!
    So, I'm working in a project and would love to use that oldschool-styled party menu, just like it was in RBYGSC. So all of the party would be shown in a list format, instead of the 2x3 one.
    It went just fine and I was able to reposition all of the info I need... Except for one: the HP bar.

    From what I got, it seems that it's position is set on PScreen_Party, around line 196:



    @hpbgsprite = ChangelingSprite.new(0,0,viewport) seems to be what I need to change, but I tried to change the numbers before ',viewport', yet the HP overlay just doesn't move... What am I doing wrong?

    Thanks is advance!

    Did you try in other place in the same script? Like:

    Code:
        if @hpbgsprite && [email protected]?
          @hpbgsprite.visible = ([email protected]? && !(@text && @text.length>0))
          if @hpbgsprite.visible
            if self.preselected || (self.selected && @switching); @hpbgsprite.changeBitmap("swap")
            elsif @pokemon.fainted?;                              @hpbgsprite.changeBitmap("fainted")
            else;                                                 @hpbgsprite.changeBitmap("able")
            end
    [COLOR="Red"]        @hpbgsprite.x     = self.x+96
            @hpbgsprite.y     = self.y+50[/COLOR]
            @hpbgsprite.color = self.color
          end
        end
     
    Did you try in other place in the same script? Like:

    Code:
        if @hpbgsprite && [email protected]?
          @hpbgsprite.visible = ([email protected]? && !(@text && @text.length>0))
          if @hpbgsprite.visible
            if self.preselected || (self.selected && @switching); @hpbgsprite.changeBitmap("swap")
            elsif @pokemon.fainted?;                              @hpbgsprite.changeBitmap("fainted")
            else;                                                 @hpbgsprite.changeBitmap("able")
            end
    [COLOR="Red"]        @hpbgsprite.x     = self.x+96
            @hpbgsprite.y     = self.y+50[/COLOR]
            @hpbgsprite.color = self.color
          end
        end

    It worked perfectly. Thank you! :)
     
    Back
    Top