Module:Etrian 1 Trap Data Cell

MDFW - The Mystery Dungeon Tree of Information.
Revision as of 20:50, 21 March 2023 by Adkuate (talk | contribs) (Created page with "-------------------------------------------------------------------------------- -- -- Module:Etrian 1 Trap Data Cell -- -- This module covers a list of traps in Japanese present in -- Etrian Mystery Dungeon. -- -- Parameters -- -- name: Insert the trap's English name there. -- -------------------------------------------------------------------------------- p = {} function p.shiren3TrapDataCell(f) -- Gets the arguments from #invoke:Etrian 1 Trap...")
(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 Etrian Mystery Dungeon for use only in table Templates such as Module:Etrian 1 Dungeon Traps table.

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

{{#invoke:Etrian 1 Dungeon Traps table|main
  | trap_1  = Arrow Trap
  | floor_1 = 2
}}

...and will result in:

ModelTrapsFloors
EnglishJapanese
Etrian 1 - Arrow Trap.pngArrow TrapScript error: The function "etrian1TrapDataCell" does not exist.2

--------------------------------------------------------------------------------
--
--                       Module:Etrian 1 Trap Data Cell
--
-- This module covers a list of traps in Japanese present in
-- Etrian Mystery Dungeon.
--
-- Parameters
--
-- name: Insert the trap's English name there.
--
--------------------------------------------------------------------------------

p = {}

function p.shiren3TrapDataCell(f)
	-- Gets the arguments from #invoke:Etrian 1 Trap Data Cell|etrian1TrapDataCell
	local args = f.args

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

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

return p