Module:Shiren 6 Monster Data Cell

MDFW - The Mystery Dungeon Tree of Information.
Revision as of 18:53, 21 September 2023 by Adkuate (talk | contribs) (Created page with "---------------------------------------------------------------------------------------------------- -- -- Module:Shiren 6 Monster Data Cell -- -- This module covers a list of monsters in Japanese, their levels, and the amount of experience -- points they drop present in -- Mystery Dungeon: Shiren the Wanderer 6 - Coil Island Exploration Record. -- -- Parameters -- -- name: Insert the monster's English name there. -- getVar: Picks w...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Documentation for this module may be created at Module:Shiren 6 Monster Data Cell/doc

----------------------------------------------------------------------------------------------------
--
--                                        Module:Shiren 6 Monster Data Cell
--
-- This module covers a list of monsters in Japanese, their levels, and the amount of experience
-- points they drop present in
-- Mystery Dungeon: Shiren the Wanderer 6 - Coil Island Exploration Record.
--
-- Parameters
--
-- name: Insert the monster's English name there.
-- getVar: Picks which key the module should return.
-- * ja: Returns the monster's Japanese name.
-- * lv: Returns the monster's level.
-- * exp: Returns the monster's experience points.
--
----------------------------------------------------------------------------------------------------

p = {}

function p.shiren6MonsterDataCell(f)
	-- Gets the arguments from #invoke:Shiren 6 Monster Data Cell|shiren1MonsterDataCell
	local args = f.args

	-- List of every monster's Japanese names, levels, and experience points
	local list = {
		[""] = {["ja"] = "", ["lv"] = "", ["exp"] = ""}
	}

	-- Returns the selected monster with the object's specified key value
	return list[args.name][args.getVar]
end

return p