Module:Sandbox/Nano

local args = require ('Module:Arguments').getArgs local loader = require('Module:Loader') local string, table, yesno, uitext, cache = loader.require('String', 'Table', 'Yesno', 'UIText', 'Cache')

function bestiary(placement, mob, lore, m_kills, tier, color, split) if string.find(mob, " ") == '.' then string.gsub(mob, "%s", "-") end if string.find(placement, ",") == '.' then tp = placement else tp = 'Error! Placement Syntax Is Incorrect!' end if string.len(mob) <= 10 then split = mob .. '&b✯ Magic Find/ &7&8+&a# ' .. mob .. '&c❁ Strength' elseif 11 or 12 == string.len(mob) then split = mob .. '&b✯ Magic/ &bFind/  &7&8+&a# ' .. mob .. '&c❁ Strength' elseif 13 or 14 or 15 == string.len(mob) then split = mob .. '&b✯ Magic/ &bFind/  &7&8+&a# ' .. mob .. '&c❁/ &cStrength' elseif string.len(mob) == 16 then split = mob .. '&b✯/ &bMagic Find/  &7&8+&a# ' .. mob .. '&c❁/ &cStrength' elseif string.len(mob) >= 17 then split = mob .. '&b/ &b✯ Magic Find/  &7&8+&a# ' .. mob .. '&c/ &c❁ Strength' elseif string.len(mob) == 0 then tp = 'Error! No Mob Specified!' end if tier >= 26 then tp = 'Error! Tier Is Invalid!' elseif tier < 1 then tp = 'Error! Tier is Invalid!' end tier = string.gsub(tier, "%D", "")

string.gsub(tier, "25", "XXV") string.gsub(tier, "24", "XXIV") string.gsub(tier, "23", "XXIII") string.gsub(tier, "22", "XXII") string.gsub(tier, "21", "XXI") string.gsub(tier, "20", "XX") string.gsub(tier, "19", "XIX") string.gsub(tier, "18", "XVIII") string.gsub(tier, "17", "XVII") string.gsub(tier, "16", "XVI") string.gsub(tier, "15", "XV") string.gsub(tier, "14", "XIV") string.gsub(tier, "13", "XIII") string.gsub(tier, "12", "XII") string.gsub(tier, "11", "XI") string.gsub(tier, "10", "X") string.gsub(tier, "9", "IX") string.gsub(tier, "8", "VIII") string.gsub(tier, "7", "VII") string.gsub(tier, "6", "VI") string.gsub(tier, "5", "V") string.gsub(tier, "4", "IV") string.gsub(tier, "3", "III") string.gsub(tier, "2", "II") string.gsub(tier, "1", "I") if mob and placement == '.' then tp = '|' .. placement .. '=' .. mob .. ' Head, ' .. string.lower(mob) .. ', ' .. color .. mob .. ', &7' .. lore .. '//&7Kills: &a#/&7Deaths: &a#//&a' .. mob .. 'Bonuses/&8+&b# &b✯ Magic Find/&8+&c# &c❁ Strength/&8+&6#% &7coin gain/&8+&a#% &7chance for &a+1 &7XP orbs//&7Progress to Tier #: &b#%/&f &b#&3\/&b#//&7Overall Progress: &b#%/&f &b#&3\/&b' .. m_kills .. '/&8Capped at Tier ' .. tier .. '//&7Tier # Rewards/ &7&8+&a# ' .. mob .. '&b✯ Magic Find/ &7&8+&a# ' .. split .. '/ &7&8+&6#% &a' .. mob .. '&7coins/ &7&8+&a#% &7chance for extra XP/  &7orbs//&eClick to view!' end end

return bestiary(args("placement"), args("mob"), args("lore"), args("tier"), args("color"))