It looks like you're new here. If you want to get involved, click one of these buttons!
Okay, so I've made a Dictionary table that holds every medieval profession I can think of. It has about 2000 entries. I tested it to see if it worked first and then began adding. So, the table indicates that an NPC is, say, an archer. It then looks at the Dictionary Table master list "Archer" and determines things that are common to Archers (that, for instance, they might have levels in Fighter, that they can be of any alignment, that they're likely to use bows, things like that). Okay, fine.
The problem is that the table doesn't scan for professions with more than 10 letters! So, if I call the table with NecromancersAssistant, it won't find it. Now, I've thought about shortening the call by manipulating the string (have it create a substring with the first 10 letters and search that, but that still requires me to go through the 2000 entrees, line by line, checking the titles to make sure that there aren't any that only deviate on the 11th letter (the first 10 letters of NecromancersAssistant are the same as NecromancersFoulCreation).
So, is there anything I can do to make this process work without my having to go through my 2000 entry table? Like, is there anyway around the 10 character limit for Dictionary Keys?