• 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.
  • 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!
  • Akari, Selene, Mint, Solana - 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.

Storing/calling the player's name so it can be temporarily changed

  • 132
    Posts
    10
    Years
    Quick question: How do I store the trainer's name as a variable so I can change it temporarily then call it back in later?

    This is a bad example, but it's the layout I'm going for:

    original name=$game_variables[36]
    pbTrainerName("Temporary Name")
    pbTrainerName(pbGet(36))

    which I'm sure is majorly off, but again that's what my goal is.
    Thanks!
     
    Stores the player name and replace it.
    Code:
    $game_variables[36]=$Trainer.name
    pbTrainerName("Temporary Name")

    Returnes the players name
    Code:
    $Trainer.name=$game_variables[36]
     $game_variables[36]=0

    *This is Optional*
    Spoiler:
     
    Back
    Top