Random Name Generator - For a fantasy RPG forum

free web hosting
Free Web Hosting > Computers & Tech > Programming > Scripting > PHP

Random Name Generator - For a fantasy RPG forum

Vyoma
Well, I did this particular piece of coding a few days back, and I forgot to display it to you all here at AstaHost.

I have just started a fantasy RPG forum. The naming rules are pretty strict because it has to be based on a construted langage called Pasen. No matter how much I explained, I thought, it would be hard for a newbie to understand the syllable formation constraints. Hence, I wrote a script and put it at my Drupal powered site, that generates random names for the four races for both genders.

http://www.WiseTome.com/name-generator-for-chaos-and-order

I wrote the code in PHP (took 3 hours), but most of the time went into tweaking the probability constraints.
So, what do you guys think?

Reply

Arbitrary
Those are interesting names Seems very fitting for an RPG...can't explain exactly why.. Might I ask exactly what the rules to creating character names are? I can guess at a couple of rules though:
--Giants, regardless of male or female, end in either 'k' or 'g'
--It seems like all characters have at least two vowels in their name.

Reply

Vyoma
I would be glad to explain, Aribitrary. As I said in the previous post, all the names are affected by the language of Pasen. The language is actually pretty simple (because I constructed it, tongue.gif), and details on it can be found in Blog Post 1,Blog Post 2,Blog Post 3).

Basically, it follows a syllable pattern of:
Syllable pattern:
[C]V[E]
[C] Optional ordinary consonant: k | t | d | n | p | m | r | l | w | s
V Mandatory vowel: a | i | u | e | o
[E] Optional ending consonant: n | m | r | l | s

Addtionally here are some basic pointers to the names in realm of Chaos And Order:
  • Names may not end with the following sounds: |e| |i| |u| |er|
  • The syllables must be formed of the following consonants: |k| |t| |d| |n| |p| |m| |r| |l| |w| |s| |g|
  • The syllables must be formed of the following vowel sounds: |a| |i| |u| |e| |o|

So, that is it. All names in the name generator are formed of two syllables. So, it goes something like this:
C1V1E1[C2]V2E2
But for Female Elf: [C1]V1E1[C2]V2E2

That is it, now, for actually differentiating between the different Races, I just took different subsets of the whole consonant set allowed in that position and also the vowel set, and just tweaked on the probability of few of the consonants. And usually, the male and female names are almost similar, except for the probability distribution of the vowels.

 

 

 


Reply


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.

Recent Queries:-
  1. female name generator rpg - 0.31 hr back. (1)
  2. project name generator - 4.76 hr back. (1)
  3. random name selector - 6.09 hr back. (1)
  4. name generator php script - 13.12 hr back. (1)
  5. random syllable generator - 15.73 hr back. (1)
  6. random author name generator - 17.00 hr back. (1)
  7. random sword name generator - 17.23 hr back. (1)
  8. name generator for different language - 17.62 hr back. (1)
  9. sword name generator - 12.95 hr back. (3)
  10. forum username generator - 20.15 hr back. (1)
  11. rpg name generator class - 22.73 hr back. (1)
  12. name generator rpg - 30.92 hr back. (1)
  13. random cool project name - 33.11 hr back. (1)
  14. how to make random generator text - 37.25 hr back. (1)
Similar Topics

