Module:Shiren 3 Wii Monster Data Cell

MDFW - The Mystery Dungeon Tree of Information.
Revision as of 19:57, 24 November 2022 by Adkuate (talk | contribs) (Created page with "---------------------------------------------------------------------------------------------------- -- -- Module:Shiren 3 Monster Data Cell -- -- This module covers a list of monsters in Japanese, their levels, their types, -- and the amount of experience points they drop present in -- Shiren the Wanderer 3: The Sleeping Princess and the Karakuri Mansion. -- -- Parameters -- -- name: Insert the monster's English name there. -- getV...")
(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, their types, their levels, and the amount of experience points they drop present in Shiren the Wanderer 3: The Sleeping Princess and the Karakuri Mansion for use only in table templates such as Module:Shiren 3 Wii Dungeon Monsters table.

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

{{#invoke:Shiren 3 Wii Dungeon Monsters table|main
  | monster_1 = Mamel
  | floor_1   = 2
}}

...and will result in:

ModelMonsterExperienceMonster ElementFloors
EnglishJapanese
Mamel's model.Mamel[Research required]

----------------------------------------------------------------------------------------------------
--
--                                        Module:Shiren 3 Monster Data Cell
--
-- This module covers a list of monsters in Japanese, their levels, their types,
-- and the amount of experience points they drop present in
-- Shiren the Wanderer 3: The Sleeping Princess and the Karakuri Mansion.
--
-- Parameters
--
-- name: Insert the monster's English name there.
-- getVar: Picks which key the module should return.
-- * ja: Returns the monster's Japanese name.
-- * type: Returns the monster's type.
-- * lv: Returns the monster's level.
-- * exp: Returns the monster's experience points.
--
----------------------------------------------------------------------------------------------------

p = {}

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

	-- List of every monster's Japanese names, types, levels, and experience points
	local list = {
		["Arbalestboy"] = {["ja"] = "オトシボウヤー", ["type"] = "Earth", ["lv"] = 1, ["exp"] = 6},
		["Ballistaboy"] = {["ja"] = "オオアナボウヤー", ["type"] = "Shadow", ["lv"] = 2, ["exp"] = 11},
		["Armordillo"] = {["ja"] = "マルジロウ", ["type"] = "Nature", ["lv"] = 1, ["exp"] = 8},
		["Megadillo"] = {["ja"] = "マルジロウ兄", ["type"] = "Earth", ["lv"] = 2, ["exp"] = 80},
		["Superdillo"] = {["ja"] = "マルジロウ父", ["type"] = "Water", ["lv"] = 3, ["exp"] = 750},
		["Gigadillo"] = {["ja"] = "マルジロウ祖父", ["type"] = "Shadow", ["lv"] = 4, ["exp"] = "1,600"},

	}

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

return p