Module:Param Parse: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
No edit summary |
No edit summary |
||
Line 456: | Line 456: | ||
} |
} |
||
⚫ | |||
local _, profession, knowledge, quest, min_weapon_strength = |
|||
for part in val:gmatch("%w+") do |
|||
table.insert(parts, part) |
|||
if not profession or not knowledge or not quest or not min_weapon_strength then |
|||
return "Invalid input" |
|||
end |
end |
||
local profession = {parts[1], parts[2]} |
|||
local profession_name, profession_value = profession:match("(%w+)%s+(%S+)") |
|||
local knowledge = parts[3] |
|||
local |
local quest = parts[4] |
||
local |
local min_weapon_strength = parts[5] |
||
local min_weapon_strength_value = min_weapon_strength |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
return |
return string.format( |
||
"%s %s, %s %s, %s %s, %s %s", |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
end |
end |
||