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

How to name a Pokemon after player name?

Zeak6464

Zeak #3205 - Discord
1,101
Posts
11
Years
  • I'm trying to give a player a pokemon named after them self, issue is it doesn't want to read \PN or $Trainer.name.

    code i tried was :
    pbAddForeignPokemon(:EEVEE,20,_I("$Trainer.name"),_I("$Trainer.name"),0)
     

    Luka S.J.

    Jealous Croatian
    1,270
    Posts
    15
    Years
  • You never insert variables into string like that. There are several options you can do though:
    1.
    Code:
    _INTL("{1}",variable)
    2.
    Code:
    "#{variable}"
     
    Last edited:
    Back
    Top