Module:Gates to Infinity Pokémon Data Cell

MDFW - The Mystery Dungeon Tree of Information.
Revision as of 22:12, 4 April 2023 by Adkuate (talk | contribs) (Created page with "-------------------------------------------------------------------------------- -- -- Module:Gates to Infinity Pokémon Data Cell -- -- This module covers a list of Pokémon in Japanese, their types, and the -- amount of experience points they drop present in -- Pokémon Mystery Dungeon: Gates to Infinity. -- -- Parameters -- -- name: Insert the Pokémon's English name there. -- getVar: Picks which key the module should return. -- * ja: Returns the Pokémon's Japanes...")
(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 Pokémon, their names in Japanese, their types, and the amount of experience points they drop present in Pokémon Mystery Dungeon: Gates to Infinity for use only in table Templates such as Module:Gates to Infinity Dungeon Pokémon table.

In this example, the attribute {{{pokémon_n|}}} uses this module...

{{#invoke:Gates to Infinity Dungeon Pokémon table|main
  | pokémon_1 = Pikachu
  | floor_1   = 2
}}

...and will result in:

ModelPokémonTypeLevelExperienceFloorsRecruit Chance
EnglishJapanese
Pikachu's model.Pikachu[Research required][Research required][Research required]Unrecruitable

--------------------------------------------------------------------------------
--
--				Module:Gates to Infinity Pokémon Data Cell
--
-- This module covers a list of Pokémon in Japanese, their types, and the
-- amount of experience points they drop present in
-- Pokémon Mystery Dungeon: Gates to Infinity.
--
-- Parameters
--
-- name: Insert the Pokémon's English name there.
-- getVar: Picks which key the module should return.
-- * ja: Returns the Pokémon's Japanese name.
-- * type1: Returns the Pokémon's first name.
-- * type2: Returns the Pokémon's second type.
-- * exp: Returns the Pokémon's experience points.
--
--------------------------------------------------------------------------------

p = {}

function p.gatesToInfinityPokemonDataCell(f)
	-- Gets the arguments from #invoke:Gates to Infinity Pokémon Data Cell|gatesToInfinityPokemonDataCell
	local args = f.args

	-- List of every Pokémon's Japanese names, types, and experience points
	local list = {
		[""] = {["ja"] = "", ["type1"] = "", ["type2"] = "", ["exp"] = ""},
	}

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

return p