Module:EncounterTable: Difference between revisions
Jump to navigation
Jump to search
(changing format of table parameter) |
mNo edit summary |
||
Line 86: | Line 86: | ||
end | end | ||
elseif row["item"] == 'none' then | elseif row["item"] == 'none' then | ||
finalTable[i]['item'] = 'Item from [[EncounterTable:' .. row['table'] | finalTable[i]['item'] = 'Item from [[EncounterTable:' .. row['table']:match('^(%w*)%s+%w*') .. '#' .. row['table'] .. '|' .. row['table'] .. ']]' | ||
else | else | ||
error('A table and item cannot be specified at the same time!') | error('A table and item cannot be specified at the same time!') |