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
mNo edit summary
Line 5: Line 5:
-- 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
-- amount of experience points they drop present in
-- amount of experience points they drop present in
-- Shiren the Wanderer 3: The Sleeping Princess and the Karakuri Mansion.
-- Shiren the Wanderer BS: Save Surala.
--
--
-- Parameters
-- Parameters

Revision as of 22:20, 22 March 2023

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

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