Module:Etrian 1 Monster Data Cell

MDFW - The Mystery Dungeon Tree of Information.
Revision as of 19:33, 21 March 2023 by Adkuate (talk | contribs) (Created page with "-------------------------------------------------------------------------------- -- -- Module:Etrian 1 Monster Data Cell -- -- This module covers a list of monsters in Japanese and the amount of -- experience points they drop present in Etrian Mystery Dungeon. -- -- Parameters -- -- name: Insert the monster's English name there. -- getVar: Picks which key the module should return. -- * ja: Returns the monster's Japanese name. -- * exp: Returns the mon...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Template-info.png Documentation

This template covers a list of monsters, their names in Japanese and the amount of experience points they drop present in Etrian Mystery Dungeon for use only in table Templates such as Module:Etrian 1 Dungeon Monsters table.

In this example, the attribute {{{monster_n|}}} uses this module...

{{#invoke:Etrian 1 Dungeon Monsters table|main
  | monster_1 = Woodfly
  | floor_1   = 2
}}

...and will result in:

ModelMonstersExperienceFloors
EnglishJapanese
Woodfly's model.Woodfly2

--------------------------------------------------------------------------------
--
--                     Module:Etrian 1 Monster Data Cell
--
-- This module covers a list of monsters in Japanese and the amount of
-- experience points they drop present in Etrian Mystery Dungeon.
--
-- Parameters
--
-- name: Insert the monster's English name there.
-- getVar: Picks which key the module should return.
-- * ja: Returns the monster's Japanese name.
-- * exp: Returns the monster's experience points.
--
--------------------------------------------------------------------------------

p = {}

function p.etrian1MonsterDataCell(f)
	-- Gets the arguments from #invoke:Etrian 1 Monster Data Cell|etrian1MonsterDataCell
	local args = f.args

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

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

return p