Keywords : random, generator, fantasy, rpg, forum

  1. Php Random Selector
    whats the code (2)
  2. How To: Make A Simple Php Forum System
    (4)
    Hello, One of my first ever projects I embarked on when I began to understand PHP well was a forum
    system. I've decided to begin writing a tutorial to help people start one of their own. The code
    for this project is based on that of OakumBoard/cBoard, my own forum software which can be seen
    running at www.sonicxtremegm.co.cc Anyways, time to start off, you must run this SQL query on an
    SQL database with a name of your choice: CODE s CREATE TABLE `forums` (   `id` int(3) NOT NULL
    auto_increment,   `name` varchar(80) NOT NULL,   PRIMARY KEY  (`id`) ) ENGINE=MyISA....
  3. Random With Functions?
    (4)
    Hey! Is it possible to use a random script on functions. Lets say I have created three functions
    (Items that a user will win if he defeates a monster). One function is a function named shield()
    and another function is named sword() and a third function is named helmet(). Now when a player
    defeates a monster, he must be awarded. So.. How can I randomize what item he should get? something
    like CODE rand(sheild(), sword(), helmet()); or? Thanks //Feelay....
  4. Free Forum Hosting Type Script Help!
    Free forum hosting type script help!!! (2)
    i want to make something like http://invisionfree.com/ that makes an dir with your phpbb 3 forum
    in it with an admin CP plz help i really want to make something like it!! i was thinking of coding
    my own with file handling but i'm not good at some of it like "when u click submit to register
    a forums it will move the phpbb3 file that leads to the users dir then it will rename the dir to
    your username so like my.site.com/username it might work" with the admin username and pass and
    admin's email it will open the config.php then edit all the data but it will ke....
  5. Php Forum Cookies
    I need help on a php forum cookie. All suggestions welcome. (3)
    OK, I am making a forum in php (with a mysql database). It is much harder then I thought it would be
    but I have been getting along very well. I was just putting some finnishing things on it when I
    found a problem I couldn't figure out. All suggestions are welcome. Problem: I want my forum
    (like all forums) to remember what topics you have already read. I want to do this via cookies and
    at first I was think of having to topic ID to be saved in a string. Example (Cookie:
    %x%) x=the forum topic ID. Then to retrieve that data I would simply look for %x% inside the coo....
  6. Script For Viewing A Random Image Needed
    (3)
    While browsing the web, I bumped into a script that I could really use, since it's different
    from everything that I saw. Most scripts that view a random image contain a code that chooses an
    image, and then puts the part into the page itself. However, on the www.greenplastic.com web
    site (dedicated to Radiohead), in the top left corner there is a random image module. If you look at
    the code, here's what is used: CODE Now, how can a PHP script be an image, and what
    kind of script that is? If you do visit that URL , you don't get a normal page, b....
  7. Wordpress With Forum ?
    (2)
    Is there any software or MOD that could integrate WordPress with a forum ? I mean the posts /
    comments / User DB. I know of a site that makes a script called XDForums , but it supports WP 1.5
    not 2.0 .. and i have the latest version of WP installed. Plus the site is taking loads of time to
    release a new version of the forum software. Does anyone know a MOD that could integrate PhpBB
    forums to wordpress with the user DB etc .. ?? or could someone be kind enough to code it ? Thankx
    Regards Dhanesh. ....
  8. Any Tool/software For Php Code Generation ?
    Tool for code generator (3)
    Where find any tool to generate PHP class?....
  9. Php: Write Random Text As Image
    Having problems, help needed! (3)
    I'm trying to create a script that writes text to an image. CODE header("Content-type:
    image/png"); $_phrases = array( "Test 1", "Test 2", "Test 3", "Test 4", "etc." ); $_rand_phrase
    = $_phrases ; $_image = imagecreatefrompng("gmail.png"); $_user_width =
    imaagettfbbox(9,0,"tahoma.ttf",$_rand_phrase); $_x_value = (200-($user_width + 113)); $_color =
    imagecolorallocate($_image, 165, 164, 164); imagettftext($_image, 9, 0, $_x_value, 16, $_color,
    "tahoma.ttf", $_rand_phrase); imagepng($_image); imagedestroy($_image); I can't see what
    I'm doing wron....
  10. Forum Signature-image With Php
    Use PHP to create an image in real-time (8)
    With interest I have read these Topics. What I want to do with PHP is the following:
    Signatue-image This is the Forum Signature of my cousin, who lives in Europe. The image is
    generated in real-time. (Refresh the page, and see for yourself) My cousin refuses to tell me how
    he did this. But I want to do the same thing, also with PHP. Any ideas? Greetings, John. This
    is NOT a tutorial and in future you should be more careful about where you're posting your
    threads. Moved to Programming > Scripting. ....
  11. Script to allow only members to download media
    from a forum/board.. How to do it ? (18)
    I didnt know where to post this so i posted it here I wanna to know where to find a script where
    people have to register at your forum to download media off your website and i also wanna know what
    it is called. ------------------------------------------------------------- Next time you make a
    post - please be more specific about the topic. It helps a lot if your topic describes your post
    content in brief rather than having a "Help me" - which could mean anything. More often this
    wouldn't pique the interest of the readers at all and your post will get very few respo....
  12. Php Random Text Generating
    How to Generate Random Text (4)
    I was trying to figure out how to make random texts for random passwords and stuff, and I found
    someone who created this code. QUOTE //author: polmme $codelenght = 10;
    while($newcode_length $x=1; $y=3; $part = rand($x,$y); if($part==1){$a=48;$b=57;}  // Numbers
    if($part==2){$a=65;$b=90;}  // UpperCase if($part==3){$a=97;$b=122;} // LowerCase
    $code_part=chr(rand($a,$b)); $newcode_length = $newcode_length + 1; $newcode = $newcode.$code_part;
    } echo $newcode; ?> I think it's pretty good. If anyone has a better one or suggestions,
    please tell me.....
  13. Random Banners Rotation...
    set by percentages (2)
    alright, I know a few different ways to make a random banner with php - where a different banner
    would rotate with every refresh/click. But I've had some "customers" complain how they think
    their banner should show up more then others for one reason or another, and I completely agree with
    them. So now I kinda want to have a code (most perferably php or javascript) that would have the
    banner rotation where I could set a peticular banner to show up say 15% of the time and another 5%
    so I could satisfy my more loyal members over the ones simply looking for more hits to ....
  14. Random Image / Random Header
    S.O.S. (5)
    im building a website, and i need some help i got 3 frames, navigation, top and main, but i want
    the top banner to have a new tagline with every refresh, just like the header, it dont really matter
    what coding it is, as long as it's not to weird /tongue.gif' border='0'
    style='vertical-align:middle' alt='tongue.gif' /> ....
  15. How To Do The Security Confirmation
    see it when i register forum (3)
    How to do the security confirmation. When i register this forum, i see this. The image contain
    numbers and user must be fill in the number in image.....

    1. Looking for random, generator, fantasy, rpg, forum






*SIMILAR VIDEOS*
Searching Video's for random, generator, fantasy, rpg, forum
advertisement




Random Name Generator - For a fantasy RPG forum



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE