532
edits
(added qudish as default for naming styles that require an unspecified base (e.g. Seekers). might revert this) |
m (Illuminatiswag moved page Module:Sandbox/User:Illuminatiswag/namegen/NamingTable to Module:NameGenerator/NamingTable without leaving a redirect: make it tidy since people are actually using this) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
p = {} | |||
p.defaultvars = { | |||
["%*Patron%*"] = { | |||
"Agolgut", | |||
"Bethsaida", | |||
}, | |||
["%*Clientele%*"] = { | |||
"All", | |||
"None", | |||
"the Friendless", | |||
"the Lost", | |||
"Wanderers", | |||
}, | |||
["%*WiseDescriptor%*"] = { | |||
"Erudite", | |||
"Judicious", | |||
"Sage", | |||
"Sensible", | |||
"Shrewd", | |||
"Sophic", | |||
"Wary", | |||
"Wise", | |||
}, | |||
} | |||
p.naming = { | |||
qudish = { | qudish = { | ||
HyphenationChance = 10, | HyphenationChance = 10, | ||
Line 7,090: | Line 7,114: | ||
}, | }, | ||
} | } | ||
p.getkeys = function() | |||
local keyset = {} | local keyset = {} | ||
for key, value in pairs(naming) do | for key, value in pairs(p.naming) do | ||
if type(value) == 'table' then | if type(value) == 'table' then | ||
table.insert(keyset, key) | table.insert(keyset, key) | ||
Line 7,105: | Line 7,129: | ||
return keys | return keys | ||
end | end | ||
return | return p |