Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #In UI_Party, find this section:
- commands = []
- cmdSummary = -1
- cmdDebug = -1
- cmdMoves = [-1,-1,-1,-1]
- cmdSwitch = -1
- cmdMail = -1
- cmdItem = -1
- #Add this line:
- cmdRename = -1
- #Next, find this section.
- 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
- #After that /first/ end, paste this:
- commands[cmdRename = commands.length] = _INTL("Rename")
- #Now, locate this section further down:
- 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
- #After the /fourth/ end, add this:
- elsif cmdRename>=0 && command==cmdRename
- $game_variables[5]=pbMessageFreeText("#{pkmn.speciesName}'s nickname?",_INTL(""),false,Pokemon::MAX_NAME_SIZE)
- if pbGet(5)==""
- pkmn.name=pkmn.speciesName
- pbSet(5,pkmn.name)
- end
- pkmn.name=pbGet(5)
- pbDisplay(_INTL("{1} was renamed to {2}.",pkmn.speciesName,pkmn.name))
- #If you'd like to use the cursor naming instead of the keyboard, change this line:
- $game_variables[5]=pbMessageFreeText("#{pkmn.speciesName}'s nickname?",_INTL(""),false,Pokemon::MAX_NAME_SIZE)
- #to
- $game_variables[5]=pbEnterPokemonName(_INTL("{1}'s nickname?", pkmn.speciesName),
- 0, Pokemon::MAX_NAME_SIZE, "", pkmn)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement