Module:Rescue Team Boss Data Cell: Difference between revisions

MDFW - The Mystery Dungeon Tree of Information.
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 25: Line 25:
-- List of every boss's Japanese names, types, and moves
-- List of every boss's Japanese names, types, and moves
local list = {
local list = {
["Bulbasaur"] = { ["ja"] = "フシギダネ", ["type1"] = "Grass", ["type2"] = "Poison", ["move1"] = "Leer" },
["Skarmory"] = { ["ja"] = "フシギダネ", ["type1"] = "Grass", ["type2"] = "Poison", ["move1"] = "Sand-Attack", ["move2"] = "Peck", ["move3"] = "Leer" },  
}
}



Revision as of 18:39, 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 = {
		["Skarmory"] = { ["ja"] = "フシギダネ", ["type1"] = "Grass", ["type2"] = "Poison", ["move1"] = "Sand-Attack", ["move2"] = "Peck", ["move3"] = "Leer" }, 
	}

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

return p