Module:Save Surala Trap Data Cell

MDFW - The Mystery Dungeon Tree of Information.
Revision as of 22:19, 22 March 2023 by Adkuate (talk | contribs) (Created page with "-------------------------------------------------------------------------------- -- -- Module:Save Surala Trap Data Cell -- -- This module covers a list of traps in Japanese present in -- Shiren the Wanderer BS: Save Surala. -- -- Parameters -- -- name: Insert the trap's English name there. -- -------------------------------------------------------------------------------- p = {} function p.saveSuralaTrapDataCell(f) -- Gets the arguments from #invo...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Template-info.png Documentation

This template covers a list of traps and their names in Japanese present in Shiren the Wanderer BS: Save Surala for use only in modules such as Module:Save Surala Dungeon Traps table.

In this example, the attribute {{{trap|}}} uses this module...

{{#invoke:Save Surala Dungeon Traps table|main
  | trap_1   = Alarm Trap
  | floors_1 = 2
}}

...and will result in:

SpriteTrapFloors
EnglishJapanese
Alarm Trap's sprite.Alarm Trap2

--------------------------------------------------------------------------------
--
--                     Module:Save Surala Trap Data Cell
--
-- This module covers a list of traps in Japanese present in
-- Shiren the Wanderer BS: Save Surala.
--
-- Parameters
--
-- name: Insert the trap's English name there.
--
--------------------------------------------------------------------------------

p = {}

function p.saveSuralaTrapDataCell(f)
	-- Gets the arguments from #invoke:Save Surala Trap Data Cell|saveSuralaTrapDataCell
	local args = f.args

	-- List of every trap's Japanese names
	local list = {
		["Acid Rain Trap"] = "",
	}

	-- Returns the selected trap's Japanese name
	return list[args.name]
end

return p