Advertiser Content

JoelMatthews

Trans Dude with a Chill 'Tude

Age 19
Male
USA
Seen October 9th, 2019
Posted September 2nd, 2019
22 posts
1 Years
Cute names! I assume your game is taking place in Japan? (I so badly wanna call her Pokitan-chan...)

I found a way to do this that works quite well. find this bit of code inside PSystem_Utilities:

Spoiler:

def pbSuggestTrainerName(gender)
  userName = pbGetUserName()
  userName = userName.gsub(/\s+.*$/,"")
  if userName.length>0 && userName.length<7
    userName[0,1] = userName[0,1].upcase
    return userName
  end
  userName = userName.gsub(/\d+$/,"")
  if userName.length>0 && userName.length<7
    userName[0,1] = userName[0,1].upcase
    return userName
  end
  owner = MiniRegistry.get(MiniRegistry::HKEY_LOCAL_MACHINE,
     "SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion","RegisteredOwner","")
  owner = owner.gsub(/\s+.*$/,"")
  if owner.length>0 && owner.length<7
    owner[0,1] = owner[0,1].upcase
    return owner
  end
  return getRandomNameEx(gender,nil,1,PLAYERNAMELIMIT)
end


All you gotta do is replace it with this instead.

Spoiler:

def pbSuggestTrainerName(gender)
  if gender==0
    return "Pokisuke"
  elsif gender==1
    return "Pokitan"
  end
end


Now instead of defaulting to the name of the computer, it will default to the names described here. Just make sure the player defines their gender before you run pbTrainerName.
Advertiser Content