I'l looking to create some code that will create a list of dynamic names, based on the available damage types.
For each type, create a set of 1-10 values.
Let's say there are 3 damage types: Physical, Laser and Poison, then the names would range from:
Physical-01-Laser-01-Poison-01
...
Physical-01-Laser-01-Poison-10
...
Physical-01-Laser-10-Poison-10
...
...
Physical-10-Laser-10-Poison-10
Should be a 1,000 combinations.
10 x 10 x 10
So my below code only does it per damage type, now how do I combine the different types?
Code: Select all
for k, v in pairs(data.raw["damage-type"]) do
for i = 1, 10 do
local u_name = v.name.."-"..i
end
end
