Module:Rescue Team Boss Data Cell: Difference between revisions
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. | function p.rescueTeamBossDataCell(f) | ||
-- Gets the arguments from #invoke:Rescue Team | -- Gets the arguments from #invoke:Rescue Team Boss Data Cell|rescueTeamBossDataCell | ||
local args = f.args | local args = f.args | ||
-- List of every | -- 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 | -- 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