Module:Save Surala Monster Data Cell: Difference between revisions
Jump to navigation
Jump to search
(Created page with "-------------------------------------------------------------------------------- -- -- Module:Save Surala Monster Data Cell -- -- This module covers a list of monsters in Japanese, their levels, and the -- amount of experience points they drop present in -- Shiren the Wanderer 3: The Sleeping Princess and the Karakuri Mansion. -- -- Parameters -- -- name: Insert the monster's English name there. -- getVar: Picks which key the module should return. -- *...") |
mNo edit summary |
||
Line 25: | Line 25: | ||
-- List of every monster's Japanese names, levels, and experience points | -- List of every monster's Japanese names, levels, and experience points | ||
local list = { | local list = { | ||
[""] = {["ja"] = "", ["lv"] = "", ["exp"] = ""}, | ["Mamel"] = {["ja"] = "", ["lv"] = "", ["exp"] = ""}, | ||
} | } | ||
Revision as of 22:16, 22 March 2023
This template covers a list of monsters, their names in Japanese, their levels, and the amount of experience points they drop present in Shiren the Wanderer BS: Save Surala for use only in modules such as Module:Save Surala Dungeon Monsters table.
In this example, the attribute {{{monster|}}} uses this module...
{{#invoke:Save Surala Dungeon Monsters table|main | monster_1 = Mamel | floors_1 = 2 }}
...and will result in:
Sprite | Monster | Experience | Floors | |
---|---|---|---|---|
English | Japanese | |||
![]() | Mamel | 2 |
--------------------------------------------------------------------------------
--
-- Module:Save Surala Monster Data Cell
--
-- This module covers a list of monsters in Japanese, their levels, and the
-- amount of experience points they drop present in
-- Shiren the Wanderer 3: The Sleeping Princess and the Karakuri Mansion.
--
-- Parameters
--
-- name: Insert the monster's English name there.
-- getVar: Picks which key the module should return.
-- * ja: Returns the monster's Japanese name.
-- * lv: Returns the monster's level.
-- * exp: Returns the monster's experience points.
--
--------------------------------------------------------------------------------
p = {}
function p.saveSuralaMonsterDataCell(f)
-- Gets the arguments from #invoke:Save Surala Monster Data Cell|saveSuralaMonsterDataCell
local args = f.args
-- List of every monster's Japanese names, levels, and experience points
local list = {
["Mamel"] = {["ja"] = "", ["lv"] = "", ["exp"] = ""},
}
-- Returns the selected monster with the object's specified key value
return list[args.name][args.getVar]
end
return p