Module:Attributes
From The Obey Me Wiki
Description: Used to convert text format sin types into images
local itemreward = "" -- formats item name for i = 1, table.getn(contact) do itemreward = contact[i] if string.find(itemreward, "%(Pride%)") then contact[i] = itemreward .. string.sub(itemreward, 1, string.find(itemreward, "%(Pride%)") - 2) .. " [[File:Pride.png|10px]]" elseif string.find(itemreward, "%(Greed%)") then contact[i] = itemreward .. string.sub(itemreward, 1, string.find(itemreward, "%(Greed%)") - 2) .. " [[File:Greed.png|10px]]" elseif string.find(itemreward, "%(Envy%)") then contact[i] = itemreward .. string.sub(itemreward, 1, string.find(itemreward, "%(Envy%)") - 2) .. " [[File:Envy.png|10px]]" elseif string.find(itemreward, "%(Wrath%)") then contact[i] = itemreward .. string.sub(itemreward, 1, string.find(itemreward, "%(Wrath%)") - 2) .. " [[File:Wrath.png|10px]]" elseif string.find(itemreward, "%(Lust%)") then contact[i] = itemreward .. string.sub(itemreward, 1, string.find(itemreward, "%(Lust%)") - 2) .. " [[File:Lust.png|10px]]" elseif string.find(itemreward, "%(Gluttony%)") then contact[i] = itemreward .. string.sub(itemreward, 1, string.find(itemreward, "%(Gluttony%)") - 2) .. " [[File:Gluttony.png|10px]]" elseif string.find(itemreward, "%(Sloth%)") then contact[i] = itemreward .. string.sub(itemreward, 1, string.find(itemreward, "%(Sloth%)") - 2) .. " [[File:Sloth.png|10px]]" end end