• 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] Editing Battle UI in V18 to match FRLG

Vxpor

Vxpor
  • 77
    Posts
    6
    Years
    • Seen Feb 19, 2025
    I am currently working on a Gen 3 FRLG style project and am new to scripting in v18. I am working on changing my battle UI to match that of Firered and Leafgreen. I've only encountered one problem so far, but it is pretty major. I was using Thundaga's battle UI tutorial to match up my values in the scripts, but most of it is now outdated due to his version being v17 while I'm working in v18. The one big thing that I'm stumped on is making different positions for the enemy Pokémon and the player Pokémon. In his tutorial, he uses the phrase-
    Code:
    if @showhp
    -and then does an else check. What this is supposed to do in v17 is the first script phrase after the initial-
    Code:
    if
    -is supposed to be the player's Pokémon x & y values, while the one after the else is supposed to be the enemy Pokémon's x & y values. When doing the same thing in v18, it only acknowledges the enemy values after the else and not the player's values. I've commented some things out trying to test some things, but here is what mine looks like for reference. I did this same process in a v17 project of mine and it worked just fine, I just think the way Thundaga did it in v17 works the same way anymore and I need to find a new way to make it work.
     
    Back
    Top