Change Name from Party Menu

Change Name from Party Menu

Pokémon Essentials Version
v17.2 ✅
My original post: Cambiar Mote desde el Equipo
¡Alola!
Do you remember the practic Let´s Go Pikachu & Eevee's Nickname change from the Party? Well, You can add it to your Essentials 17.2 game!

First, we're going to the "PScreen_Party" Script, and search for:
Ruby:
      break if pkmnid<0 # Canceled
      cmdEntry   = -1
      cmdNoEntry = -1
      cmdSummary = -1
      commands = []
And under cmdSummary = -1 we add:
Ruby:
      cmdApodo   = -1
Then, search pkmn = @party[pkmnid] and under:
Ruby:
commands[cmdSummary = commands.length]   = _INTL("Summary")
We add:
Ruby:
      commands[cmdApodo = commands.length]     = _INTL("Change Name")
In the same Script, we search:
Ruby:
      if cmdSummary>=0 && command==cmdSummary
        @scene.pbSummary(pkmnid)
And we paste under it: (show printable version to avoid errors)
Ruby:
      elsif cmdApodo>=0 && command==cmdApodo
        if pkmn.isForeign?($Trainer) #checks if the pokemon isnt yours, if is that the case, shows text
          @scene.pbDisplay(_INTL("This Pokémon isn't yours.\nIts in memory of it's Original Trainer."))
        else
          @scene.pbDisplay(_INTL("Choose the Nickname that you want."))
          speciesname = PBSpecies.getName(pkmn.species)
          oldname = (pkmn.name && pkmn.name!=speciesname) ? pkmn.name : ""
            newname = pbEnterPokemonName(_INTL("{1}'s nickname?",speciesname),
                0,PokeBattle_Pokemon::NAMELIMIT,oldname,pkmn)
            if newname && newname!=""
              pkmn.name = newname
              pbRefreshSingle(pkmnid)
            elsif newname="" #if the name is null, will...
              pkmn.name = speciesname #...change its name from the species name
              pbRefreshSingle(pkmnid)
            end
        end
Will look like this: (the photos are in spanish, because are from the original post made by me)
If its from othe Trainer:


If is yours:



This is the end of the post, I hope that you enjoy it.
If is there an error, let me know it.
See you later!
Credits
@Diego Mertens
Author
Diego Mertens
First release
Last update
Rating
0.00 star(s) 0 ratings
Top