Random NPC names by race?

I'm trying to build an NPC introduction table to generate a quick description along with a race appropriate name. I can get part way there with...

Table: NPC
You see [@NPCAge] [@gender] [@NPCRace] in [@NPCAttire]. This is [@Names], \a [@NPCProfession]

... but I can't figure out how to get the names to come back appropriate to the NPCRace.

Any guidance appreciated.

Comments

  • What I generally do is have multiple tables of names for each race. Then call the table with the race (or whatever other factor) added to the base table name. You'll need to assign the race to a variable too.

    Table: NPC
    You see [@NPCAge] [@gender] [Race=[@NPCRace]] in [@NPCAttire]. This is [@Names{Race}], \a [@NPCProfession]
    
    Table: NamesElf
    elfname1
    elfname2
    
    Table: NamesHuman
    humanname1
    humanname2
    

    Obviously you'll want to fill in some actual names, but I think that gives you what you need.

  • Perfect thanks!

Leave a Comment