The RPG Maker Resource Kit

RMRK RPG Maker Creation => VX => VX Scripts Database => Topic started by: LoganF on January 29, 2012, 01:22:27 PM

Title: Random Name Generator (v1.0)
Post by: LoganF on January 29, 2012, 01:22:27 PM
Random Name Generator
Version: 1.0
Author: Logan Forrests
Date: January 29, 2012

Version History



Description


Generates random names for actors (through the Name Input Processing scene) using an algorithm which interprets a data set of given names in a particular language to provide fairly good accuracy in actual names used.

Features


Instructions

Scripts

Scripts go in the Materials section, above Main.

The "Name Input Processing" add on script should go below the "Random Name Generator" script.

Data Sets
Data set files should be saved in a .txt document. There are several links to some sample data sets below. You can make your own, however, if you decide on having your own language in which names can be created from. Simply make a .txt file with a good amount of sample (the more names, the more variation and better accuracy).

Data set files should be placed in the Data folder of the VX project. However, it is possible to specify the directory in the "Random Name Generator" script, as well as the file name of the data set you want to make use of.

Tip: You could mix and match a combination of real world languages (and maybe some fictitious ones) to create a data set which may just produce some interesting outcomes.

Script


Random Name Generator VX v1.0 (http://pastebin.com/NbVx3VUd)
Name Input Processing Add-On v1.0 (http://pastebin.com/LWNRkuHY)

Latest versions can also be found in Attachments.

Sample Data Sets

Update: 28/06/2017

The original source at ruf.rice.edu no longer provides access to the datasets. Instead, here is a link (http://generators.christopherpound.com/) directly to Chris Pound's listings for the sets. It shouldn't work any differently as before.


Credit


Name Input Processing Add-On

Random Name Generator

Should you use data sets which were originally from fictitious languages, I'm sure the creators of those languages would appreciate being credited for using their names as a basis of your randomly created ones.

Support


Support can always be found here.

Known Compatibility Issues

None currently known.

May have some issues with other scripts that modify the Scene_Name, Window_NameInput and Window_NameEdit classes.

Author's Notes


I came across the script by Alan Skorkin whilst looking for some idea on writing a decent random name generator for a project I'm working on. I figured since I'll be using it, I'd write an add-on for Name Input Processing so that others can make use of it.

It is written with a higher version of Ruby than what VX uses, so some of the code had to be edited to work properly.

The one good thing that did come out of writing this script is that I've now learned another few things about Ruby, and a few very useful method calls that the Help file fails to provide.

This script is also being written for VXA. I'll probably do a quick port over in the current version (v1.0) to get it start sometime during the week.

Restrictions

Please ensure you provide credit for the listed authors - not forgetting the ones that made fictitious languages if you use those. It was their hard work that made this script come about, and they definitely deserve to be mentioned for it. [/list]
Title: Re: Random Name Generator (v1.0)
Post by: modern algebra on January 29, 2012, 03:36:32 PM
Very cool idea Logan. Nice work!
Title: Re: Random Name Generator (v1.0)
Post by: hiromu656 on February 07, 2012, 01:45:25 AM
This is cool, that Klingon will surely come in handy. ;)