• 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!
  • 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