Module:Save Surala Monster Data Cell
Jump to navigation
Jump to search
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 BS: Save Surala.
--
-- 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