• 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!
  • Serena, Kris, Dawn, Red - which Pokémon protagonist is your favorite? Let us know by voting in our grand final favorite protagonist poll!
  • PokéCommunity supports the Stop Killing Games movement. If you're a resident of the UK or EU, consider signing one of the petitions to stop publishers from destroying games. Click here for more information!
  • 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.

Changing the player's name mid-game

  • 11
    Posts
    11
    Years
    • Seen Dec 29, 2015
    Is there any way to change player's name mid game? As I have tried, the scipt
    pbTrainerName(" ")
    would also change all the info of the player including party, money... Is there any way I could change player's name without changing his/her info?
     
    ^ Can you be more specific? For example where can I put it? Sorry I'm a little new to Pokemon essential.
     
    I did it but then I received an error:
    h*ttp://i1196.photobucket.com/albums/aa412/haithuong313/xax.png
     
    I have looked into the script, and there is no built-in way to change the player's name mid-game.
    However, it should be easy to create.

    I haven't tested this, but add this script, then run "kgSetNewPlName(newname)" with newname being the new name.

    Code:
    def kgSetNewPlName(newname)
    	$Trainer.setNewName(newname)
    end
    
    class PokeBattle_Trainer
    	def setNewName(newname)
    		@name = newname
    	end
    end
     
    Thank you, but I think there are errors somewhere...
    h*ttp://i1196.photobucket.com/albums/aa412/haithuong313/xax-1.png
     
    Back
    Top