Module:Rescue Team Boss Data Cell: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 26: | Line 26: | ||
-- List of every boss's Japanese names, types, moves, and recruit chances | -- List of every boss's Japanese names, types, moves, and recruit chances | ||
local list = { | local list = { | ||
["Skarmory"] = { | ["Skarmory"] = { ["move1"] = "Sand-Attack", ["move2"] = "Peck", ["move3"] = "Leer" }, | ||
["Gengar"] = { | ["Gengar"] = { ["move1"] = "Curse", ["move2"] = "Lick", ["move3"] = "Spite", ["move4"] = "Hypnosis" }, | ||
["Ekans"] = { | ["Ekans"] = { ["move1"] = "Bite", ["move2"] = "Wrap", ["move3"] = "Leer", ["move4"] = "Poison Sting" }, | ||
["Medicham"] = { | ["Medicham"] = { ["move1"] = "Ice Punch", ["move2"] = "Thunderpunch", ["move3"] = "Detect", ["move4"] = "Confusion" }, | ||
["Zapdos"] = { | ["Zapdos"] = { ["move1"] = "Agility", ["move2"] = "Peck", ["move3"] = "Thundershock", ["move4"] = "Thunder Wave" }, | ||
["Mankey"] = { | ["Mankey"] = { ["move1"] = "Karate Chop", ["move2"] = "Low Kick", ["move3"] = "Leer", ["move4"] = "Scratch" }, | ||
["Moltres"] = { | ["Moltres"] = { ["move1"] = "Agility", ["move2"] = "Wing Attack", ["move3"] = "Ember", ["move4"] = "Fire Spin" }, | ||
["Articuno"] = { | ["Articuno"] = { ["move1"] = "Gust", ["move2"] = "Agility", ["move3"] = "Powder Snow", ["move4"] = "Mist" }, | ||
["Groudon"] = { | ["Groudon"] = { ["move1"] = "Slash", ["move2"] = "Ancientpower", ["move3"] = "Scary Face", ["move4"] = "Mud Shot" }, | ||
["Rayquaza"] = { | ["Rayquaza"] = { ["move1"] = "Crunch", ["move2"] = "Ancientpower", ["move3"] = "Scary Face", ["move4"] = "Twister" }, | ||
} | } | ||
Revision as of 15:22, 31 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).
-- * recruit: Returns the Pokémon's recruit chance.
--
--------------------------------------------------------------------------------
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, moves, and recruit chances
local list = {
["Skarmory"] = { ["move1"] = "Sand-Attack", ["move2"] = "Peck", ["move3"] = "Leer" },
["Gengar"] = { ["move1"] = "Curse", ["move2"] = "Lick", ["move3"] = "Spite", ["move4"] = "Hypnosis" },
["Ekans"] = { ["move1"] = "Bite", ["move2"] = "Wrap", ["move3"] = "Leer", ["move4"] = "Poison Sting" },
["Medicham"] = { ["move1"] = "Ice Punch", ["move2"] = "Thunderpunch", ["move3"] = "Detect", ["move4"] = "Confusion" },
["Zapdos"] = { ["move1"] = "Agility", ["move2"] = "Peck", ["move3"] = "Thundershock", ["move4"] = "Thunder Wave" },
["Mankey"] = { ["move1"] = "Karate Chop", ["move2"] = "Low Kick", ["move3"] = "Leer", ["move4"] = "Scratch" },
["Moltres"] = { ["move1"] = "Agility", ["move2"] = "Wing Attack", ["move3"] = "Ember", ["move4"] = "Fire Spin" },
["Articuno"] = { ["move1"] = "Gust", ["move2"] = "Agility", ["move3"] = "Powder Snow", ["move4"] = "Mist" },
["Groudon"] = { ["move1"] = "Slash", ["move2"] = "Ancientpower", ["move3"] = "Scary Face", ["move4"] = "Mud Shot" },
["Rayquaza"] = { ["move1"] = "Crunch", ["move2"] = "Ancientpower", ["move3"] = "Scary Face", ["move4"] = "Twister" },
}
-- Returns the selected boss with the object's specified key value
return list[args.name][args.getVar]
end
return p