Module:Save Surala Monster 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 1: Line 1:
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--
--
--                   Module:Save Surala Monster Data Cell
-- Module:Save Surala Monster Data Cell
--
--
-- This module covers a list of monsters in Japanese, their levels, and the
-- This module covers a list of monsters in Japanese, their levels, and the
Line 17: Line 17:
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------


p = {}
return {
 
["Mamel"] = { ["ja"] = "",  ["lv"] = "", ["exp"] = "" }
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

Revision as of 15:05, 13 July 2024

Template-info.png Documentation

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:

SpriteMonsterExperienceFloors
EnglishJapanese
Mamel's sprite.Mamel2

--------------------------------------------------------------------------------
--
--					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.
--
--------------------------------------------------------------------------------

return {
	["Mamel"] = { ["ja"] = "",  ["lv"] = "", ["exp"] = "" }
}