• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • 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
    10
    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?
     
  • 11
    Posts
    10
    Years
    • Seen Dec 29, 2015
    ^ Can you be more specific? For example where can I put it? Sorry I'm a little new to Pokemon essential.
     
  • 11
    Posts
    10
    Years
    • Seen Dec 29, 2015
    I did it but then I received an error:
    h*ttp://i1196.photobucket.com/albums/aa412/haithuong313/xax.png
     

    kvagram

    Lead coder, Generation 0
  • 40
    Posts
    10
    Years
    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
     
  • 11
    Posts
    10
    Years
    • Seen Dec 29, 2015
    Thank you, but I think there are errors somewhere...
    h*ttp://i1196.photobucket.com/albums/aa412/haithuong313/xax-1.png
     
    Back
    Top