• 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] pbRegisterPartner Name Issue

  • 3
    Posts
    3
    Years
    • Seen Dec 3, 2021
    Hello, I'm hoping somebody can help me.

    So in my game, the player and their rival team up to fight a legendary Pokémon in a 2v1 battle. Everything is working perfectly, with the exception of the partner trainer's name, which is appearing in battle as the name stored in trainers.txt . Since the partner trainer is the player's rival, the name of the partner trainer should show as whatever is stored in variable-34 when the player first named the rival. I assume it doesn't work as expected for partner trainers because the script only pulls the rivals name from variable-34 when the player battles against the rival, rather than with them.

    Does anyone know if there is a way to do this?

    Many thanks!
     
    After registering, you can manually change the partner name by doing.

    Code:
    $PokemonGlobal.partner[1] = $game_variables[34]

    if the name is held in 34.

    Code:
    $PokemonGlobal.partner[1] = "Bob Dylan"

    That's how I think it works anyway.
     
    After registering, you can manually change the partner name by doing.

    Code:
    $PokemonGlobal.partner[1] = $game_variables[34]

    if the name is held in 34.

    Code:
    $PokemonGlobal.partner[1] = "Bob Dylan"

    That's how I think it works anyway.

    Thank you so much. That worked perfectly! 😊
     
    Back
    Top