Abbey Games has a new community and forums! Come on over to https://community.abbeygames.com and don't forget to mention your old username! The old forums will remain available, but read-only.

Random War Name Generator

Anything Reus-related that doesn't fit the other forums.
Bas
King of the Beta
Posts: 423
Joined: Wed Nov 28, 2012 11:19 am

Random War Name Generator

Post by Bas » Sat Mar 16, 2013 1:53 pm

Hey everyone!

I currently working on generating random names for wars. We have an excellent system in place to generate names from a set of rules created by Manuel. We use it for village names, loading tips and whatnot. However, I have a hard time coming up with good rules for wars, but maybe you guys can help me out with that!

Let me give you an example of how rules are interpreted in Reus:
We have special files that contain the rules to generate these random names. The system is similar to an L-System. Generating a name starts with an Axiom that defines what rule to start with. Then Rules are defined, which are simple substitution rules. Rules can also contain other rules which allow you create complex system of rules. Rule substitutions are comma separated. After the definition of the rule a semicolon is placed and a number which indicates the likelihood that this rule will be selected over other rules with the same name.

Here is an example:

Code: Select all

Axiom: Name

Name -> "Test War Name" ; 2
Name -> SimpleName, " War" ; 1

SimpleName -> "My" ; 1
SimpleName -> "Opium" ; 1
This simple rulesystem will generate "Test War Name", "My War" and "Opium War" where "Test War Name" will be generated more often because the probability that it will be selected is higher.

Here is a more complex example:

Code: Select all

Axiom: Name

Name -> "The ", Number, DatePeriod, " War" ; 1

Number -> "Two" ; 1
Number -> "Three" ; 2
Number -> "Four" ; 3

DatePeriod -> " Days" ; 1
DatePeriod -> " Weeks" ; 3
This will generate names like "The Two Days War". Its fairly simple to create rulesets to generate "Battle of Helmsdeep" and stuff like that.

You are probably way more creative than I am! So Im just throwing this out there. Can you help me come up with an epic name generator for wars? In exchange I'll add your name to the credits (if I end up using it ;)).

Edit: One thing! The generated names cannot be to long..

User avatar
JustSmall
Posts: 88
Joined: Tue Feb 12, 2013 5:10 pm
Location: Germany

Re: Random War Name Generator

Post by JustSmall » Sat Mar 16, 2013 2:23 pm

This sounds amazing but unfortunately, I don't really understand this L-System and I'm not so experienced in programming yet.
Are these names going to be generates while at war or afterwards?

Bas
King of the Beta
Posts: 423
Joined: Wed Nov 28, 2012 11:19 am

Re: Random War Name Generator

Post by Bas » Sat Mar 16, 2013 4:35 pm

Yeah, unfortunately a little programming knowledge is probably required..

When a war is started the war gets a random generated name which is shown in the UI. Its mainly awesome because you can refer to your wars by name. Examples: "The London Riots", "Opium War", "Battle over Nothing", "Random War", "The Extermination".

I think you get the idea.

User avatar
Qustinnus
Posts: 264
Joined: Tue Feb 12, 2013 4:54 pm
Location: The Netherlands

Re: Random War Name Generator

Post by Qustinnus » Sat Mar 16, 2013 5:10 pm

Bas wrote:Yeah, unfortunately a little programming knowledge is probably required..

When a war is started the war gets a random generated name which is shown in the UI. Its mainly awesome because you can refer to your wars by name. Examples: "The London Riots", "Opium War", "Battle over Nothing", "Random War", "The Extermination".

I think you get the idea.
You should add refferences/jokes (Like you did in tinytanic with the names)

Bas
King of the Beta
Posts: 423
Joined: Wed Nov 28, 2012 11:19 am

Re: Random War Name Generator

Post by Bas » Sat Mar 16, 2013 5:54 pm

O believe you me, way ahead of you! ;)

User avatar
Qustinnus
Posts: 264
Joined: Tue Feb 12, 2013 4:54 pm
Location: The Netherlands

Re: Random War Name Generator

