Advertisement
TechSkylander1518

Rename from Party for Essentials v20

May 19th, 2022
632
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. MenuHandlers.add(:party_menu, :rename, {
  2.   "name"      => _INTL("Rename"),
  3.   "order"     => 55,
  4.   "condition" => proc { |screen, party, party_idx| next !party[party_idx].egg? },
  5.   "effect"    => proc { |screen, party, party_idx|
  6.     pkmn = party[party_idx]
  7.     name = pbMessageFreeText("#{pkmn.speciesName}'s nickname?",_INTL(""),false,Pokemon::MAX_NAME_SIZE)
  8.     name=pkmn.speciesName if name ==""
  9.     pkmn.name=name
  10.     screen.pbDisplay(_INTL("{1} was renamed to {2}.",pkmn.speciesName,pkmn.name))
  11.   }
  12. })
Advertisement
RAW Paste Data Copied
Advertisement