Module:Rescue Team Boss Data Cell: Difference between revisions

MDFW - The Mystery Dungeon Tree of Information.
Jump to navigation Jump to search
(Created page with "-------------------------------------------------------------------------------- -- -- Module:Rescue Team Boss Data Cell -- -- This module covers a list of bosses in Japanese, their types and their moves -- present in Pokémon Mystery Dungeon: Rescue Team. -- -- 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...")
 
mNo edit summary
Line 19: Line 19:
p = {}
p = {}


function p.rescueTeamPokemonDataCell(f)
function p.rescueTeamBossDataCell(f)
-- Gets the arguments from #invoke:Rescue Team Pokémon Data Cell|rescueTeamPokemonDataCell
-- Gets the arguments from #invoke:Rescue Team Boss Data Cell|rescueTeamBossDataCell
local args = f.args
local args = f.args


-- List of every Pokémon's Japanese names and experience points
-- List of every boss's Japanese names, types, and moves
local list = {
local list = {
["Bulbasaur"] = { ["ja"] = "フシギダネ", ["type1"] = "Grass", ["type2"] = "Poison", ["move1"] = "Leer" },
["Bulbasaur"] = { ["ja"] = "フシギダネ", ["type1"] = "Grass", ["type2"] = "Poison", ["move1"] = "Leer" },
}
}


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


return p
return p

Revision as of 18:09, 30 July 2023

Documentation for this module may be created at Module:Rescue Team Boss Data Cell/doc

--------------------------------------------------------------------------------
--
--                     Module:Rescue Team Boss Data Cell
--
-- This module covers a list of bosses in Japanese, their types and their moves
-- present in Pokémon Mystery Dungeon: Rescue Team.
--
-- 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 type.
-- * type2: Returns the Pokémon's second type.
-- * move<n>: Returns the Pokémon's numbered move (up to 9).
--
--------------------------------------------------------------------------------

p = {}

function p.rescueTeamBossDataCell(f)
	-- Gets the arguments from #invoke:Rescue Team Boss Data Cell|rescueTeamBossDataCell
	local args = f.args

	-- List of every boss's Japanese names, types, and moves
	local list = {
		["Bulbasaur"] = { ["ja"] = "フシギダネ", ["type1"] = "Grass", ["type2"] = "Poison", ["move1"] = "Leer" },
	}

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

return p