Module:Points

local p = {}

local collectable = { Ingredients = {"ingredient"}, Jelly      = {"jelly", "double jelly"}, Order      = {"candy", "stripped candy", "wrapped candy", "color bomb"} }

local itemPts = { -- TODO: List value of each collectable --collectable[Ingredients][1] = }

function p.main( frame ) --Still basic outline. Not all of this will stay as it is, and in fact most --of the variables will change dramatically. This is still a first draft. local levType = frame.args[1] -- The level type local levPts = frame.args[2]  -- The number of points required to finish the level local collect = frame.args[3] -- Name of the collectable local numPts = frame.args[4]  -- Number of points per collectable local numType = frame.args[5] -- Number of collectable type local out = "The " .. levType .. " are worth " .. numPts*numType .. " points (" .. numType .. " " .. collect .. " x " .. numPts ..        " per " .. collect .. " = " .. numPts*numType ..         " points).  Hence, and additional " .. remaining .. " points is required to earn one star." end

return p