- Pokémon Essentials Version
- v18 ➖
Nice and easy to pop in:
In PScreen_Party, find this section:
Ruby:
commands = []
cmdSummary = -1
cmdDebug = -1
cmdMoves = [-1,-1,-1,-1]
cmdSwitch = -1
cmdMail = -1
cmdItem = -1
Ruby:
cmdRename = -1
Next, find this section.
Ruby:
commands[cmdSwitch = commands.length] = _INTL("Switch") if @party.length>1
if !pkmn.egg?
if pkmn.mail
commands[cmdMail = commands.length] = _INTL("Mail")
else
commands[cmdItem = commands.length] = _INTL("Item")
end
end
Ruby:
commands[cmdSwitch = commands.length] = _INTL("Switch") if @party.length>1
if !pkmn.egg?
if pkmn.mail
commands[cmdMail = commands.length] = _INTL("Mail")
else
commands[cmdItem = commands.length] = _INTL("Item")
end
commands[cmdRename = commands.length] = _INTL("Rename")
end
Now, locate this section further down:
Ruby:
if pbConfirm(_INTL("Would you like to switch the two items?"))
newpkmn.setItem(item)
pkmn.setItem(newitem)
@scene.pbClearSwitching
pbRefresh
pbDisplay(_INTL("{1} was given the {2} to hold.",newpkmn.name,itemname))
pbDisplay(_INTL("{1} was given the {2} to hold.",pkmn.name,newitemname))
break
end
end
end
end
Ruby:
elsif cmdRename>=0 && command==cmdRename
species=PBSpecies.getName(pkmn.species)
$game_variables[5]=Kernel.pbMessageFreeText("#{species}'s nickname?",_INTL(""),false,15)
if pbGet(5)==""
pkmn.name=PBSpecies.getName(pkmn.species)
pbSet(5,pkmn.name)
end
pkmn.name=pbGet(5)
pbDisplay(_INTL("{1} was renamed to {2}.",species,pkmn.name))
If you'd like to use the cursor naming instead of the keyboard, use this code instead:
Ruby:
elsif cmdRename>=0 && command==cmdRename
species=PBSpecies.getName(pkmn.species)
pbTextEntry("#{species}'s nickname?",0,15,5)
if pbGet(5)==""
pkmn.name=PBSpecies.getName(pkmn.species)
pbSet(5,pkmn.name)
end
pkmn.name=pbGet(5)
pbDisplay(_INTL("{1} was renamed to {2}.",species,pkmn.name))
I've done this without any restrictions apart from the egg, because I think the trend of not naming Shadow/Foreign Pokemon is dumb. But you could easily implement that by changing this:
Ruby:
commands[cmdSwitch = commands.length] = _INTL("Switch") if @party.length>1
if !pkmn.egg?
if pkmn.mail
commands[cmdMail = commands.length] = _INTL("Mail")
else
commands[cmdItem = commands.length] = _INTL("Item")
end
commands[cmdRename = commands.length] = _INTL("Rename")
end
Ruby:
commands[cmdSwitch = commands.length] = _INTL("Switch") if @party.length>1
if !pkmn.egg?
if pkmn.mail
commands[cmdMail = commands.length] = _INTL("Mail")
else
commands[cmdItem = commands.length] = _INTL("Item")
end
if !pkmn.isForeign?($Trainer) && !pkmn.isShadow?
commands[cmdRename = commands.length] = _INTL("Rename")
end
end
- Credits
-
Credits to TechSkylander1518, please!