Module:Users

local p = {}

function p.userBattle(frame) local users = { [1] = 'Gunny', [2] = 'Bleep', [3] = 'Agent c'	} user = tonumber(frame.args[1]) return users[user] end

function p.userBattleWeakness(frame) local users = { [1] = {		name = 'Gunny', weakness = 'cigars' },	[2] = {				name ='Bleep', weakness = 'Ice cream' },	[3] = {		name = 'Agent c', weakness = 'Vegemite' } }	user = tonumber(frame.args[1]) name = users[user]['name'] weakness = users[user]['weakness'] result = 'User ' .. name .. ' is weak against ' .. weakness .. '.'	return result end

function p.userBattleWeaknessCombined(frame) local users = { [1] = {		name = 'Gunny', weakness = 'cigars' },	[2] = {				name ='Bleep', weakness = 'Ice cream' },	[3] = {		name = 'Agent c', weakness = 'Vegemite' } }	user = tonumber(frame.args[1]) combined = users[user] result = 'User ' .. combined['name'] .. ' is weak against ' .. combined['weakness'] .. '.'	return result end

return p