532
edits
(title templates working now for real) |
(added some values for template variables that get filled in by c# in game rather than xml) |
||
Line 81: | Line 81: | ||
end | end | ||
varstable['%*Name%*'] = { heroname } | varstable['%*Name%*'] = { heroname } | ||
varstable['%*Patron%*'] = { 'Agolgut', 'Bethsaida' } | |||
varstable['%*Rings%*'] = { 'Three-ringed', 'Four-ringed', 'Five-ringed', 'Seven-ringed', 'Eight-ringed', 'Nine-ringed', 'Twelve-ringed'} | |||
-- not gonna bother doing every number in the 1d10+2 range and don't know how to handle that automatically | |||
for var, values in pairs(varstable) do | for var, values in pairs(varstable) do | ||
titletemplate = titletemplate:gsub(var, values[math.random(table.getn(values))]) | titletemplate = titletemplate:gsub(var, values[math.random(table.getn(values))]) |