Module:Sandbox: Difference between revisions

MDFW - The Mystery Dungeon Tree of Information.
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 8: Line 8:
----------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------


p = {}
function p.pick(name, get)
 
local argsA = name.args
function p.pick(f)
local argsB = get.args
local args = f.args
local list = {}
local ja = {"フシギダネ"}
list = {
local typePkmn = {"Grass"}
["Bulbasaur"] = {
local s = {
["ja"] = "フシギダネ",
["Bulbasaur"] = {0, 0}
["type1"] = "Grass"
}
}
}
return print(s[f][0])
if argsA and argsB then
return print(list[argsA][argsB])
end
end
end


return p
return p

Revision as of 19:22, 3 October 2022



----------------------------------------------------------------------------------------------------
--
--                                        Module:Sandbox
--
-- Here you can set anything you want in this sandbox, as long as it uses the language Lua.
-- Do not forget to add {{#invoke:Sandbox|<function name>}} in your template.
-- [[Category:Sandbox]]
----------------------------------------------------------------------------------------------------

function p.pick(name, get)
	local argsA = name.args
	local argsB = get.args
	local list = {}
	list = {
		 ["Bulbasaur"] =  {
			["ja"] = "フシギダネ",
			["type1"] = "Grass"
		 }
	}
	
	if argsA and argsB then
		return print(list[argsA][argsB])
	end
end

return p