Random Goblin Name Generator

King Goblin is the best King.

Hi everyone. In these days, me and my friend and colleague at Noctua are working at a new game jam: the SpeccyJam. The goal of this jam is to recreate a game with the same feel and look of an original ZX Spectrum game. We chose to implement a “managerial game” in which the player takes the role of a fantasy blacksmith that have to increase its fame crafting amazing weapons. This jam is very formative because it is forcing us to work in a low resolution with a very limited color space and, also, to explore the amazing kingdom of 2D shaders in Unity in order to recreate the visual glitches of the original console.

While these is very interesting, today I’m not going to talk about this (I will, but not today. We still need to finish the game). In this post I want just to show a small script that you can reuse in your games: a random goblin name generator. In fact, the blacksmith have to hire some goblin minion in order to mine metals around the land. And these minions need a name.

Writing a random name generator is trivial. You take a list of syllables, another list of syllables, one more list of syllables, and at the end you randomly join elements from these three lists hoping for the best. However, also if it is easy, it is boring. Searching for the good syllables/words that creates the desired effect is just time consuming and during a game jam, you don’t want to consume time in boring and trivial stuff. So, if you need some goblin names, I solved this problem for you.  :)

 

The goblin names are inspired by the goblin “instance” in the Warcraft world. The script is in C# but you can easily translate it in any other languages. As I said is just a bunch of lists and a random function to join them. I hope you can enjoy this. :)

PS: I don’t know why this code looks a mess in the embedded version. I’ll try to fix this soon. Sorry.

EDIT 08/09/14: I don’t know why this script destroy the syntax highlighter algorithms. However, now it is more clear. Just a bit.