I had this idea of creating a random name generator for my custom skill system. I have the idea pretty much figured out. I just don't know what functions to use to parse it.
The random generator looks for names within the specified "category", so that recovery spells, for example, only can be assigned random names that are related to recovery spells.
Here is my file for the prefix list:
2
CATEGORY RECOVERY 4
Heal
Recovery
Cure
Repair
CATEGORY FIRE 5
Fire
Flame
Pyro
Inferno
Burning
The first line contains the number of categories. The category stuff is figured out by: "CATEGORY [name] [number of choices]".
I have very few ideas on how to parse this. So, can anyone help me?