Post by Qustinnus » Sat Mar 16, 2013 6:07 pm

Bas wrote:O believe you me, way ahead of you! ;)
That's what i wanted to hear

Chuggoka
Posts: 12
Joined: Sun Feb 24, 2013 3:18 pm

My first attempt

Post by Chuggoka » Sat Mar 16, 2013 6:12 pm

From what you provided I came up with this. I have no idea as to how I could test this... Is this the format you need?

Code: Select all

Axiom: Name

Name -> "The ", Adjective, " Battle over ", Object; 1
Name -> "The ", Number, ", ", Adjective, " War"; 1

Adjective -> "Epic"; 3
Adjective -> "Mindless"; 1
Adjective -> "Peaceful"; 1
Adjective -> "Brutal"; 2
Adjective -> "Bloody"; 2
Adjective -> "One-sided"; 1

Object -> "a Fish"; 1
Object -> "the Beautiful Princess"; 1
Object -> "the Forest Giant"; 1

Number -> "First"; 3
Number -> "Second"; 3
Number -> "Fifth"; 3
Number -> "Three Quintillionth"; 3

User avatar
Qustinnus
Posts: 264
Joined: Tue Feb 12, 2013 4:54 pm
Location: The Netherlands

Re: My first attempt

Post by Qustinnus » Sat Mar 16, 2013 7:05 pm

Chuggoka wrote:From what you provided I came up with this. I have no idea as to how I could test this... Is this the format you need?

Code: Select all

Axiom: Name

Name -> "The ", Adjective, " Battle over ", Object; 1
Name -> "The ", Number, ", ", Adjective, " War"; 1

Adjective -> "Epic"; 3
Adjective -> "Mindless"; 1
Adjective -> "Peaceful"; 1
Adjective -> "Brutal"; 2
Adjective -> "Bloody"; 2
Adjective -> "One-sided"; 1

Object -> "a Fish"; 1
Object -> "the Beautiful Princess"; 1
Object -> "the Forest Giant"; 1

Number -> "First"; 3
Number -> "Second"; 3
Number -> "Fifth"; 3
Number -> "Three Quintillionth"; 3
I don't understand any of this code, But welcome to the forums!

Bas
King of the Beta
Posts: 423
Joined: Wed Nov 28, 2012 11:19 am

Re: My first attempt

Post by Bas » Sat Mar 16, 2013 8:17 pm

Chuggoka wrote:From what you provided I came up with this. I have no idea as to how I could test this... Is this the format you need?
Hey Chuggoka!

You understood it correctly. The syntax is completely right. Its almost exactly what I need! The only problem is that it can generate quite long names like "The One-Sided Battle over the Beautiful Princess" or "Three Quintillionth, Mindless War" which might be a little too long.

I really like where this is going though! Maybe Ill create a little tool tomorrow with which you can test it. Are you running Windows?

User avatar
Qustinnus
Posts: 264
Joined: Tue Feb 12, 2013 4:54 pm
Location: The Netherlands

Re: Random War Name Generator

Post by Qustinnus » Sat Mar 16, 2013 9:33 pm

I have cracked the code with my highly intelligent 14 year old skills (lolno)
So the numbers represent the chance of it being picked and then it adds the chosen word to the sentence filling up the spot it's supposed to be...That would really be interesting, And being able to edit this system would be fun.


I'll try now!

Code: Select all

Axiom: Name

Name -> "The ", Giant, " War"; 3
Name -> "The war in ", LocationA; 3
Name -> "The ", Refference, '' War'';1
Name -> "The war at ", LocationB; 3

Giant -> Forest Giant
Giant -> Rock Giant
Giant -> Ocean Giant

Location ->The abbey
Location ->Space
Location ->The pub

LocationB ->A lake
LocationB ->The frontline
LocationB ->Earth

Refference ->7 hour
Refference ->Brood

(The refferences are about Half-life and Starcraft)
Last edited by Qustinnus on Sat Mar 16, 2013 10:05 pm, edited 1 time in total.

Post Reply